/* =========================================
   1. GLOBAL & RESET
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFFBFC;
    overflow-x: hidden;
    padding-top: 20px; /* Compensate for fixed header */
}

body.menu-is-open {
    overflow: hidden;
}


/* Ensure images don't overflow */
img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. HEADER / NAVBAR STYLES (Desktop)
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 64px;
    background-color: #FFFBFC;
    z-index: 1000;
    box-sizing: border-box;
}

.branding-row { 
    position: static; 
    width: 100%;
    display: flex;
    align-items: center;
}

.logo-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo-container img {
    height: 145px;
    width: auto;
    display: block;
}

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: clamp(300px, 25vw, 450px);
}

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-left { justify-content: space-evenly; }
.nav-right { justify-content: space-between; }

.nav-links a {
    text-decoration: none;
    color: #C24072;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.icon-btn img { 
    height: 24px; 
    width: auto; 
}

.header-actions-mobile,
.mobile-menu-overlay,
.menu-backdrop { 
    display: none; 
}

/* =========================================
   3. CART POPUP / DRAWER STYLES
   ========================================= */
.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 481px;
    
    /* FIX 1: Use dvh (dynamic height) to avoid address bar issues, fallback to vh */
    height: 100vh;
    height: 100dvh; 
    
    background: #FFFBFC;
    z-index: 1002;
    transition: right 0.4s ease;
    
    /* FIX 2: Add padding-bottom that respects the device safe area (the bottom bar) */
    padding: 44px 25px;
    padding-bottom: calc(44px + env(safe-area-inset-bottom)); 
    
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.cart-drawer.is-open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-shrink: 0;
}

.cart-title {
    color: #762043;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin: 0;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #762043;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* Cart Items Area */
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 20px;
    padding-right: 5px; 
}

