/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #C23B3B;
    --primary-dark: #9B2C2C;
    --primary-light: #E8A0A0;
    --accent-color: #D4956A;
    --accent-light: #F0D5C0;
    --secondary-color: #1A1A2E;
    --text-color: #2D2D3A;
    --text-light: #6B6B80;
    --text-muted: #9E9EB0;
    --bg-color: #FAFAFA;
    --bg-light: #F5F0EE;
    --bg-dark: #12121F;
    --border-color: #E8E4E2;
    --success-color: #2ECC71;
    --error-color: #E74C3C;
    --warning-color: #F1C40F;
    --shadow-sm: 0 2px 8px rgba(26,26,46,0.06);
    --shadow: 0 4px 20px rgba(26,26,46,0.08);
    --shadow-lg: 0 12px 48px rgba(26,26,46,0.12);
    --shadow-xl: 0 20px 60px rgba(26,26,46,0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Poppins', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(194,59,59,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194,59,59,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color), #C4855A);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212,149,106,0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,149,106,0.4);
}

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

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

.btn-white {
    background-color: #fff;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

/* ===== SALE BANNER ===== */
.sale-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color), #E85050, var(--primary-color), var(--primary-dark));
    background-size: 300% 100%;
    animation: saleBannerGradient 4s ease infinite;
    color: #fff;
    padding: 0;
    z-index: 1002;
}

@keyframes saleBannerGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glitter shimmer sweep */
.sale-banner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    animation: saleBannerShimmer 2.5s linear infinite;
    pointer-events: none;
}

@keyframes saleBannerShimmer {
    0%   { left: -60%; }
    100% { left: 160%; }
}

.sale-banner-track-wrap {
    display: flex;
    overflow: hidden;
    padding: 10px 0;
    cursor: default;
    user-select: none;
}

.sale-banner-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: saleBannerMarquee 22s linear infinite;
    will-change: transform;
}

.sale-banner-track:hover {
    animation-play-state: paused;
}

@keyframes saleBannerMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sale-banner-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0 48px;
    flex-shrink: 0;
}

.sale-banner-item .sale-icon {
    font-size: 16px;
    animation: saleBannerPop 1.2s ease-in-out infinite;
    display: inline-block;
}

@keyframes saleBannerPop {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25%       { transform: scale(1.25) rotate(-8deg); }
    75%       { transform: scale(1.25) rotate(8deg); }
}

.sale-banner-item .sale-badge {
    background: #fff;
    color: var(--primary-color);
    padding: 2px 10px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    animation: saleBadgePulse 1.8s ease-in-out infinite;
}

@keyframes saleBadgePulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
    50%       { box-shadow: 0 2px 14px rgba(255,255,255,0.5); }
}

.sale-banner-divider {
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    padding: 0 12px;
    flex-shrink: 0;
    align-self: center;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: linear-gradient(135deg, var(--secondary-color), #252540);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.announcement-bar p {
    margin: 0;
}

/* ===== HEADER ===== */
.header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 20px rgba(26,26,46,0.06);
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.95);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.mobile-menu-btn {
    display: none;
    font-size: 22px;
    color: var(--secondary-color);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--secondary-color);
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 400px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 30px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-content {
    display: flex;
    gap: 40px;
}

.dropdown-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.dropdown-column ul li {
    margin-bottom: 10px;
}

.dropdown-column ul li a {
    font-size: 13px;
    color: var(--text-light);
}

.dropdown-column ul li a:hover {
    color: var(--primary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn, .login-btn, .cart-btn, .user-btn, .wishlist-btn {
    font-size: 18px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.search-btn:hover, .login-btn:hover, .cart-btn:hover, .user-btn:hover, .wishlist-btn:hover {
    color: var(--primary-color);
}

.cart-btn, .wishlist-btn {
    position: relative;
}

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

.wishlist-btn .wishlist-count {
    background-color: #dc3545;
}

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

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    margin-top: 10px;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

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

.user-dropdown a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ===== SEARCH MODAL ===== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.search-modal-content {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    color: #fff;
}

.search-form {
    display: flex;
    border-bottom: 2px solid #fff;
}

.search-form input {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 24px;
    color: #fff;
    outline: none;
}

.search-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-form button {
    color: #fff;
    font-size: 24px;
}

.search-results {
    margin-top: 30px;
}

.search-results a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.search-results img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    transition: var(--transition);
    overflow-y: auto;
}

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

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

.mobile-close {
    font-size: 24px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.mobile-nav a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
}

/* ===== FLASH MESSAGES ===== */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1500;
    width: 350px;
}

.flash-message {
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(12px);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.flash-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid var(--error-color);
}

.flash-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
}

