/* ======================= GLOBAL & FONT SETUP ======================= */
:root {
    --primary-color: #8a2be2; /* A rich purple */
    --secondary-color: #f4e8ff; /* Light lavender */
    --accent-color: #ff69b4; /* Hot pink for accents 
    /* --accent-color: #ec95c0; /* Hot pink for accents */ 
    --text-color: #333;
    --light-text-color: #fff;
    --bg-color: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --shadow: 0 5px 15px rgba(0,0,0,0.5);
    --border-light: #e0e0e0;
    
}
/* :root {
    --primary-color: #8a2be2;
    --secondary-color: #f4e8ff;
    --accent-color: #ff69b4;
    --text-color: #333;
    --light-text-color: #fff;
    --bg-color: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --border-light: #e0e0e0;
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* ======================= UTILITY & BUTTONS ======================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}
.btn-primary:hover {
    background-color: #7a1cc9;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: #e0d0f0;
}

.btn-full-width {
    width: 100%;
    text-align: center;
}

.section-title {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
}

/* ======================= HEADER & NAVBAR ======================= */
.header{
    /* background-color: rgba(255, 255, 255, 0.95); */
    /* box-shadow: var(--box-shadow-light); */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--nav-height);
    overflow-x:hidden;
    /* opacity: .8; */
    /* background: linear-gradient(45deg, #ffffffd9, #77fdff59); */
    /* backdrop-filter: blur(8px); */
    -webkit-backdrop-filter: blur(8px);}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fffffc7;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    line-height:20px;
    color: var(--primary-color);
    text-decoration: none;
}
.nav-logo span {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
}

.icon-wrapper {
    margin-left: 1.5rem;
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    color: var(--primary-color);
    text-shadow: 0px 1px 2px #eee9e9;
}
#cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* ======================= HERO SECTION ======================= */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    color: var(--light-text-color);
    padding: 0;
    overflow: hidden;
}

.hero-content {
    /* For GSAP animations */
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 5rem;
    background-color: #0000008c;
    opacity: 0;
    transform: translateY(30px);
    clip-path: polygon(100% 100%, 0% 100% , 0.00% 25.86%, 1.67% 25.95%, 3.33% 26.00%, 5.00% 25.99%, 6.67% 25.93%, 8.33% 25.83%, 10.00% 25.67%, 11.67% 25.47%, 13.33% 25.22%, 15.00% 24.92%, 16.67% 24.58%, 18.33% 24.20%, 20.00% 23.77%, 21.67% 23.31%, 23.33% 22.81%, 25.00% 22.28%, 26.67% 21.72%, 28.33% 21.13%, 30.00% 20.52%, 31.67% 19.89%, 33.33% 19.24%, 35.00% 18.58%, 36.67% 17.90%, 38.33% 17.22%, 40.00% 16.54%, 41.67% 15.85%, 43.33% 15.17%, 45.00% 14.50%, 46.67% 13.84%, 48.33% 13.20%, 50.00% 12.58%, 51.67% 11.97%, 53.33% 11.39%, 55.00% 10.84%, 56.67% 10.33%, 58.33% 9.84%, 60.00% 9.39%, 61.67% 8.98%, 63.33% 8.62%, 65.00% 8.29%, 66.67% 8.01%, 68.33% 7.78%, 70.00% 7.60%, 71.67% 7.46%, 73.33% 7.37%, 75.00% 7.33%, 76.67% 7.35%, 78.33% 7.41%, 80.00% 7.52%, 81.67% 7.69%, 83.33% 7.90%, 85.00% 8.15%, 86.67% 8.46%, 88.33% 8.80%, 90.00% 9.19%, 91.67% 9.62%, 93.33% 10.09%, 95.00% 10.59%, 96.67% 11.13%, 98.33% 11.69%, 100.00% 12.28%);
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 3rem;
    /* backdrop-filter: */
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 1rem;
}

