:root {
    --primary-purple: #6B2D7B;
    --primary-purple-dark: #4A1E55;
    --primary-purple-light: #8B4D9B;
    --accent-yellow: #F7A600;
    --accent-orange: #E8941C;
    --accent-yellow-light: #FFD466;
    --white: #FFFFFF;
    --gray-light: #F8F6FA;
    --gray: #E8E4EC;
    --text-dark: #2D1F3D;
    --text-gray: #6B5F7A;
    --shadow: 0 10px 40px rgba(107, 45, 123, 0.15);
    --shadow-hover: 0 20px 60px rgba(107, 45, 123, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
}

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

body {
    font-family: 'Noto Sans Georgian', 'Poppins', sans-serif;
    background: var(--gray-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.bg-circle-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-purple);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-yellow);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.bg-circle-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-purple-light);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Header */
header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(107, 45, 123, 0.08);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img,
.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--gray);
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--gray-light);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(107, 45, 123, 0.1);
}

.search-bar button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(107, 45, 123, 0.4);
}

.search-bar button svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(247, 166, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 166, 0, 0.5);
}

.btn-purple {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(107, 45, 123, 0.4);
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 45, 123, 0.5);
}

.cart-btn {
    position: relative;
    background: var(--gray-light);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: var(--primary-purple);
}

.cart-btn:hover svg {
    fill: var(--white);
}

.cart-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-purple);
    transition: all 0.3s ease;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-yellow);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* User Dropdown Menu */
.user-dropdown {
    position: relative;
}

.btn-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 45, 123, 0.4);
}

.btn-menu svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
}

.btn-menu .arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.user-dropdown.active .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(107, 45, 123, 0.2);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-user-info {
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-purple);
    border-bottom: 1px solid var(--gray);
    background: var(--gray-light);
    word-break: break-all;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-light);
    cursor: pointer;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--gray-light);
    color: var(--primary-purple);
}

.dropdown-item svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-purple);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--gray);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-purple);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-yellow));
}

.featured-product {
    text-align: center;
}

.featured-product img {
    max-width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: productFloat 3s ease-in-out infinite;
}

@keyframes productFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.featured-product h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.featured-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-purple);
}

.featured-price span {
    font-size: 1rem;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 10px;
}

.floating-badge {
    position: absolute;
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    animation: pulse 2s infinite;
}

.badge-1 {
    top: 20px;
    right: -10px;
}

.badge-2 {
    bottom: 140px;
    left: -20px;
    background: var(--primary-purple);
    color: var(--white);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Categories */
.categories {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.see-all {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.see-all:hover {
    gap: 10px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    color: var(--white);
}

.category-card.active {
    border: 2px solid var(--primary-purple);
    background: var(--gray-light);
}

.category-card.active .category-icon {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    color: var(--white);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Products */
.products {
    padding: 40px 0 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

.product-badge.new {
    background: var(--primary-purple);
    color: var(--white);
}

.product-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.product-wishlist:hover {
    background: var(--primary-purple);
}

.product-wishlist:hover svg {
    fill: var(--white);
}

.product-wishlist svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-purple);
    transition: all 0.3s ease;
}

.product-wishlist.active {
    background: var(--primary-purple);
}

.product-wishlist.active svg {
    fill: #ff4757;
}

.product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.product-meta-row {
    display: none !important;
}

.product-category {
    font-size: 0.72rem;
    color: transparent !important;
    background: transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    padding: 3px 0;
    border-radius: 4px;
    display: inline-block;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.stars {
    color: var(--accent-yellow);
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-purple);
}

.product-price .old-price {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.add-to-cart {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 166, 0, 0.4);
}

.add-to-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(247, 166, 0, 0.5);
}

.add-to-cart svg {
    width: 22px;
    height: 22px;
    fill: var(--text-dark);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 31, 61, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s ease;
    position: relative;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    padding: 20px;
    text-align: center;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--white);
    border-radius: 50% 50% 0 0;
}

.modal-logo {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.modal-logo svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-purple);
}

.modal-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 16px;
    height: 16px;
    fill: var(--white);
}

.modal-body {
    padding: 25px 20px 20px;
}

.modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.modal-tab {
    flex: 1;
    padding: 10px;
    background: var(--gray-light);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-gray);
}

.modal-tab.active {
    background: var(--primary-purple);
    color: var(--white);
}

.modal-tab:hover:not(.active) {
    background: var(--gray);
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--gray-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(107, 45, 123, 0.1);
}

.form-input::placeholder {
    color: var(--text-gray);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-purple);
    cursor: pointer;
}

.form-checkbox span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.form-checkbox a {
    color: var(--primary-purple);
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray);
}

.social-login {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--gray);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.social-btn:hover {
    border-color: var(--primary-purple);
    background: var(--gray-light);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-purple);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(107, 45, 123, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-yellow);
}

/* Footer */
footer {
    background: var(--primary-purple-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    line-height: 1.7;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        margin: 20px;
    }
}

/* ====== LIVE SEARCH DROPDOWN ====== */
.live-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(107, 45, 123, 0.18);
    z-index: 1100;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.live-search-dropdown.open {
    display: block;
    animation: fadeIn 0.2s ease;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--gray-light);
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item:hover {
    background: var(--gray-light);
}

.live-search-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: var(--gray-light);
    border-radius: 6px;
}

.live-search-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.live-search-item-price {
    font-size: 0.82rem;
    color: var(--primary-purple);
    font-weight: 700;
}

.live-search-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ZOOM OVERLAY */
.product-image {
    cursor: zoom-in;
}

.zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(107, 45, 123, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}

.zoom-overlay svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-purple);
}

.product-card:hover .zoom-overlay {
    opacity: 1;
}

/* QUICK VIEW + COMPARE CARD BTNS */
.product-quick-view,
.product-compare-btn {
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.product-quick-view:hover {
    border-color: var(--primary-purple);
    background: var(--primary-purple);
}

.product-quick-view:hover svg {
    fill: var(--white);
}

.product-quick-view svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-purple);
    transition: fill 0.3s;
}

.product-compare-btn:hover,
.product-compare-btn.active {
    border-color: var(--accent-yellow);
    background: var(--accent-yellow);
}

.product-compare-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-dark);
}

/* COMPARE HEADER BTN */
.compare-header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--gray-light);
    border: 2px solid var(--accent-yellow);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.compare-header-btn:hover {
    background: var(--accent-yellow);
}

.compare-header-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-dark);
}

/* COMPARE BAR */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(107, 45, 123, 0.15);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 3px solid var(--primary-purple);
}

.compare-bar.visible {
    transform: translateY(0);
}

.compare-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.compare-items {
    display: flex;
    gap: 12px;
    flex: 1;
    align-items: center;
    flex-wrap: wrap;
}

.compare-item-thumb {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-light);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
}

.compare-item-thumb img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.compare-item-thumb .rm {
    background: none;
    border: none;
    cursor: pointer;
    color: #ff4757;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 2px;
}

.compare-bar-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* COMPARE TABLE */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.compare-table th,
.compare-table td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.9rem;
}

.compare-table th {
    background: var(--gray-light);
    font-weight: 700;
    color: var(--primary-purple);
}

.compare-table .row-label {
    text-align: left;
    font-weight: 600;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.compare-table img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.compare-table .compare-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-purple);
}

/* STOCK BADGE */
.stock-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 0;
    border-radius: 4px;
    margin-bottom: 0;
}

.stock-badge.in-stock {
    background: transparent;
    color: transparent !important;
}

.stock-badge.low-stock {
    background: transparent;
    color: transparent !important;
}

.stock-badge.out-of-stock {
    background: transparent;
    color: transparent !important;
}

/* COUPON */
.coupon-row {
    display: flex;
    margin-bottom: 10px;
}

.coupon-row .form-input {
    flex: 1;
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
}

.hidden {
    display: none !important;
}

/* QUICK VIEW BODY */
.qv-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.qv-img {
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 0 0 0 var(--radius);
    min-height: 260px;
}