.flash-close:hover {
    opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18,18,31,0.65) 0%, rgba(26,26,46,0.2) 60%, rgba(194,59,59,0.1) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 600px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 8px 24px;
    margin-bottom: 20px;
    border-radius: var(--radius-xl);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 64px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    transition: var(--transition);
}

.hero-nav button:hover {
    background-color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dots .dot.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(194,59,59,0.5);
}

/* ===== FEATURES BAR ===== */
.features-bar {
    background: linear-gradient(135deg, var(--bg-light), #FAF5F3);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 28px;
    color: var(--primary-color);
}

.feature-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.feature-item p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-header.center {
    flex-direction: column;
    text-align: center;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 500;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
}

.section-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 80px 0;
}

.categories-slider-wrapper {
    position: relative;
    padding: 0 56px;
}

/* Gradient fade on left & right edges */
.categories-slider-wrapper::before,
.categories-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    z-index: 1;
    pointer-events: none;
}
.categories-slider-wrapper::before {
    left: 56px;
    background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.categories-slider-wrapper::after {
    right: 56px;
    background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.categories-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 16px 4px 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

.categories-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.categories-track::-webkit-scrollbar {
    display: none;
}

.cat-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
    padding: 0;
}

.cat-slider-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(194,59,59,0.3);
}

.cat-slider-btn:active {
    transform: translateY(-60%) scale(0.93);
}

.cat-slider-btn.disabled {
    opacity: 0;
    pointer-events: none;
}

.cat-slider-prev { left: 0; }
.cat-slider-next { right: 0; }

.category-card {
    flex: 0 0 140px;
    text-align: center;
    transition: transform 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-6px);
}

.category-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid transparent;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #f9f0f0;
}

.category-card:hover .category-image {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(194,59,59,0.22);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.category-card:hover .category-image img {
    transform: scale(1.07);
}

.category-card h3 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    padding: 0 4px;
}

/* img-fallback: show as a neutral grey tile */
.img-fallback {
    opacity: 0.55;
    filter: grayscale(1);
}


/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 80px 0;
}