/* ======================= PRODUCT SECTION ======================= */
.product-section {
    padding: 6rem 5%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* For GSAP */
    opacity: 1;
    transform: translateY(50px);
    
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.product-info {
    margin-top: -6rem;
    padding: 1.5rem;
    background: #fff;
    clip-path: polygon(100% 100%, 0% 100% , 0.00% 5.12%, 1.67% 4.79%, 3.33% 4.49%, 5.00% 4.22%, 6.67% 3.99%, 8.33% 3.79%, 10.00% 3.62%, 11.67% 3.50%, 13.33% 3.41%, 15.00% 3.35%, 16.67% 3.33%, 18.33% 3.35%, 20.00% 3.41%, 21.67% 3.50%, 23.33% 3.62%, 25.00% 3.79%, 26.67% 3.99%, 28.33% 4.22%, 30.00% 4.49%, 31.67% 4.79%, 33.33% 5.12%, 35.00% 5.48%, 36.67% 5.88%, 38.33% 6.30%, 40.00% 6.76%, 41.67% 7.24%, 43.33% 7.74%, 45.00% 8.28%, 46.67% 8.83%, 48.33% 9.40%, 50.00% 10.00%, 51.67% 10.61%, 53.33% 11.24%, 55.00% 11.89%, 56.67% 12.55%, 58.33% 13.22%, 60.00% 13.89%, 61.67% 14.58%, 63.33% 15.27%, 65.00% 15.97%, 66.67% 16.67%, 68.33% 17.36%, 70.00% 18.06%, 71.67% 18.75%, 73.33% 19.44%, 75.00% 20.12%, 76.67% 20.79%, 78.33% 21.44%, 80.00% 22.09%, 81.67% 22.72%, 83.33% 23.33%, 85.00% 23.93%, 86.67% 24.50%, 88.33% 25.06%, 90.00% 25.59%, 91.67% 26.09%, 93.33% 26.58%, 95.00% 27.03%, 96.67% 27.45%, 98.33% 27.85%, 100.00% 28.21%);
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ======================= MODALS & OVERLAYS ======================= */
.modal-overlay, .sidebar {
width: 99%;
    position: fixed;
    top: 0;
    width: 92%;
    width: 58%;
    right: 0;
    height: 100%;
    display: flex;
    align-content: flex-end;
    background: rgb(253 253 253 / 69%);
    /* filter: blur(10px); */
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active, .sidebar.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    position: relative;
    max-width: 90%;
    width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-content.wide {
    width: 900px;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

/* Product Details Modal Specifics */
#product-modal-body {
    display: flex;
    gap: 2rem;
}
.modal-product-image {
    width: 200px;
    height: auto;
    border-radius: 8px;
}
.modal-product-details h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-color);
}
.modal-product-details .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0.5rem 0 1rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group select, .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* ======================= CART SIDEBAR ======================= */

.sidebar .sidebar-content {
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s ease;

    position:absolute;
}
.sidebar.active .sidebar-content {
    transform: translateX(0);
}
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-header h3 {
    font-family: var(--font-secondary);
}
#close-cart-btn {
    background: none; border: none; font-size: 1.5rem; cursor: pointer;
}
.sidebar-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}
.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-info h4 {
    font-size: 1rem; margin: 0;
}
.cart-item-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0.2rem 0;
}
.cart-item-remove-btn {
    color: #ff4d4d;
    cursor: pointer;
    margin-left: 1rem;
}
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}
.subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ======================= SIGNUP & CHECKOUT FORM ======================= */
#signup-form, #checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-primary);
}
#location-status {
    font-size: 0.9rem; color: green; text-align: center;
}

.checkout-layout {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}
.order-summary { flex: 1; padding: 1.5rem; background: var(--secondary-color); border-radius: 8px;}
.customer-details { flex: 1.5; }
#checkout-summary-items .cart-item { font-size: 0.9rem; }
#checkout-summary-items .cart-item-img { width: 50px; height: 50px; }
.total { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 1.3rem; }

/* ======================= FOOTER ======================= */
footer {
text-align: center;
    padding: 3rem;
    margin-top:-4rem;
    /* background: var(--text-color); */
    background: linear-gradient(45deg, #610a73e3, #e02984f0);
    color: var(--light-text-color);

  --mask:
    radial-gradient(57.2px at 50% 78.3px,#000 99%,#0000 101%) calc(50% - 58px) 0/116px 100%,
    radial-gradient(57.2px at 50% -49.3px,#0000 99%,#000 101%) 50% 29px/116px 100% repeat-x;
  -webkit-mask: var(--mask);
          mask: var(--mask);

    /* margin-top: 4rem;*/
}

/* ======================= RESPONSIVENESS ======================= */
@media (max-width: 768px) {
    .nav-menu { display: none; } /* Simple hiding for demo. A hamburger menu would be better for a full site. */
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 2rem; }
    #product-modal-body { flex-direction: column; align-items: center; text-align: center; }
    .checkout-layout { flex-direction: column; }
    .modal-content.wide { width: 95%; }
}
/* Add these new styles and modifications to your existing style.css */

/* Keep all previous styles, and add/modify these: */

/* :root {
    --primary-color: #8a2be2;
    --secondary-color: #f4e8ff;
    --accent-color: #ff69b4;
    --text-color: #333;
    --light-text-color: #fff;
    --bg-color: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --border-light: #e0e0e0;
} */

/* ... (Keep all styles from the first answer) ... */


/* ======================= HERO SECTION (VIDEO UPDATE) ======================= */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    color: var(--light-text-color);
    padding: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Darker overlay for better text readability */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
}

/* ======================= HEADER - USER GREETING ======================= */
#user-auth-section {
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
}
#user-auth-section .fa-user {
    font-size: 1.4rem;
}
.user-greeting {
    color: var(--primary-color);
}
.user-greeting span {
    font-weight: 300;
}


