/* ==================== VARIABLES ==================== */
:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --secondary: #ff3366;
    --accent: #00d4aa;
    --dark: #0a0f1c;
    --dark-light: #1a1f2e;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --gray-lighter: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--gray-lighter);
    overflow-x: hidden;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

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

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

/* ==================== HEADER ==================== */
.header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    position: sticky;
    top: 0;
    z-index: 100 !important;
    box-shadow: var(--shadow-lg);
    overflow: visible;
}

.header-top {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray-light);
}

.header-left .location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-right {
    display: flex;
    gap: 24px;
}

.header-link:hover {
    color: var(--white);
}

.header-main {
    padding: 16px 0;
}

.header-main-content {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 32px;
    align-items: center;
}

/* Logo */
.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-tagline {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Search Bar */
.search-bar {
    position: relative;
}

.search-form {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.search-category {
    padding: 14px 16px;
    border: none;
    background: var(--gray-lighter);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-width: 140px;
    color: var(--dark);
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 15px;
    color: var(--dark);
}

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

.search-input:focus {
    outline: none;
}

.search-button {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-button:hover {
    transform: scale(1.05);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-btn {
    background: var(--secondary);
    padding: 8px 16px;
}

.cart-btn:hover {
    background: #ff1a4d;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent);
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Navigation - una sola línea tipo Amazon */
.header-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    overflow: visible;
    position: relative;
    z-index: 101 !important;
}

.header-nav .container {
    overflow: visible;
    position: relative;
    z-index: 101 !important;
}

/* Contenedor del nav con flechas (estilo Amazon) */
.header-nav-container {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

/* Altura fija para que las flechas queden a la altura de la línea de categorías, no del bloque completo */
.nav-arrow {
    flex-shrink: 0;
    width: 36px;
    min-width: 36px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.nav-arrow--right {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
}
.nav-arrow:disabled,
.nav-arrow[aria-hidden="true"] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Zona con scroll horizontal */
.nav-list-scroll {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.nav-list-scroll::-webkit-scrollbar {
    display: none;
}

/* Portal: dropdown se clona aquí para no ser recortado por el scroll del nav */
.nav-dropdown-portal {
    position: fixed;
    z-index: 102;
    pointer-events: none;
}
.nav-dropdown-portal .nav-dropdown {
    pointer-events: auto;
}

.nav-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.nav-list-scroll .nav-list::-webkit-scrollbar {
    display: none;
}

.nav-list > li {
    flex-shrink: 0;
}

.nav-list a {
    display: block;
    padding: 12px 14px;
    color: var(--gray-light);
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-special {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--warning) 100%) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
}

/* Dropdown: una línea de categorías, al hover se ve el panel de productos (z-index alto) */
.nav-list--with-dropdown {
    flex-wrap: nowrap;
}

.nav-item--has-dropdown {
    position: relative;
    z-index: 101 !important;
}

.nav-item--has-dropdown > .nav-link-category {
    padding-right: 22px;
}

.nav-item--has-dropdown > .nav-link-category::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-40%);
    border: 4px solid transparent;
    border-top-color: currentColor;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    max-width: 320px;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 101 !important;
}
.nav-item--has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown li {
    margin: 0;
}

.nav-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #e2e8f0;
    white-space: normal;
    line-height: 1.35;
    border-radius: 0;
}

.nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding: 32px 0 64px;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--dark);
    transition: var(--transition);
}

.category-item:hover {
    background: var(--gray-lighter);
}

.category-item.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.category-item .count {
    font-size: 12px;
    color: var(--gray);
    background: var(--gray-lighter);
    padding: 2px 8px;
    border-radius: 12px;
}

.category-item.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Price Range */
.price-range {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.price-input {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

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

.price-separator {
    color: var(--gray);
    font-weight: 600;
}

.filter-apply-btn {
    width: 100%;
    padding: 10px;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.filter-apply-btn:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label .count {
    margin-left: auto;
    font-size: 12px;
    color: var(--gray);
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.promo-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.promo-content p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.promo-btn {
    width: 100%;
    padding: 10px;
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== PRODUCTS SECTION ==================== */
.products-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.results-info h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.results-info p {
    font-size: 15px;
    color: var(--gray);
}

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

.sort-controls label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
}

.sort-select {
    padding: 10px 16px;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-width: 200px;
    transition: var(--transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.product-badge.sale {
    left: 12px;
    background: var(--secondary);
    color: var(--white);
}

.product-badge.stock {
    right: 12px;
    background: var(--warning);
    color: var(--white);
}

/* Product Image */
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-lighter);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 16px;
    opacity: 0;
    transition: var(--transition);
}

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

.overlay-btn {
    padding: 10px 20px;
    background: var(--white);
    color: var(--dark);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
}

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

.overlay-btn.icon-btn {
    width: auto;
    padding: 10px;
}

/* Product Info */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.stars {
    color: var(--warning);
    font-size: 14px;
    letter-spacing: 2px;
}

.rating-count {
    font-size: 12px;
    color: var(--gray);
}

/* Product Footer */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-lighter);
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-old {
    font-size: 13px;
    color: var(--gray);
    text-decoration: line-through;
}

.price-current {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

a.add-to-cart-btn {
    text-decoration: none;
}

.commission-badge {
    background: linear-gradient(135deg, var(--accent) 0%, var(--success) 100%);
    color: var(--dark);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    margin-top: 8px;
}

/* No Results */
.no-results {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 64px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.no-results svg {
    margin: 0 auto 24px;
    color: var(--gray-light);
}

.no-results h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.no-results p {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 24px;
}

.reset-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.reset-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    margin-bottom: 48px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* ==================== PRODUCTS SECTIONS ==================== */
.products-section {
    margin-bottom: 64px;
}

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

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
}

.view-all {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.view-all:hover {
    text-decoration: underline;
}

.sale-section {
    background: linear-gradient(to right, #fff5f5, #fff);
    padding: 48px 24px;
    border-radius: var(--radius-xl);
}

/* ==================== CATEGORIES SECTION ==================== */
.categories-section {
    margin-bottom: 64px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 40px;
}

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

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: var(--dark);
}

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

.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-lighter);
}

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

.category-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-count {
    font-size: 13px;
    color: var(--gray);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    padding: 64px 0;
    margin-bottom: 64px;
    border-radius: var(--radius-xl);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

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

.btn-light:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--gray-light);
    padding: 48px 0 24px;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 4px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
}

/* ==================== CATEGORY PAGE ==================== */
.category-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 48px 0 64px;
    margin-bottom: 48px;
}

.category-banner-content {
    padding-top: 24px;
}

.category-banner .breadcrumb {
    margin-bottom: 32px;
}

.category-banner .breadcrumb a,
.category-banner .breadcrumb-separator,
.category-banner .breadcrumb-current {
    color: var(--white);
    opacity: 0.9;
}

.category-banner .breadcrumb a:hover {
    opacity: 1;
}

.category-header {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: center;
}

.category-info {
    max-width: 700px;
}

.category-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.category-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 24px;
}

.category-meta {
    display: flex;
    gap: 24px;
    align-items: center;
}

.product-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.category-image-header {
    width: 300px;
    height: 300px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

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

/* Active Filters */
.active-filters {
    background: var(--gray-lighter);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filters-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
    text-decoration: none;
}

.filter-tag:hover {
    background: var(--danger);
    color: var(--white);
}

.remove-filter {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.clear-filters {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
    white-space: nowrap;
}

.clear-filters:hover {
    color: var(--primary-dark);
}

/* Quick Filters */
.quick-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-filter-btn {
    display: block;
    padding: 10px 16px;
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: var(--dark);
    transition: var(--transition);
    text-decoration: none;
}

.quick-filter-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.quick-filter-btn.sale {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--danger) 100%);
    border-color: var(--secondary);
    color: var(--white);
    font-weight: 700;
}

.quick-filter-btn.sale:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

/* Category Features Section */
.category-features {
    background: var(--gray-lighter);
    padding: 64px 0;
    margin-top: 64px;
    border-radius: var(--radius-xl);
}

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

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
}

