/* ================================================
   ESTILOS ESPECÍFICOS PARA PÁGINA DE PRODUCTOS
   DigitalBaires - Catálogo de Productos

   FASE 6: CSS Organization (28 Nov 2025)
   - Consolidación: cart-modal-styles.css eliminado
   - Variables: Design tokens centralizados
   - Organización: 7 secciones lógicas
   ================================================ */

/* ================================================
   SECTION 1: CSS VARIABLES - Design Tokens
   ================================================ */
:root {
  /* ===== COLORS ===== */
  --color-primary: #C37EDB;
  --color-primary-dark: #B5179E;
  --color-secondary: #FC8DCA;
  --color-accent: #AAECFC;
  --color-dark: #2D1B3D;
  --color-white: #FFFFFF;

  /* Text colors */
  --color-text-primary: #212529;
  --color-text-secondary: #6c757d;
  --color-text-muted: #495057;
  --color-text-light: #999;

  /* Status colors */
  --color-success: #28a745;
  --color-error: #dc3545;
  --color-warning: #ffc107;
  --color-info: #17a2b8;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FC8DCA, #C37EDB);
  --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
  --gradient-info: linear-gradient(135deg, #17a2b8, #138496);

  /* Background colors */
  --bg-white: #FFFFFF;
  --bg-light: #f8f9fa;
  --bg-gray: #f3f3f3;
  --bg-dark: #2D1B3D;

  /* Border colors */
  --border-light: #e9ecef;
  --border-medium: #dee2e6;
  --border-dark: #ddd;

  /* ===== SPACING ===== */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */

  /* ===== TYPOGRAPHY ===== */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-heading: 'Kalam', cursive;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.75rem;  /* 28px */
  --font-size-4xl: 2rem;     /* 32px */
  --font-size-5xl: 4.5rem;   /* 72px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;

  /* ===== BORDER RADIUS ===== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ===== SHADOWS ===== */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 8px 12px rgba(195, 126, 219, 0.4);
  --shadow-2xl: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 8px 20px rgba(247, 37, 133, 0.15);

  /* ===== TRANSITIONS ===== */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-all: all 0.3s ease;

  /* ===== Z-INDEX ===== */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 9000;
  --z-cart-overlay: 9998;
  --z-cart-sidebar: 9999;
  --z-modal: 10000;

  /* ===== LAYOUT ===== */
  --container-max-width: calc(100% - 100px);
  --container-max-width-xl: 2200px;
  --sidebar-width: 450px;
  --header-height: 100px;

  /* ===== RESPONSIVE BREAKPOINTS ===== */
  --breakpoint-xs: 480px;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 2300px;
}

/* ================================================
   SECTION 2: LAYOUT
   Header, Footer, Containers, Breadcrumb
   ================================================ */

/* ----- HEADER / NAVIGATION ----- */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.nav {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    max-width: calc(100% - 100px);
    width: 100%;
    margin: 0 auto;
    gap: 2rem;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-brand .logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: #2D1B3D;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1.69rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: #C37EDB;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #FC8DCA, #C37EDB);
    transition: 250ms ease-in-out;
}

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

.nav-link-btn {
    background: linear-gradient(135deg, #FC8DCA, #C37EDB);
    color: #FFFFFF;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 2px solid transparent;
    white-space: nowrap;
    min-width: 200px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link-btn:hover {
    background: #FFFFFF;
    color: #C37EDB;
    border-color: #C37EDB;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.nav-link-btn:active {
    transform: translateY(0);
}

.nav-link-btn:after {
    display: none;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2D1B3D;
    border-radius: 9999px;
    transition: 250ms ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Header Responsive */
@media (max-width: 768px) {
    .nav {
        max-width: calc(100% - 40px);
        padding: 1rem 0;
        gap: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: #FFFFFF;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
        padding: 1.5rem 0;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-actions {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.5rem 0;
        max-width: calc(100% - 20px);
        gap: 0.5rem;
    }

    .nav-brand .logo {
        height: 50px;
    }

    .nav-actions {
        gap: 0.25rem;
    }
}

/* ----- FOOTER ----- */
.footer {
    background: #2D1B3D;
    color: #FFFFFF;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #AAECFC;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: 250ms ease-in-out;
}

.footer-section a:hover {
    color: #AAECFC;
}

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

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo {
        height: 60px;
    }
}

/* ----- CONTAINERS ----- */
.catalog-section .container,
.breadcrumb .container,
.footer .container {
    max-width: calc(100% - 100px);
    width: 100%;
}

/* En pantallas muy grandes, limitar a 2200px */
@media (min-width: 2300px) {
    .catalog-section .container,
    .breadcrumb .container,
    .footer .container {
        max-width: 2200px;
    }
}

/* ----- BREADCRUMB ----- */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #C37EDB;
}

.breadcrumb span {
    color: #212529;
    font-weight: 600;
}

/* ----- CATALOG SECTION ----- */
.catalog-section {
    padding: 3rem 0;
    min-height: 70vh;
}

.catalog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.catalog-title {
    font-family: 'Kalam', cursive;
    font-size: 4.5rem;
    color: #212529;
    margin-bottom: 1rem;
}

.catalog-subtitle {
    font-size: 1.5rem;
    color: #6c757d;
}

/* Catalog Responsive */
@media (max-width: 768px) {
    .catalog-title {
        font-size: 2rem;
    }
}

/* ================================================
   SECTION 3: COMPONENTS
   Buttons, Cards, Badges, Chips, Inputs, Text formatting
   ================================================ */

/* ----- BUTTONS ----- */
.btn-primary {
    background: linear-gradient(135deg, #FC8DCA, #C37EDB);
    color: #FFFFFF;
    padding: 1.5rem 3rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: #FFFFFF;
    color: #C37EDB;
    border-color: #C37EDB;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.btn-secondary {
    background: linear-gradient(135deg, #FC8DCA, #C37EDB);
    color: #FFFFFF;
    border: 2px solid transparent;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.btn-secondary:hover {
    background: #FFFFFF;
    color: #C37EDB;
    border-color: #C37EDB;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-cart,
.btn-login {
    background: linear-gradient(135deg, #FC8DCA, #C37EDB);
    color: #FFFFFF;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    border: 2px solid transparent;
    white-space: nowrap;
    min-width: 200px;
    text-align: center;
}

.btn-cart:hover,
.btn-login:hover {
    background: #FFFFFF;
    color: #C37EDB;
    border-color: #C37EDB;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.btn-cart:active,
.btn-login:active {
    transform: translateY(0);
}

.btn-quick-view {
    background: linear-gradient(135deg, #FC8DCA, #C37EDB);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(195, 126, 219, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-quick-view:hover {
    background: white;
    color: #C37EDB;
    border-color: #C37EDB;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(195, 126, 219, 0.4);
}

.btn-add-cart {
    width: 100%;
    background: linear-gradient(135deg, #FC8DCA, #C37EDB);
    color: white;
    border: 2px solid transparent;
    padding: 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.btn-add-cart:hover {
    background: #FFFFFF;
    color: #C37EDB;
    border-color: #C37EDB;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Button Responsive */
@media (max-width: 768px) {
    .btn-cart,
    .btn-login {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        min-width: auto;
    }

    .btn-cart {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .btn-cart,
    .btn-login {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-width: auto;
        letter-spacing: 0;
    }

    .btn-cart .cart-count {
        font-size: 0.7rem;
        padding: 0.1rem 0.35rem;
    }
}

/* ----- BADGES ----- */
.cart-count {
    background: #FFFFFF;
    color: #C37EDB;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #C37EDB;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-destacado {
    top: 12px;
    right: 12px;
    left: auto;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 2px 6px rgba(255, 165, 0, 0.3);
}

.badge-digital {
    top: 12px;
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #17a2b8, #138496);
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.3);
}

/* ----- FILTER CHIPS ----- */
.active-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(255, 20, 147, 0.2);
    transition: all 0.3s ease;
}

.filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 20, 147, 0.3);
}

.filter-chip-label {
    user-select: none;
}

.filter-chip-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
}

.filter-chip-remove:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Chips Responsive */
@media (max-width: 768px) {
    .active-filters-chips {
        gap: 0.5rem;
    }

    .filter-chip {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ----- INPUTS (Search, Filters) ----- */
.filter-select,
.search-input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: #C37EDB;
    box-shadow: 0 0 0 3px rgba(247, 37, 133, 0.1);
}

.search-input {
    flex: 2;
}

/* ----- PRODUCT DESCRIPTION FORMATTING ----- */
.product-description-formatted {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

.product-description-formatted br {
    display: block;
    content: "";
    margin-bottom: 0.75rem;
}

.product-description-formatted .description-heading {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6b9d;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.product-description-formatted .description-heading:first-child {
    margin-top: 0;
}

.product-description-formatted .description-important {
    background: linear-gradient(135deg, #ffeef3 0%, #fff5f7 100%);
    padding: 0.3rem 0.6rem;
    border-left: 3px solid #ff6b9d;
    display: block;
    margin: 0.8rem 0;
    font-weight: 600;
    color: #2D1B3D;
    border-radius: 4px;
}

/* Description Responsive */
@media (max-width: 768px) {
    .product-description-formatted {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .product-description-formatted .description-heading {
        font-size: 1rem;
    }
}

/* ================================================
   SECTION 4: CATALOG SPECIFIC
   Filters, Product Grid, Pagination, Search
   ================================================ */

/* ----- FILTERS BAR ----- */
.filters-bar {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
}

/* Filters Responsive */
@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }
}

/* ----- PRODUCTS GRID ----- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Grid Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* ----- PRODUCT CARD ----- */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(247, 37, 133, 0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 37, 133, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.product-prices {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C37EDB;
}

.product-price-usd {
    font-size: 1rem;
    color: #6c757d;
}

.product-stock {
    font-size: 0.875rem;
    color: #28a745;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-stock.out-of-stock {
    color: #dc3545;
}

.product-stock.digital-stock {
    color: #17a2b8;
    background: rgba(23, 162, 184, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
}

/* ----- PAGINATION ----- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

/* Pagination Buttons - Selector más específico para ganar sobre estilos genéricos de styles.css */
.pagination .btn-pagination,
button.btn-pagination {
    background: white !important;
    color: #F72585 !important;
    border: 2px solid #F72585 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination .btn-pagination:hover:not(:disabled),
button.btn-pagination:hover:not(:disabled) {
    background: #F72585 !important;
    color: white !important;
}

.pagination .btn-pagination:disabled,
button.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-weight: 600;
    color: #495057;
}

/* ================================================
   SECTION 5: CART & MODAL
   Cart Sidebar, Modal, Overlays
   ================================================ */

/* ----- MODAL BASE ----- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.modal-open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
    background: linear-gradient(135deg, #FC8DCA, #C37EDB);
    color: white;
    transform: rotate(90deg);
}

/* ----- PRODUCT QUICK VIEW MODAL ----- */
/* Aumentar especificidad para garantizar override del max-width base */
.modal-content.modal-product {
    max-width: 900px;
}

.modal-body-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.modal-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.modal-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.modal-thumbnail:hover,
.modal-thumbnail.active {
    border-color: #C37EDB;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-product-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
}

.modal-product-category {
    font-size: 1rem;
    color: #6c757d;
}

.modal-prices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-ars {
    font-size: 2rem;
    font-weight: 700;
    color: #C37EDB;
}

.price-usd {
    font-size: 1.2rem;
    color: #6c757d;
}

.modal-product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

.modal-stock {
    font-size: 1rem;
    font-weight: 600;
    color: #28a745;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-body-product {
        grid-template-columns: 1fr;
    }

    .modal-main-image {
        height: 300px;
    }
}

/* ----- CART SIDEBAR ----- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
}

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.cart-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.cart-close:hover {
    color: #C37EDB;
    transform: rotate(90deg);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: #C37EDB;
    font-weight: 600;
}

.cart-item-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    height: fit-content;
}

.cart-empty {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.cart-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.5rem 0;
}

.cart-total-amount {
    color: #C37EDB;
}

.cart-footer .btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    background: #C37EDB;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-footer .btn-primary:hover {
    background: #B5179E;
    transform: translateY(-2px);
}

/* Cart Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* ================================================
   SECTION 6: STATES
   Loading, Empty, Notifications, Results Counter
   ================================================ */

/* ----- LOADING STATE ----- */
.loading-state {
    text-align: center;
    padding: 4rem 0;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #C37EDB;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF1493;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ----- EMPTY STATE ----- */
.empty-state {
    text-align: center;
    padding: 4rem 0;
    font-size: 1.2rem;
    color: #6c757d;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-results p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* ----- RESULTS COUNTER ----- */
.results-counter {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    font-weight: 500;
}

/* ----- NOTIFICATIONS ----- */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-error {
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

.notification-success {
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

/* Notifications Responsive */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ================================================
   SECTION 7: UTILITIES & RESPONSIVE
   Helper classes, Forced alignments, Media queries
   ================================================ */

/* ----- HEADER ALIGNMENT OVERRIDES ----- */
/* High-specificity selectors override base styles without !important */
/* Specificity: #id .class = (0,1,0,1) = 110 vs .class = 10 */
#mainHeader #headerContainer {
    max-width: calc(100% - 100px);
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

#mainHeader .nav {
    max-width: none;
    width: 100%;
    padding: 1.5rem 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

#mainHeader .nav-brand {
    flex-shrink: 0;
    margin-right: 3rem;
}

#mainHeader .nav-menu {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-right: auto;
}

#mainHeader .nav-actions {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    margin-left: 0;
}

/* ----- CLEAR FILTERS BUTTON ----- */
.btn-clear-filters {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-clear-filters:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-product-detail {
    background: white;
    color: #C37EDB;
    border: 2px solid #C37EDB;
}

.btn-product-detail:hover {
    background: linear-gradient(135deg, #FC8DCA, #C37EDB);
    color: white;
    border-color: transparent;
}