/* ======================= ENHANCED PRODUCT MODAL ======================= */
.modal-content.wide {
    width: 950px; /* Wider for gallery */
    height:fit-content;
}
#product-modal-body {
    display: flex;
    flex-direction:column;
    gap: 2.5rem;
}

/* Gallery Styles */
.modal-gallery {
    position: relative;
}
.gallery-main-view {
    width: 100%;
    max-height: 450px;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.gallery-main-view img, .gallery-main-view video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}
.gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    position: relative;
}
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail-item.active {
    border-color: var(--primary-color);
}
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    padding: 0.5rem;
}

/* New Product Details Styles */
.modal-product-details h3 {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    color: var(--primary-color);
}
.modal-product-details .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0.5rem 0 1.5rem;
}
.modal-product-details .description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #666;
}

/* Interactive Option Boxes */
.option-group {
    margin-bottom: 1.5rem;
}
.option-group h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.option-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.option-box {
    padding: 8px 16px;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
.option-box:hover {
    border-color: var(--primary-color);
}
.option-box.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ... (Keep all other styles from the first answer like .cart-item, .footer, etc.) ... */



/* Keep all previous styles, and add/modify these: */

/* ======================= FUTURISTIC BUTTON STYLE ======================= */
/* MODIFIED */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px; /* Sharper edges */
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px; /* More spacing */
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother transition */
}

/* MODIFIED */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--light-text-color);
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.4);
}

/* MODIFIED */
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
}

/* ======================= CART SIDEBAR & ANIMATION ======================= */
/* This confirms the sidebar functionality */


.sidebar-content { /* Renamed for clarity from previous internal logic */
    width: 100%;
    max-width: 420px; /* Max width on larger screens */
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%); /* Start off-screen to the right */
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1); /* Professional ease */
    pointer-events: auto; /* The sidebar itself is clickable */
}

.sidebar.active .sidebar-content {
    transform: translateX(0); /* Slide in */
}

/* ======================= INITIAL STATES FOR ANIMATIONS ======================= */
/* NEW: Prepare elements for GSAP entry animations */
.nav-item, .nav-icons .icon-wrapper {
    opacity: 0;
    transform: translateY(-20px);
}

.section-title {
    opacity: 0;
    transform: translateY(30px);
}

.sidebar {
    justify-content: flex-end;
    /* background: transparent; */
    display: flex;
    pointer-events: none;
    flex-direction:column;
}
/* ======================= GLOBAL & FONT SETUP ======================= */


* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); color: var(--text-color); background-color: var(--bg-color); line-height: 1.6; }

/* ======================= FUTURISTIC BUTTON STYLE ======================= */
.btn {
    display: inline-block; padding: 12px 28px; border-radius: 8px;
    text-decoration: none; font-weight: 600; letter-spacing: 0.5px;
    border: none; position: relative; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}
.btn-primary { background: linear-gradient(45deg, var(--primary-color), var(--accent-color)); color: var(--light-text-color); }
.btn-primary:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 20px rgba(138, 43, 226, 0.4); }
.btn-secondary { background-color: var(--secondary-color); color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: var(--light-text-color); transform: translateY(-2px); }
.btn-full-width { width: 100%; text-align: center; }

/* ======================= SECTION & ANIMATION PREP ======================= */
.section-title { text-align: center; font-family: var(--font-secondary); font-size: 2.8rem; margin-bottom: 1rem; color: var(--primary-color); opacity: 0; transform: translateY(30px); }
.nav-item, .nav-icons .icon-wrapper { opacity: 0; transform: translateY(-20px); }

