/*
Theme Name: StrangeSkov.dk for WooCommerce
Description: Ultra-basic WooCommerce theme for strangeskov.dk with cart and custom WooCommerce templates.
Version: 2.6
*/

@import url('https://www.w3schools.com/w3css/5/w3.css');
@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Ultra-basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
	text-wrap:pretty;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
	font-family: Arial, sans-serif;
    font-family: "Montserrat", sans-serif;
    font-family: 'Catamaran', sans-serif;
    font-optical-sizing: auto;
    font-size: 19px;
    line-height: 1.6;
    color: #333;
}
h1, h2, h3, h4, h5, h6 {
 font-family: "Montserrat", sans-serif;
 font-weight:700;
	line-height:1.2em;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 0;
    width: 100%;
    overflow-x: unset;
}

/* Fixed Header Styles */
.site-header {
    background: #ffffff;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
    transition: box-shadow 0.3s ease;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 15px; /* Keep some padding for header */
    width: 100%;
    max-width: 100%;
}

/* Logo section */
.site-branding {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 0; /* Allow shrinking */
    overflow: hidden;
}

.site-logo a {
    display: block;
    line-height: 0;
}

.site-logo-img {
    max-width: 140px; /* Smaller logo on large screens */
    max-height: 40px; /* Smaller logo on large screens */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Mobile Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 10px; /* Small gap on small screens */
    margin-left: auto; /* Push to the right */
    order: 2; /* Place before cart */
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    fill: #333;
    transition: all 0.3s ease;
    transform: translateY(-3px);
}

.mobile-menu-toggle:hover .hamburger-icon {
    fill: #4CAF50;
}

/* Remove old hamburger line styles - no longer needed */

/* Navigation menu */
.primary-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end; /* Align menu to the right */
    margin-right: 20px; /* Space between menu and cart - reduced for mobile */
    min-width: 0; /* Allow shrinking */
    overflow: hidden;
}

.primary-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 15px; /* Reduced gap for mobile compatibility */
    flex-wrap: nowrap;
}

.primary-navigation li {
    margin: 0;
    flex-shrink: 1;
    text-align: right;
}

.primary-navigation a {
    color: #333;
    text-decoration: none;
    padding: 10px 10px; /* Reduced padding for mobile */
    display: block;
    font-weight: 700;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 1rem; /* Smaller font for mobile compatibility */
}

.primary-navigation a:hover {
    color: #4CAF50;
}

/* Cart section */
.header-cart {
    flex: 0 0 auto;
    order: 3; /* Ensure cart is always last */
}

