/* Utility Classes */
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-2 { gap: 10px; }

/* Top Bar */
.top-bar {
    background: var(--text-main);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.75rem;
    font-weight: 500;
}

.top-bar a {
    color: var(--white);
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

.top-bar a:hover {
    opacity: 1;
}

/* Navbar Styles */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Dropdown */
.has-dropdown {
    position: relative;
    padding-bottom: 10px; /* Bridge gap for hover */
    margin-bottom: -10px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--white);
    min-width: 250px;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

.dropdown-menu a {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    border-radius: 10px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--primary-color-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.desktop-search {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.mobile-search-toggle {
    display: none !important;
    cursor: pointer;
}

/* Premium Sidebars (Cart & Menu) */
.cart-sidebar, .mobile-menu {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--white);
    z-index: 3000;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.cart-sidebar {
    right: 0;
    transform: translateX(100%);
}

.mobile-menu {
    left: 0;
    transform: translateX(-100%);
}

.cart-sidebar.open, .mobile-menu.open {
    transform: translateX(0);
}

.cart-header, .mobile-menu-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--secondary-bg);
    background: var(--white);
}

.cart-header h3, .mobile-menu-header .logo {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart, .close-menu {
    background: var(--secondary-bg);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-cart:hover, .close-menu:hover {
    background: #e0e0e0;
    transform: rotate(90deg) scale(1.1);
}

/* Mobile Nav Links */
.mobile-nav-links {
    list-style: none;
    padding: 20px 0;
}

.mobile-nav-links li a {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.mobile-nav-links li a:hover {
    background: var(--secondary-bg);
    padding-left: 40px;
    color: var(--primary-color);
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 3000;
    display: none;
    flex-direction: column;
}

.mobile-search-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.search-overlay-header {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background: #ffffff;
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-overlay-header .search-box {
    background: #f5f6f7 !important;
    border: 1px solid #e0e0e0;
    gap: 10px;
    height: 48px;
    padding: 0 12px;
    width: 100%;
    display: flex !important;
    align-items: center;
    border-radius: 12px;
}

.search-overlay-header input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 10px;
    font-size: 16px !important;
    color: #000 !important;
}

.search-overlay-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-search-overlay .search-results {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
    max-height: none;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--secondary-bg);
    padding: 5px 15px;
    border-radius: 50px;
    transition: all var(--transition-fast);
    width: 100%; /* Ensure full width in flex containers */
}

.search-box:focus-within {
    background: var(--white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    padding: 10px;
    flex: 1;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--text-main);
}

.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 450px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    margin-top: 10px;
    max-height: 450px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

.search-results.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 10px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--secondary-bg);
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--secondary-bg);
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info h4 {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.search-result-info span {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.search-results-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}


.nav-icon-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.nav-icon:hover {
    color: var(--primary-color);
}

/* Account Dropdown Styles */
.account-wrapper {
    position: relative;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
}

.account-wrapper > a {
    display: flex;
    align-items: center;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: -10px;
    width: 280px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2000;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Invisible bridge to prevent hover flickering */
.account-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.account-wrapper:hover .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.account-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-dropdown-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color-light);
}

.account-dropdown-header .user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.account-dropdown-header .user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    display: block;
}