.products-section.bg-light {
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    height: fit-content;
    border: 1px solid rgba(232,228,226,0.5);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    border-radius: var(--radius-xl);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.product-badge.sale {
    background: linear-gradient(135deg, var(--primary-color), #E85050);
    box-shadow: 0 4px 12px rgba(194,59,59,0.35);
}

.product-badge.new {
    background: linear-gradient(135deg, var(--secondary-color), #2D2D4A);
    box-shadow: 0 4px 12px rgba(26,26,46,0.35);
}

.product-badge.bestseller {
    background: linear-gradient(135deg, var(--accent-color), #E0A87A);
    box-shadow: 0 4px 12px rgba(212,149,106,0.35);
}

.product-badge.out-of-stock {
    background: linear-gradient(135deg, #6B6B80, #9E9EB0);
    box-shadow: 0 4px 12px rgba(107,107,128,0.35);
}

.product-actions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Modern Action Buttons */
.action-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(26, 26, 46, 0.12);
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 26, 46, 0.18);
}

/* Wishlist Button */
.action-btn.wishlist {
    color: var(--text-muted);
}

.action-btn.wishlist:hover,
.action-btn.wishlist.active {
    background: linear-gradient(135deg, var(--primary-color), #E85050);
    color: white;
}

.action-btn.cart:hover {
    background: linear-gradient(135deg, var(--accent-color), #E0A87A);
    color: white;
}

.action-btn.view:hover {
    background: linear-gradient(135deg, var(--secondary-color), #2D2D4A);
    color: white;
}

.action-btn.wishlist.active {
    background: linear-gradient(135deg, var(--primary-color), #E85050) !important;
    color: white !important;
}

.action-btn.wishlist.active:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
}

/* Cart Button */
.action-btn.cart {
    color: var(--text-muted);
}

.action-btn.cart:hover {
    background: linear-gradient(135deg, var(--accent-color), #E0A87A);
    color: white;
}

/* View Button */
.action-btn.view {
    color: var(--text-muted);
}

.action-btn.view:hover {
    background: linear-gradient(135deg, var(--secondary-color), #2D2D4A);
    color: white;
}

.product-image .wishlist-btn:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
    color: var(--primary-color);
}

.product-image .wishlist-btn.active {
    background: var(--primary-color);
    color: white;
}

.product-image .wishlist-btn.active:hover {
    background: var(--primary-dark);
}

/* Active state for action-btn wishlist buttons */
.action-btn.wishlist.active {
    background: linear-gradient(135deg, var(--primary-color), #E85050) !important;
    color: white !important;
}

.action-btn.wishlist.active:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
}

/* Wishlist Toggle Button on Product Detail */
.wishlist-toggle-btn {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.wishlist-toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #E85050) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.wishlist-toggle-btn.active:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
    border-color: var(--primary-dark) !important;
}

/* Wishlist Button in Product Image */
.product-image .wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.1);
    z-index: 10;
}

.product-image .wishlist-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #E85050);
    color: white;
    transform: scale(1.1);
}

.product-image .wishlist-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #E85050);
    color: white;
}

.product-image .wishlist-btn.active:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.product-info {
    padding: 20px;
    text-align: center;
    position: relative;
}

.product-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    font-weight: 500;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    margin: 8px 0 12px 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.product-name a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price, .price-sale {
    font-size: 17px;
    font-weight: 700;
    color: var(--secondary-color);
}

.price-sale {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #E85050);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ===== BANNER SECTION ===== */
.banner-section {
    padding: 0 0 80px;
}

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

.banner-card {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 50px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18,18,31,0.6), rgba(194,59,59,0.15));
    border-radius: var(--radius-lg);
}

.banner-content {
    position: relative;
    color: #fff;
}

.banner-subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.banner-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 25px;
}

/* ===== INSTAGRAM SECTION ===== */
.instagram-section {
    padding: 80px 0;
}

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

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    font-size: 30px;
    color: #fff;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, var(--bg-dark), #0A0A14);
    color: #fff;
}

.footer-top {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 28px;
    margin-bottom: 20px;
}

.footer-column p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    background: rgba(255,255,255,0.05);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(194,59,59,0.3);
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
}

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

.footer-column ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: #fff;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    background-color: rgba(255,255,255,0.12);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form button {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: var(--transition);
}

