/*
Theme Name: Matten24 Modern Elegance
Author: Web-Designer AI
Description: Ein modernes, performantes E-Commerce Theme für matten24.com mit Fokus auf Naturprodukte und Maßanfertigung.
Version: 1.0
Text Domain: matten24-theme
*/

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/inter-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary-color: #a70a10;
    --secondary-color: #f1f1f1;
    --bg-secondary: #f1f1f1;
    --text-dark: #2D2926;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
    --border-radius: 12px;
    --input-bg: #fcfcfc;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.page-content {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.page-content.has-hero {
    padding-top: 0;
}

/* Header & Topbar */
.top-bar {
    width: 100%;
    background: var(--primary-color);
    color: #ffffff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 5%;
    box-sizing: border-box;
}
.top-bar-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.top-bar-nav a { color: #ffffff; text-decoration: none; font-size: 0.85rem; font-weight: 500; }

.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}
.site-header .nav-menu a { color: #000; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; transition: color 0.3s ease; }
.site-header .nav-menu a:hover { color: var(--primary-color); }
.nav-menu ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav-menu ul li { position: relative; }

/* Submenu Styles */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 15px 0;
    display: block;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    border: 1px solid #f0f0f0;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.nav-menu .sub-menu li {
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 12px 20px;
    display: block;
    text-transform: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.nav-menu .sub-menu a:hover {
    background: #f9f9f9;
}

/* Arrow Indicator */
.menu-item-has-children > a {
    display: flex;
    align-items: center;
}

.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 10px;
    margin-top: -4px;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover > a::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* Category Item with Image in Menu */
.menu-cat-item-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-cat-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.menu-cat-item-title {
    flex: 1;
}

/* Adjustments for submenu categories */
.sub-menu .menu-cat-item-content {
    padding: 5px 0;
}

.sub-menu .menu-cat-img {
    width: 50px;
    height: 50px;
}

/* Header Action Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-action-link {
    color: #000;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-action-link:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.header-icon {
    stroke: #000; /* Force black stroke */
    width: 28px;
    height: 28px;
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Form Elements (Inputs & Selects) */
.matten24-cart-options {
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #eaeaea;
    margin-top: 20px;
}

.matten24-option-group {
    margin-bottom: 20px;
}

.matten24-option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.matten24-cart-form select,
.matten24-cart-form input[type="number"],
.matten24-cart-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--input-bg);
    transition: all 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.matten24-cart-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.matten24-cart-form select:focus,
.matten24-cart-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(167, 10, 16, 0.1);
    background-color: #fff;
}