/* ==================== PRODUCT DETAIL PAGE ==================== */
.product-detail-container {
    padding-top: 24px;
    padding-bottom: 64px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray);
    transition: var(--transition);
}

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

.breadcrumb-separator {
    color: var(--gray-light);
}

.breadcrumb-current {
    color: var(--dark);
    font-weight: 500;
}

/* Product Detail Layout */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

/* Product Images */
.product-images-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-main-image {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: visible;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-badge {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    z-index: 10;
}

.product-detail-badge.sale {
    left: 20px;
    background: var(--secondary);
    color: var(--white);
}

.product-detail-badge.stock {
    right: 20px;
    background: var(--warning);
    color: var(--white);
}

.product-detail-badge.out-of-stock {
    right: 20px;
    background: var(--gray);
    color: var(--white);
}

/* Zoom al pasar el ratón (estilo Amazon/eBay) */
.product-main-image {
    cursor: crosshair;
}

.product-image-zoom-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-image-zoom-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

.product-zoom-lens {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
    z-index: 5;
}

.product-zoom-lens.is-visible {
    opacity: 1;
}

.product-zoom-panel {
    position: absolute;
    left: calc(100% + 16px);
    top: 0;
    min-width: 320px;
    min-height: 320px;
    max-width: 420px;
    max-height: 420px;
    width: 380px;
    height: 380px;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
    z-index: 100;
}

.product-zoom-panel.is-visible {
    opacity: 1;
}

.product-zoom-panel-img {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    max-width: none;
    will-change: transform;
    transform-origin: 0 0;
}

@media (max-width: 900px) {
    .product-zoom-panel {
        display: none !important;
    }
}

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

.thumbnail-btn {
    border: 3px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    padding: 0;
}

.thumbnail-btn:hover {
    border-color: var(--gray-light);
}

.thumbnail-btn.active {
    border-color: var(--primary);
}

.thumbnail-btn img {
    width: 100%;
    height: auto;
    display: block;
}

/* Product Info */
.product-info-section {
    padding: 24px 0;
}

.product-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.product-sku {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.product-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

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

.product-detail-rating .stars {
    color: var(--warning);
    font-size: 20px;
    letter-spacing: 2px;
}

.rating-text {
    font-weight: 600;
    color: var(--dark);
}

.rating-count {
    color: var(--gray);
    font-size: 14px;
}

.product-detail-rating-and-like {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-like-product {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-lighter);
    background: var(--white);
    color: var(--gray);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-like-product .heart-icon {
    transition: var(--transition);
}

.btn-like-product:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-like-product.liked {
    border-color: var(--secondary);
    background: rgba(255, 51, 102, 0.08);
    color: var(--secondary);
}

.btn-like-product.liked .heart-icon {
    fill: var(--secondary);
}

/* Price */
.product-detail-price {
    background: var(--gray-lighter);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.price-original {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.price-label {
    font-size: 14px;
    color: var(--gray);
}

.price-old {
    font-size: 20px;
    color: var(--gray);
    text-decoration: line-through;
}

.price-current-wrapper {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.price-current {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.price-savings {
    font-size: 16px;
    color: var(--success);
    font-weight: 600;
}

/* Opciones por producto (matriz de precios en ficha) */
.product-options-matrix {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
}
.product-option-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-option-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}
.product-option-group select {
    min-width: 140px;
    padding: 10px 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 14px;
}
#matrix-price-display {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* Stock Status */
.stock-status {
    margin-bottom: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
}

.status-badge.in-stock {
    background: #d1fae5;
    color: var(--success);
}

.status-badge.low-stock {
    background: #fef3c7;
    color: var(--warning);
}

.status-badge.out-of-stock {
    background: #fee2e2;
    color: var(--danger);
}

/* Short Description */
.product-short-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 32px;
}

/* Add to Cart Form */
.add-to-cart-form {
    margin-bottom: 32px;
}

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

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.quantity-input {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-lighter);
    color: var(--dark);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.quantity-input input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.btn-add-to-cart,
.btn-buy-now {
    width: 100%;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-add-to-cart {
    background: var(--primary);
    color: var(--white);
    margin-bottom: 12px;
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-buy-now {
    background: var(--dark);
    color: var(--white);
}

.btn-buy-now:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Commission Info */
.commission-info {
    display: flex;
    gap: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--success) 100%);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    color: var(--dark);
}

.commission-icon {
    font-size: 32px;
}

.commission-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.commission-text p {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.commission-link {
    color: var(--dark);
    font-weight: 600;
    text-decoration: underline;
}

/* Product Features */
.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray);
}

.feature-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Share Buttons */
.product-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-lighter);
}

.product-share span {
    font-weight: 600;
    color: var(--dark);
}

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

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gray-lighter);
    background: var(--white);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Tabs */
.product-tabs {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 64px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--gray-lighter);
}

