/* ============================================
   KAPRA HOUSE – COMPLETE STYLESHEET
   (Mega menu hover works on every page)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #A8D5BA;
    --secondary: #FFD6E0;
    --accent: #D4AFB9;
    --bg: #FFFFFF;
    --text: #222222;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --radius: 20px;
    --transition: 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    padding-bottom: 70px;
}

h1, h2, h3, h4, .section-title {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin: 40px 0 20px;
    color: var(--text);
}

/* ---------- TOP BAR ---------- */
.top-bar {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
}
.top-bar strong {
    color: var(--primary);
}

/* ---------- HEADER ---------- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.logo img {
    display: block;
    height: 40px;
    width: auto;
}
.brand-text {
    display: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}

/* ---------- MEGA MENU (FIXED FOR ALL PAGES) ---------- */
.mega-menu ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.mega-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.mega-menu a:hover {
    color: var(--primary);
}
.mega-menu a.active {
    color: var(--primary);
    font-weight: 600;
}

.mega-item {
    position: relative;
}

/* Critical fix: dropdown hidden by default, shown only on hover */
.mega-dropdown {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    max-width: 90vw;
    width: max-content;
    min-width: 200px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 100;
    flex-wrap: wrap;
    gap: 20px;
}

/* On hover, show the dropdown with flex layout */
.mega-item:hover .mega-dropdown {
    display: flex !important;
}

.mega-col {
    flex: 0 0 auto;
    min-width: 130px;
    margin-right: 0;
}
.mega-col h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}
.mega-col h4 a {
    color: var(--primary);
    text-decoration: none;
}
.mega-col .cat-link {
    display: block;
    padding: 4px 0;
    color: #555;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.mega-col .cat-link:hover {
    color: var(--text);
}

/* ---------- SEARCH ---------- */
.search-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #333;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.3s;
}
.search-toggle:hover {
    color: var(--primary);
}

.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}
.search-overlay.active {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.search-overlay-content {
    background: #fff;
    border-radius: 30px;
    padding: 40px 50px;
    max-width: 650px;
    width: 90%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.search-overlay-content .search-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s, transform 0.3s;
}
.search-overlay-content .search-close:hover {
    color: #222;
    transform: rotate(90deg);
}
.search-overlay-content form {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    align-items: center;
}
.search-overlay-content .search-overlay-input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1.15rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #f9f9f9;
}
.search-overlay-content .search-overlay-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(168,213,186,0.15);
    background: #fff;
}
.search-overlay-content .search-overlay-input::placeholder {
    color: #aaa;
    font-weight: 300;
}
.search-overlay-content .search-overlay-btn {
    padding: 16px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    font-weight: 600;
    white-space: nowrap;
}
.search-overlay-content .search-overlay-btn:hover {
    background: #8bc4a0;
    transform: scale(1.02);
}

/* ---------- HEADER ICONS ---------- */
.header-icons {
    display: flex;
    gap: 22px;
    align-items: center;
}
.icon-link {
    text-decoration: none;
    color: #333;
    position: relative;
    transition: color 0.3s;
    font-size: 1.3rem;
}
.icon-link:hover {
    color: var(--primary);
}
.cart-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    background: #c00;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- HAMBURGER ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #222;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    padding: 20px;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.mobile-menu a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-menu a:last-child {
    border-bottom: none;
}
.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
}
.menu-overlay.active {
    display: block;
}

/* ---------- HERO ---------- */
.hero-banner {
    position: relative;
    overflow: hidden;
}
.hero-banner img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}
.hero-text {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 500px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-text h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-buttons .btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}
.hero-buttons .btn-primary:hover {
    background: #8bc4a0;
}
.hero-buttons .btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    margin-left: 15px;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
}
.hero-buttons .btn-secondary:hover {
    background: #fff;
    color: #222;
}

/* ---------- TRUST ---------- */
.trust-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 20px;
    background: #fafafa;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    background: transparent;
    box-shadow: none;
}
.trust-item i {
    color: var(--primary);
    font-size: 1.4rem;
}