.account-dropdown-header .view-profile {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.quick-logout {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5f5;
    color: #ff4444;
    border-radius: 10px;
    transition: all 0.2s;
}

.quick-logout:hover {
    background: #ff4444;
    color: white;
    transform: rotate(5deg);
}

.quick-logout i {
    width: 18px;
    height: 18px;
}

/* Guest Dropdown Styles */
.welcome-msg {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: center;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-bottom: 5px;
}

.dropdown-item:hover {
    background: var(--secondary-bg);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 18px;
    height: 18px;
}

.register-btn {
    background: var(--primary-color-light);
    color: var(--primary-color);
}

.register-btn:hover {
    background: var(--primary-color);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.4rem;
}


.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--secondary-color);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero Section */
.hero {
    height: 75vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #000000 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: floatGlow 15s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: floatGlow 20s infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}



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

.hero-text {
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-deal {
    margin: 25px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.deal-price {
    margin-bottom: 12px;
}

.current-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.old-price {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-left: 10px;
}

.deal-info {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.deal-info i {
    color: var(--secondary-color);
}

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

.hero-image .image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 550px;
    background: var(--white);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--text-main);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

/* Global Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.section-title .divider {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
    border-radius: 10px;
}

/* Category Pills */
.section-sm {
    padding: 40px 0;
}

.category-pills {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pill {
    padding: 12px 25px;
    background: var(--white);
    border: 1px solid var(--secondary-bg);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-main);
    text-decoration: none;
    display: inline-block;
}

.pill:hover, .pill.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-soft);
}

/* Shop Layout */
.shop-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
}

.desktop-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 16px;
    border: 1px solid var(--secondary-bg);
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sort-select {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-select label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.sort-select-input {
    padding: 10px 15px;
    border: 1px solid var(--secondary-bg);
    border-radius: 10px;
    outline: none;
    background: var(--secondary-bg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-select-input:hover {
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .desktop-sort-bar {
        display: none !important;
    }
    .mobile-filter-bar {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        gap: 15px;
    }
}

@media (min-width: 769px) {
    .mobile-filter-bar {
        display: none;
    }
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--secondary-bg);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.sort-select select {
    padding: 10px 15px;
    border: 1px solid var(--secondary-bg);
    border-radius: 10px;
    outline: none;
    background: var(--white);
    font-weight: 600;
}

.shop-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--secondary-bg);
    position: sticky;
    top: 100px;
}

.mobile-only {
    display: none;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    border-bottom: 1px solid var(--secondary-bg);
    padding-bottom: 8px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--secondary-bg);
    outline: none;
    font-size: 0.85rem;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-dot.tablet {
    width: 50px;
    border-radius: 20px;
}

.color-dot:hover {
    transform: scale(1.1);
}

.color-dot.active::after {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 8px 12px;
    border: 1px solid var(--secondary-bg);
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.size-btn.active {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
    padding-right: 28px;
}

.size-btn.active::after {
    content: '\2713';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 12px;
}

.product-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

/* Professional Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Enhanced Product Cards */
.product-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    height: 100%;
}

.btn-primary:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.1);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    border-color: rgba(26, 115, 232, 0.1);
}

.product-image {
    position: relative;
    aspect-ratio: 1 / 1.1;
    height: 350px;
    width: 100%;
    overflow: hidden;
    background: var(--secondary-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.product-actions {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.15) rotate(5deg);
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 15;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wishlist-btn.active {
    background: var(--secondary-color);
    color: white;
    opacity: 1;
    transform: translateX(0);
}
.product-card:hover .wishlist-btn {
    opacity: 1;
    transform: translateX(0);
}

.product-info {
    padding: 15px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}


/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 50px; /* Reduced from 80px */
}

.page-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--secondary-bg);
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.page-btn:hover, .page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Reviews Section */
.reviews-section {
    background: var(--secondary-bg);
    padding: 70px 0 100px; /* Reduced top padding from 100px to 70px */
    position: relative;
}

.reviews-section .section-title h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.reviews-section .section-title h2::after {
    content: '"';
    position: absolute;
    top: -20px;
    right: -30px;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.2;
    font-family: serif;
}

.reviews-section .section-title p {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--secondary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.review-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.review-slider {
    overflow: hidden;
    width: 100%;
}

.review-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.review-slide {
    min-width: 100%;
    padding: 0 10px;
}

/* Professional Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--secondary-bg);
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.page-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.2);
}

/* Enhanced Review Styles */
.review-card {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.review-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 30px;
    font-style: italic;
}

.stars {
    margin-bottom: 20px;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.stars i.filled {
    color: #FFD700;
    fill: #FFD700;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.reviewer img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-bg);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 30px;
    border-radius: 20px;
    background: var(--primary-color);
}
.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s;
    z-index: 10;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--primary-color);
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.stars i.filled {
    color: #FFB300;
    fill: #FFB300;
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.2rem;
    line-height: 1.7;
    text-align: center;
}

.reviewer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}


