/**
 * MODA SHOP - E-Commerce Module Styles
 * WhatsApp Commerce System - Professional Edition
 */

/* ===== Base Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Variables ===== */
:root {
    /* Base Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;

    /* Shop Colors */
    --shop-pink: #ec4899;
    --shop-orange: #f97316;
    --shop-purple: #8b5cf6;
    --shop-cyan: #06b6d4;
    --shop-green: #10b981;
    --shop-gradient: linear-gradient(135deg, #ec4899, #f97316);
    --shop-card-bg: rgba(17, 17, 17, 0.8);
    --shop-border: rgba(255, 255, 255, 0.1);
    --whatsapp-green: #25D366;
}

[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --shop-card-bg: rgba(255, 255, 255, 0.9);
    --shop-border: rgba(0, 0, 0, 0.1);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Shop Navbar ===== */
.shop-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--shop-border);
    transition: all 0.3s ease;
}

.shop-navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .shop-navbar {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .shop-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.shop-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.shop-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
}

.shop-logo-icon {
    width: 45px;
    height: 45px;
    background: var(--shop-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.shop-logo-text {
    background: var(--shop-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Menu */
.shop-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.shop-nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.shop-nav-link:hover,
.shop-nav-link.active {
    color: var(--text-primary);
}

.shop-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--shop-gradient);
    transition: width 0.3s ease;
}

.shop-nav-link:hover::after,
.shop-nav-link.active::after {
    width: 100%;
}

/* Nav Actions */
.shop-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shop-theme-btn,
.shop-cart-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.shop-theme-btn:hover,
.shop-cart-btn:hover {
    background: var(--shop-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.shop-cart-btn .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-lang-select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
}

.shop-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--whatsapp-green);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.shop-whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

/* Mobile Menu Toggle */
.shop-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.shop-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 992px) {
    .shop-nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--shop-border);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .shop-nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .shop-nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
    }

    .shop-menu-toggle {
        display: flex;
    }

    .shop-whatsapp-btn span {
        display: none;
    }
}

@media (max-width: 576px) {
    .shop-navbar .container {
        height: 70px;
    }

    .shop-logo {
        font-size: 1.25rem;
    }

    .shop-logo-icon {
        width: 38px;
        height: 38px;
    }

    .shop-nav-actions {
        gap: 0.5rem;
    }

    .shop-theme-btn,
    .shop-cart-btn {
        width: 38px;
        height: 38px;
    }
}

/* ===== Shop Hero ===== */
.shop-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(249, 115, 22, 0.1));
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.shop-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.shop-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--shop-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Story Style Slider ===== */
.story-slider-section {
    padding: 30px 0 20px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--shop-border);
}