/* ======================= HEADER & NAVBAR ======================= */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; background: #ffffffc7; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; 
            backdrop-filter: blur(1px); 
         /* background: linear-gradient(45deg, white, #c568e1d4); */
        }
/* .nav-logo { font-family: var(--font-secondary); font-size: 1.8rem; font-weight: 700; color: var(--primary-color); text-decoration: none; } */
/* .nav-logo span { display: block; font-family: var(--font-primary); font-size: 0.7rem; font-weight: 300; letter-spacing: 2px; color: var(--accent-color); } */
.navbar .nav-menu { display: flex; list-style: none; }
.navbar .nav-menu .nav-item { margin-left: 2rem; }
.nav-link { text-decoration: none; color: var(--text-color); font-weight: 600; position: relative; padding-bottom: 5px; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }
.nav-icons { display: flex; align-items: center; gap: .2rem; }
.icon-wrapper { font-size: 1.4rem; cursor: pointer; position: relative; color: var(--primary-color); }
#cart-count { position: absolute; top: -8px; right: -12px; background-color: var(--accent-color); color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 50%; font-weight: bold; display: none; align-items: center; justify-content: center; }
#hamburger-icon { display: none; } /* Hide on desktop */

/* ======================= MOBILE NAV SIDEBAR ======================= */
#mobile-nav-menu { 
    position: fixed;
    top: 0;
    right: 0;
    /* width: 292px; */
    height: 100vh;
    /* background: white; */
    /* background: linear-gradient(45deg, #ffffffd9, #faa0eb8f); */
        background: linear-gradient(45deg, #ffffff33, #efe8eec9);
    /* background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--box-shadow-light); */
    opacity: .8;
    /* background: linear-gradient(45deg, #ffffffd9, #77fdff59); */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2001;
    list-style: none;
    padding: 4rem 4rem 4rem 0;
    display: flex;
    flex-direction: column;
    /* gap: 2rem; */
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: -5px 0 25px rgb(0 0 0 / 15%); }
#mobile-nav-menu.active { transform: translateX(0); }
#mobile-nav-menu .nav-link { font-size: 1.5rem; }
#close-mobile-menu-btn { position: absolute; top: 10px; right: 10px; font-size: 2.5rem; background: none; border: none; color: var(--text-color); cursor: pointer; }

/* ======================= HERO SECTION ======================= */
.hero { position: relative; height: 90vh; display: flex; justify-content: center;  text-align: center; color: var(--light-text-color); padding: 0; overflow: hidden; }
.hero-video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 2; }
/* .hero-content { position: relative; z-index: 3; opacity: 0; transform: translateY(30px); } */
.hero-title { font-family: var(--font-secondary); font-size: 1.8rem; }
.hero-subtitle { font-family: var(--font-secondary); font-size: 1rem; color: var(--secondary-color); margin-bottom: 1rem; }