.matten24-cart-form select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Price Display */
.matten24-price-display {
    font-size: 1.5rem;
    margin: 15px 0;
    color: var(--text-dark);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.matten24-price-display strong {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Buttons */
.matten24-btn.btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(167, 10, 16, 0.2);
}

.matten24-btn.btn-primary:hover {
    background: #8a080d;
    transform: translateY(-1px);
}

.matten24-btn.btn-primary:active {
    transform: translateY(0);
}

/* Success Modal Styles */
.matten24-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.matten24-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    animation: matten24ModalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes matten24ModalSlideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.matten24-modal-icon {
    width: 60px;
    height: 60px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.matten24-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.matten24-modal-product-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.matten24-modal-product-name {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.matten24-modal-product-details {
    font-size: 0.9rem;
    color: #666;
}

.matten24-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.matten24-btn.btn-secondary {
    background: #eee;
    color: #444;
    padding: 14px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.matten24-btn.btn-secondary:hover {
    background: #e0e0e0;
}

.matten24-modal .btn-primary {
    padding: 14px 25px;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

/* Details & Gallery */
.matten24-product-thumbnails { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.matten24-gallery-thumb { width: 80px; height: 80px; object-fit: cover; cursor: pointer; border: 2px solid transparent; border-radius: 8px; transition: all 0.3s; }
.matten24-gallery-thumb.active { border-color: var(--primary-color); transform: scale(1.05); }

.product-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; color: var(--text-dark); }

@media (max-width: 768px) {
    .product-layout { flex-direction: column; }
    .product-title { font-size: 1.8rem; }
}

/* Footer Styles */
.site-footer {
    background: #fff;
    border-top: 1px solid #eaeaea;
    padding: 60px 0 0;
    margin-top: 80px;
    color: var(--text-dark);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column {
    flex: 1 1 calc(25% - 40px); /* 1/4 layout */
    min-width: 250px;
}

.footer-logo-box {
    background: #fff;
    padding: 15px;
    display: inline-block;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Nice box shadow */
    margin-bottom: 25px;
}

.footer-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.footer-contact-info p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 15px;
}

.footer-contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-slogan {
    font-style: italic;
    color: #666;
    margin-top: 20px !important;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-nav ul,
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li,
.footer-column li {
    margin-bottom: 12px;
}

.footer-nav a,
.footer-column a {
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-nav a:hover,
.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background: #f9f9f9;
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

@media (max-width: 992px) {
    .footer-column {
        flex: 1 1 calc(50% - 40px); /* 2 per row on tablets */
    }
}

@media (max-width: 600px) {
    .footer-column {
        flex: 1 1 100%; /* 1 per row on mobile */
    }
}

/* Shopping Cart Modern Design */
.matten24-cart-container {
    padding: 40px 0;
}

.matten24-cart-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.matten24-cart-items-section {
    flex: 2;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    border: 1px solid #eaeaea;
}

.matten24-cart-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.matten24-cart-item:last-child {
    border-bottom: none;
}

.matten24-cart-item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.matten24-cart-item-details {
    flex: 1;
}

.matten24-cart-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-dark);
}

.matten24-cart-item-options {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.matten24-cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.matten24-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.matten24-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #555;
    padding: 0;
}

.matten24-qty-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff5f5;
}

.matten24-qty-input {
    width: 45px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    background: transparent;
}

.matten24-cart-remove {
    background: #f1f1f1;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    color: #999;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.matten24-cart-remove:hover {
    background: #ffeded;
    color: var(--primary-color);
}

/* Cart Summary Section */
.matten24-cart-summary-section {
    flex: 1;
    position: sticky;
    top: 120px;
}

.matten24-cart-summary-box {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    padding: 30px;
    border: 1px solid #eaeaea;
}

.matten24-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

.matten24-summary-row.total-row {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
    color: var(--text-dark);
    font-size: 1.3rem;
    align-items: flex-start;
}

.matten24-vat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
    margin-top: 4px;
    line-height: 1.2;
}

.matten24-summary-row.total-row strong {
    color: var(--primary-color);
}

.matten24-cart-checkout-action {
    margin-top: 30px;
    width: 100%;
}

.matten24-btn-checkout {
    display: block;
    width: 100%;
    padding: 18px 20px;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(167, 10, 16, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box; /* Ensures padding doesn't push width over 100% */
}

.matten24-btn-checkout:hover {
    background: #8a080d;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(167, 10, 16, 0.35);
    color: #fff;
}

.matten24-btn-checkout:active {
    transform: translateY(-1px);
}

.matten24-cart-shipping-note {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .matten24-cart-layout {
        flex-direction: column;
    }
    .matten24-cart-summary-section {
        width: 100%;
        position: static;
    }
}

/* Custom Styles for columns block content to make it premium and bulletproof */
.wp-block-columns {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    margin-top: 5rem !important;
    margin-bottom: 5rem !important;
}

/* Ensure vertically centered alignment for columns */
.wp-block-columns .wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Beautiful style for any image placed in columns, making height & ratio robust */
.wp-block-columns .wp-block-image {
    margin: 0;
    width: 100%;
}

.wp-block-columns .wp-block-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    display: block;
}

.wp-block-columns .wp-block-image img:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
}

/* Headings with red accent underlines */
.wp-block-columns h2.wp-block-heading {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.wp-block-columns h2.wp-block-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 12px;
    border-radius: 4px;
}

.wp-block-columns h3.wp-block-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.wp-block-columns p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #4A4A4A;
}

/* Premium styled bullet lists */
.wp-block-columns ul.wp-block-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.wp-block-columns ul.wp-block-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4A4A4A;
}

