:root {
    --bg: #fffdf9;
    --ink: #2b2b2b;
    --muted: #6b6b6b;
    --cinnamon: #b86b35;
    --cinnamon-disabled: #d4b08d;
    --cinnamon-dark: #8f5227;
    --sand: #f4e7d6;
    --card: #ffffff;
    --border: #eae3da;
    --success: #2f9e44;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: 1140px;
    margin-inline: auto;
    padding: 0 20px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 9999;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0 20px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--cinnamon-dark);
    letter-spacing: .3px;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
	align-items: center;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a.active {
    color: var(--cinnamon);
}

/* General dropdown for desktop */
.nav-links li.dropdown {
    position: relative;
}

.nav-links li.dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    /* desktop default */
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 10;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: #f7f3f0;
}

.nav-links li.dropdown .dropdown-menu.show {
    display: block;
}
/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff8f2;
    border: 1px solid var(--border);
    color: var(--cinnamon-dark);
    padding: 7px 12px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.language-btn:hover {
    background: var(--sand);
    border-color: var(--cinnamon);
}

.language-btn i {
    font-size: 0.75rem;
}

.language-options {
    display: none;
    position: absolute;
    top: 115%;
    right: 0;
    background: #fff;
    min-width: 150px;
    padding: 8px;
    margin: 0;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.language-options.show {
    display: block;
}

.language-options li a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.language-options li a:hover,
.language-options li a.active-language {
    background: #fff3e8;
    color: var(--cinnamon-dark);
}

.language-options .flag {
    font-size: 1.1rem;
}

.language-options .lang-code {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .language-switcher {
        width: 100%;
    }

    .language-btn {
        width: 100%;
        justify-content: space-between;
        border-radius: 10px;
        padding: 10px 12px;
    }

    .language-options {
        position: static;
        margin-top: 8px;
        box-shadow: none;
        width: 100%;
    }
}
/* Mobile adjustments */
@media (max-width: 900px) {
    .dropdown-menu {
        position: static;
        /* so it stays in the same box */
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }

    .dropdown-menu li a {
        padding-left: 40px;
        /* indent to show hierarchy */
        background: none;
    }

    /* Toggle dropdown via JS class */
    .dropdown-menu.show {
        display: block;
    }

    /* Optional: hide desktop hover behavior */
    /* .nav-links li.dropdown:hover .dropdown-menu {
        display: none;
    } */

    /* .nav-links li.dropdown-menu:hover .dropdown-menu.show {
        display: block;
    } */
}

/* Hamburger button for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 64px;
        right: 0;
        background: #fff;
        flex-direction: column;
        width: 100%;
        padding: 10px 40px;
        border-left: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

/* Hero Section */
.hero-product {
    position: relative;
    height: 70vh;
    background: url('https://images.unsplash.com/photo-1587131782738-de30ea91a542?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-btn {
    background-color: #c78b50;
    color: white;
    padding: 12px 25px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-btn:hover {
    background-color: #a6713f;
    transform: scale(1.05);
}
/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #d4a853;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Container */
.error-container {
    text-align: center;
    padding: 2rem;
    color: #dc2626;
    background: #fee2e2;
    border-radius: 8px;
    margin: 2rem;
}

.error-container button {
    background: #d4a853;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.error-container button:hover {
    background: #c09a43;
}
/* 📱 Responsive adjustments */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .hero-product {
        height: 60vh;
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Tablet optimization */
/* @media (min-width: 768px) and (max-width: 1024px) {
    .hero-product {
        height: 65vh; 
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1.15rem;
    }

    .hero-btn {
        font-size: 1rem;
        padding: 10px 22px;
    }
} */



/* Products Container Main */
.products-container-main {
    margin-top: 5rem;
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 20px;
    /* Add padding for small screens */
}

h2 {
    text-align: center;
}

/* CTA Button */
.cta-button button {
    background-color: #d2691e;
    color: white;
    padding: 1rem 2rem;
    font-size: 1em;
    border: none;
    border-radius: 1.5rem;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.cta-button button:hover {
    background-color: #b45a1c;
    /* Slight hover effect */
}

/* Products Grid */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 45px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
}

/* Product Card */
.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.product-card h2 {
    font-size: 1.2em;
    margin: 10px 0;
}

.price {
    font-size: 1.1em;
    color: #b5651d;
    font-weight: bold;
    margin-bottom: 10px;
}

.description {
    font-size: 0.9em;
    line-height: 1.4;
    flex-grow: 1;
}

.weight-select {
    margin: 10px 0;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95em;
}

.add-to-cart {
    background-color: var(--cinnamon);
    color: white;
    padding: 10px 15px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
}

.add-to-cart:disabled {
    background-color: var(--cinnamon-disabled);
}

.add-to-cart:hover {
    background-color: var(--cinnamon-dark);
    transform: translateY(-2px);
}

.wholesale-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #f4f4f4;
    color: var(--cinnamon);
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid var(--cinnamon);
}

.wholesale-link:hover {
    background-color: var(--cinnamon);
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .add-to-cart {
        width: 100%;
        font-size: 1.1em;
        padding: 12px;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .products-container {
        gap: 30px;
        padding: 30px;
    }

    .product-card img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .products-container {
        grid-template-columns: 1fr;
        /* Single column on small screens */
        padding: 20px;
        gap: 20px;
    }

    .product-card img {
        height: 160px;
    }

    .product-card h2 {
        font-size: 1.1em;
    }

    .price {
        font-size: 1em;
    }

    .description {
        font-size: 0.85em;
    }

    .cta-button button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .product-card img {
        height: 140px;
    }

    .product-card h2 {
        font-size: 1em;
    }

    .description {
        font-size: 0.8em;
    }

    .cta-button button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9em;
    }
}


/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: #fff;
    margin-top: 40px;
    font-size: 0.95rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    padding: 28px 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    text-decoration: none;
    color: var(--ink);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cinnamon);
}

.footer__meta p {
    margin: .2rem 0;
    color: var(--muted);
}

.footer__bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 14px;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-social {
    margin-top: 10px;
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    stroke: #555;
    /* Modern dark grey */
    stroke-width: 1.6;
    fill: none;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.social-icon:hover svg {
    stroke: var(--cinnamon);
    transform: scale(1.12);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #contact {
        padding: 3rem 1.5rem;
    }

    #contact h2 {
        font-size: 1.6rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
    }

    .contact-form button {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    #contact {
        padding: 2rem 1rem;
    }

    #contact h2 {
        font-size: 1.4rem;
    }

    .contact-form {
        gap: 12px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .contact-form button {
        padding: 10px;
        font-size: 0.9rem;
    }
}


/* Popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup container */
.popup-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 480px;
    max-height: 93vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.35s ease-out;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
}

/* Overlay background */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    /* ensures gap from screen edges */
    z-index: 9999;
    overflow: hidden;
}

/* Popup header */
.popup-header {
    background: linear-gradient(135deg, var(--cinnamon), var(--cinnamon-dark));
    color: white;
    padding: 24px 28px;
    text-align: center;
    position: relative;
}

.popup-header h2 {
    font-size: clamp(20px, 4vw, 26px);
    margin-bottom: 6px;
    font-weight: 700;
}

.popup-header p {
    font-size: clamp(14px, 3.5vw, 17px);
    opacity: 0.9;
}

/* Popup body */
.popup-body {
    padding: 26px;
    text-align: center;
}

.popup-body p {
    font-size: clamp(15px, 3.8vw, 18px);
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.highlight-text {
    color: var(--cinnamon-dark);
    font-weight: 700;
    font-size: clamp(17px, 4vw, 20px);
}

.shipping-icon {
    font-size: clamp(42px, 10vw, 55px);
    margin-bottom: 18px;
    color: var(--cinnamon);
}

/* Popup footer */
.popup-footer {
    padding: 0 26px 26px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.popup-btn {
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(14px, 3.8vw, 16px);
    cursor: pointer;
    border: none;
    min-width: 130px;
    transition: all 0.3s ease;
    flex: 1 1 calc(50% - 10px);
    /* makes it responsive in row/column layouts */
}

.primary-btn {
    background: var(--cinnamon);
    color: white;
}

.primary-btn:hover {
    background: var(--cinnamon-dark);
    transform: translateY(-2px);
}

.secondary-btn {
    background: #f0f3ff;
    color: var(--cinnamon);
    border: 1px solid #d1dcff;
}

.secondary-btn:hover {
    background: #e1e8ff;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.22);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* Small screen optimization */
@media (max-width: 480px) {
    .popup-container {
        border-radius: 12px;
        padding: 0;
        width: 100%;
        max-height: 95%;
    }

    .popup-header {
        padding: 18px;
    }

    .popup-header h2 {
        margin-bottom: 5px;
    }

    .popup-body {
        padding: 18px;
    }

    .popup-body .shipping-icon {
        margin: 0;
    }

    .popup-footer {
        padding: 0 18px 18px;
        flex-direction: column;
        gap: 10px;
    }

    .popup-btn {
        flex: 1 1 100%;
        width: 100%;
        min-width: unset;
    }
}