/* ---------- CATEGORY GRID ---------- */
.category-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.cat-card {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.cat-card:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.cat-card span {
    background: rgba(0,0,0,0.3);
    padding: 6px 14px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}
.cat-card.no-image {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    justify-content: center;
    align-items: center;
}
.cat-card.no-image span {
    background: rgba(0,0,0,0.1);
    color: #555;
}

/* ---------- PRODUCT CARDS ---------- */
.product-section {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}
.product-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.card-image {
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
    aspect-ratio: 3/4;
}
.card-image a {
    display: block;
    width: 100%;
    height: 100%;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .card-image img {
    transform: scale(1.04);
}
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: #c00;
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
}
.new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
}
.quick-view-btn,
.wishlist-toggle {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.wishlist-toggle {
    right: 60px;
}
.product-card:hover .quick-view-btn,
.product-card:hover .wishlist-toggle {
    opacity: 1;
}
.quick-view-btn:hover,
.wishlist-toggle:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}
.card-body {
    padding: 16px;
}
.card-body h4 {
    font-size: 1rem;
    margin: 0 0 6px;
}
.card-body h4 a {
    text-decoration: none;
    color: var(--text);
}
.rating {
    color: #f5c518;
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.price .new-price {
    font-weight: 700;
    color: var(--text);
}
.price .old-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
}
.color-swatches {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}
.swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.add-to-cart-btn-mini {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}
.add-to-cart-btn-mini:hover {
    background: #8bc4a0;
    transform: scale(1.02);
}
.add-to-cart-btn-mini:active {
    transform: scale(0.97);
}
.add-to-cart-btn-mini.success {
    background: #28a745;
    pointer-events: none;
}

/* ---------- TRENDING ---------- */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.trending-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}
.trending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.trending-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: #fff;
    font-weight: 600;
}
.trending-overlay span {
    display: block;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* ---------- NEW ARRIVALS (horizontal) ---------- */
.scroll-wrapper {
    overflow-x: auto;
    padding: 10px 20px 20px;
    white-space: nowrap;
    scrollbar-width: thin;
}
.scroll-container {
    display: inline-flex;
    gap: 20px;
}
.scroll-item {
    width: 200px;
    display: inline-block;
    text-align: center;
}
.scroll-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
}
.scroll-item p {
    margin: 8px 0 4px;
    font-weight: 500;
    white-space: normal;
}
.scroll-item .price {
    font-weight: 700;
}

/* ---------- FLASH SALE ---------- */
.flash-sale {
    background: #fcf4f6;
    padding: 30px 20px 50px;
}
.flash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 20px;
}
.flash-header h2 {
    font-size: 2rem;
    margin: 0;
}
.countdown {
    font-size: 1.8rem;
    font-weight: 700;
    color: #c00;
    background: #fff;
    padding: 6px 18px;
    border-radius: 40px;
    box-shadow: var(--shadow);
}

/* ---------- INSTAGRAM ---------- */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.ig-item {
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    transition: transform 0.3s;
}
.ig-item:hover {
    transform: scale(1.03);
}

/* ---------- NEWSLETTER ---------- */
.newsletter-section {
    background: var(--primary);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}
.newsletter-container {
    max-width: 550px;
    margin: 0 auto;
}
.newsletter-container h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}
.newsletter-form button {
    padding: 14px 32px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
.newsletter-form button:hover {
    background: #444;
}

/* ---------- FOOTER ---------- */
.main-footer {
    background: #1a1a1a;
    color: #bbb;
    padding: 40px 20px 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: #fff;
}
.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 12px;
}
.social-icons a {
    color: #bbb;
    font-size: 1.4rem;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: var(--primary);
}
.trust-badges {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.trust-badges span {
    background: rgba(255,255,255,0.08);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.payment-icons {
    font-size: 1.6rem;
    color: #888;
}
.payment-icons i {
    margin-left: 10px;
}

/* ---------- MOBILE BOTTOM NAV ---------- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    justify-content: space-around;
    padding: 6px 0;
    border-top: 1px solid #eee;
    z-index: 999;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: #888;
    text-decoration: none;
    position: relative;
}
.bottom-nav a.active {
    color: var(--primary);
}
.bottom-nav a i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}
.nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #c00;
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- AI ASSISTANT ---------- */
.ai-assistant {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(168,213,186,0.5);
    cursor: pointer;
    z-index: 999;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ---------- PRODUCT DETAIL PAGE ---------- */
.product-detail-page {
    padding: 30px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.product-gallery {
    position: relative;
}
.main-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
}
.main-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    background: #f5f5f5;
    display: block;
    padding: 10px;
}
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: #c00;
    padding: 5px 12px;
    font-weight: 700;
    border-radius: 30px;
    z-index: 2;
}
.thumbnail-list {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.thumbnail {
    width: 75px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #eee;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}
.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}
.product-details {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.product-price {
    font-size: 1.6rem;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.product-colors {
    margin: 20px 0;
}
.product-colors .label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #555;
}
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    display: inline-block;
    margin-right: 8px;
}
.color-swatch:hover {
    border-color: #000;
}
.product-description {
    margin: 25px 0;
    line-height: 1.8;
    color: #444;
}
.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qty-input {
    width: 70px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}
.add-to-cart-btn {
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.1s;
}
.add-to-cart-btn:hover {
    background: #8bc4a0;
    transform: scale(1.02);
}
.login-to-buy-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.3s;
}
.login-to-buy-btn:hover {
    background: #8bc4a0;
}
.wishlist-btn {
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    color: #444;
}
.wishlist-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.product-meta {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.meta-item {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

/* ---------- CART PAGE ---------- */
.cart-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}
.cart-page h1 {
    font-size: 2rem;
    margin-bottom: 30px;
}
.cart-table-wrapper {
    overflow-x: auto;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.cart-table th {
    background: #f9f9f9;
    padding: 14px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #555;
}
.cart-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.product-cell a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #222;
}
.product-cell img {
    width: 70px;
    height: 90px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 8px;
}
.qty-input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}
.remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
}
.remove-btn:hover {
    color: #c00;
}
.cart-actions {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
    flex-wrap: wrap;
}
.btn-update {
    padding: 10px 25px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.btn-update:hover {
    background: #e0e0e0;
}
.cart-summary {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    max-width: 420px;
    margin-left: auto;
    margin-top: 20px;
}
.cart-summary h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #222;
}
.btn-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 20px;
    transition: background 0.3s;
}
.btn-checkout:hover {
    background: #8bc4a0;
}