.qv-img img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.qv-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qv-cat {
    font-size: 0.78rem;
    color: var(--primary-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qv-name {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.qv-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-purple);
}

.qv-price .old {
    font-size: 1rem;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.qv-desc {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.qv-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    flex-wrap: wrap;
}

.qv-reviews {
    border-top: 1px solid var(--gray);
    padding: 20px;
}

/* REVIEWS */
.review-card {
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 0.88rem;
}

.review-stars {
    color: var(--accent-yellow);
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.72rem;
    color: var(--text-gray);
}

.review-comment {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 4px;
}

.star-picker {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.star-picker button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.2s;
}

.star-picker button.active {
    color: var(--accent-yellow);
}

/* ORDER STATUS */
.order-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.status-pending {
    background: #fff3e0;
    color: #e67e22;
}

.status-processing {
    background: #e3f2fd;
    color: #1976d2;
}

.status-shipped {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-delivered {
    background: #e8f5e9;
    color: #2e7d32;
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.product-card.reveal {
    transform: translateY(30px) scale(0.97);
}

.product-card.revealed {
    transform: translateY(0) scale(1);
}

@media (max-width: 600px) {
    .qv-body {
        grid-template-columns: 1fr;
    }

    .compare-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* FILTER BADGES */
.filter-badge {
    transition: all 0.2s ease;
}

.filter-badge:hover {
    background: var(--gray) !important;
    border-color: var(--primary-purple) !important;
    transform: translateY(-1px);
}

/* ===== DARK MODE ===== */
body.dark-mode {
    --white: #171022;
    --gray-light: #0b0712;
    --gray: #2c1f3d;
    --text-dark: #f6effc;
    --text-gray: #a89bb8;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.6);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: #1c1429;
    color: #f6effc;
    border-color: #3b2b54;
}

body.dark-mode input::placeholder {
    color: #7d6e8f;
}

body.dark-mode .modal {
    border: 1px solid #3b2b54;
}

body.dark-mode .dropdown-menu {
    background: #171022;
    border: 1px solid #3b2b54;
}

body.dark-mode .dropdown-item:hover {
    background: #2c1f3d;
}

body.dark-mode .compare-bar {
    background: #171022;
    border-top: 1px solid #3b2b54;
}

body.dark-mode .btn-menu {
    border-color: #3b2b54;
    background: #1c1429;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gray);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.5s ease;
}

.theme-toggle-btn:hover svg {
    transform: rotate(30deg);
}

/* ===== PRODUCT GALLERY & ZOOM ===== */
.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-container img {
    transition: transform 0.15s ease-out;
}

.zoom-container.zoomed img {
    transform: scale(2.0);
    transition: none;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.gallery-thumb {
    width: 65px;
    height: 65px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-sm);
    padding: 4px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.25s ease;
    object-fit: contain;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(107, 45, 123, 0.15);
}

/* ====== BACK TO TOP ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(107, 45, 123, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1400;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 45, 123, 0.5);
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    color: var(--text-dark);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ====== DISCOUNT TIMER ====== */
.product-card-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 7, 18, 0.8);
    backdrop-filter: blur(4px);
    color: #ffd466;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 6;
    transition: background 0.3s;
    letter-spacing: 0.5px;
}

.product-card-timer svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.detail-timer-box {
    background: var(--gray-light);
    border: 1px dashed var(--accent-orange);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    color: var(--text-dark);
}

.detail-timer-box.hidden {
    display: none !important;
}

.detail-timer-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e67e22;
}

.detail-timer-clock {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-purple);
    background: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--gray);
    letter-spacing: 1px;
}

/* ====== SOCIAL SHARING ====== */
.share-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--gray);
}

.share-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid var(--gray);
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.share-btn.fb:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.share-btn.tw:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

.share-btn.copy:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
}

.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ====== PRODUCTS SIDEBAR LAYOUT (SLIDING DRAWER) ====== */
.products-layout-wrapper {
    display: block;
    position: relative;
    margin-top: 10px;
    width: 100%;
}

.products-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 1200;
    box-shadow: var(--shadow-lg);
    padding: 30px 20px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-sizing: border-box;
    display: block;
}

.products-sidebar.active {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1195;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-close-btn {
    transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-close-btn:hover {
    color: var(--primary-purple) !important;
    transform: rotate(90deg);
}

.sidebar-filter-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
}

.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}

.sidebar-brands-container {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--gray-light);
}

.products-main-content {
    min-width: 0;
    width: 100%;
}