/* Mobile App Feel & Bottom Nav */
/* Material 3 Bottom Nav with Center FAB */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    z-index: 2500;
    display: none; /* Controlled by media query */
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    padding: 0 10px;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #444746;
    text-decoration: none;
    flex: 1;
    position: relative;
    height: 100%;
}

.nav-icon-wrapper {
    position: relative;
    padding: 4px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-bottom-nav .nav-item.active .nav-icon-wrapper {
    background: #dce1ff;
}

.mobile-bottom-nav .nav-item.active {
    color: #1a1c1e;
}

.mobile-bottom-nav .nav-item.active span {
    font-weight: 800;
}

.mobile-bottom-nav .nav-item i {
    width: 24px;
    height: 24px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Center FAB */
.nav-item-fab-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-fab {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 16px; /* Material 3 style rounded square */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    position: absolute;
    top: -20px;
    border: 4px solid #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-fab:active {
    transform: scale(0.9) translateY(2px);
}

.nav-fab i {
    width: 24px;
    height: 24px;
}

.nav-fab .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-icon-wrapper .cart-count {
    top: -5px;
    right: -8px;
    width: 14px;
    height: 14px;
    font-size: 8px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }

    header {
        padding: 10px 0;
    }

    .desktop-search {
        display: none !important;
    }

    .mobile-search-toggle {
        display: flex !important;
    }

    /* Hide redundant icons since they are now at the bottom */
    .nav-icon:not(.mobile-search-toggle) {
        display: none !important;
    }

    .nav-icon-group {
        gap: 10px; /* Tighter gap for just the search icon */
    }

    .mobile-filter-bar {
        display: flex;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        z-index: 2500;
        border-radius: 0;
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        flex-direction: column;
        padding: 0;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }

    .shop-sidebar.open {
        left: 0;
    }

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

    .filter-group {
        padding: 0 20px;
        margin-bottom: 25px;
    }

    .sidebar-footer {
        padding: 20px;
        border-top: 1px solid var(--secondary-bg);
    }

    .mobile-only {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 400px;
        padding: 40px 0;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-btns {
        justify-content: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .shop-container {
        grid-template-columns: 1fr;
    }

    .product-grid-3, .product-grid-4, .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-image {
        height: 200px;
    }

    /* Smart Mobile Actions */
    .product-actions {
        opacity: 1 !important;
        transform: none !important;
        bottom: 10px;
        left: 0;
        width: 100%;
        padding: 0 10px;
        justify-content: space-between;
        pointer-events: auto;
    }

    .action-btn {
        width: 34px !important;
        height: 34px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(0,0,0,0.05);
    }

    /* Specific Placement for Mobile */
    .action-btn:nth-child(1) { /* Quick View */
        order: 1;
    }
    .action-btn.add-to-cart { /* Add to Cart */
        order: 3;
        background: var(--primary-color) !important;
        color: white !important;
    }
    .action-btn:nth-child(3) { /* Wishlist */
        position: absolute;
        top: -145px;
        right: 10px;
        order: 2;
    }

    .product-title {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 1rem;
    }

    /* Expert Mobile Footer */
    footer {
        padding: 60px 0 100px; /* Extra padding for bottom nav */
        text-align: center;
    }

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

    .footer-col {
        margin-bottom: 20px;
    }

    .footer-col .logo {
        margin: 0 auto 15px !important;
        font-size: 1.8rem;
    }

    .footer-col p {
        max-width: 250px;
        margin: 0 auto;
        line-height: 1.6;
    }

    .footer-col .social-icons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 10px;
    }

    .footer-bottom {
        margin-top: 40px;
        padding-top: 25px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    /* Expert Mobile Reviews */
    .review-slider-container {
        padding: 0;
    }

    .slider-arrow {
        display: none; /* Mobile users swipe */
    }

    .review-card {
        padding: 30px 20px;
        box-shadow: none;
        border: 1px solid var(--secondary-bg);
    }

    .review-text {
        font-size: 1.1rem !important;
        line-height: 1.6;
        font-weight: 500;
    }

    .stars i {
        width: 16px;
        height: 16px;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 2100;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-medium);
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--secondary-bg);
}

.mobile-menu-links {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-link:hover {
    color: var(--primary-color);
}

.mobile-menu-footer {
    margin-top: auto;
    padding: 30px;
    border-top: 1px solid var(--secondary-bg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 2050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.close-menu {
    cursor: pointer;
    font-size: 1.5rem;
}


/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--secondary-bg);
    padding-bottom: 15px;
}

.close-cart {
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-footer {
    padding-top: 20px;
    border-top: 1px solid var(--secondary-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--secondary-bg);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

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

.footer-links a {
    color: var(--text-muted);
}

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

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 80%;
    max-width: 900px;
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.modal-image img {
    width: 100%;
    border-radius: 15px;
}

.product-options {
    margin-top: 20px;
}

.product-options label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-options select {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid var(--secondary-bg);
    outline: none;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .search-box {
        display: none;
    }
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .top-bar-right {
        display: none;
    }
}




/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: #fff;
}

/* Scroll to Top with Progress */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

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

.scroll-to-top i {
    width: 20px;
    height: 20px;
    z-index: 2;
}

.progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.progress-circle path {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 307.876;
    stroke-dashoffset: 307.876;
    transition: stroke-dashoffset 10ms linear;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 110px;
        left: 20px;
        width: 55px;
        height: 55px;
    }
    .scroll-to-top {
        bottom: 110px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Product Detail Page */
.product-detail-section { padding: 50px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.product-gallery { position: sticky; top: 100px; }
.main-image { border-radius: 20px; overflow: hidden; background: var(--secondary-bg); margin-bottom: 20px; }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-grid { display: flex; gap: 15px; }
.thumb { width: 80px; height: 80px; border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.thumb.active { border-color: var(--primary-color); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-panel h1 { font-size: 2.5rem; margin-bottom: 15px; }
.detail-price { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); margin-bottom: 25px; }
.detail-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 30px; }

.detail-option { margin-bottom: 25px; }
.detail-option h4 { margin-bottom: 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.purchase-actions { display: flex; gap: 20px; margin-top: 40px; }
.qty-input { display: flex; align-items: center; background: var(--secondary-bg); border-radius: 12px; padding: 5px; }
.qty-input button { width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; font-size: 1.2rem; }
.qty-input input { width: 50px; text-align: center; border: none; background: transparent; font-weight: 700; }

/* Checkout & Cart */
.cart-table-container { background: var(--white); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-soft); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cart-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.cart-table th { text-align: left; padding: 15px; border-bottom: 1px solid var(--secondary-bg); color: var(--text-muted); font-size: 0.9rem; }
.cart-table td { padding: 20px 15px; border-bottom: 1px solid var(--secondary-bg); }

.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.form-card { background: var(--white); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-soft); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-main); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--secondary-bg); outline: none; transition: all 0.3s; }
.form-group input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1); }

.summary-card { background: var(--white); border-radius: 24px; padding: 30px; border: 2px solid var(--primary-color); position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-weight: 500; }
.summary-total { border-top: 1px solid var(--secondary-bg); padding-top: 15px; margin-top: 15px; font-size: 1.3rem; font-weight: 800; }

@media (max-width: 992px) {
    .product-detail-grid, .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .product-grid-3, .product-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .shop-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .shop-sidebar {
        position: fixed;
        top: 0;
        right: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        z-index: 9999 !important;
        background: var(--white) !important;
        transition: all 0.4s ease !important;
        overflow-y: auto;
        display: block !important;
    }
    
    .shop-sidebar.open {
        right: 0 !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2) !important;
    }

    .mobile-only {
        display: flex !important;
    }

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

    .hero-image .image-wrapper {
        height: 300px;
    }

    .product-image {
        height: 250px;
        width: 100%;
    }

    .product-actions {
        opacity: 1;
        transform: translateY(0);
        left: 0;
        right: 0;
        width: 100%;
        bottom: 15px;
        display: flex !important;
        justify-content: space-between !important;
        padding: 0 10px;
        flex-wrap: nowrap !important;
    }

    .wishlist-btn {
        opacity: 1;
        transform: none;
        top: 10px;
        right: 10px;
    }

    .action-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .product-grid-3, .product-grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* My Account Dashboard */
.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 50px 0;
}

@media (max-width: 992px) {
    .account-layout {
        grid-template-columns: 1fr;
        padding: 30px 0;
    }
    
    .account-sidebar {
        margin-bottom: 30px;
    }
}

.account-sidebar { background: var(--white); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-soft); height: fit-content; }
.user-preview { text-align: center; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--secondary-bg); }
.user-preview img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 15px; border: 3px solid var(--primary-color-light); }
.user-preview h4 { margin: 0; font-size: 1.1rem; }
.user-preview p { color: var(--text-muted); font-size: 0.85rem; word-break: break-word; overflow-wrap: break-word; }