.tab-btn {
    flex: 1;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

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

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tabs-content {
    padding: 32px;
}

.tab-panel {
    display: none;
}

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

.tab-panel h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tab-panel h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
}

/* Form add review */
.form-add-review {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--gray-lighter);
    border-radius: var(--radius-lg);
}

.form-add-review .form-row {
    margin-bottom: 16px;
}

.form-add-review label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-add-review input[type="text"],
.form-add-review input[type="email"],
.form-add-review textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 15px;
}

.star-rating-input {
    display: flex;
    gap: 4px;
    margin: 8px 0;
}

.star-rating-input .star-btn {
    font-size: 28px;
    color: var(--gray-light);
    padding: 0 2px;
    line-height: 1;
    transition: var(--transition);
}

.star-rating-input .star-btn:hover,
.star-rating-input .star-btn.active {
    color: var(--warning);
}

.reviews-list .no-reviews {
    color: var(--gray);
    font-style: italic;
    padding: 24px 0;
}

.review-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 8px 0 8px 32px;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--gray-lighter);
}

.specs-table th,
.specs-table td {
    padding: 16px 0;
    text-align: left;
}

.specs-table th {
    font-weight: 600;
    color: var(--dark);
    width: 200px;
}

.specs-table td {
    color: var(--gray);
}