.cart-empty-msg {
    text-align: center;
    color: #666;
    margin-top: 50px;
    font-size: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cart-item-img {
    width: 100px;
    height: 133px;
    border-radius: 5px;
    object-fit: cover;
    background-color: #eee;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 180px;
}

.cart-item-name {
    color: black;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.cart-item-meta {
    color: black;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}

.cart-color-circle {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #ddd;
    margin-left: 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.cart-price-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    min-height: 133px;
}

.cart-item-price {
    color: #762043;
    font-size: 16px;
    font-weight: 500;
}

.cart-item-view {
    color: black;
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
}

/* =========================================
   CART FOOTER & BUTTONS
   ========================================= */
.cart-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    flex-shrink: 0;
    /* Ensure the footer sits above the bottom padding of the drawer */
    margin-bottom: env(safe-area-inset-bottom);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.total-label, .total-amount {
    color: black;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px; 
    width: 100%;
}

.btn-cart {
    flex: 1; 
    height: 46px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    font-size: 16px; 
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap; 
    padding: 0 10px; 
}

.btn-outline {
    outline: 2px solid #C43670;
    outline-offset: -2px;
    color: #C43670;
    background: transparent;
    border: none;
    font-weight: 600;
}

.btn-solid {
    background: #C43670;
    color: #FFFBFC;
    border: none;
    font-weight: 500;
}

/* =========================================
   MOBILE ADJUSTMENT
   ========================================= */
@media (max-width: 900px) {
    .cart-actions {
        flex-direction: column; 
        gap: 15px;
    }

    .btn-cart {
        width: 100%;
        flex: none; 
    }
}

/* =========================================
   4. MOBILE RESPONSIVENESS (900px and below)
   ========================================= */
@media (max-width: 900px) {
    .site-header {
        height: 60px;
        padding: 0 20px; 
        display: flex;
        align-items: center;
    }

    body { padding-top: 80px; } 

    .nav-container { display: none; }

    .branding-row {
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .logo-container {
        position: absolute; 
        top: 0;
        left: 20px;
        transform: none;
    }

    .logo-container img { 
        height: 80px; 
        margin-left: -15px;
        display: block;
    }

    .header-actions-mobile {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: auto;
    }

    .hamburger-menu {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger-menu img { 
        height: 24px; 
        width: auto;
    }

    .mobile-menu-overlay {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        background-color: #FBD9E5;
        padding: 0 16px;
        flex-direction: column;
        box-sizing: border-box;
    }

    .menu-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s;
    }

    .mobile-menu-overlay.is-open {
        max-height: 100vh;
        padding-top: 27px;
        padding-bottom: 27px;
    }

    .menu-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-links .menu-link {
        text-decoration: none;
        color: #3B1022;
        font-size: 1.4rem;
        font-weight: 600;
        padding: 15px 0;
        display: block;
    }

    /* FIX 3: MORE PADDING FOR MOBILE CART */
    .cart-drawer {
        width: 100%;
        right: -100%;
        /* Add significant bottom padding for mobile browsers */
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
        /* Base 40px padding + Safe Area Inset */
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
}

/* =========================================
   CART BADGE STYLES (New)
   ========================================= */
/* Ensure the button can hold the absolute positioned badge */
.icon-btn {
    position: relative; 
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #C43670; /* Brand Pink */
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #FFFBFC; /* White border to separate from icon */
    pointer-events: none; /* Let clicks pass through to the button */
    padding: 0 4px; /* Handling double digits */
    box-sizing: border-box;
}
/* ===================== */
/* CONTACT SECTION STYLES */
/* ===================== */
.contact-main {
    padding-top: 150px; /* Prevents content under fixed header */
    padding-bottom: 60px;
    margin: 0 auto;
    padding-left: 100px;
    padding-right: 100px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 58px;
}

.contact-heading-group {
    margin-bottom: 30px;
}

.contact-title {
    color: #762043; /* Adjusted to match site dark pink */
    font-size: 48px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 15px;
}

.contact-desc {
    color: #000;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    max-width: 500px;
}

/* Contact Cards (Hours, Email, Address) */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 19px;
}

.contact-card {
    width: 178px;
    height: 180px;
    background: #FFFBFC;
    border-radius: 23px;
    outline: 1px solid rgba(236, 131, 158, 0.40); /* Matching design */
    outline-offset: -1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 10px;
    text-align: center;
}

.contact-card-icon {
    width: 40px;
    height: 40px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact-card-label {
    color: #762043;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    line-height: 1.5;
}

.contact-card-value {
    color: #3B1022;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

/* Social Media Section */
.contact-social-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-social-title {
    color: #762043;
    font-size: 24px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}

.contact-social-icons {
    display: flex;
    gap: 15px;
}

.contact-social-icon {
    width: 52px;
    height: 52px;
    background: #FFFBFC;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.25);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.2s;
}

.contact-social-icon:hover {
    box-shadow: 0px 4px 8px rgba(196,54,112,0.15);
}

.contact-social-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Contact Form */
.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    width: 100%;
    padding: 40px;
    background: #FFFBFC;
    border-radius: 23px;
    outline: 1px solid rgba(236, 131, 158, 0.40);
    outline-offset: -1px;
    box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-row {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.contact-form-row .contact-form-group {
    flex: 1;
    min-width: 200px; /* Wraps on small screens */
}

.contact-form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-form-label {
    color: #000;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 15px 20px;
    background: #FBD9E5;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: #762043;
    outline: none;
}

.contact-form-input { height: 46px; }
.contact-form-textarea { height: 160px; resize: none; }

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: rgba(196, 54, 112, 0.40);
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: 1px solid #C43670;
}

.contact-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 46px;
    border-radius: 10px;
    background: #C43670;
    color: #FFFBFC;
    border: none;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form-btn:hover {
    background: #a02c5b;
}

/* Thank You Overlay */
.contact-thankyou {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none; /* JS will toggle this to flex */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.6);
    z-index: 2000;
    text-align: center;
}

.contact-thankyou-title {
    color: #C43670;
    font-size: 48px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-thankyou-desc {
    color: #EC839E;
    font-size: 18px;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

/* =========================================
   MOBILE LAYOUT - FINAL REVISION
   ========================================= */
@media (max-width: 900px) {
    /* 1. Container Spacing */
    .contact-main {
        padding-top: 10px;
        padding-left: 20px; 
        padding-right: 20px;
        padding-bottom: 40px;
    }

    .contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-heading-group {
    margin-bottom: 0px;   }

    .contact-content {
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }

    /* 2. Typography */
    .contact-title {
        font-size: 28px;
        margin-bottom: 8px;
        color: #762043;
    }

    .contact-desc {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 20px;
        color: #333;
    }

    /* 3. Cards - Gap Increased to 10px */
    .contact-cards {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px; /* Increased gap as requested */
        justify-content: space-between;
        width: 100%;
    }

    .contact-card {
        flex: 1;
        width: 0; /* Allows shrinking to fit */
        min-width: 0;
        height: auto;
        min-height: 100px;
        padding: 10px 4px; /* Slight padding adjustment */
        border-radius: 12px;
        background: #FFFBFC;
        border: 1px solid rgba(236, 131, 158, 0.40);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-card-icon img {
        width: 16px;
        height: 16px;
        margin-bottom: 4px;
    }

    .contact-card-label {
        font-size: 10px;
        font-weight: 700;
        margin-bottom: 4px;
        white-space: nowrap;
    }

    .contact-card-value {
        font-size: 9px;
        line-height: 1.2;
        color: #3B1022;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* 4. Social Icons */
    .contact-social-group {
        margin-top: 5px;
    }

    .contact-social-title {
        font-size: 18px;
        margin-bottom: 10px;
        color: #762043;
    }

    .contact-social-icon {
        width: 40px;
        height: 40px;
    }

    /* 5. Form - Border Removed & Inputs Fitted */
    .contact-form-wrapper {
        width: 100%;
        margin-top: 5px;
    }

    .contact-form {
        padding: 0;
        background: transparent;
        border: none;     /* Removes border */
        outline: none;    /* Removes the pink outline inherited from desktop */
        box-shadow: none;
        width: 100%;
    }

    .contact-form-row {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .contact-form-group {
        width: 100%;
    }

    .contact-form-input,
    .contact-form-textarea {
        width: 100%;
        background-color: #FBD9E5;
        border-radius: 8px;
        font-size: 14px;
        padding: 0 15px;
        box-sizing: border-box; 
        max-width: 100%;
    }
    
    .contact-form-input {
        height: 45px;
    }

    .contact-form-textarea {
        height: 100px;
        padding-top: 10px;
    }

    .contact-form-btn {
        width: 100%;
        height: 45px;
        margin-top: 10px;
        border-radius: 8px;
        font-size: 16px;
    }
}

/* =======================
   3. FOOTER STYLES
   ======================= */
.site-footer {
    background-color: #FBD9E5; /* Light Pink Background */
    padding: 25px 0px 30px 0px;
    color: #762043; /* Dark Pink Text */
    font-family: 'Poppins', sans-serif;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 60px;
    margin-left: 70px;
    margin-right: 70px;
}

/* --- Left Column (Newsletter) --- */
.footer-left {
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo img {
    height: 80px; 
    width: auto;
    margin-bottom: 10px;
}

.newsletter-text {
    font-size: 16px;
    line-height: 1.5;
    max-width: 450px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    height: 46px;
    min-width: 250px;
    background: rgba(236, 131, 158, 0.29); /* Semi-transparent pink */
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #762043;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(58, 16, 33, 0.5);
    font-weight: 500;
}

.subscribe-btn {
    height: 46px;
    padding: 0 35px;
    background-color: #C43670; /* Brand Pink */
    color: #FFFBFC;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-btn:hover {
    background-color: #a02c5b;
}

.privacy-text {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.8;
    max-width: 500px;
    margin-top: 10px;
}

/* --- Right Column (Links) --- */
.footer-right {
    display: flex;
    gap: 80px;
    margin-top: 40px;
}

.footer-column h4 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #1C1B1F; /* Black/Dark Grey headings as per image */
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column a {
    text-decoration: none;
    color: #1C1B1F;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #C43670;
}

/* --- Bottom Bar --- */
.footer-bottom {
    border-top: 1px solid #C43670;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-left: 40px;
    margin-right: 40px;
}

.copyright, .footer-legal a {
    font-size: 14px;
    color: #C43670;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* Footer Media Query */
@media (max-width: 900px) {
    .site-footer {
        padding: 25px 20px 40px 20px;
    }

    .footer-content {
        margin: 0;
        flex-direction: column;
        gap: 40px;
    }

    .footer-left {
        max-width: 100%;
        gap: 10px;
    }

    .footer-logo img {
        height: 60px;
        margin-bottom: 10px;
    }

    .newsletter-text {
        font-size: 16px;
        line-height: 1.5;
        max-width: 100%;
        margin-bottom: 15px;
        color: #762043;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .newsletter-input {
        width: 100%;
        height: 55px;
        background-color: rgba(236, 131, 158, 0.25); 
        border: 1px solid transparent;
        border-radius: 8px;
        padding: 10px 20px;
        font-family: 'Poppins', sans-serif;
        font-size: 16px;
        color: #762043;
        outline: none;
        transition: border 0.3s ease, background 0.3s ease;
    }

    .newsletter-input::placeholder {
        color: #9E5A75;
        opacity: 0.8;
    }

    .newsletter-input:focus {
        background-color: rgba(255, 255, 255, 0.4);
        border: 1px solid #C43670;
    }

    .subscribe-btn {
        width: 100%;
        height: 45px;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 500;
        margin-top: 5px;
    }

    .privacy-text {
        font-size: 13px;
        color: #762043;
        margin-top: 5px;
        opacity: 0.9;
    }

    .footer-right {
        margin-top: 20px;
        display: flex;
        justify-content: space-between;
        gap: 20px;
        width: 100%;
    }

    .footer-column h4 {
        font-size: 20px;
        color: #762043;
        margin-bottom: 20px;
    }

    .footer-column a {
        color: #762043;
        font-size: 16px;
    }

    .footer-bottom {
        margin: 40px 0 0 0;
        padding-top: 20px;
        border-top: 1px solid rgba(196, 54, 112, 0.2);
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .copyright {
        font-size: 13px;
        color: #C43670;
    }

    .footer-legal {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .footer-legal a {
        font-size: 13px;
        text-decoration: underline;
        color: #C43670;
    }
}