.story-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.story-slider {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.story-slider::-webkit-scrollbar {
    display: none;
}

.story-slider:active {
    cursor: grabbing;
}

.story-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.story-item:hover {
    transform: translateY(-5px);
}

.story-circle {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #ec4899, #f97316, #8b5cf6, #06b6d4, #ec4899);
    background-size: 300% 300%;
    animation: gradientRotate 4s ease infinite;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background: inherit;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.story-item:hover .story-circle::before {
    opacity: 0.6;
}

.story-item:hover .story-circle {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.story-circle-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-primary);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-circle-inner img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-item:hover .story-circle-inner img {
    transform: scale(1.1);
}

.story-circle-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.story-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    max-width: 85px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.story-item:hover .story-name {
    color: var(--shop-pink);
}

/* Story slider navigation */
.story-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--shop-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.story-slider-wrapper:hover .story-nav {
    opacity: 1;
}

.story-nav:hover {
    background: var(--shop-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.story-nav-prev {
    left: 10px;
}

.story-nav-next {
    right: 10px;
}

/* Story item with "new" indicator */
.story-circle.has-new::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10b981;
    border: 3px solid var(--bg-primary);
}

/* Story section title */
.story-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.story-section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-section-header h3 i {
    background: var(--shop-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.story-view-all {
    font-size: 0.85rem;
    color: var(--shop-pink);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.story-view-all:hover {
    color: var(--shop-orange);
}

/* Responsive story slider */
@media (max-width: 768px) {
    .story-circle {
        width: 72px;
        height: 72px;
    }

    .story-name {
        font-size: 0.7rem;
        max-width: 72px;
    }

    .story-slider {
        gap: 1rem;
        padding: 8px 0 15px;
    }

    .story-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .story-circle {
        width: 65px;
        height: 65px;
    }

    .story-name {
        font-size: 0.65rem;
        max-width: 65px;
    }
}

/* ===== Category Slider ===== */
.category-slider-section {
    padding: 60px 0;
    overflow: hidden;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.slider-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--shop-gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
}

.category-slider {
    position: relative;
    overflow: hidden;
}

.category-slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
}

.category-slider-track:active {
    cursor: grabbing;
}

.category-slide {
    flex: 0 0 300px;
    min-width: 300px;
}

/* ===== Category Cards ===== */
.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.3);
}

.category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-card-image {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.2) 100%);
}

.category-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-card-icon {
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.category-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.category-card-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.category-card-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.category-card:hover .category-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Categories Grid ===== */
.categories-grid-section {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ===== Products Grid ===== */
.products-section {
    padding: 60px 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.products-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.products-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 25px;
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--shop-gradient);
    color: white;
    border-color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ===== Product Card ===== */
.product-card {
    background: var(--shop-card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--shop-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--shop-pink);
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.2);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-yeni { background: #10b981; color: white; }
.tag-new { background: #10b981; color: white; }
.tag-indirim { background: #ef4444; color: white; }
.tag-populer { background: #f97316; color: white; }
.tag-popular { background: #f97316; color: white; }
.tag-trend { background: #8b5cf6; color: white; }
.tag-trending { background: #8b5cf6; color: white; }
.tag-premium { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1a1a; }
.tag-encoksatan { background: linear-gradient(135deg, #ec4899, #f97316); color: white; }
.tag-bestseller { background: linear-gradient(135deg, #ec4899, #f97316); color: white; }
.tag-hediye { background: #f43f5e; color: white; }
.tag-gift { background: #f43f5e; color: white; }
.tag-luks { background: linear-gradient(135deg, #1a1a1a, #333); color: #fbbf24; }
.tag-luxury { background: linear-gradient(135deg, #1a1a1a, #333); color: #fbbf24; }
.tag-ekonomik { background: #06b6d4; color: white; }
.tag-budget { background: #06b6d4; color: white; }

.product-actions-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-actions-overlay {
    opacity: 1;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.action-btn:hover {
    transform: scale(1.15);
}

.action-btn.cart-btn:hover {
    background: var(--shop-gradient);
    color: white;
}

.action-btn.whatsapp-btn:hover {
    background: var(--whatsapp-green);
    color: white;
}

.product-card-content {
    padding: 1.25rem;
}

.product-category {
    font-size: 0.75rem;
    color: var(--shop-pink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-code {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #fbbf24;
    font-size: 0.8rem;
}

.rating-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--shop-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #ef4444;
    color: white;
    font-weight: 600;
}

.product-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    background: var(--shop-gradient);
    color: white;
    border-color: transparent;
}

.btn-whatsapp-order {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--whatsapp-green);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp-order:hover {
    background: #128C7E;
    transform: scale(1.05);
}

/* ===== Cart Widget ===== */
.cart-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.cart-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--shop-gradient);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.cart-btn:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ===== Cart Drawer ===== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0,0,0,0.3);
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--shop-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-close-btn:hover {
    background: #ef4444;
    color: white;
    border-color: transparent;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--shop-card-bg);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--shop-border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-code {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--shop-pink);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--shop-border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--shop-gradient);
    color: white;
    border-color: transparent;
}

.qty-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-remove {
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.2s;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--shop-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cart-total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--shop-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-checkout-form {
    margin-bottom: 1rem;
}

.cart-checkout-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--shop-border);
    background: var(--shop-card-bg);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.cart-checkout-form input:focus {
    outline: none;
    border-color: var(--shop-pink);
}

.cart-checkout-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--shop-border);
    background: var(--shop-card-bg);
    color: var(--text-primary);
    resize: none;
    font-size: 0.95rem;
    font-family: inherit;
}

.btn-whatsapp-checkout {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: var(--whatsapp-green);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-whatsapp-checkout:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-checkout i {
    font-size: 1.25rem;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--shop-pink);
}

.breadcrumb i {
    font-size: 0.7rem;
}

.breadcrumb .current {
    color: var(--text-primary);
}

/* ===== Subcategories Grid ===== */
.subcategories-section {
    padding: 60px 0;
}

.subcategory-card {
    background: var(--shop-card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--shop-border);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    border-color: var(--shop-pink);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.15);
}

.subcategory-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.subcategory-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.subcategory-card:hover .subcategory-card-image img {
    transform: scale(1.05);
}

.subcategory-product-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.75rem;
    color: white;
}

.subcategory-card-content {
    padding: 1.25rem;
}

.subcategory-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subcategory-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-color: #10b981;
}

.toast-success i {
    color: #10b981;
}

.toast-error {
    border-color: #ef4444;
}

.toast-error i {
    color: #ef4444;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .shop-hero {
        padding: 100px 0 40px;
    }

    .shop-hero h1 {
        font-size: 2rem;
    }

    .category-slide {
        flex: 0 0 260px;
        min-width: 260px;
    }

    .slider-controls {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card-content {
        padding: 1rem;
    }

    .product-card h3 {
        font-size: 0.9rem;
    }

    .current-price {
        font-size: 1.1rem;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .cart-widget {
        bottom: 80px;
        right: 20px;
    }

    .cart-btn {
        width: 55px;
        height: 55px;
    }

    .product-buttons {
        flex-direction: column;
    }

    .btn-whatsapp-order {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-filters {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile performance - replace backdrop-filter with solid bg */
@media (max-width: 1024px) {
    .shop-navbar {
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .shop-navbar.scrolled {
        background: rgba(0, 0, 0, 0.98) !important;
    }
    [data-theme="light"] .shop-navbar {
        background: rgba(255, 255, 255, 0.97) !important;
    }

    /* Remove all backdrop-filter on mobile */
    *,
    *::before,
    *::after {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Disable hover transforms on touch */
    .product-card:hover {
        transform: none !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    }
}

/* Mobile layout fixes */
@media (max-width: 768px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100% !important;
    }

    .filter-bar {
        padding: 0.75rem !important;
    }

    .shop-hero {
        padding: 100px 0 30px !important;
    }

    .shop-hero h1 {
        font-size: 1.5rem !important;
    }

    .shop-hero .shop-search {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .product-card {
        border-radius: 12px !important;
    }

    .product-card-content {
        padding: 8px !important;
    }

    .product-card h3 {
        font-size: 0.8rem !important;
        line-height: 1.2;
    }

    .product-category {
        font-size: 0.65rem !important;
    }

    .product-code {
        display: none !important;
    }

    .product-colors-mini {
        display: none !important;
    }

    .product-sizes-mini {
        display: none !important;
    }

    .current-price {
        font-size: 0.9rem !important;
    }

    .old-price, .discount-badge {
        font-size: 0.7rem !important;
    }

    .product-buttons .btn-whatsapp-only,
    .product-buttons button,
    .product-buttons a {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.6rem !important;
    }

    .btn-whatsapp-only i,
    .product-buttons i {
        font-size: 0.8rem !important;
    }
}
