:root {
    --bg-color: #f7f5f0; /* Alabaster soft luxury ivory background */
    --card-white: #ffffff;
    --text-primary: #0c0d0f; /* Deep obsidian black */
    --text-muted: #6b665c;
    --luxury-gold: #dfba73; /* High-end royal gold accent */
    --luxury-gold-hover: #c49e56;
    --btn-dark: #0c0d0f;
    --border-radius-lg: 30px;
    --border-radius-md: 18px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    padding: 0 24px;
}

/* Announcement ticker bar */
.top-status-bar {
    background: var(--text-primary);
    color: var(--luxury-gold);
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 -24px;
    display: flex;
}

.status-ticker {
    display: flex;
    white-space: nowrap;
    animation: tickerLoop 25s linear infinite;
    gap: 50px;
    padding-left: 100%;
}

@keyframes tickerLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Header styling */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}

.menu-btn:hover {
    color: var(--luxury-gold);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.header-center {
    flex: 1;
    max-width: 440px;
    margin: 0 24px;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--card-white);
    border-radius: 30px;
    padding: 10px 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.02);
}

.search-icon {
    color: #999;
    margin-right: 12px;
}

#search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.dropdown-wrapper {
    border-left: 1px solid #e5e5e5;
    padding-left: 12px;
    margin-left: 12px;
}

#category-select {
    border: none;
    outline: none;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-modal-trigger {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-modal-trigger:hover {
    color: var(--luxury-gold);
}

.action-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: var(--card-white);
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-primary);
    position: relative;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.781);
    color: black;
}

.user-active-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #4cd137;
    border-radius: 50%;
    display: none;
    border: 1px solid white;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--text-primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--luxury-gold);
}

/* Category Pills */
.pills-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0 24px 0;
    scrollbar-width: none;
}

.pills-container::-webkit-scrollbar {
    display: none;
}

.pill {
    background: var(--card-white);
    border: none;
    padding: 11px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.pill:hover, .pill.active {
    background: var(--btn-dark);
    color: white;
    border-bottom: 2px solid var(--luxury-gold);
}

/* Main Grid Layout (Fully responsive Grid Structure) */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 24px;
    margin-bottom: 40px;
}

/* Hero Left Card */
.hero-left-card {
    background: var(--card-white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    border-left: 4px solid var(--luxury-gold);
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 480px;
}

.hero-actions {
    margin: 24px 0;
}

.btn-shop-now {
    background: var(--btn-dark);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 6px 6px 6px 26px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-shop-now:hover {
    background: var(--luxury-gold);
    color: black;
    transform: translateY(-2px);
}

.arrow-circle {
    background: white;
    color: black;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reviews Section */
.reviews-section {
    display: flex;
    align-items: center;
    gap: 24px;
    border-top: 1px solid #f2eedf;
    padding-top: 24px;
}

.reviews-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
}

.reviews-content p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

.avatar-group {
    display: flex;
}

.avatar-group img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    margin-right: -8px;
}

/* Hero Right Card - Auto Vertical Slide Show */
.hero-right-card {
    background: #e2dfdb;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    height: 400px;
}

.vertical-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    transition: top 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.slide.active {
    top: 0;
    z-index: 2;
}

.slide.prev {
    top: -100%;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom Group Layout - Multi-card setup */
.bottom-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 24px;
}

.bottom-left-card, .bottom-mid-card {
    height: 280px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.bottom-left-card img, .bottom-mid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.bottom-left-card:hover img, .bottom-mid-card:hover img {
    transform: scale(1.05);
}

.card-overlay-text {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.bottom-right-card {
    background: var(--card-white);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 280px;
}

.bottom-right-card h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.btn-explore {
    background: var(--btn-dark);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: var(--transition);
}

.btn-explore:hover {
    background: var(--luxury-gold);
    color: black;
}

/* Desktop Screens media query (>1024px) */
@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: 1.2fr 1fr;
    }
    .hero-right-card {
        height: 560px;
    }
    .bottom-cards-row {
        grid-column: 1 / 3;
        grid-template-columns: 1fr 1fr 1.2fr;
    }
    .hero-text h1 {
        font-size: 52px;
    }
}

/* Products Section */
.products-section {
    padding: 60px 0;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 32px;
}

.product-card {
    background: var(--card-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(223, 186, 115, 0.15);
}

.product-img-wrapper {
    position: relative;
    height: 340px;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--luxury-gold);
    color: black;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-details {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-add-cart {
    background: var(--btn-dark);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--luxury-gold);
    color: black;
}

/* Left Side Drawer Menu */
.side-menu-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--btn-dark);
    z-index: 2000;
    transition: var(--transition);
    padding: 40px 24px;
    color: white;
}