.account-nav { list-style: none; }
.account-nav li { margin-bottom: 10px; }
.account-nav li a { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; border-radius: 12px; color: var(--text-main); font-weight: 600; transition: all 0.3s; }
.account-nav li a:hover, .account-nav li.active a { background: var(--primary-color); color: var(--white); }
.account-nav li.logout a { color: #ff4444; }
.account-nav li.logout a:hover { background: #fff5f5; }

.account-content { background: var(--white); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-soft); }
.account-content h2 { margin-bottom: 30px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--secondary-bg); padding: 25px; border-radius: 20px; text-align: center; }
.stat-card i { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 10px; }
.stat-card h3 { font-size: 1.8rem; margin: 5px 0; }
.stat-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* --- Expert Responsive & Layout Control --- */

/* Desktop Default: Hide mobile-only elements */
.shop-sidebar-mobile, .mobile-only {
    display: none !important;
}

/* Desktop Sidebar Styling */
.shop-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--secondary-bg);
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Mobile Sidebar (Fixed at body root) */
.shop-sidebar-mobile {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 300px !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: var(--white) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    overflow-y: auto !important;
    padding: 30px 20px !important;
    display: none !important; /* Managed by media query */
}

.shop-sidebar-mobile.open {
    right: 0 !important;
    display: block !important;
    box-shadow: -10px 0 50px rgba(0,0,0,0.3) !important;
}