/* ---------- AUTH PAGES ---------- */
.auth-page {
    max-width: 460px;
    margin: 40px auto;
    padding: 0 20px;
}
.auth-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}
.auth-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}
.form-group textarea {
    min-height: 80px;
    resize: vertical;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
}
.btn-auth {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-auth:hover {
    background: #8bc4a0;
}
.error-msg {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
}
.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}
.auth-links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.auth-links a:hover {
    text-decoration: underline;
}
.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    margin-top: -8px;
    margin-bottom: 12px;
}
.forgot-password a {
    color: #888;
    text-decoration: none;
}
.forgot-password a:hover {
    color: var(--primary);
}

/* ---------- RESPONSIVE ---------- */

/* ----- Tablets & Mobile (≤ 992px) ----- */
@media (max-width: 992px) {
    .mega-menu {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .bottom-nav {
        display: flex;
    }
    .hero-text h1 {
        font-size: 2.4rem;
    }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .brand-text {
        display: block;
    }
    .logo img {
        display: none;
    }
    .header-container {
        justify-content: center;
        gap: 10px;
    }
    .header-container .brand-text {
        margin-right: auto;
    }
    .header-container .search-toggle,
    .header-container .header-icons {
        margin-left: auto;
    }
    .mega-dropdown {
        left: 0;
        transform: none;
        max-width: 100vw;
        width: 100%;
        flex-direction: column;
        max-height: 70vh;
    }
    .mega-col {
        min-width: 100%;
    }
    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ----- Smaller Tablets & Large Phones (≤ 768px) ----- */
@media (max-width: 768px) {
    .trust-section {
        gap: 20px;
    }
    .category-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ig-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-text {
        left: 5%;
        right: 5%;
        max-width: 100%;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .flash-header {
        flex-direction: column;
        align-items: center;
    }
    .countdown {
        font-size: 1.4rem;
        margin-top: 8px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .header-icons {
        gap: 14px;
    }
    .search-overlay-content {
        padding: 30px 20px;
    }
    .search-overlay-content form {
        flex-direction: column;
    }
    .search-overlay-content .search-overlay-btn {
        width: 100%;
    }
}

/* ----- Standard Phones (≤ 480px) ----- */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-image {
        aspect-ratio: 3/4;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .hero-text h1 {
        font-size: 1.6rem;
    }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        display: block;
        margin: 8px auto;
        text-align: center;
    }
    .hero-buttons .btn-secondary {
        margin-left: 0;
    }
    .search-overlay-content {
        padding: 20px 15px;
        border-radius: 20px;
    }
    .search-overlay-content .search-overlay-input {
        font-size: 1rem;
        padding: 14px 18px;
    }
    .brand-text {
        font-size: 1.1rem;
    }
    .cat-card {
        height: 140px;
    }
    .category-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .ig-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    .scroll-item {
        width: 150px;
    }
    .scroll-item img {
        height: 200px;
    }
}

/* ----- Very Small Phones (≤ 380px) ----- */
@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .card-body {
        padding: 10px;
    }
    .card-body h4 {
        font-size: 0.85rem;
    }
    .price .new-price {
        font-size: 0.9rem;
    }
    .price .old-price {
        font-size: 0.8rem;
    }
    .rating {
        font-size: 0.7rem;
    }
    .add-to-cart-btn-mini {
        font-size: 0.7rem;
        padding: 6px;
    }
    .cat-card {
        height: 120px;
    }
    .cat-card span {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}