.wp-block-columns ul.wp-block-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
}

/* Premium styled numbered lists */
.wp-block-columns ol.wp-block-list {
    counter-reset: matten-counter;
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.wp-block-columns ol.wp-block-list li {
    counter-increment: matten-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4A4A4A;
}

.wp-block-columns ol.wp-block-list li::before {
    content: counter(matten-counter);
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(167, 10, 16, 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column !important;
        gap: 2.5rem;
        margin-top: 3.5rem !important;
        margin-bottom: 3.5rem !important;
    }
    .wp-block-columns .wp-block-column {
        width: 100% !important;
        flex-basis: 100% !important;
    }
    .wp-block-columns h2.wp-block-heading {
        font-size: 1.8rem;
    }
}

/* Premium Product Page Styling */
.matten24-single-product {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}

.matten24-single-product .product-layout {
    display: flex;
    gap: 50px;
    margin-bottom: 4rem;
}

.matten24-single-product .product-gallery {
    flex: 1.2;
    min-width: 320px;
}

.matten24-single-product .product-gallery img.main-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.matten24-single-product .product-details {
    flex: 1;
    min-width: 320px;
}

.matten24-single-product .product-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.matten24-single-product .matten24-cart-options {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.2rem;
    border: 1px solid #eaeaea;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    margin-top: 0;
}

.matten24-single-product .matten24-option-group {
    margin-bottom: 1.5rem;
}

.matten24-single-product .matten24-option-group label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
}

.matten24-single-product select,
.matten24-single-product input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #fafafa;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
}

.matten24-single-product select:focus,
.matten24-single-product input[type="number"]:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(167, 10, 16, 0.1);
    outline: none;
}

.matten24-single-product .matten24-price-display {
    background: rgba(167, 10, 16, 0.03);
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px dashed rgba(167, 10, 16, 0.15);
    margin: 2rem 0 1.5rem;
    font-size: 1.1rem;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.matten24-single-product .matten24-price-display strong {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
}

.matten24-single-product .matten24-action-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.matten24-single-product button[type="submit"] {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(167, 10, 16, 0.25);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.matten24-single-product button[type="submit"]:hover {
    background: #8a080d;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(167, 10, 16, 0.35);
}

.matten24-single-product .matten24-price-details {
    font-size: 0.85rem;
    color: #777;
    text-align: center;
    line-height: 1.4;
}

.matten24-single-product .product-description {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eaeaea;
}

.matten24-single-product .product-description h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Empty Cart View Styling */
.matten24-cart-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    max-width: 600px;
    margin: 3rem auto;
}

.matten24-cart-empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
    animation: cart-bounce 2s ease infinite;
}

.matten24-cart-empty p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
}

.matten24-cart-empty .btn-primary {
    display: inline-block;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(167, 10, 16, 0.2);
    transition: all 0.3s;
}

.matten24-cart-empty .btn-primary:hover {
    background: #8a080d;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(167, 10, 16, 0.35);
}

@keyframes cart-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 991px) {
    .matten24-single-product .product-layout {
        gap: 30px;
    }
    .matten24-single-product .product-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .matten24-single-product .product-layout {
        flex-direction: column;
    }
    .matten24-single-product .product-gallery,
    .matten24-single-product .product-details {
        width: 100%;
        min-width: 100%;
    }
}

