/* =========================================================
   WoolenCrafts – Unified Master Stylesheet
   Version: FINAL (Conflict-free, Mobile-first)
   ========================================================= */

/* ---------------- Root Variables ---------------- */
:root {
    --primary: #8b6f47;
    --primary-dark: #6b5432;
    --secondary: #d4c5b0;
    --accent: #d97757;

    --bg-body: #ffffff;
    --bg-card: #f8f6f4;
    --bg-surface: #ffffff;

    --text-main: #1a1a1a;
    --text-muted: #666666;
    --text-light: #999999;

    --wool-bg: #F9F5F0;
    --wool-text: #4A3B32;
    --wool-accent: #D35400;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --font-hand: 'Dancing Script', cursive;

    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;

    --radius-md: 12px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);

    --nav-height: 60px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    
        --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-md: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;

    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

}

/* ---------------- Reset & Base ---------------- */
/**,*/
/**::before,*/
/**::after {*/
/*    box-sizing: border-box;*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    -webkit-tap-highlight-color: transparent;*/
/*}*/

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: calc(var(--nav-height) + var(--safe-area-bottom) + 20px);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    display: block;
}

/* ---------------- Typography ---------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

/* ---------------- Layout Helpers ---------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Helper for full-width mobile */
/* Helper for full-width mobile */
.container-full {
    padding: 0 !important;
    max-width: 100% !important;
}

/* ---------------- Site Header ---------------- */
.site-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    position: sticky;
    top: 0;
    z-index: 900;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* ---------------- Mobile Bottom Nav ---------------- */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-area-bottom));
    background: var(--bg-surface);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: var(--text-light);
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 24px;
}

/* ---------------- Hero Section ---------------- */
.hero-section {
    position: relative;
    padding: 0;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.hero-visual {
    height: 70vh;
    /* Immersive height */
    max-height: 600px;
    border-radius: 0;
    /* Full bleed */
    overflow: hidden;
    margin-bottom: 0;
    /* Content is overlay or tight */
    background: #e5e5e5;
    position: relative;

}

/* Gradient Overlay for Text Readability */
.hero-visual::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.hero-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* removed duplicate .hero-img */

@media (max-width: 767px) {
    .hero-section {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .hero-visual {
        border-radius: 0 !important;
        height: 70vh !important;
        margin: 0 !important;
        width: 100% !important;
    }
}

.glass-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-lg) var(--space-md);
    text-align: left;
    color: white;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 0 var(--space-md) 0;
    font-weight: 400;
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: #ffd700;
    /* Gold accent for premium feel */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: var(--space-sm);
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: none;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    backdrop-filter: blur(4px);
}

.btn-full {
    width: 100%;
    border-radius: 8px;
    /* Slightly less rounded than pills */
    padding: 14px 24px;
    font-size: 1rem;
}

/* ---------------- Sticky Action Bar ---------------- */
.sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: 12px var(--space-md) calc(12px + var(--safe-area-bottom));
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

/* =========================================================
   CATEGORY SCROLLER (FINAL, SINGLE SOURCE OF TRUTH)
   ========================================================= */

.category-strip {
    width: 100%;
    overflow: hidden;
}

.category-scroller {
    display: flex;
    gap: 12px;
    align-items: center;

    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;

    padding: 12px 16px 16px;
    white-space: nowrap;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-scroller::-webkit-scrollbar {
    display: none;
}

.pill {
    flex: 0 0 auto;
    white-space: nowrap;

    padding: 10px 24px;
    border-radius: 9999px;

    background: #fff;
    border: 1px solid #e0e0e0;

    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.pill.active {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
    box-shadow: 0 4px 12px rgba(44, 36, 32, 0.25);
}

/* ---------------- Product Grid ---------------- */
.product-section {
    padding-bottom: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);

    display: flex;
    /* 🔑 RESTORED */
    flex-direction: column;
    /* 🔑 RESTORED */
}




.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* Square Aspect Ratio */
    background: #f0f0f0;
    /* Placeholder color */
    overflow: hidden;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.3s ease;
}