.side-menu-drawer.open {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.close-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.drawer-links {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-links button, .drawer-links a {
    background: none;
    border: none;
    color: #e5e5e5;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.drawer-links button:hover, .drawer-links a:hover {
    color: var(--luxury-gold);
}

/* User Auth Modal Style */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 3500;
    display: none;
    justify-content: center;
    align-items: center;
}

.auth-modal-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 36px;
    width: 90%;
    max-width: 440px;
    border-top: 6px solid var(--luxury-gold);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    animation: zoomIn 0.3s ease;
}

.auth-tab-headers {
    display: flex;
    border-bottom: 2px solid #f0edf2;
    margin-bottom: 24px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab-btn.active {
    color: var(--text-primary);
    border-bottom: 3px solid var(--luxury-gold);
}

.auth-sub-form {
    margin-bottom: 20px;
}

.btn-auth-action {
    background: var(--btn-dark);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-auth-action:hover {
    background: var(--luxury-gold);
    color: black;
}

.btn-cancel-auth-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin: 12px auto 0;
}

/* User Account Profile Display Styles */
.user-profile-header {
    text-align: center;
    margin-bottom: 24px;
}

.large-avatar {
    width: 64px;
    height: 64px;
    background: var(--luxury-gold);
    color: black;
    font-weight: 800;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.user-id-badge {
    background: #000;
    color: var(--luxury-gold);
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    margin-top: 8px;
}

.user-profile-body {
    background: #faf9f6;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.6;
}

.user-profile-body p {
    margin-bottom: 8px;
}

.user-profile-footer {
    display: flex;
    gap: 12px;
}

.btn-logout-user {
    flex: 1;
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.btn-cancel-auth {
    flex: 1;
    background: #e0e0e0;
    color: black;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Luxury Info Modals */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
}

.info-modal-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-top: 6px solid var(--luxury-gold);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.info-modal-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.info-modal-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 14px;
}

.close-info-modal {
    background: var(--btn-dark);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: var(--card-white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid #f2eedf;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 700;
    font-size: 14px;
}

.cart-item-price {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 14px;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid #f2eedf;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
}

.btn-checkout {
    background: var(--btn-dark);
    color: white;
    border: none;
    width: 100%;
    padding: 14px 0;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--luxury-gold);
    color: black;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
}

.drawer-overlay.active {
    display: block;
}

/* Checkout Form Modal Overlay */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 4000;
    display: none;
    justify-content: center;
    align-items: center;
}

.checkout-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.checkout-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.checkout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel-checkout {
    background: none;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-confirm-checkout {
    background: var(--luxury-gold);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: white;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    z-index: 2000;
    border: 1px solid var(--luxury-gold);
    transition: bottom 0.4s ease;
    white-space: nowrap;
}

.toast.show {
    bottom: 32px;
}

/* Footer style */
.main-footer {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 13px;
    border-top: 1px solid #e5eedc;
}

/* EXTRA Mobile Optimization Rule Overrides */
@media (max-width: 768px) {
    body {
        padding: 0 16px;
    }
    .header-center {
        display: none; /* Hide middle search bar in pure mobile mode */
    }
    .nav-links {
        display: none; /* Hide top links in mobile, they fold inside side drawer */
    }
    .logo {
        font-size: 20px;
    }
    .hero-left-card {
        padding: 24px;
        min-height: auto;
    }
    .hero-text h1 {
        font-size: 30px;
    }
    .reviews-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}