/* Unobtrusively eye-catching cart notice for natural product info */
.matten24-cart-notice {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: rgba(245, 158, 11, 0.05); /* very soft amber background */
    border-left: 4px solid #ef6c00; /* warm amber left border */
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 2.5rem;
    box-sizing: border-box;
    border-top: 1px solid rgba(245, 158, 11, 0.1);
    border-right: 1px solid rgba(245, 158, 11, 0.1);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.matten24-cart-notice .notice-icon {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-top: 2px;
}

.matten24-cart-notice .notice-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #78350f; /* warm dark amber text color */
}

.matten24-cart-notice .notice-content p strong {
    color: #451a03; /* darker title highlight */
    font-weight: 700;
}

.matten24-cart-notice .notice-content a {
    color: #ef6c00;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.2s;
}

.matten24-cart-notice .notice-content a:hover {
    color: #b45309;
}

/* Ensure prices and their currency symbols never wrap */
.matten24-cart-total-price,
.matten24-cart-subtotal-price,
.matten24-cart-tax,
.matten24-cart-item-price,
.checkout-product-price,
.totals-value,
.matten24-price-display,
.matten24-display-m2-price {
    white-space: nowrap !important;
}

/* Target total price parent strong element specifically to prevent the symbol from wrapping */
.matten24-summary-row.total-row > strong {
    white-space: nowrap !important;
}

/* ==========================================================================
   Kokosmatten Info Page (Page 53) Premium Styling
   ========================================================================== */
.page-id-53 .page-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 80px;
}
.page-id-53 .wp-block-columns {
    gap: 2rem;
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}
.page-id-53 .wp-block-columns .wp-block-column {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
.page-id-53 .wp-block-columns .wp-block-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}
.page-id-53 h2.wp-block-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}
.page-id-53 h3.wp-block-heading {
    font-size: 1.4rem;
    margin-top: 0;
    color: #1e293b;
}
.page-id-53 .wp-block-quote {
    background: #fff8f8;
    border-left: 4px solid var(--primary-color) !important;
    padding: 20px 25px;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
}
.page-id-53 .wp-block-quote p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #991b1b;
    margin: 0;
}
.page-id-53 ul.wp-block-list {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 30px 30px 45px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}
.page-id-53 ul.wp-block-list li {
    margin-bottom: 15px;
    color: #334155;
}
.page-id-53 ul.wp-block-list li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Footer Menu Badge Styles (Entire Link styled as Badge)
   ========================================================================== */
.m24-footer-badge-link {
    display: inline-block !important;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    line-height: 1.2 !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    box-shadow: 0 4px 15px rgba(167, 10, 16, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    animation: badge-pulse 2s infinite;
    text-decoration: none !important;
}

.m24-footer-badge-link:hover {
    background: #8a080d !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 20px rgba(167, 10, 16, 0.45) !important;
    color: #ffffff !important;
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(167, 10, 16, 0.25);
    }
    50% {
        box-shadow: 0 4px 22px rgba(167, 10, 16, 0.55);
    }
    100% {
        box-shadow: 0 4px 15px rgba(167, 10, 16, 0.25);
    }
}

/* Mobile Menu Toggle button styling */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: 10px;
}

.mobile-menu-toggle .hamburger-line {
    width: 30px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile responsive menu navigation */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .site-header .nav-menu {
        position: fixed;
        top: 80px; /* Adjust if header is taller */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        height: calc(100vh - 80px);
        overflow-y: auto;
        padding: 40px 8%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* Prevent blocking clicks when hidden */
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    }

    .site-header .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Allow interaction when open */
        transform: translateY(0);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .site-header .nav-menu a {
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 15px 0 10px 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        background: transparent;
        width: 100%;
    }

    .nav-menu .sub-menu a {
        font-size: 0.95rem;
        padding: 5px 0;
        border: none;
    }
    
    .menu-item-has-children > a::after {
        display: none; /* Hide desktop arrow on mobile */
    }

    body.mobile-menu-open {
        overflow: hidden; /* Prevent body scroll when menu open */
    }
}