.product-card:active .product-image-wrapper img {
    transform: scale(1.05);
}

.product-details {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    justify-content: space-between;
}


.product-title {
    font-size: 0.9rem;
    /* Line Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    /* Override nowrap */
    line-height: 1.3;
    height: 2.6em;
    /* Fallback height */
}

.product-price {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.product-price-large {
    font-family: var(--font-body);
    /* Switch to sans-serif for better currency symbol support */
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.5px;
}

.text-display {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-main);
}

.features-list {
    list-style: none;
}

.features-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.features-list li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--wool-bg);
    color: var(--wool-text);
    padding: 3rem 1.5rem 6.5rem;
    /* Extra bottom padding for mobile nav */
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.footer-contact-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-row .icon {
    font-size: 1.2rem;
}

.footer-mantra {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    color: #d63384;
    margin: 1rem 0;
}

.footer-bottom {
    font-size: 0.8rem;
    color: var(--text-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

/* Footer Desktop Overrides */
@media (min-width: 768px) {
    .site-footer {
        padding-bottom: 3rem;
        text-align: left;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1.5fr;
        gap: 3rem;
        align-items: start;
    }

    .footer-links nav {
        align-items: flex-start;
    }

    .footer-mantra {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 2rem;
    }

    .footer-bottom {
        grid-column: 1 / -1;
        text-align: center;
    }
}

/* ---------------- Desktop Overrides ---------------- */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .mobile-nav {
        display: none;
    }

    .hero-section {
        display: flex;
        gap: var(--space-lg);
        text-align: left;
        max-width: 1000px;
        margin: auto;
    }

    .hero-visual {
        height: 400px;
        flex: 1;
    }



    .hero-actions {
        justify-content: flex-start;
    }

    /* Desktop adjustments for Hero to behave nicely */
    .hero-section {
        margin: var(--space-lg) auto;
        padding: 0 var(--space-md);
        display: block;
        /* Reset flex */
    }

    .hero-visual {
        height: 500px;
        /* Fixed height on desktop */
        max-height: none;
        border-radius: var(--radius-md);
        /* Bring back radius on desktop */
        margin-bottom: var(--space-lg);
    }

    .hero-content {
        /* On desktop, keep overlay relative to image or float it? 
           Let's keep it overlay for consistency but center it or make it look good inside the image container */
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .category-scroller {
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.badge {
    position: absolute;
    top: 8px;
    left: 8px;

    z-index: 2;
    /* above image */

    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    text-transform: uppercase;
}

/* ---------------- Order Form ---------------- */
.order-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 0 var(--space-md);
}

.order-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: var(--space-lg);
    border: 1px solid #eaeaea;
}

.product-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px dashed #f0f0f0;
    padding-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-body);
}

.form-input:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* WhatsApp Button */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #25D366;
    color: white;
    font-weight: 700;
    padding: 14px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.btn-whatsapp svg {
    margin-right: 10px;
    fill: white;
}

.order-container {
    background: #f8f6f4; /* subtle surface */
    padding: 24px 12px;
}

.form-input {
    background-color: #fff;
    border: 1.5px solid #d6d6d6;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.12);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 640px) {
    .order-container {
        margin: 0;
        padding-top: 16px;
    }

    .order-card {
        box-shadow: none;
        border-radius: 0;
    }
}

.footer-about h4,
.footer-info h4,
.footer-social h4 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 8px;
}

.footer-about p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-meta {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-social a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* Desktop alignment */
@media (min-width: 768px) {
    .footer-about,
    .footer-info,
    .footer-social {
        text-align: left;
    }
}


.footer-about h4,
.footer-info h4,
.footer-social h4 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 8px;
}

.footer-about p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-meta {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-social a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* Desktop alignment */
@media (min-width: 768px) {
    .footer-about,
    .footer-info,
    .footer-social {
        text-align: left;
    }
}


/* TEMP */
.btn-whatsapp {
    background-color: #25D366 !important;
    color: white !important;
    padding: 16px !important;
    border-radius: 14px !important;
    font-weight: 700;
}

