/* assets/css/shop_theme.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-input: #1a1a1a;
    --text-primary: #f4f4f4;
    --text-secondary: #a0a0a0;
    --gold: #FFD700;
    --gold-dim: #C5A000;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --border-color: #333;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --whatsapp: #25D366;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    padding-bottom: 80px;
    position: relative;
}

/* Background Blur */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../images/fondo1.png') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    /* Ensure it stays with the fixed div */
    filter: blur(3px);
    z-index: -1;
    transform: scale(1.05);
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile Image Improvements */
@media (max-width: 600px) {
    .product-grid {
        gap: 10px;
        padding: 0 10px 40px;
    }

    .product-card {
        padding: 10px;
        /* Reduce padding to give more space to image */
    }

    .product-img {
        height: 180px;
        /* Taller images on mobile */
        margin-bottom: 10px;
    }
}


/* Titles & Typography */
h1,
h2,
h3,
h4 {
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.text-gold {
    color: var(--gold);
}

/* --- Header --- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    /* Keep slightly dark for readability */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    /* Center the logo */
    align-items: center;
    height: 80px;
    /* Reduced header height */
    /* Enforce height */
}

/* Logo Link Container */
.app-header>a {
    z-index: 2;
    /* Ensure clicks */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text img {
    height: 100px;
    /* Bigger Logo */
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    /* Pop against background */
    transition: transform 0.3s;
}

.header-actions {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 3;
}

/* --- Category Pills --- */
.category-scroll {
    display: flex;
    overflow-x: auto;
    padding: 15px 20px;
    gap: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.cat-pill {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.cat-pill.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: 700;
    box-shadow: 0 4px 12px var(--gold-glow);
}

/* --- Size Filter Bar --- */
.size-scroll {
    display: flex;
    overflow-x: auto;
    padding: 10px 20px 20px;
    gap: 10px;
    scrollbar-width: none;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.5), transparent);
    animation: slideDown 0.3s ease-out;
}

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

.size-filter-pill {
    min-width: 45px;
    height: 45px;
    border-radius: 50%;
    /* Circle */
    background: #222;
    border: 1px solid #444;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    flex: 0 0 auto;
}

.size-filter-pill.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--gold-glow);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero Promo Slider --- */
.hero-slider-container {
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    display: none;
    /* Hidden by default until JS enables it */
}

.hero-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    position: relative;
    height: 200px;
}

@media (min-width: 768px) {
    .hero-slide {
        height: 350px;
    }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 5px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--gold);
    font-weight: 600;
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Original Price */
.original-price {
    text-decoration: line-through;
    text-decoration-color: #ff3333;
    text-decoration-thickness: 2px;
    color: #ccc;
    font-weight: 600;
    font-size: 0.9em;
    margin-right: 5px;
    opacity: 0.9;
}

/* --- Hero Slider (Product Fallback) --- */
.slider-container {
    padding: 0 20px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 20px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-color), transparent);
}

.product-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.slider-card {
    min-width: 280px;
    background: linear-gradient(145deg, var(--bg-card), #1a1a1a);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.slider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.05), transparent);
    pointer-events: none;
}

.slider-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.slider-info {
    flex: 1;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px 40px;
}

@media (min-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}


.product-card {
    background: rgba(20, 20, 20, 0.6);
    /* Semi-transparent */
    backdrop-filter: blur(5px);
    /* BLUR EFFECT */
    -webkit-backdrop-filter: blur(5px);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    /* Subtle gold border */
    transition: transform 0.2s, background 0.3s;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: var(--gold);
}

.product-card:active {
    transform: scale(0.98);
}

.product-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
}

.product-card:hover .product-img {
    transform: scale(1.05) translateY(-5px);
}

.product-brand {
    font-size: 0.7rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.5em;
    /* Fixed height for 2 lines */
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.add-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* --- Sizes badge --- */
.size-badge-container {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.size-pill-xs {
    font-size: 0.65rem;
    padding: 2px 6px;
    border: 1px solid #333;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
}

/* --- General Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    /* Bottom sheet on mobile */
    justify-content: center;
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
        /* Center on desktop */
    }
}

.bottom-sheet {
    background: #141414;
    width: 100%;
    max-width: 600px;
    border-radius: 20px 20px 0 0;
    padding: 20px 25px 0 25px;
    /* Removed bottom padding, handled by footer */
    height: 85vh;
    /* Fixed height for stability */
    max-height: 85vh;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--border-color);
    animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent global scroll */
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    padding: 5px;
    transition: color 0.3s;
}

.modal-close-btn:hover {
    color: var(--gold);
}

@media (min-width: 768px) {
    .bottom-sheet {
        border-radius: 20px;
        width: 500px;
        height: auto;
        max-height: 90vh;
        animation: zoomIn 0.2s ease-out;
        border: 1px solid var(--border-color);
        padding-bottom: 25px;
    }
}

/* Scrollable Body */
.modal-scrollable-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    /* Scrollbar hidden mainly */
    scrollbar-width: none;
}

.modal-scrollable-body::-webkit-scrollbar {
    display: none;
}

/* Footer Fixed */
.modal-footer-fixed {
    flex: 0 0 auto;
    padding: 10px 0 15px;
    /* Compact padding */
    background: #141414;
    border-top: 1px solid #222;
    z-index: 10;
}


/* --- Animations --- */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Product Detail Modal Specifics --- */
.modal-handle-bar {
    width: 40px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 0 auto 15px;
    flex: 0 0 auto;
}

.modal-img-wrapper {
    width: 100%;
    /* Fixed height relative to viewport */
    height: 40vh;
    /* Increased for better visibility */
    min-height: 250px;
    background: radial-gradient(circle, #2a2a2a 0%, #141414 70%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .modal-img-wrapper {
        height: 40vh;
        /* Taller on desktop */
    }
}

.modal-main-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

.modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.thumb-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #333;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.2s;
    cursor: pointer;
}

.thumb-img.active {
    border-color: var(--gold);
    opacity: 1;
    transform: scale(1.05);
}

.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.size-btn {
    min-width: 50px;
    padding: 10px;
    text-align: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #ccc;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn.selected {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: 700;
}

.size-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    text-decoration: line-through;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 5px 15px;
    border: 1px solid #333;
}

.qty-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 5px 10px;
    cursor: pointer;
}

/* --- Checkout Modal Steps --- */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
    z-index: 1;
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #333;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    transition: all 0.3s;
    border: 2px solid #141414;
}

.step-dot.active {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 10px var(--gold-glow);
}

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

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    margin-left: 5px;
}

.form-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--gold);
}

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

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option.selected {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

.payment-icon {
    font-size: 1.5rem;
    color: var(--gold);
}

/* Primary Button */
.btn-primary {
    width: 100%;
    background: var(--gold);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    width: 100%;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid #333;
    padding: 14px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* Cart Items */
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #1a1a1a;
    object-fit: cover;
}

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

.cart-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Radio Chips for Order Type */
.radio-chip {
    flex: 1;
    text-align: center;
    padding: 12px 5px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.radio-chip i {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.radio-chip.selected {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    box-shadow: 0 4px 15px var(--gold-glow);
    font-weight: 700;
}