.newsletter-form button:hover {
    filter: brightness(1.1);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

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

/* ===== SHOP PAGE ===== */
.shop-header {
    background-color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.shop-header h1 {
    font-family: var(--font-primary);
    font-size: 42px;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

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

.shop-content {
    flex: 1;
}

/* Shop Sidebar */
.shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Mobile Sidebar Header - Hidden on desktop */
.sidebar-header-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header-mobile h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.sidebar-close:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.category-list li {
    margin-bottom: 12px;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-color);
    padding: 8px 0;
}

.category-list li a:hover,
.category-list li a.active {
    color: var(--primary-color);
}

.category-list li a span {
    font-size: 12px;
    color: var(--text-muted);
}

.price-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-filter input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    outline: none;
}

.price-filter input:focus {
    border-color: var(--primary-color);
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.results-count {
    font-size: 14px;
    color: var(--text-muted);
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    outline: none;
    cursor: pointer;
}

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

.pagination a, .pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pagination a:hover, .pagination span.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(194,59,59,0.3);
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    margin-bottom: 15px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    box-shadow: var(--shadow);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail-images img {
    aspect-ratio: 1;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    border-color: var(--primary-color);
}

.product-detail-info h1 {
    font-family: var(--font-primary);
    font-size: 36px;
    margin-bottom: 15px;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.product-detail-price .price {
    font-size: 28px;
    font-weight: 600;
}

.product-detail-price .price-sale {
    font-size: 28px;
    font-weight: 600;
    color: var(--error-color);
}

.product-detail-price .price-original {
    font-size: 20px;
}

.product-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.product-meta {
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.product-meta p {
    margin-bottom: 10px;
    font-size: 14px;
}

.product-meta span {
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.quantity-selector label {
    font-size: 14px;
    font-weight: 500;
}

.quantity-input {
    display: flex;
    border: 1px solid var(--border-color);
}

.quantity-input button {
    width: 45px;
    height: 45px;
    font-size: 16px;
    background-color: var(--bg-light);
}

.quantity-input input {
    width: 60px;
    height: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    outline: none;
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    font-size: 14px;
    margin-bottom: 15px;
}

/* ===== CART PAGE ===== */
.cart-page {
    padding: 60px 0;
}

.cart-page h1 {
    font-family: var(--font-primary);
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

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

.cart-items {
    background-color: #fff;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    aspect-ratio: 1;
    overflow: hidden;
}

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

.cart-item-info h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-item-quantity {
    display: flex;
    border: 1px solid var(--border-color);
}

.cart-item-quantity button {
    width: 35px;
    height: 35px;
}

.cart-item-quantity input {
    width: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

.cart-item-remove {
    color: var(--text-muted);
    font-size: 18px;
}

.cart-item-remove:hover {
    color: var(--error-color);
}

/* Cart Summary */
.cart-summary {
    background: linear-gradient(135deg, var(--bg-light), #FAF5F3);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.cart-summary h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--secondary-color);
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
    padding: 60px 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.checkout-form h2 {
    font-size: 20px;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-methods {
    margin-top: 30px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--primary-color);
}

.payment-option input {
    width: auto;
}

/* Order Summary */
.order-summary {
    background: linear-gradient(135deg, var(--bg-light), #FAF5F3);
    padding: 30px;
    height: fit-content;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.order-summary h3 {
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
}

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

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.order-item-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.order-item-price {
    font-weight: 600;
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background-color: #fff;
    padding: 50px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.auth-container h1 {
    font-family: var(--font-primary);
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
}

.auth-container .form-group {
    margin-bottom: 25px;
}

.auth-container .btn {
    width: 100%;
    margin-top: 10px;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 500;
}

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

@media (max-width: 992px) {
    .header-container {
        padding: 15px 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: static;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-content {
        left: 5%;
        right: 5%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .categories-slider-wrapper {
        padding: 0 42px;
    }
    .categories-slider-wrapper::before,
    .categories-slider-wrapper::after {
        width: 42px;
    }

    .category-card {
        flex: 0 0 120px;
    }

    .category-image {
        width: 120px;
        height: 120px;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
    }
    
    .cart-item-quantity,
    .cart-item-price {
        grid-column: 2;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .hero-nav button {
        display: none;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .flash-messages {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}

/* ===== SHOP PAGE STYLES ===== */
.shop-page {
    padding-bottom: 100px;
    min-height: calc(100vh - 120px);
}

.shop-page .page-header {
    background: var(--bg-light);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.shop-page .page-header h1 {
    font-family: var(--font-primary);
    font-size: 36px;
    margin-bottom: 10px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(232,228,226,0.5);
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.filter-title:hover {
    color: var(--primary-color);
}

.filter-arrow {
    transition: transform 0.3s ease;
}

.filter-content {
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-content:not(.open) {
    max-height: 0;
    margin-bottom: 0;
}

.filter-content.open {
    max-height: 300px;
    margin-bottom: 15px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    transition: var(--transition);
}

.filter-list a:hover,
.filter-list a.active {
    background: linear-gradient(135deg, rgba(194,59,59,0.05), rgba(212,149,106,0.05));
    color: var(--primary-color);
}

.filter-list .count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Sale filter link special style */
.filter-list a.sale-filter-link {
    font-weight: 600;
    color: var(--primary-color);
}

.filter-list a.sale-filter-link:hover,
.filter-list a.sale-filter-link.active {
    background: linear-gradient(135deg, rgba(194,59,59,0.08), rgba(194,59,59,0.04));
    color: var(--primary-color);
}

.filter-list a.sale-filter-link .sale-fire {
    margin-right: 4px;
}

.filter-list .sale-count {
    font-size: 11px;
    background: linear-gradient(135deg, var(--primary-color), #E85050);
    color: #fff;
    padding: 1px 8px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    margin-left: 4px;
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.price-inputs input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 100%;
    transition: var(--transition);
}

.price-inputs input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(194,59,59,0.1);
    outline: none;
}

.price-filter .btn-sm {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 12px;
}

.mobile-filter-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, var(--bg-light), #FAF5F3);
    border-radius: var(--radius-md);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.sort-dropdown select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
}

.results-info {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--bg-light), #FAF5F3);
    border-radius: var(--radius-lg);
}

.no-products i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-products h3 {
    margin-bottom: 10px;
}

.no-products p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Mobile Filter Overlay */
.mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.mobile-filter-overlay.active {
    display: block;
}

.mobile-filter-content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: #fff;
    overflow-y: auto;
}

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

.close-filter {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.mobile-filter-body {
    padding: 20px;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-page {
    padding: 40px 0 60px;
}

.product-detail-page .breadcrumb {
    margin-bottom: 30px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-gallery .main-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-light);
    box-shadow: var(--shadow);
}

.product-gallery .main-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
}

.product-info-detail .product-category-label {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.product-info-detail .product-title {
    font-family: var(--font-primary);
    font-size: 32px;
    margin-bottom: 20px;
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-price-detail .price-current {
    font-size: 28px;
    font-weight: 600;
    color: var(--secondary-color);
}

.product-price-detail .price-original {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price-detail .discount-tag {
    background: linear-gradient(135deg, var(--primary-color), #E85050);
    color: #fff;
    padding: 5px 14px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(194,59,59,0.3);
}

.product-description {
    margin-bottom: 25px;
    color: var(--text-light);
    line-height: 1.8;
}

.stock-status {
    margin-bottom: 25px;
}

.stock-status span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
}

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

.stock-status .low-stock {
    background: #fff3e0;
    color: #e65100;
}

.stock-status .out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.quantity-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-input .qty-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.quantity-input .qty-btn:hover {
    background: var(--bg-light);
}

.quantity-input input {
    width: 60px;
    height: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.action-buttons .btn-lg {
    padding: 16px 40px;
    font-size: 14px;
}

.action-buttons .add-to-cart {
    flex: 1;
}

.action-buttons .wishlist-btn {
    padding: 16px 20px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.product-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.product-features .feature i {
    color: var(--primary-color);
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
    padding: 40px 0 60px;
}

.checkout-page .page-title {
    font-family: var(--font-primary);
    font-size: 32px;
    margin-bottom: 30px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.checkout-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(232,228,226,0.5);
}

.checkout-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.checkout-section h2 i {
    color: var(--primary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(194,59,59,0.1);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.payment-option input:checked + .payment-card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(194,59,59,0.03), rgba(212,149,106,0.03));
    box-shadow: 0 4px 16px rgba(194,59,59,0.1);
}

.payment-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 24px;
    background: var(--bg-light);
    color: var(--secondary-color);
}

.payment-icon.wish {
    background: #e3f2fd;
    color: #1565c0;
}

.payment-icon.omt {
    background: #fff3e0;
    color: #e65100;
}

.payment-info h4 {
    margin-bottom: 5px;
}

.payment-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Mobile Payment Methods */
@media (max-width: 768px) {
    .payment-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 12px;
    }
    
    .payment-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .payment-info h4 {
        font-size: 14px;
    }
    
    .payment-info p {
        font-size: 12px;
    }
    
    .payment-details {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .payment-instructions {
        padding: 15px;
    }
    
    .payment-instructions ol {
        padding-left: 15px;
    }
    
    .payment-instructions ol li {
        font-size: 13px;
    }
    
    .file-upload-label {
        padding: 25px 15px;
    }
    
    .file-upload-label i {
        font-size: 28px;
    }
    
    .file-upload-label span {
        font-size: 13px;
    }
    
    .file-upload-label small {
        font-size: 11px;
    }
}

.payment-details {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.payment-instructions {
    background: linear-gradient(135deg, #e3f2fd, #d1ecf1);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.payment-instructions h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #1565c0;
}

.payment-instructions ol {
    padding-left: 20px;
    list-style: decimal;
}

.payment-instructions ol li {
    margin-bottom: 8px;
    color: var(--text-color);
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    pointer-events: none;
}

.file-upload:hover .file-upload-label {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(194,59,59,0.03), rgba(212,149,106,0.03));
}

.file-upload-label i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-upload-label small {
    color: var(--text-muted);
}

.file-preview {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.file-preview img {
    max-width: 200px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Order Summary */
.order-summary .summary-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    border: 1px solid rgba(232,228,226,0.5);
}

.order-summary h2 {
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-items {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.summary-item .item-image {
    position: relative;
    width: 60px;
    height: 60px;
}

.summary-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.summary-item .item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: #fff;
    font-size: 11px;
    border-radius: 50%;
}

.summary-item .item-details {
    flex: 1;
}

.summary-item .item-details h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.summary-item .item-details p {
    font-size: 12px;
    color: var(--text-muted);
}

.summary-item .item-total {
    font-weight: 600;
}

.summary-totals {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.summary-row .free {
    color: var(--success-color);
    font-weight: 600;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid var(--secondary-color);
}

.free-shipping-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #e8f5e9;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #2e7d32;
}

.place-order {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    font-size: 15px;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.secure-checkout i {
    color: var(--success-color);
}

/* ===== ORDERS PAGE ===== */
.orders-page {
    padding: 40px 0 60px;
}

.orders-page .page-title {
    font-family: var(--font-primary);
    font-size: 32px;
    margin-bottom: 30px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(232,228,226,0.5);
    transition: var(--transition);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-light), #FAF5F3);
    border-bottom: 1px solid var(--border-color);
}

.order-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.order-date {
    font-size: 13px;
    color: var(--text-muted);
}

.order-status {
    display: flex;
    gap: 10px;
}

.status-badge,
.payment-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending { background: #fff3e0; color: #e65100; }
.status-payment_review { background: #e3f2fd; color: #1565c0; }
.status-confirmed { background: #e8f5e9; color: #2e7d32; }
.status-processing { background: #f3e5f5; color: #7b1fa2; }
.status-shipped { background: #e3f2fd; color: #1565c0; }
.status-delivered { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #ffebee; color: #c62828; }
.status-payment_denied { background: #ffebee; color: #c62828; }

.payment-pending { background: #fff3e0; color: #e65100; }
.payment-awaiting_verification { background: #e3f2fd; color: #1565c0; }
.payment-paid { background: #e8f5e9; color: #2e7d32; }
.payment-failed { background: #ffebee; color: #c62828; }
.payment-denied { background: #ffebee; color: #c62828; }

/* Order Timeline */
.order-timeline {
    display: flex;
    align-items: center;
    padding: 30px 20px;
    overflow-x: auto;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}

.timeline-step .step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-muted);
    transition: var(--transition);
}

.timeline-step.completed .step-icon {
    background: var(--success-color);
    color: #fff;
}

.timeline-step.active .step-icon {
    background: var(--primary-color);
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 124, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(201, 168, 124, 0); }
}

.timeline-step span {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.timeline-step.completed span {
    color: var(--success-color);
}

.timeline-line {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    min-width: 40px;
}

.timeline-line.completed {
    background: var(--success-color);
}

.order-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    margin: 0 20px 20px;
    border-radius: 8px;
}

.order-alert.alert-danger {
    background: #ffebee;
    color: #c62828;
}

.order-alert.alert-info {
    background: #e3f2fd;
    color: #1565c0;
}

.order-alert i {
    font-size: 20px;
    margin-top: 2px;
}

.order-items {
    padding: 0 20px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.order-item .item-image {
    width: 60px;
    height: 60px;
}

.order-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.order-item .item-details {
    flex: 1;
}

.order-item .item-details h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.order-item .item-details p {
    font-size: 12px;
    color: var(--text-muted);
}

.order-item .item-total {
    font-weight: 600;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.order-details p {
    font-size: 13px;
    margin-bottom: 5px;
}

.order-total span {
    margin-right: 10px;
}

.order-total strong {
    font-size: 20px;
}

.order-price-breakdown {
    min-width: 280px;
    text-align: right;
}

.order-price-breakdown .price-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.order-price-breakdown .price-row.discount {
    color: var(--primary-color);
}

.order-price-breakdown .price-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 8px;
    padding-top: 8px;
    font-size: 16px;
    color: var(--text-primary);
}

.empty-orders {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-light), #FAF5F3);
    border-radius: var(--radius-lg);
}

.empty-orders i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-orders h2 {
    margin-bottom: 10px;
}

.empty-orders p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(194,59,59,0.3);
}

.page-dots {
    padding: 0 10px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        z-index: 2000;
        overflow-y: auto;
        padding: 20px;
        border-radius: 0;
        transition: left 0.3s ease;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .shop-sidebar.active {
        left: 0;
    }
    
    .sidebar-header-mobile {
        display: flex;
    }
    
    .mobile-filter-bar {
        display: flex;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .order-summary .summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn-lg {
        width: 100%;
    }
    
    .order-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .order-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .timeline-step {
        min-width: 70px;
    }
    
    .timeline-step span {
        font-size: 10px;
    }
}

/* ===== ENHANCED MOBILE RESPONSIVE STYLES ===== */

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* ===== MOBILE: max-width 992px ===== */
@media (max-width: 992px) {
    /* Header */
    .header-container {
        padding: 12px 15px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .logo-sub {
        font-size: 8px;
        letter-spacing: 2px;
    }
    
    .header-actions {
        gap: 12px;
    }
    
    .search-btn, .login-btn, .cart-btn, .user-btn, .wishlist-btn {
        font-size: 16px;
    }
    
    /* Hero */
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .product-price {
        font-size: 13px;
    }
    
    /* Product Actions - Always visible on touch devices */
    .product-actions {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        bottom: 10px;
        left: 50%;
        right: auto;
        gap: 6px;
        width: auto;
        display: flex;
        justify-content: center;
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .mobile-filter-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .filter-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        background: var(--bg-light);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 500;
    }
    
    /* Product Detail */
    .product-detail {
        gap: 30px;
    }
    
    .product-gallery .main-image {
        border-radius: 8px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .price-current {
        font-size: 22px;
    }
    
    /* Cart */
    .cart-page .container {
        padding: 0 15px;
    }
    
    .cart-item {
        padding: 15px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    /* Checkout */
    .checkout-page .container {
        padding: 0 15px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .summary-card {
        padding: 20px;
    }
}

/* ===== MOBILE: max-width 768px ===== */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Announcement Bar */
    .announcement-bar {
        padding: 8px 15px;
        font-size: 11px;
    }
    
    /* Header */
    .header-container {
        padding: 10px 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    /* Show wishlist icon on mobile */
    .wishlist-btn {
        display: flex;
    }
    
    .wishlist-count {
        font-size: 9px;
    }
    
    /* Hero Section */
    .hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content {
        left: 15px;
        right: 15px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 26px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .hero-nav {
        display: none;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 12px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-card i {
        font-size: 28px;
    }
    
    .feature-card h3 {
        font-size: 14px;
    }
    
    .feature-card p {
        font-size: 12px;
    }
    
    /* Categories Slider */
    .categories-slider-wrapper {
        padding: 0 8px;
    }
    .categories-slider-wrapper::before,
    .categories-slider-wrapper::after {
        display: none;
    }

    .cat-slider-btn {
        display: none;
    }

    .category-card {
        flex: 0 0 100px;
    }

    .category-image {
        width: 90px;
        height: 90px;
    }
    
    .category-name {
        font-size: 14px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-category {
        font-size: 10px;
    }
    
    .product-name {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .product-price {
        font-size: 12px;
    }
    
    .product-badge {
        font-size: 9px;
        padding: 4px 8px;
        top: 10px;
        left: 10px;
    }
    
    /* Banner Grid */
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .banner-card {
        height: 250px;
        padding: 30px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    /* Newsletter Section */
    .newsletter-section {
        padding: 50px 15px;
    }
    
    .newsletter-section h2 {
        font-size: 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .newsletter-form button {
        width: 100%;
        justify-content: center;
    }
    
    /* Instagram Grid */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    /* Footer */
    .footer-top {
        padding: 40px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column h3,
    .footer-column h4 {
        margin-bottom: 15px;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    /* Shop Page */
    .shop-page .page-header {
        padding: 40px 15px;
    }
    
    .shop-page .page-header h1 {
        font-size: 24px;
    }
    
    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .results-info {
        font-size: 12px;
    }
    
    .shop-search-form {
        flex-direction: column;
    }
    
    .shop-search-form input {
        width: 100%;
    }
    
    /* Product Detail Page */
    .product-detail-page {
        padding: 20px 0;
    }
    
    .product-detail {
        gap: 25px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .main-image {
        margin-bottom: 10px;
    }
    
    .thumbnail-images {
        gap: 8px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .gallery-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .gallery-counter {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .product-info-detail .product-title {
        font-size: 22px;
    }
    
    .product-price-detail .price-current {
        font-size: 22px;
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .product-features {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Related Products */
    .related-products {
        margin-top: 40px;
    }
    
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Cart Page */
    .cart-page {
        padding: 20px 0;
    }
    
    .cart-page h1 {
        font-size: 24px;
        text-align: center;
    }
    
    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 12px;
        padding: 15px;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-details h3 {
        font-size: 14px;
    }
    
    .cart-item-quantity,
    .cart-item-price,
    .cart-item-remove {
        grid-column: 2;
    }
    
    .qty-btn {
        width: 30px;
        height: 30px;
    }
    
    .cart-summary {
        padding: 20px;
    }
    
    /* Checkout Page */
    .checkout-page {
        padding: 20px 0;
    }
    
    .checkout-page h1 {
        font-size: 24px;
        text-align: center;
    }
    
    .form-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .form-section h2 {
        font-size: 18px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Order Confirmation */
    .order-confirmation {
        padding: 30px 15px;
    }
    
    .order-confirmation h1 {
        font-size: 24px;
    }
    
    /* Orders Page */
    .orders-page .order-card {
        padding: 15px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-items {
        gap: 15px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-item-image {
        width: 60px;
        height: 60px;
    }
    
    /* Auth Pages */
    .auth-page {
        padding: 30px 15px;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .auth-container h1 {
        font-size: 24px;
    }
    
    /* Profile Page */
    .profile-page .container {
        padding: 0 15px;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    /* About Page */
    .about-hero {
        height: 40vh;
        min-height: 250px;
    }
    
    .about-hero h1 {
        font-size: 28px;
    }
    
    .about-section {
        padding: 40px 15px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Contact Page */
    .contact-page {
        padding: 40px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    /* Wishlist Page */
    .wishlist-page {
        padding: 30px 0;
    }
    
    .wishlist-page h1 {
        font-size: 24px;
        text-align: center;
    }
    
    /* Flash Messages */
    .flash-messages {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        top: 80px;
    }
    
    .flash-message {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* User Menu Dropdown */
    .user-dropdown {
        right: -50px;
        min-width: 180px;
    }
    
    /* Search Modal */
    .search-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .search-form input {
        font-size: 18px;
        padding: 15px 0;
    }
}

/* ===== MOBILE: max-width 480px (Small phones) ===== */
@media (max-width: 480px) {
    /* Header */
    .header-container {
        padding: 10px 12px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-sub {
        display: none;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .search-btn, .login-btn, .cart-btn, .user-btn {
        font-size: 15px;
    }
    
    /* Hero */
    .hero {
        height: 45vh;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 12px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 11px;
    }
    
    /* Products Grid - Single column option */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 11px;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .feature-card {
        padding: 15px 10px;
    }
    
    .feature-card i {
        font-size: 24px;
    }
    
    .feature-card h3 {
        font-size: 12px;
    }
    
    .feature-card p {
        display: none;
    }
    
    /* Categories */
    .categories-slider-wrapper {
        padding: 0 4px;
    }

    .category-card {
        flex: 0 0 78px;
    }

    .category-image {
        width: 68px;
        height: 68px;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    /* Banner */
    .banner-card {
        height: 200px;
        padding: 20px;
    }
    
    .banner-title {
        font-size: 20px;
    }
    
    /* Product Detail */
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .gallery-nav-btn {
        width: 34px;
        height: 34px;
    }
    
    .product-info-detail .product-title {
        font-size: 20px;
    }
    
    .product-price-detail .price-current {
        font-size: 20px;
    }
    
    /* Cart */
    .cart-item {
        grid-template-columns: 60px 1fr;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-details h3 {
        font-size: 13px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 20px;
    }
    
    /* Footer */
    .footer-column p,
    .footer-column li {
        font-size: 13px;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Always show product actions on touch devices */
    .product-actions {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        left: 50%;
        right: auto;
    }
    
    /* Larger touch targets */
    .action-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .qty-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Remove hover effects that don't work on touch */
    .product-card:hover {
        transform: none;
    }
    
    .product-card:hover .product-image img {
        transform: none;
    }
    
    /* Active states instead */
    .product-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* ===== LANDSCAPE MODE ADJUSTMENTS ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .footer,
    .mobile-menu,
    .flash-messages,
    .product-actions {
        display: none !important;
    }
    
    .main-content {
        padding-top: 0;
    }
}