/* Global Lockdown for Horizontal Scroll */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

/* Media Queries */
@media (max-width: 768px) {
    .desktop-only, .shop-sidebar {
        display: none !important;
    }

    .shop-sidebar-mobile, .mobile-only {
        display: block !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        overflow: visible !important;
    }

    .shop-container {
        display: block !important;
        width: 100% !important;
    }

    .product-grid-3, .product-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* Account Responsive Fixes */
    .account-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
        width: 100%;
        overflow-x: hidden;
    }

    .account-sidebar, .account-content {
        width: 100%;
        min-width: 0; /* Prevent children from pushing container width */
    }

    .account-sidebar {
        padding: 20px;
    }

    .account-content {
        padding: 20px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cart-table-container {
        padding: 15px !important;
        margin: 0;
        width: 100%;
        border-radius: 15px;
    }

    .cart-table {
        min-width: 450px; /* Reduced to fit better */
    }

    .cart-table th, .cart-table td {
        padding: 12px 10px !important;
        font-size: 0.8rem;
    }

    .account-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .recent-orders h3 {
        font-size: 1.1rem !important;
    }
}



/* Modal System Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.modal-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 30px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 80px -10px rgba(0,0,0,0.4);
    transform: scale(0.9) translateZ(0); /* Force GPU acceleration */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10001;
    isolation: isolate; /* Create new stacking context to prevent filter bleeding */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-bg);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Quick View Content Styles */