/* Reviews */
.reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-lighter);
}

.rating-overview {
    text-align: center;
}

.rating-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 8px;
}

.stars-large {
    color: var(--warning);
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar-item {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

.rating-bar {
    height: 8px;
    background: var(--gray-lighter);
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: var(--warning);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-item {
    padding: 20px;
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
}

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

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stars-small {
    color: var(--warning);
    font-size: 14px;
}

.review-date {
    font-size: 13px;
    color: var(--gray);
}

.review-text {
    line-height: 1.6;
    color: var(--dark);
}

/* Related Products */
.related-products {
    margin-bottom: 64px;
}

.related-products .section-title {
    text-align: left;
    margin-bottom: 32px;
}

/* Out of Stock Message */
.out-of-stock-message {
    background: var(--gray-lighter);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 32px;
}

.out-of-stock-message p {
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 600;
}

.btn-notify {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-notify:hover {
    background: var(--primary-dark);
}

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

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pagination-btn {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

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

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

.pagination-ellipsis {
    padding: 10px 8px;
    color: var(--gray);
}

/* ==================== QUICK VIEW MODAL ==================== */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.quick-view-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10;
    transition: var(--transition);
}

.quick-view-close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

.quick-view-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
}

.quick-view-image {
    position: relative;
    background: var(--gray-lighter);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
}

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

.quick-view-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 5;
}

.quick-view-badge.sale {
    background: var(--secondary);
    color: var(--white);
}

.quick-view-badge.stock {
    background: var(--warning);
    color: var(--white);
}

.quick-view-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-view-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.quick-view-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin: 0;
}

.quick-view-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-view-rating .stars {
    color: var(--warning);
    font-size: 16px;
}

.quick-view-rating .rating-count {
    color: var(--gray);
    font-size: 14px;
}

.quick-view-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--gray-lighter);
    border-bottom: 1px solid var(--gray-lighter);
}

.quick-view-price .price-old {
    font-size: 18px;
    color: var(--gray);
    text-decoration: line-through;
}

.quick-view-price .price-current {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.quick-view-price .price-savings {
    font-size: 14px;
    color: var(--success);
    font-weight: 600;
}

.quick-view-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray);
}

.quick-view-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
}

.quick-view-stock.in-stock {
    background: #d1fae5;
    color: var(--success);
}

.quick-view-stock.low-stock {
    background: #fef3c7;
    color: var(--warning);
}

.quick-view-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.quick-view-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.quick-view-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.quick-view-btn.secondary {
    background: var(--gray-lighter);
    color: var(--dark);
}

.quick-view-btn.secondary:hover {
    background: var(--dark);
    color: var(--white);
}

.quick-view-link {
    text-align: center;
    margin-top: 12px;
}

.quick-view-link a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
}

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

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

