/* ============================================
   TIENDA.CSS - Tienda estilo App
   FlowTrading Global
============================================ */

/* ============================================
   IMPORTS - Estilos base y layout
============================================ */
@import url('../main.css');
@import url('../layout.css');
@import url('../components.css');

/* ============================================
   CSS VARIABLES - Aliases a main.css
============================================ */
:root {
    /* Aliases que se adaptan a light/dark mode */
    --gold-light: rgba(212, 175, 55, 0.15);
    --bg-darker: var(--bg-dark-tertiary, #050505);
    --card-dark: var(--card, #141414);
    --card-lighter: var(--card-elevated, #1a1a1a);
    --border-dark: var(--border, rgba(255, 255, 255, 0.08));
    --text-light: var(--text-color, #ffffff);
    --text-muted: var(--text-light-muted, rgba(255, 255, 255, 0.5));
    --text-secondary: var(--text-light-secondary, rgba(255, 255, 255, 0.7));
    /* Colores fijos */
    --success: #28a745;
    --info: #3498db;
    --warning: #f39c12;
    --error: #e74c3c;
    --purple: #9b59b6;
}

/* Light mode - Override de aliases */
body.light-mode {
    --gold-light: rgba(212, 175, 55, 0.12);
    --bg-darker: var(--bg-light-tertiary, #f0f0f0);
    --card-dark: var(--bg-light-secondary, #ffffff);
    --card-lighter: var(--bg-light-secondary, #ffffff);
    --border-dark: var(--border, #e0e0e0);
    --text-light: var(--text-dark, #1a1a1a);
    --text-muted: var(--text-dark-muted, #666666);
    --text-secondary: var(--text-dark-secondary, #333333);
}

/* ============================================
   LIGHT MODE - Elementos con colores hardcodeados
============================================ */
body.light-mode .hero-section {
    background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

body.light-mode .search-bar {
    background: #ffffff;
    border-color: #e0e0e0;
}

body.light-mode .search-bar input {
    color: #1a1a1a;
}

body.light-mode .search-bar input::placeholder {
    color: #999999;
}

body.light-mode .featured-image,
body.light-mode .product-image,
body.light-mode .modal-product-image,
body.light-mode .cart-item-image {
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}

body.light-mode .featured-placeholder ion-icon,
body.light-mode .product-placeholder ion-icon,
body.light-mode .modal-product-placeholder ion-icon,
body.light-mode .cart-item-image ion-icon {
    color: rgba(0, 0, 0, 0.2);
}

body.light-mode .cart-content,
body.light-mode .product-modal-content {
    background: #ffffff;
}

body.light-mode .modal-close {
    background: #f0f0f0;
}

body.light-mode .modal-close ion-icon {
    color: #1a1a1a;
}

body.light-mode .close-cart {
    background: #f0f0f0;
}

body.light-mode .close-cart ion-icon {
    color: #1a1a1a;
}

body.light-mode .qty-btn {
    background: #f0f0f0;
    color: #1a1a1a;
}

body.light-mode .toast {
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

body.light-mode .coming-soon-overlay {
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
}

body.light-mode .coming-soon-content > p {
    color: #666666;
}

body.light-mode .coming-soon-features .feature-item span {
    color: #888888;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   STORE PAGE - Web Layout
============================================ */
.store-page {
    padding-top: calc(var(--ticker-height, 46px) + var(--header-height, 90px) + 1rem);
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   HEADER
============================================ */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--card-dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.header-btn ion-icon {
    font-size: 22px;
    color: var(--text-light);
}

.header-btn.cart-btn ion-icon {
    color: var(--gold);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--error);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
}

/* ============================================
   CONTENT
============================================ */
.content {
    flex: 1;
    padding-bottom: 100px;
    overflow-y: auto;
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    background: linear-gradient(180deg, #1a1a2e 0%, var(--bg-dark) 100%);
    padding: 16px;
    padding-bottom: 24px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.search-bar:focus-within {
    border-color: var(--gold);
}

.search-bar ion-icon {
    font-size: 22px;
    color: var(--text-muted);
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 16px;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.clear-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.clear-search ion-icon {
    font-size: 20px;
    color: var(--text-muted);
}

/* Search Preview Dropdown */
.search-preview {
    background: var(--card-dark);
    border: 1px solid var(--gold);
    border-radius: 16px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: -10px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-preview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
    border-radius: 12px;
    margin: 8px;
    background: rgba(212, 175, 55, 0.08);
}

.search-preview-item:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
}

.search-preview-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-preview-icon ion-icon {
    font-size: 24px;
    color: var(--gold);
}

.search-preview-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.search-preview-info {
    flex: 1;
    min-width: 0;
}

.search-preview-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.search-preview-type {
    font-size: 13px;
    color: var(--gold);
}

.search-preview-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Highlight de texto coincidente */
.search-preview-name .search-highlight {
    color: var(--gold);
    font-weight: bold;
}

body.light-mode .search-preview {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body.light-mode .search-preview-item {
    background: rgba(212, 175, 55, 0.06);
}

body.light-mode .search-preview-item:hover {
    background: rgba(212, 175, 55, 0.12);
}

/* Promo Banner */
.promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gold);
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.promo-banner:hover {
    transform: scale(1.02);
}

.promo-content {
    flex: 1;
}

.promo-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 4px;
}

.promo-title {
    font-size: 24px;
    font-weight: 800;
    color: #000;
    margin-bottom: 4px;
}

.promo-text {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

.promo-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-icon ion-icon {
    font-size: 40px;
    color: rgba(0, 0, 0, 0.5);
}

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

.categories-section .section-title {
    font-size: 18px;
    font-weight: 700;
    margin-left: 16px;
    margin-bottom: 16px;
}

.categories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
}

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

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    background: none;
    border: none;
    cursor: pointer;
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.category-icon ion-icon {
    font-size: 28px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.category-item.active .category-icon {
    background: var(--gold);
    border-color: var(--gold);
}

.category-item.active .category-icon ion-icon {
    color: #000;
}

.category-icon.tech {
    background: rgba(52, 152, 219, 0.15);
}
.category-item.active .category-icon.tech {
    background: var(--info);
}
.category-icon.trading {
    background: rgba(155, 89, 182, 0.15);
}
.category-item.active .category-icon.trading {
    background: var(--purple);
}
.category-icon.accessories {
    background: rgba(231, 76, 60, 0.15);
}
.category-item.active .category-icon.accessories {
    background: var(--error);
}

.category-item span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.category-item.active span {
    color: var(--gold);
    font-weight: 600;
}

/* ============================================
   FEATURED PRODUCTS
============================================ */
.featured-section {
    margin-bottom: 24px;
}

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

.section-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-row ion-icon {
    font-size: 20px;
    color: var(--gold);
}

.section-title-row h2 {
    font-size: 18px;
    font-weight: 700;
}

.featured-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
}

.featured-scroll::-webkit-scrollbar {
    display: none;
}

/* Featured Card */
.featured-card {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    background: var(--card-dark);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.featured-card:hover {
    transform: translateY(-4px);
}

.featured-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    overflow: hidden;
}

.featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.featured-image ion-icon {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-badge.discount {
    background: var(--error);
    color: #fff;
}

.product-badge.popular {
    background: var(--gold);
    color: #000;
}

.product-badge.new {
    background: var(--info);
    color: #fff;
}

.product-badge.top-rated {
    background: var(--purple);
    color: #fff;
}

.featured-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-placeholder ion-icon {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.featured-badge.popular {
    background: var(--gold);
    color: #000;
}

.featured-badge.new {
    background: var(--info);
    color: #fff;
}

.featured-badge.sale {
    background: var(--error);
    color: #fff;
}

.featured-badge.free {
    background: var(--success);
    color: #fff;
}

.featured-info {
    padding: 12px;
}

.featured-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.featured-rating span {
    font-size: 12px;
    color: var(--text-muted);
}

.featured-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars ion-icon {
    font-size: 14px;
    color: #ffd700;
}

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

.featured-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
}

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

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

.products-section .section-header {
    padding: 0;
}

.products-section .section-title {
    font-size: 18px;
    font-weight: 700;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

/* Loading State */
.loading-state {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-dark);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state span {
    font-size: 14px;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
}

.empty-state ion-icon {
    font-size: 60px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   PRODUCT CARD
============================================ */
.product-card {
    background: var(--card-dark);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.product-image ion-icon {
    font-size: 50px;
    color: rgba(255, 255, 255, 0.3);
}

.product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder ion-icon {
    font-size: 50px;
    color: rgba(255, 255, 255, 0.3);
}

.product-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

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

.product-rating .stars {
    display: flex;
    gap: 1px;
}

.product-rating .stars ion-icon {
    font-size: 12px;
}

.product-rating span {
    font-size: 11px;
    color: var(--text-muted);
}

.product-description {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

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

.product-price .current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.product-price .current-price.free {
    color: var(--success);
}

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

.add-to-cart-btn {
    width: 32px;
    height: 32px;
    background: var(--gold);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-cart-btn ion-icon {
    font-size: 16px;
    color: #000;
}

.add-to-cart-btn:hover {
    background: #e5c040;
    transform: scale(1.1);
}

/* ============================================
   BOTTOM NAVIGATION
============================================ */
/* Ocultar elementos de app movil en web */
.bottom-spacer {
    display: none;
}

.bottom-nav {
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    transition: color 0.2s;
}

.nav-item ion-icon {
    font-size: 24px;
}

.nav-item.active {
    color: var(--gold);
}

/* ============================================
   CART MODAL
============================================ */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.cart-content {
    width: 100%;
    max-height: 85vh;
    background: var(--bg-dark);
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cart-modal.active .cart-content {
    transform: translateY(0);
}

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

.cart-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.close-cart {
    width: 36px;
    height: 36px;
    background: var(--card-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.close-cart ion-icon {
    font-size: 24px;
    color: var(--text-light);
}

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

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.cart-empty ion-icon {
    font-size: 60px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cart-empty p {
    color: var(--text-muted);
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--card-dark);
    border-radius: 12px;
    margin-bottom: 12px;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.cart-item-image ion-icon {
    font-size: 30px;
    color: rgba(0, 0, 0, 0.2);
}

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

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: var(--card-lighter);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
}

.qty-btn ion-icon {
    font-size: 16px;
}

.qty-value {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    background: rgba(231, 76, 60, 0.2);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    align-self: center;
}

.cart-item-remove ion-icon {
    font-size: 18px;
    color: var(--error);
}

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

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-total span:first-child {
    font-size: 16px;
    color: var(--text-secondary);
}

.total-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}

.checkout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--gold);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout-btn:hover {
    background: #e5c040;
}

.checkout-btn ion-icon {
    font-size: 22px;
}

/* ============================================
   PRODUCT MODAL
============================================ */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.product-modal-content {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    background: var(--card-dark);
    border-radius: 16px;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
    position: relative;
}

.product-modal.active .product-modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.modal-close ion-icon {
    font-size: 20px;
    color: #fff;
}

.product-modal-body {
    padding: 0;
}

.modal-product-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.modal-product-image {
    position: relative;
    width: 200px;
    min-width: 200px;
    height: 240px;
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.modal-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-product-placeholder ion-icon {
    font-size: 60px;
    color: rgba(0, 0, 0, 0.2);
}

.modal-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-product-badge.popular {
    background: var(--gold);
    color: #000;
}

.modal-product-badge.new {
    background: var(--info);
    color: #fff;
}

.modal-product-badge.sale {
    background: var(--error);
    color: #fff;
}

.modal-product-badge.free {
    background: var(--success);
    color: #fff;
}

.modal-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-product-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.modal-product-platform {
    display: inline-block;
    padding: 4px 10px;
    background: var(--card-lighter);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    width: fit-content;
}

.modal-product-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.modal-product-features {
    margin-top: auto;
}

.modal-product-features h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-light);
}

.modal-product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-product-features li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.modal-product-features li ion-icon {
    font-size: 14px;
    color: var(--success);
}

.modal-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--border-dark);
}

.modal-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.modal-product-price .current-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
}

.modal-product-price .current-price.free {
    color: var(--success);
}

.modal-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--gold);
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.modal-add-btn:hover {
    background: #e5c040;
    transform: scale(1.02);
}

.modal-add-btn ion-icon {
    font-size: 16px;
}

/* Modal responsive - móvil vertical */
@media (max-width: 600px) {
    .modal-product-layout {
        flex-direction: column;
        align-items: center;
    }

    .modal-product-image {
        width: 160px;
        min-width: 160px;
        height: 200px;
    }

    .modal-product-info {
        text-align: center;
        align-items: center;
    }

    .modal-product-footer {
        flex-direction: column;
        gap: 10px;
    }

    .modal-add-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   TOAST
============================================ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-dark);
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border-left: 4px solid var(--success);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   RESPONSIVE
============================================ */

/* Desktop grande - 3 columnas */
@media (min-width: 768px) {
    .content {
        max-width: 800px;
        margin: 0 auto;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .loading-state,
    .empty-state {
        grid-column: span 3;
    }
}

/* Tablet - ajustar padding */
@media (max-width: 1024px) {
    .store-page {
        padding-top: calc(var(--ticker-height, 46px) + var(--header-height, 90px) + 1rem);
    }
}

/* Tablet pequeña - 2 columnas */
@media (max-width: 768px) {
    .store-page {
        padding-top: calc(var(--ticker-height, 46px) + var(--header-height, 90px) + 0.5rem);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .loading-state,
    .empty-state {
        grid-column: span 2;
    }

    .modal-product-name {
        font-size: 20px;
    }

    .modal-product-price .current-price {
        font-size: 24px;
    }

    .cart-content {
        max-height: 90vh;
    }
}

/* Móvil - 1 columna */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .loading-state,
    .empty-state {
        grid-column: span 1;
    }

    .hero-section {
        padding: 12px;
        padding-bottom: 20px;
    }

    .promo-banner {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .promo-title {
        font-size: 20px;
    }

    .promo-icon {
        width: 60px;
        height: 60px;
    }

    .promo-icon ion-icon {
        font-size: 30px;
    }

    .categories-section .section-title {
        font-size: 16px;
    }

    .category-icon {
        width: 56px;
        height: 56px;
    }

    .category-icon ion-icon {
        font-size: 24px;
    }

    .featured-card {
        min-width: 240px;
        max-width: 240px;
    }

    .featured-name {
        font-size: 14px;
    }

    .current-price {
        font-size: 18px;
    }

    .section-title-row h2 {
        font-size: 16px;
    }

    .modal-product-name {
        font-size: 18px;
    }

    .modal-product-price .current-price {
        font-size: 22px;
    }

    .modal-product-footer {
        flex-direction: column;
        gap: 12px;
    }

    .modal-add-btn {
        width: 100%;
        justify-content: center;
    }

    .cart-header h2 {
        font-size: 18px;
    }

    .total-amount {
        font-size: 20px;
    }

    .toast {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
        width: auto;
    }

    .toast.show {
        transform: translateX(0) translateY(0);
    }
}

/* ============================================
   COMING SOON OVERLAY
============================================ */
.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.6) 0%, rgba(26, 26, 26, 0.6) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.coming-soon-overlay.hidden {
    display: none;
}

.coming-soon-content {
    text-align: center;
    max-width: 500px;
}

.coming-soon-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--gold), #b8962e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s ease-in-out infinite;
}

.coming-soon-icon ion-icon {
    font-size: 60px;
    color: #000;
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 60px rgba(212, 175, 55, 0.6);
        transform: scale(1.05);
    }
}

.coming-soon-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.coming-soon-content > p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
}

.coming-soon-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.coming-soon-features .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* Reset global .feature-item styles */
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.coming-soon-features .feature-item ion-icon {
    font-size: 32px;
    color: var(--gold);
}

.coming-soon-features .feature-item span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
}

.btn-back-home ion-icon {
    font-size: 18px;
}

@media (max-width: 480px) {
    .coming-soon-overlay {
        overflow-y: auto;
        padding: 60px 20px;
    }

    .coming-soon-icon {
        width: 100px;
        height: 100px;
    }

    .coming-soon-icon ion-icon {
        font-size: 50px;
    }

    .coming-soon-content h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .coming-soon-content > p {
        font-size: 14px;
    }

    .coming-soon-features {
        gap: 20px;
    }

    .coming-soon-features .feature-item ion-icon {
        font-size: 28px;
    }
}