/* Dark mode compatibility */
body.dark-mode .products-sidebar {
    background: #1c1429;
    border-right: 1px solid #3b2b54;
}

body.dark-mode .sidebar-close-btn {
    color: #f6effc !important;
}

body.dark-mode .sidebar-brands-container {
    background: rgba(255, 255, 255, 0.03);
    border-color: #3b2b54;
}

/* ====== FAQ ACCORDION ====== */
.faq-section {
    padding: 60px 0 80px;
    background: var(--white);
    border-top: 1px solid var(--gray);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-light);
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary-purple);
    background: var(--white);
    box-shadow: 0 4px 20px rgba(107, 45, 123, 0.05);
}

.faq-question {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.faq-arrow {
    width: 20px;
    height: 20px;
    fill: var(--text-gray);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    fill: var(--primary-purple);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
    padding: 0 24px 20px;
    border-top: 1px solid var(--gray-light);
}

.faq-answer p {
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    padding-top: 15px;
}

/* Payment Modal */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    cursor: pointer;
    display: block;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 2px solid var(--gray);
    border-radius: 14px;
    transition: all 0.25s ease;
    background: var(--white);
    gap: 10px;
}

.payment-option:hover .payment-option-content {
    border-color: var(--primary-purple-light);
    background: rgba(107, 45, 123, 0.03);
}

.payment-option input[type="radio"]:checked+.payment-option-content {
    border-color: var(--primary-purple);
    background: rgba(107, 45, 123, 0.06);
    box-shadow: 0 2px 12px rgba(107, 45, 123, 0.12);
}

.payment-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.payment-checkbox-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gray);
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}

.payment-checkbox-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-purple);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.payment-option input[type="radio"]:checked+.payment-option-content .payment-checkbox-custom {
    border-color: var(--primary-purple);
}

.payment-option input[type="radio"]:checked+.payment-option-content .payment-checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.payment-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(107, 45, 123, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.payment-icon-wrap svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    stroke: var(--primary-purple);
    display: block;
}

.payment-option input[type="radio"]:checked+.payment-option-content .payment-icon-wrap {
    background: rgba(107, 45, 123, 0.15);
}

.payment-delivery-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 14px;
    background: rgba(39, 174, 96, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.payment-delivery-note span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #27ae60;
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.payment-sub {
    font-size: 0.78rem;
    color: var(--text-gray);
}

.payment-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-purple);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ====== NEW HERO / CATEGORIES LAYOUT ====== */
.sm-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 26px;
    align-items: start;
}

@media(max-width: 992px) {
    .sm-main {
        grid-template-columns: 1fr;
    }
}

/* Category Sidebar Card Styling */
.sm-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(60, 40, 80, 0.08);
    border: 1px solid #efedf3;
    transition: all 0.3s ease;
}

body.dark-mode .sm-card {
    background: #1c1429;
    border-color: #3b2b54;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sm-cardhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    font-weight: 700;
    color: var(--primary-purple);
}

body.dark-mode .sm-cardhead {
    color: var(--primary-purple-light);
}

.sm-cardhead-title {
    font-size: 18px;
    letter-spacing: -0.2px;
}

.sm-cardhead-burger {
    display: inline-flex;
    opacity: 0.85;
}