/* Responsive Quick View */
@media (max-width: 768px) {
    .quick-view-body {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 24px;
    }
    
    .quick-view-title {
        font-size: 22px;
    }
    
    .quick-view-price .price-current {
        font-size: 28px;
    }
    
    .quick-view-actions {
        flex-direction: column;
    }
}

/* ==================== CART PAGE ==================== */
.cart-page {
    padding: 60px 0;
    background: var(--gray-lighter);
    min-height: 70vh;
}

.cart-header {
    text-align: center;
    margin-bottom: 48px;
}

.cart-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.cart-subtitle {
    font-size: 18px;
    color: var(--gray);
}

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

/* Cart Items Section */
.cart-items-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    padding: 24px;
    background: var(--gray-lighter);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    position: relative;
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

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

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

.cart-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
}

.cart-badge.sale {
    background: var(--secondary);
    color: var(--white);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
}

.cart-item-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.cart-item-title a:hover {
    color: var(--primary);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.cart-item-remove:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.cart-item-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cart-item-category {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
}

.cart-stock-warning {
    font-size: 12px;
    color: var(--warning);
    font-weight: 600;
}

.cart-item-footer {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 24px;
    align-items: center;
    margin-top: 8px;
}

.cart-item-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-light);
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}

.cart-item-subtotal {
    text-align: right;
    margin-left: auto;
}

.subtotal-label {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
}

.subtotal-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.cart-item-commission {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
}

.cart-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--gray-light);
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.summary-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-lighter);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: var(--gray-dark);
}

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

.free-shipping {
    color: var(--success);
    font-weight: 700;
    font-size: 13px;
}

.free-shipping-notice {
    background: #fef3c7;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.summary-divider {
    height: 2px;
    background: var(--gray-lighter);
    margin: 16px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    padding: 16px 0;
}

.total-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.summary-commission {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--success);
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-checkout {
    width: 100%;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
}

.payment-methods {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-lighter);
}

.payment-methods span {
    display: block;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.payment-icons {
    font-size: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
}

.trust-badge {
    background: var(--gray-lighter);
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.trust-badge svg {
    color: var(--primary);
}

/* Empty Cart */
.empty-cart {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.empty-cart-icon {
    margin-bottom: 24px;
    color: var(--gray-light);
}

.empty-cart h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.empty-cart p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 12px;
    line-height: 1.6;
}

.empty-cart-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

/* Recommended Section */
.recommended-section {
    padding: 60px 0;
    background: var(--white);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-lighter);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray-light);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}

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

/* Responsive */
@media (max-width: 1200px) {
    .cart-layout {
        grid-template-columns: 1fr 350px;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: 40px 0;
    }
    
    .cart-header h1 {
        font-size: 32px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cart-item-image {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .cart-item-footer {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cart-item-subtotal {
        text-align: left;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .empty-cart {
        padding: 60px 24px;
    }
    
    .empty-cart-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cart-items-section {
        padding: 20px;
    }
    
    .summary-card {
        padding: 24px;
    }
    
    .cart-header h1 {
        font-size: 28px;
    }
}

/* ==================== CHECKOUT PAGE ==================== */
.checkout-page {
    padding: 60px 0;
    background: var(--gray-lighter);
    min-height: 70vh;
}

.checkout-header {
    text-align: center;
    margin-bottom: 48px;
}

.checkout-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 32px;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.step.active .step-number {
    background: var(--primary);
    color: var(--white);
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-dark);
}

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

/* Checkout Form */
.checkout-form-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--gray-lighter);
}

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

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title svg {
    color: var(--primary);
}

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

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Shipping Options */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.shipping-option:hover {
    border-color: var(--primary);
    background: var(--gray-lighter);
}

.shipping-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.shipping-option input[type="radio"]:checked + .option-content {
    color: var(--primary);
}

.option-content {
    flex: 1;
}

.option-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.option-name {
    font-weight: 700;
    color: var(--dark);
}

.option-price {
    font-weight: 700;
    color: var(--primary);
}

.option-description {
    font-size: 13px;
    color: var(--gray);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover {
    border-color: var(--primary);
}

.payment-method input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.payment-form {
    padding: 24px;
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
}

/* Checkout Summary */
.checkout-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.summary-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-lighter);
}

.summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.summary-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    padding: 12px;
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

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