/* ======================= ABOUT US SECTION ======================= */
.about-section { padding: 4rem 5%;
    /* background-color: var(--secondary-color); */
    background: linear-gradient(45deg, #8a2be25c, #ff69b459);
                /* background:#fbc1e0; */
    margin-top: 5;
    margin: 4rem 0 0;
                
                padding-top:14rem;
                clip-path: polygon(100% 100%, 0% 100% , 0.00% 3.75%, 1.00% 3.61%, 2.00% 3.48%, 3.00% 3.36%, 4.00% 3.27%, 5.00% 3.19%, 6.00% 3.12%, 7.00% 3.07%, 8.00% 3.04%, 9.00% 3.03%, 10.00% 3.04%, 11.00% 3.06%, 12.00% 3.09%, 13.00% 3.15%, 14.00% 3.22%, 15.00% 3.31%, 16.00% 3.42%, 17.00% 3.54%, 18.00% 3.68%, 19.00% 3.83%, 20.00% 3.99%, 21.00% 4.17%, 22.00% 4.37%, 23.00% 4.58%, 24.00% 4.80%, 25.00% 5.03%, 26.00% 5.27%, 27.00% 5.52%, 28.00% 5.78%, 29.00% 6.05%, 30.00% 6.33%, 31.00% 6.61%, 32.00% 6.90%, 33.00% 7.20%, 34.00% 7.50%, 35.00% 7.80%, 36.00% 8.10%, 37.00% 8.41%, 38.00% 8.71%, 39.00% 9.01%, 40.00% 9.32%, 41.00% 9.61%, 42.00% 9.91%, 43.00% 10.20%, 44.00% 10.48%, 45.00% 10.76%, 46.00% 11.03%, 47.00% 11.29%, 48.00% 11.55%, 49.00% 11.79%, 50.00% 12.02%, 51.00% 12.24%, 52.00% 12.45%, 53.00% 12.65%, 54.00% 12.83%, 55.00% 13.00%, 56.00% 13.15%, 57.00% 13.29%, 58.00% 13.41%, 59.00% 13.52%, 60.00% 13.61%, 61.00% 13.68%, 62.00% 13.74%, 63.00% 13.78%, 64.00% 13.80%, 65.00% 13.80%, 66.00% 13.79%, 67.00% 13.76%, 68.00% 13.72%, 69.00% 13.65%, 70.00% 13.57%, 71.00% 13.48%, 72.00% 13.37%, 73.00% 13.24%, 74.00% 13.09%, 75.00% 12.94%, 76.00% 12.76%, 77.00% 12.58%, 78.00% 12.38%, 79.00% 12.16%, 80.00% 11.94%, 81.00% 11.70%, 82.00% 11.45%, 83.00% 11.20%, 84.00% 10.93%, 85.00% 10.66%, 86.00% 10.38%, 87.00% 10.09%, 88.00% 9.80%, 89.00% 9.50%, 90.00% 9.20%, 91.00% 8.90%, 92.00% 8.60%, 93.00% 8.29%, 94.00% 7.99%, 95.00% 7.69%, 96.00% 7.39%, 97.00% 7.09%, 98.00% 6.80%, 99.00% 6.51%, 100.00% 6.23%);
                
 }
/** Text Gradient Example */ 
.text-gradient {
 color: #BC13FE; 
 background-image: linear-gradient(45deg, #BC13FE , #E025BE , #F0459A , #FB697A , #FF8E5F ); 
 background-clip: text; 
 -webkit-background-clip: text; 
 -webkit-text-fill-color: transparent; 
}
.about-content { display: flex; align-items: center; gap: 4rem; max-width: 1200px; margin: 0 auto; }
.about-image { flex: 1; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); }
.about-image img { width: 100%; display: block; }
.about-text { flex: 1.5; }
.about-text h3 { font-family: var(--font-secondary); font-size: 2rem; color: var(--primary-color); margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; }

/* ======================= PRODUCT SECTION ======================= */
.product-section { padding: 6rem 5%; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.product-card { background: transparent; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease;   }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.product-image { width: 100%; height: 350px; object-fit: cover; }
.product-info { padding: 3.5rem; }
.product-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.product-price { font-size: 1.3rem; font-weight: bold; color: var(--primary-color); margin-bottom: 1rem; }

/* ======================= ALL SIDEBARS & MODALS ======================= */
.sidebar, .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; display: flex; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.sidebar { background: white; }
.sidebar.active, .modal-overlay.active { opacity: 1; pointer-events: auto;  }
.modal-overlay.active { overflow:scroll; }

/* ======================= CART SIDEBAR (RESPONSIVE) ======================= */
#cart-sidebar { justify-content: flex-end; }
.sidebar-content { width: 100%; max-width: 420px; height: 100%; background: white; box-shadow: -5px 0 25px rgba(0,0,0,0.15); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1); }
#cart-sidebar.active .sidebar-content { transform: translateX(0); }
.sidebar-header { padding: 1.5rem; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.sidebar-header h3 { font-family: var(--font-secondary); }
#close-cart-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.sidebar-body { flex-grow: 1; overflow-y: auto; padding: 1rem; }
.empty-cart-message { text-align: center; padding: 4rem 2rem; color: #888; }
.cart-item { display: flex; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #f0f0f0; }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.cart-item-info { flex-grow: 1; }
.cart-item-info h4 { font-size: 1rem; margin: 0 0 0.25rem; }
.cart-item-info p { font-size: 0.9rem; color: #666; margin: 0.2rem 0; }
/* NEW: In-Cart Quantity Controls */
.cart-item-quantity { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.quantity-btn { width: 28px; height: 28px; border: 1px solid var(--border-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: bold; background: #fafafa; }
.quantity-btn:hover { background: var(--secondary-color); }
.quantity-display { font-weight: 600; }
.cart-item-remove-btn { color: #ff4d4d; cursor: pointer; align-self: flex-start; }
.sidebar-footer { padding: 1.5rem; border-top: 1px solid #eee; }
.subtotal { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 1rem; }

/* ... (All other modal styles for product, signup, checkout remain the same and are fine) ... */

/* ======================= RESPONSIVENESS ======================= */
@media (max-width: 992px) {
    .navbar .nav-menu { display: none; } /* Hide desktop menu */
    #hamburger-icon { display: flex; } /* Show hamburger */
}

@media (max-width: 768px) {
    .hero-content{
        padding:5rem 1rem 2rem;
}
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-description { font-size: .8rem; }
    .about-content { flex-direction: column; }
    .user-greeting {
    font-size: 70%;
    }
    .icon-wrapper {
    /* margin-left: .5rem; */
    font-size: 1rem;
    }
    /* Make Cart Sidebar full width on mobile */
    .sidebar-content { max-width: 100%; }
}
/* REVIEW STYLES (for main site) */
.reviews-section { margin-top: 2rem; border-top: 1px solid #eee; padding-top: 1.5rem; }
.reviews-section h4 { margin-bottom: 1rem; }
.review-item { margin-bottom: 1rem; }
.review-rating { color: #f39c12; font-size: 1.2rem; }
.review-comment { font-style: italic; margin: 0.25rem 0; }
.review-author { text-align: right; font-weight: 600; font-size: 0.9rem; }

/* --- DYNAMIC PRODUCT MODAL GALLERY STYLES --- */

/* ================================================== */
/* === DYNAMIC & RESPONSIVE PRODUCT GALLERY (FINAL) === */
/* ================================================== */

/* --- The Main Viewport --- */
/* This is the container that will hold either the image or the video. */
.gallery-main-view {
    /* Use aspect-ratio for a stable, responsive box. 1/1 creates a perfect square. */
    /* You can change this to 16/9 for a widescreen video look if you prefer. */
    aspect-ratio: 1 / 1; 
    
    width: 100%;
    /* background-color: #f8f9fa; */
    /* A light background for letterboxing */
    
    border-radius: 12px;       /* Softer corners */
    margin-bottom: 1rem;
    overflow: hidden;          /* Ensures content stays within the rounded corners */

    /* Use flexbox to perfectly center the content inside */
    display: flex;
    justify-content: center;
    align-items: center;
    
    box-shadow: var(--shadow);
}

/* --- The Content (Image or Video) --- */
/* This style applies to both the <img> and the <iframe> inside the viewport. */
.gallery-main-view img,
.gallery-main-view iframe {
    /* 
      This is the magic part. The content will take up the full width or height
      of the container, whichever is smaller, without being stretched or cropped.
    */
    max-width: 100%;
    max-height: 100%;

    /* This ensures vertical images (9:16) don't get cut off */
    object-fit: contain;

    /* No need for position:absolute anymore! This simplifies the layout. */
    
    /* Apply border-radius to the content itself for a clean look */
    border-radius: 4px; /* A subtle radius on the content itself */
    border: none;       /* Remove default iframe border */
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.thumbnail-item:hover {
    border-color: var(--secondary-color);
}

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

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

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    padding: 0.5rem;
    pointer-events: none; /* Let clicks go through to the parent */
    transition: transform 0.2s ease;
}

.thumbnail-item:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}
.price.original{
    text-decoration: line-through;
    font-size: 80%;
    color: blueviolet;}

/* In css/style.css */

/* --- PRODUCT SEARCH BAR STYLES --- */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 1.2rem auto; /* Center it and add space below */
}

#search-bar {
    width: 100%;
    padding: 15px 20px 15px 50px; /* Add padding on the left for the icon */
    border: 2px solid var(--border-light);
    border-radius: 50px; /* Pill shape */
    font-size: 1rem;
    transition: all 0.3s ease;
}

#search-bar:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.search-container .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.1rem;
}
/* In css/style.css */

/* --- COUPON FIELD STYLES --- */
.coupon-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#coupon-input {
    flex-grow: 1;
    border: 1px solid var(--border-light);
    padding: 10px;
    border-radius: 5px;
}

#apply-coupon-btn {
    /* padding: 10px 15px;  */
        padding: 5px 0;
    text-align: center;
    width: -webkit-fill-available;
    max-width: 30%;
    /* Make it smaller to fit */
}

#coupon-status {
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
#coupon-status.success { color: var(--success-color); }
#coupon-status.error { color: var(--danger-color); }

.sidebar-footer .subtotal.discount { color: var(--success-color); }
.sidebar-footer .subtotal.total { font-size: 1.3rem; }


/*  */