.qv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.qv-grid .main-image {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--secondary-bg);
}

.qv-grid .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qv-grid .thumbnail-grid {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.qv-grid .thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.qv-grid .thumb.active {
    border-color: var(--primary-color);
}

.qv-grid .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qv-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.qv-grid .detail-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 20px;
}

.qv-stock-msg {
    color: #ff4444;
    font-weight: 700;
    margin-bottom: 15px;
    display: none;
    align-items: center;
    gap: 8px;
}

.qv-grid .detail-option {
    margin-bottom: 20px;
}

.qv-grid .detail-option h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.qv-grid .purchase-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

.qv-grid .qty-input {
    display: flex;
    align-items: center;
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 5px;
}

.qv-grid .qty-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
}

.qv-grid .qty-input input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
}

.qv-footer-link {
    margin-top: 30px;
    text-align: center;
}

.view-details-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

/* Color Dots */
.color-dot {
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.color-dot.multi-color {
    width: 60px;
    border-radius: 20px;
}

.color-dot.active {
    border-color: var(--primary-color) !important;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(26, 115, 232, 0.3);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.color-split {
    display: flex;
    width: 100%;
    height: 100%;
}

.color-part {
    flex: 1;
    height: 100%;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--secondary-bg);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Responsiveness */
@media (max-width: 768px) {
    .modal-container {
        max-width: 95% !important;
        width: 95% !important;
        border-radius: 20px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        max-height: 90vh !important;
    }

    .qv-grid {
        display: block !important; /* Stack naturally */
        padding: 15px !important;
        position: static !important;
    }

    .product-gallery, .product-info-panel, .main-image, .thumbnail-grid, .qv-title, .detail-price, .purchase-actions {
        position: static !important; /* Force static to prevent any fixed/sticky behavior */
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 0 15px 0 !important;
    }

    .qv-grid .main-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 350px !important;
        object-fit: contain !important;
        border-radius: 15px !important;
    }

    .qv-grid .thumbnail-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .qv-grid .thumb {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
    }

    .purchase-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .qty-input {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .btn-primary {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .modal-container {
        max-height: 92vh;
    }
    .qv-grid .main-image img {
        max-height: 300px;
    }
}

/* --- UI Layering Fixes (Overrides) --- */
.cart-sidebar, .mobile-menu {
    z-index: 100000 !important;
}

.mobile-bottom-nav {
    z-index: 90000 !important;
}

#overlay {
    z-index: 80000 !important;
}

/* --- Mobile Search Overlay --- */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 110000 !important;
    display: none;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-search-overlay.open {
    display: flex;
    transform: translateY(0);
}

/* Reset search results for mobile overlay */
.mobile-search-overlay .search-results {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    max-height: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    display: none;
    background: transparent !important;
}

.mobile-search-overlay .search-results.active {
    display: block !important;
}

.search-overlay-header {
    padding: 20px;
    border-bottom: 1px solid #f8f9fa;
    background: #ffffff;
}

.search-overlay-header .search-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 12px;
}

.search-overlay-header .search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
}

.search-overlay-header .back-btn, 
.search-overlay-header .clear-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #202124;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.search-suggestions {
    margin-bottom: 30px;
}

.search-suggestions h5 {
    font-size: 0.8rem;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-tag {
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #202124;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: #e8f0fe;
    color: #1a73e8;
}