.item-details h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.item-quantity {
    font-size: 12px;
    color: var(--gray);
}

.item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

.summary-divider {
    height: 2px;
    background: var(--gray-lighter);
    margin: 16px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    color: var(--gray-dark);
}

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

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.total-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.btn-place-order {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.btn-place-order:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.secure-checkout {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-dark);
}

.trust-badges-checkout {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* Empty Checkout */
.empty-checkout {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.empty-checkout svg {
    color: var(--gray-light);
    margin-bottom: 24px;
}

.empty-checkout h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.empty-checkout p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 32px;
}

/* Success Page */
.success-page {
    padding: 60px 0;
    background: var(--gray-lighter);
    min-height: 70vh;
}

.success-content {
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    color: var(--white);
}

.success-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 16px;
}

.success-message {
    font-size: 18px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 48px;
}

.order-info-box,
.shipping-info-box,
.order-items-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.order-info-box h2,
.shipping-info-box h2,
.order-items-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-lighter);
}

.order-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.order-detail .label {
    color: var(--gray);
    font-weight: 600;
}

.order-detail .value {
    color: var(--dark);
    font-weight: 700;
}

.order-number {
    color: var(--primary);
    font-size: 20px;
}

.total-paid {
    color: var(--success);
    font-size: 20px;
}

.shipping-address {
    margin-bottom: 24px;
}

.shipping-address p {
    margin-bottom: 4px;
    color: var(--gray-dark);
}

.contact-info {
    margin-top: 12px;
    font-size: 14px;
}

.shipping-method {
    padding: 16px;
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
}

.order-items-list {
    margin-bottom: 24px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.order-item .item-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.item-qty {
    font-size: 13px;
    color: var(--gray);
}

.order-item .item-price {
    text-align: right;
}

.unit-price {
    display: block;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 4px;
}

.item-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.order-totals {
    padding: 20px;
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.total-row.final-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--white);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.next-steps {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
}

.next-steps h2 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
}

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

.step-card {
    text-align: center;
    padding: 24px;
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--gray);
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-lighter);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray-light);
}

.support-box {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
}

.support-box a {
    color: var(--primary);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1200px) {
    .checkout-layout {
        grid-template-columns: 1fr 400px;
    }
}

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkout-header h1 {
        font-size: 32px;
    }
    
    .checkout-steps {
        gap: 24px;
    }
    
    .step-label {
        display: none;
    }
    
    .checkout-form-section {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .header-main-content {
        grid-template-columns: 180px 1fr auto;
        gap: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-detail-layout {
        gap: 48px;
    }
    
    .product-detail-title {
        font-size: 32px;
    }
    
    .category-header {
        grid-template-columns: 1fr 250px;
        gap: 32px;
    }
    
    .category-image-header {
        width: 250px;
        height: 250px;
    }
    
    .category-title {
        font-size: 40px;
    }
    
    .features-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none; /* Or implement a mobile drawer */
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-images-section {
        position: relative;
        top: 0;
    }
    
    .tabs-header {
        overflow-x: auto;
        scrollbar-width: none;
    }
    
    .tabs-header::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .category-image-header {
        margin: 0 auto;
    }
    
    .category-title {
        font-size: 36px;
    }
    
    .features-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .header-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--dark);
        padding: 12px 24px;
        justify-content: space-around;
        box-shadow: var(--shadow-xl);
        z-index: 100;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-detail-title {
        font-size: 24px;
    }
    
    .price-current {
        font-size: 36px;
    }
    
    .product-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .tabs-content {
        padding: 20px;
    }
    
    .category-banner {
        padding: 32px 0 48px;
    }
    
    .category-title {
        font-size: 28px;
    }
    
    .category-description {
        font-size: 16px;
    }
    
    .category-image-header {
        width: 200px;
        height: 200px;
    }
    
    .active-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .features-grid-large {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .price-current {
        font-size: 18px;
    }
    
    .add-to-cart-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-image {
        width: 60px;
        height: 60px;
    }
    
    .category-card h3 {
        font-size: 14px;
    }
    
    .product-detail-title {
        font-size: 20px;
    }
    
    .price-current {
        font-size: 28px;
    }
    
    .product-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .category-image-header {
        width: 150px;
        height: 150px;
    }
}