.sm-A-list {
    padding: 10px 0 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sm-A-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    text-align: left;
    padding: 13px 14px;
    border-radius: 13px 0 0 13px;
    font-size: 15px;
    font-weight: 600;
    color: #4a4453;
    line-height: 1.3;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

body.dark-mode .sm-A-item {
    color: #d1cbd8;
}

.sm-A-item:hover {
    background: #783A88;
    color: #fff !important;
    transform: translateX(4px);
}

.sm-A-item:hover .sm-A-chip {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.dark-mode .sm-A-item:hover {
    background: #783A88;
    color: #fff !important;
}

.sm-A-chip {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #f2ebf7;
    color: var(--primary-purple);
    display: grid;
    place-items: center;
    transition: background 0.18s, color 0.18s;
}

body.dark-mode .sm-A-chip {
    background: #2a1d3d;
    color: var(--primary-purple-light);
}

.sm-A-label {
    flex: 1;
}

.sm-A-item.on {
    color: #fff !important;
    font-weight: 700;
    background: #783A88;
    box-shadow: 0 8px 18px rgba(120, 58, 136, 0.32);
}

.sm-A-item.on .sm-A-chip {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sm-A-item.on:hover {
    transform: none;
}

/* Hover overrides for active state inside sidebar categories list */
.sm-A-list:hover .sm-A-item.on:not(:hover) {
    background: none;
    color: #4a4453 !important;
    box-shadow: none;
}

.sm-A-list:hover .sm-A-item.on:not(:hover) .sm-A-chip {
    background: #f2ebf7;
    color: var(--primary-purple);
}

body.dark-mode .sm-A-list:hover .sm-A-item.on:not(:hover) {
    background: none;
    color: #d1cbd8 !important;
    box-shadow: none;
}

body.dark-mode .sm-A-list:hover .sm-A-item.on:not(:hover) .sm-A-chip {
    background: #2a1d3d;
    color: var(--primary-purple-light);
}

.category-icon-small {
    font-size: 1.25rem;
}

.sm-A-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-purple);
    border-radius: 13px;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.sm-A-toggle-btn:hover {
    background: #f6f0fa;
    color: var(--primary-purple-dark);
}

body.dark-mode .sm-A-toggle-btn {
    color: var(--primary-purple-light);
}

body.dark-mode .sm-A-toggle-btn:hover {
    background: #2a1d3d;
    color: #fff;
}

/* Banner Styling */
.sm-banner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: linear-gradient(180deg, #fff, #fbfbfd);
    border-radius: 22px;
    overflow: hidden;
    min-height: 430px;
    box-shadow: 0 10px 34px rgba(60, 40, 80, 0.06);
    border: 1px solid #efedf3;
    transition: all 0.3s ease;
}

body.dark-mode .sm-banner {
    background: linear-gradient(180deg, #1c1429, #150f20);
    border-color: #3b2b54;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
}

.sm-banner-copy {
    padding: 50px 0 30px 50px;
    position: relative;
    z-index: 2;
}

.sm-banner-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

body.dark-mode .sm-banner-title {
    color: #fff;
}

.sm-5g {
    font-size: 14px;
    font-weight: 700;
    background: var(--text-dark);
    color: #fff;
    border-radius: 6px;
    padding: 3px 7px;
    align-self: center;
}

body.dark-mode .sm-5g {
    background: #fff;
    color: var(--text-dark);
}

.sm-series {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
}

.sm-banner-sub {
    margin-top: 18px;
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: -0.3px;
}

.sm-banner-feats {
    display: flex;
    gap: 0;
    margin-top: 40px;
    flex-wrap: wrap;
}

.sm-feat {
    padding: 0 22px;
    border-left: 1px solid #e7e7ec;
}

body.dark-mode .sm-feat {
    border-left-color: #3b2b54;
}

.sm-feat:first-child {
    padding-left: 0;
    border-left: none;
}

.sm-feat-h {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

body.dark-mode .sm-feat-h {
    color: #fff;
}

.sm-feat-h span {
    color: var(--accent-orange);
}

.sm-feat-d {
    font-size: 12.5px;
    color: var(--text-gray);
    margin-top: 5px;
    max-width: 120px;
    line-height: 1.35;
}

.sm-dots {
    display: flex;
    gap: 11px;
    margin-top: 46px;
}

.sm-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    border: 1.6px solid #d9d4e0;
    display: inline-block;
}

body.dark-mode .sm-dot {
    background: #1c1429;
    border-color: #3b2b54;
}

.sm-dot.on {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.sm-banner-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sm-banner-art img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: productFloat 3s ease-in-out infinite;
}

@media(max-width: 768px) {
    .sm-banner {
        grid-template-columns: 1fr;
        min-height: 255px !important;
        height: 255px !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 30px rgba(60, 40, 80, 0.08) !important;
    }

    .sm-banner-copy {
        padding: 40px 15px 20px;
    }

    .sm-banner-art {
        padding: 20px 30px 40px;
    }

    .sm-banner-art img {
        max-height: 260px;
    }
}

@media(max-width: 480px) {
    .sm-banner {
        min-height: 220px !important;
        height: 220px !important;
    }
}

/* Dynamic Slider Styles */
.sm-slides-container {
    grid-column: 1 / -1;
    width: 100%;
    height: 100%;
    min-height: 430px;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .sm-slides-container {
        min-height: 255px !important;
        height: 255px !important;
        background: var(--white) !important;
        border-radius: 18px !important;
    }
    .sm-slides-container img {
        object-fit: contain !important;
        padding: 4px !important;
    }
    .sm-slide-item {
        background: var(--white) !important;
    }
}

@media (max-width: 480px) {
    .sm-slides-container {
        min-height: 220px !important;
        height: 220px !important;
    }
    .sm-slides-container img {
        padding: 4px !important;
    }
}

.sm-slide-item img {
    transition: transform 6s ease;
}

.sm-slide-item.active img {
    transform: scale(1.03);
}

/* ====== MOBILE RESPONSIVE ENHANCEMENTS ====== */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-purple);
    padding: 8px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(107, 45, 123, 0.1);
    display: none; /* hidden on desktop */
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-content: center;
    z-index: 1400;
    border-top: 1px solid var(--gray);
    padding: 6px 0;
}

.mobile-bottom-nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    gap: 3px;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item:focus {
    color: var(--primary-purple);
    outline: none;
}

.mobile-bottom-nav-item .icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.mobile-bottom-nav-item:hover svg {
    transform: translateY(-2px);
}

.mobile-nav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent-yellow);
    color: var(--text-dark);
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--white);
    padding: 0 4px;
}