.header-cart .cart-link {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.header-cart .cart-link:hover {
    color: #4CAF50;
}

/* Cart icon container - SVG ready */
.cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.cart-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Mobile SVG adjustments */
@media (max-width: 767px) {
    .cart-icon svg {
        width: 26px; /* Match the bigger mobile cart icon */
        height: 26px;
    }
    
    .hamburger-icon {
        width: 22px;
        height: 22px;
        transform: translateY(-3px);
    }
}

@media (max-width: 480px) {
    .cart-icon svg {
        width: 24px; /* Match the smaller mobile cart icon */
        height: 24px;
    }
    
    .hamburger-icon {
        width: 20px;
        height: 20px;
        transform: translateY(-3px);
    }
}

/* Cart count badge */
.cart-count {
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 2px; /* Large screen positioning */
    right: 6px; /* Large screen positioning */
    font-size: 12px;
}

.cart-count:empty {
    display: none;
}

/* Main content - compensate for fixed header */
.site-main {
    padding-top: 45px;
    padding-bottom: 2rem;
	text-wrap-style: pretty;
}

.entry-content {
 position:relative;
}


/* Entry content styling */
.entry-content img {
    max-width: 980px;
}
.entry-content p {
    margin: 0;
    margin-bottom: 1em;
    position: relative;
}
.entry-content h1 {
    margin-bottom: 0.5em;
	font-weight:700;
	font-size:28px;
	font-size:2rem;
}
.entry-content h2 {
	font-weight:700;
	font-size:25px;
	font-size:1.8rem;
}
.entry-content h3 {
	font-weight:500;
	font-size:23px;
	font-size:1.6rem;	
}
.entry-content h4 {
	font-weight:500;
	font-size:1.4rem;
}
.entry-content ul {
    margin: 0.5em 1.5em;
}
.entry-content ul li {
    margin-bottom: 0.4em;
}

.blackboard {
	color: #fff;
	border-color: #fff;
	background-color: #252525;
	background-image: url('images/dark-blackboard.jpg');
}
.paperwhite {
	color: #111;
	border-color: #eee;
	background-color: #eee;
	background-image: url('images/paperwhite.jpg');
}
.paperlight {
	color: #111;
	border-color: #eee;
	background-color: #ECE9E2;
	background-image: url('images/paperlight.jpg');
}
.boxshadow {
 box-shadow: 0 0 10px black;
 box-shadow: 0 0 10px rgb(0 0 0 / 60%);
 box-shadow: 0 0 16px rgb(0 0 0 / 50%);
}

form.woocommerce-ResetPassword {
 margin-top:2em;	
}

@media only screen and (min-width: 750px) {
.columns {
  column-count:2; column-gap: 2em;
 }
}

@media only screen and (min-width: 600px) {
 .center-width80 {
  margin-left:auto !important;margin-right:auto !important;
  width: 80%;
 }
}
.badge {
 border-radius: 50%;
 background-image: url('images/dark-blackboard.jpg');
 background-color: #252525;
 color:#fff;
}

@media (min-width: 768px) { /* HEADER IMAGE AND TEXT BOXES ON LARGE SCREENS */
.strangeskov_headerbox {
  background-color: #FFFFFFA8;
  background-size: cover;
  backdrop-filter: blur(10px);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
	
  align-items: flex-start;
  flex-direction: column;
  padding: 1rem;
  border-radius: 20px;
  display: flex;

  position: absolute;
  top:20px;
  margin: 20px;
  width: 450px;

 }
.strangeskov_headerbox h1 {
 margin:0;
 margin-bottom: 0.5em;
 line-height:1.2;
 font-size: 25px;
 font-weight: 700;
 }
.strangeskov_headerbox p {
 margin-bottom: 0.5em;
 line-height:1.2;
 }
.strangeskov_headerimg {
 display:block;
 background-size: cover;
 background-position: center;
 width: calc(100vw);
 margin-left: calc(-50vw + 50%);
 margin-bottom: 1em;
 }
.strangeskov_headerimg img {
 margin-left: calc(50vw + 50%);
 }
}

@media (min-width: 768px) and (max-width: 1004px) { /* CROP ON LARGE SCREENS */
.strangeskov_headerbox {
  top:50px;
  width: 420px;
 }
.strangeskov_headerbox h1 {
 font-size: 23px;
 }
}


@media (max-width: 767px) { /* SMALL SCREENS */
.strangeskov_headerbox {
  margin: unset !important;
  width: unset !important;
 }
.entry-content h1 {
  font-size:1.6rem;
  font-size:22px;
 }
}

.parallax {background-attachment:fixed;background-position:center;background-repeat:no-repeat;background-size:cover;}
blockquote.blockquote-image-bgr {
 background-size: contain;
 margin-top:1em;
 margin-bottom:1em;
} 
blockquote.blockquote-image-bgr div.q_text {
}
@media only screen and (max-width: 1400px) {
 blockquote.blockquote-image-bgr {
  /*font-size:4vw;*/
 } 
}

@media only screen and (max-width: 600px) {
 blockquote.blockquote-image-bgr {
  font-size:26px;
 } 
 blockquote.blockquote-image-bgr .q_text {
  width:80vw;
  left:10vw;
  transform:none;
 }
 blockquote.blockquote-image-bgr .q_text span {
  margin:0;
 }
}
@media only screen and (max-width: 400px) {
 blockquote.blockquote-image-bgr .q_text {
  width:95vw;
  left:4vw;
 }
}


/* Footer */
footer {
}
.site-footer {
	background-color: #EBE6DF;
    padding: 1rem 0;
    text-align: center;
	clear:both;
}

/* WooCommerce basics */
.woocommerce ul.products {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.woocommerce ul.products li.product {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
	width: auto !important;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
}

.woocommerce .button {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}
.woocommerce .button:hover {
    background: #45a049;
}
.woocommerce-message {
	border:none !important;
}
.woocommerce ul.products li.product .onsale {
 display:none;
}

/* Cart Review Styles */
.cart-review {
    margin-bottom: 20px;
}
form.woocommerce-cart-form {
	margin-bottom:1em;
}

.woocommerce-cart-form__contents .cart_item {
	text-align:left;
	padding:1em 0;
	border-bottom:1px solid #aaa;
}
.woocommerce-cart-form__contents .cart_item .product-thumbnail {
	text-align:center;
}
.woocommerce-cart-form__contents .cart_item .product-name {
	font-size:22px;
	font-size:1.3rem;
	font-weight:800;
}
.woocommerce-cart-form__contents .cart_item .product-name,
.woocommerce-cart-form__contents .cart_item .product-description,
.woocommerce-cart-form__contents .cart_item .product-price {
	padding: 0 10px;
}
.woocommerce-cart-form__contents .cart_item .product-price {
	text-align:right;
	font-style:italic;
}
.woocommerce-cart-form__contents .cart_item .product-description ul {
	margin-top:0;
}
.woocommerce-cart-form__contents .cart_item .product-description ul li {
    margin-bottom: 0;
}
.woocommerce-cart-form__contents .cart_item .product-subtotal {
	text-align:right;
	font-weight:bold;
	font-size:120%;
	font-size:1.2rem;
	margin:0 10px 10px 10px;
}

.product-remove {
    text-align: left;
    margin: 0 10px;
    float: left;
}
.product-remove a {
    border: 1px solid #333;
    padding: 0 5px;
    border-radius: 5px;
    text-decoration: none;
}
/* Cart Quantity Buttons */
.woocommerce-cart-form__cart-item .product-quantity {
    display: flex;
    align-items: center;
    justify-content: left;
    float: left;
	margin-left:1em;
}
.woocommerce-cart-form__cart-item .qty-btn {
    background: #ccc;
    color: black;
    border: 1px solid black;
    cursor: pointer;
    width: 30px;
    height: 30px;
}
.cart-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.cart-loading-spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid rgba(0,0,0,0);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Cart Totals */
.cart-totals {
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cart-totals > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.cart-totals > div:not(.cart-total) {
    border-bottom: 1px solid #f0f0f0;
}

.cart-total {
    font-size: 1.2em;
	font-size:1.2rem;
    border-top: 2px solid #4CAF50;
    padding-top: 10px;
    margin-top: 15px;
    text-align: right;
}

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-form-coupon-toggle {
 display:none;	
}

/* Billing and Shipping Forms */
.billing-fields,
.shipping-fields {
    display: grid;
    gap: 15px;
}

.woocommerce-billing-fields__field-wrapper, 
.woocommerce-shipping-fields__field-wrapper, 
.woocommerce-additional-fields__field-wrapper {
	padding: 0 10px;
}

.billing-fields .form-row,
.shipping-fields .form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px; /* Prevent zoom on mobile */
	font-size: 1rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

form.checkout div.woocommerce-additional-fields h3,
form.checkout h3.order_review_heading
{
	display:none;
}
 
.order-total {
 font-weight:bold;
 font-size: 120%;	
 font-size:1.5rem;
}
.order-total-vat,
.order-total {
    display: flex;
    justify-content: space-between;
}
form.checkout div.woocommerce-shipping-fields h3 {
 font-size: 16px;	
 font-size:1.0rem;
}
form.checkout #order_review tr.order-total-vat td {
 font-weight:normal;
}

.woocommerce-checkout-review-order-table {
    width: unset !important;
    margin: 0 0.8em 24px 0.8em !important;
}

tr.woocommerce-shipping-totals th,
tr.woocommerce-shipping-totals td {
}
.woocommerce table.shop_table tbody th, 
.woocommerce table.shop_table tfoot td, 
.woocommerce table.shop_table tfoot th {
    border:none;
}
.powered_by_shipmondo {
    text-align: right !important;
    color: #ccc !important;
    font-weight: normal !important;
    font-size: 13px !important;
    margin: 0 !important;
    padding-right: 2px !important;
}

.woocommerce-checkout-review-order .notice-account-creation {
	padding:0;
	margin:1em 0;
	text-align:center;
}

/* Override WooCommerce button colors */
.woocommerce .button { background: #4CAF50 !important; }
.woocommerce .button:hover { background: #45a049 !important; }


.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt,
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
    background-color: #4CAF50 !important; /* Green - matches your theme */
    border-color: #4CAF50 !important;
}

.woocommerce #respond input#submit.alt:hover, 
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover {
    background-color: #45a049 !important; /* Darker green on hover */
    border-color: #45a049 !important;
}

/* Mobile Styles */
@media (max-width: 767px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Header Styles */
    .site-header {
        height: 70px;
    }
    
    .site-header .container {
        height: 70px;
        padding: 0 10px; /* Maintain padding for header on mobile */
        gap: 0; /* Remove gap, use margin instead for precise control */
    }
    
    /* Smaller logo on mobile */
    .site-logo-img {
        max-width: 180px; /* Further reduced for mobile */
        max-height: 45px;
    }
    
    /* Ensure branding doesn't overflow */
    .site-branding {
        flex-shrink: 1;
        min-width: 0;
        max-width: 60%; /* Limit logo area */
    }
    
    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
        margin-right: 10px; /* Exact 10px gap */
        margin-left: auto; /* Push to the right */
    }
    
    /* Hide navigation menu by default on mobile */
    .primary-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-right: 0;
        justify-content: flex-start;
        width: 100%;
    }
    
    .primary-navigation.mobile-menu-open {
        max-height: none;
    }
    
    .primary-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 10px 0;
    }
    
    .primary-navigation li {
        width: 100%;
    }
    
    .primary-navigation a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px; /* Restore normal font size in mobile menu */
	    font-size:1.0rem;
    }
    
    .primary-navigation a:hover {
        background: #f8f9fa;
    }
    
    /* Adjust main content for smaller header */
    .site-main {
        padding-top: 60px; /* 70px header + 20px spacing - but reduced to 45px + 20px */
    }
    
    /* Cart adjustments for mobile */
    .header-cart {
        flex-shrink: 0;
        margin-right: 5px; /* Add right margin for small screens */
    }
    
    .header-cart .cart-link {
        padding: 6px 8px; /* Reduced padding */
        font-size: 14px;
        gap: 4px;
    }
    
    .cart-icon {
        width: 26px; /* Bigger cart icon on mobile */
        height: 26px;
    }
    
    .cart-count {
        font-size: 11px;
        min-width: 16px;
        height: 16px;
        top: -4px; /* Mobile positioning */
        right: -1px; /* Mobile positioning */
    }
    
    /* Mobile content styling */
    .site-main img.full,
	.strangeskov_headerimg img {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
}