/* Mobile Drawer styling */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 31, 61, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -290px;
    width: 290px;
    height: 100%;
    background: var(--white);
    box-shadow: 10px 0 30px rgba(107, 45, 123, 0.15);
    z-index: 2200;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active {
    left: 0;
}

.mobile-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-drawer-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-gray);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 10px;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.25s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item.on {
    background: var(--gray-light);
    color: var(--primary-purple);
}

.mobile-menu-chip {
    width: 32px;
    height: 32px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    transition: all 0.25s ease;
}

.mobile-menu-item:hover .mobile-menu-chip,
.mobile-menu-item.on .mobile-menu-chip {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    color: var(--white);
}

.mobile-menu-label {
    flex: 1;
}

/* Header media queries for mobile centering and ordering */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: grid;
    }
    
    body {
        padding-bottom: 65px;
    }

    .header-content {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        align-items: center;
        gap: 10px;
    }

    .mobile-menu-btn {
        grid-column: 1;
        display: flex;
    }

    .logo {
        grid-column: 2;
        justify-content: center;
        margin: 0 auto !important;
    }

    .header-actions {
        display: none !important;
    }

    .search-bar {
        grid-column: 1 / span 3;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 10px !important;
        order: unset !important;
    }

    /* Hide desktop sidebar categories on mobile */
    .sm-main .sm-card.sm-A {
        display: none !important;
    }

    /* Edge-to-edge section & container padding removal for mobile hero */
    .hero-categories-section {
        padding: 15px 0 20px 0 !important;
    }
    .hero-categories-section .container {
        padding: 0 5px !important;
    }

    .section-title {
        font-size: 1.15rem !important;
    }
    .see-all {
        font-size: 0.85rem !important;
    }

    /* Mobile user dropdown dropup styles */
    .mobile-bottom-nav .user-dropdown {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-bottom-nav .mobile-bottom-nav-btn {
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-gray);
        font-size: 0.72rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        font-family: inherit;
        gap: 3px;
        width: 100%;
        height: 100%;
    }

    .mobile-bottom-nav .mobile-bottom-nav-btn svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }

    .mobile-bottom-nav .user-dropdown.active .mobile-bottom-nav-btn {
        color: var(--primary-purple);
    }

    .dropdown-menu.dropup {
        bottom: calc(100% + 10px);
        top: auto !important;
        right: 50% !important;
        transform: translateX(50%) translateY(10px) !important;
        box-shadow: 0 -10px 40px rgba(107, 45, 123, 0.15);
        left: auto !important;
    }

    .mobile-bottom-nav .user-dropdown.active .dropdown-menu.dropup {
        opacity: 1;
        visibility: visible;
        transform: translateX(50%) translateY(0) !important;
    }
}