@media (max-width: 980px) {
    .site-main img.full, .strangeskov_headerimg img {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
}
    
@media (max-width: 1004px) {
    /* Specific styling for WooCommerce product images */
    .woocommerce ul.products li.product img {
        margin: 0 0 10px 0 !important;
    }    
    .site-main p,
    .site-main h1,
    .site-main h2,
    .site-main h3,
    .site-main h4,
    .site-main h5,
    .site-main h6 {
        padding: 0 10px;
        margin-left: 0;
        margin-right: 0;
    }	
}


@media (max-width: 480px) {
    /* Extra small mobile styles */
    .site-header {
        height: 60px;
    }
    
    .site-header .container {
        height: 60px;
        padding: 0 8px; /* Maintain some padding for very small screens */
        gap: 0; /* Remove gap, use margin for precise control */
    }
    
    .site-logo-img {
        max-width: 140px; /* Further reduced for small screens */
        max-height: 35px;
    }
    
    .site-branding {
        max-width: 65%; /* Even more restrictive on small screens */
    }
    
    .header-cart {
        margin-right: 8px; /* More right margin on very small screens */
    }
    
    .header-cart .cart-link {
        padding: 4px 6px;
        font-size: 13px;
    }
    
    .cart-icon {
        width: 24px; /* Still bigger than before */
        height: 24px;
    }
    
    .site-main {
		padding:0 8px;
        padding-top: 60px; /* 60px header + 5px reduced spacing */
    }
    
    .mobile-menu-toggle {
        padding: 6px;
        margin-right: 10px; /* Exact 10px gap on small screens */
        margin-left: auto; /* Push to the right */
    }
    
    .hamburger-icon {
        width: 20px; /* Slightly larger hamburger icon */
        height: 20px;
        transform: translateY(-3px);
    }
    
    /* Mobile content styling */
    .site-main img.full {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
		margin-right: -8px;
		margin-left: -8px;
    }
	.strangeskov_headerimg {
		margin-right: -8px;
		margin-left: -8px;
	}

    
    /* Specific styling for WooCommerce product images */
    .woocommerce ul.products li.product img {
        margin: 0 0 10px 0 !important;
    }
    
    .site-main p,
    .site-main h1,
    .site-main h2,
    .site-main h3,
    .site-main h4,
    .site-main h5,
    .site-main h6 {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Mobile Responsive for checkout */
@media (max-width: 767px) {
    .combined-checkout-page {
        margin: 0 5px; /* Reduced margin */
        width: calc(100% - 10px); /* Ensure it fits within screen */
        max-width: 100%;
    }
    
    .checkout-section {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .cart-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .item-details {
        flex: 1 1 100%;
        order: 2;
    }
    
    .item-image {
        order: 1;
    }
    
    .item-remove {
        order: 3;
    }
    
    .billing-fields,
    .shipping-fields {
        grid-template-columns: 1fr;
    }
    
    /* Ensure form fields don't overflow */
    .form-row input[type="text"],
    .form-row input[type="email"],
    .form-row input[type="tel"],
    .form-row select,
    .form-row textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Mobile content styling for checkout images */
    .checkout-section img {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
    
    .checkout-section p,
    .checkout-section h1,
    .checkout-section h2,
    .checkout-section h3,
    .checkout-section h4,
    .checkout-section h5,
    .checkout-section h6 {
        padding: 0 10px;
        margin-left: 0;
        margin-right: 0;
    }
}