/* css/style.css */

/* --- Variables y Sistema de Diseño --- */
:root {
    /* Colores Principales (Rugged Industrial Theme) */
    --bg-main: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #121212;

    /* Acentos y Texto */
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-gold: #ff5500;
    /* Industrial Orange */
    --accent-steel: #4a4a4a;
    --accent-red: #ff3333;

    /* Tipografía */
    --font-heading: 'Bebas Neue', 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Utilidades */
    --border-subtle: 2px solid #222222;
    --border-accent: 2px solid var(--accent-gold);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease-out;

    /* Efectos - Removed Glass for Solid Industrial Look */
    --glass-bg: rgba(0, 0, 0, 0.95);
    --glass-blur: blur(0px);
    --metallic-gradient: linear-gradient(135deg, #ff5500 0%, #cc4400 100%);
    --shadow-glow: 0 0 15px rgba(255, 85, 0, 0.4);
    --shadow-glass: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* --- Reset y Globales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* --- Utilidades --- */
.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

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

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    border-radius: 0px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: var(--metallic-gradient);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    background: #e64d00;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    border-radius: 0px;
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-main);
}

/* --- Navbar (Glassmorphism) --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--border-subtle);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.85);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.logo-completo {
    height: 40px;
}

.logo-cabeza {
    height: 45px;
}

.logo-negro-bg {
    background: #ffffff;
    padding: 5px;
    border-radius: 4px;
}

.logo-invert {
    filter: brightness(0) invert(1);
}

.logo-textura {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 15px rgba(255, 85, 0, 0.4));
}

@media (min-width: 768px) {
    .logo-img {
        height: 45px;
    }

    .logo-completo {
        height: 50px;
    }

    .logo-cabeza {
        height: 55px;
    }
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.cart-btn:hover {
    color: var(--accent-gold);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-menu-btn {
    display: none;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-main);
    z-index: 2000;
    padding: 30px 5%;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-smooth);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    border-bottom: var(--border-subtle);
    padding-bottom: 10px;
    display: block;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
    background-color: var(--bg-main);
    /* Fallback */
    background-image: url('../img/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 50px;
    /* offset navbar */
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    background: var(--accent-gold);
    color: white;
    margin-bottom: 25px;
    font-weight: bold;
}

.hero-title {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 5%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Filtros --- */
.filters-container {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #333;
    color: var(--text-secondary);
    border-radius: 0px;
    transition: var(--transition-fast);
    font-size: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--text-primary);
    color: var(--bg-main);
    border-color: var(--text-primary);
}

/* --- Grilla de Productos --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Tarjeta de Producto --- */
.product-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 0px;
    overflow: hidden;
    transition: var(--transition-fast);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-glass);
}

.product-image-container {
    height: 350px;
    overflow: hidden;
    position: relative;
    background: #111;
}

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

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

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge.hot {
    background: var(--accent-red);
}

.product-add-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transform: translateY(100%);
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
}

.product-card:hover .product-add-overlay {
    transform: translateY(0);
}

.btn-add-cart {
    width: 100%;
    padding: 15px;
    background: var(--accent-gold);
    color: white;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.btn-add-cart:hover {
    background: #e64d00;
    color: white;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1.4rem;
}

/* --- Feature Section --- */
.dark-section {
    background-color: var(--bg-secondary);
}

.feature-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-text h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--accent-gold);
}

.feature-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 4px;
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-gold);
    filter: blur(100px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: var(--border-accent);
    position: relative;
    z-index: 2;
    padding: 2rem;
}

/* --- Footer --- */
.footer {
    background: #050505;
    padding: 80px 5% 20px;
    border-top: var(--border-subtle);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 15px;
    max-width: 300px;
}

.footer h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-icons a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Cart Sidebar --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-main);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-smooth);
    border-left: var(--border-subtle);
}

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

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

.cart-items {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    background: var(--bg-card);
    padding: 10px;
    border-radius: 4px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    background: #111;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--accent-gold);
}

.cart-item-remove {
    align-self: flex-start;
    color: var(--text-secondary);
}

.cart-item-remove:hover {
    color: var(--accent-red);
}

.empty-cart-message {
    color: var(--text-secondary);
    text-align: center;
    margin-top: 50px;
}

.cart-footer {
    padding: 20px;
    border-top: var(--border-subtle);
    background: var(--bg-secondary);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
}

/* --- Product Detail Page (Single Product) --- */
.product-gallery-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.pg-image-wrapper {
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    height: 700px;
    position: relative;
    border: var(--border-subtle);
}

.pg-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.pg-image-wrapper:hover .pg-hero-image {
    transform: scale(1.03);
    /* Zoom on hover subtle */
}

.pg-image-container {
    height: calc(100% - 90px);
    width: 100%;
    position: relative;
}

.pg-thumbnails {
    display: flex;
    gap: 15px;
    padding: 15px;
    height: 90px;
    background: #000;
    overflow-x: auto;
    align-items: center;
    border-top: var(--border-subtle);
}

.pg-thumbnails::-webkit-scrollbar {
    display: none;
}

.pg-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.pg-thumb:hover,
.pg-thumb.active {
    opacity: 1;
    border-color: var(--accent-gold);
}

.pg-category {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.pg-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.pg-price {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 15px;
    border-bottom: var(--border-subtle);
    padding-bottom: 15px;
}

.pg-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.pg-features {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: var(--border-subtle);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pg-add-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.pg-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border: var(--border-accent);
    padding: 15px;
    background: rgba(212, 175, 55, 0.05);
}

/* --- Modal COD (Cash on Delivery) --- */
.cod-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.cod-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cod-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 95%;
    max-width: 550px;
    max-height: 90vh;
    background: #2a2a2a;
    color: #f0f0f0;
    z-index: 3001;
    border-radius: 12px;
    border: 1px solid #444;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.cod-modal::-webkit-scrollbar {
    width: 6px;
}

.cod-modal::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.cod-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.cod-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #444;
    background: #333333;
    border-radius: 12px 12px 0 0;
}

.cod-modal-header h3 {
    margin: 0;
    font-family: var(--font-heading) !important;
    font-size: 1.3rem !important;
    color: #ffffff !important;
}

.close-modal-btn {
    color: var(--text-secondary);
    padding: 5px;
    transition: 0.2s;
}

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

.cod-modal-body {
    padding: 20px;
}

.cod-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cod-summary img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cod-summary-details {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cod-summary-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.cod-summary-price {
    font-weight: 700;
    font-size: 1rem;
}

.cod-totals {
    background: #3a3a3a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #555;
}

.cod-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #bbbbbb;
}

.cod-row span:last-child {
    color: #ffffff;
}

.cod-row.total {
    font-weight: bold;
    font-size: 1.15rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #555;
    margin-bottom: 0;
    color: #ffffff;
}

.cod-shipping-method {
    margin-bottom: 25px;
}

.cod-shipping-method h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shipping-option {
    display: flex;
    align-items: center;
    border: 1px solid #555;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #3a3a3a;
    color: #f0f0f0;
}

.shipping-option input {
    margin-right: 10px;
}

.form-title {
    text-align: center;
    font-size: 1.25rem;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group-flex {
    display: flex;
    margin-bottom: 18px;
    flex-direction: column;
}

.form-group-flex>label {
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #dddddd;
    letter-spacing: 0.5px;
}

.req {
    color: var(--accent-red);
}

.input-with-icon {
    display: flex;
    align-items: center;
    border: 1px solid #555555;
    background: #383838;
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.input-with-icon:focus-within {
    border-color: var(--accent-gold);
    background: #252525;
    box-shadow: 0 0 0 1px var(--accent-gold);
}

.input-with-icon i {
    padding: 0 14px;
    height: auto;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make Lucide icons smaller and sleeker inside inputs */
.input-with-icon i svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.input-with-icon input,
.input-with-icon select {
    flex-grow: 1;
    border: none;
    padding: 14px 14px 14px 0;
    outline: none;
    font-size: 0.95rem;
    width: 100%;
    color: #ffffff;
    background: transparent;
}

.input-with-icon input::placeholder {
    color: #666666;
}

.input-with-icon select {
    appearance: none;
    /* Hide default arrow to look sleeker */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Bring back the custom focus shadow just for the wrapper */
.input-with-icon select:focus {
    box-shadow: none;
    /* Handled by wrapper's focus-within */
}

.form-group-flex select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.cod-warning {
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: left;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.btn-submit-cod {
    width: 100%;
    background: #ffffff;
    color: #111111;
    padding: 18px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    margin-top: 25px;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 1px;
}

.btn-submit-cod:hover {
    background: #e8e8e8;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.pg-cod-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    background: #16a34a;
    color: #ffffff;
    border: 2px solid #16a34a;
    border-radius: 2px;
    transition: var(--transition-fast);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pg-cod-btn:hover {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

.pg-thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.pg-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    opacity: 0.6;
}

.pg-thumb:hover,
.pg-thumb.active {
    opacity: 1;
    border-color: var(--accent-gold);
}

.pg-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10;
}

.gallery-arrow:hover {
    background: var(--accent-gold);
    color: black;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.specs-section,
.reviews-section,
.faq-section {
    background: var(--bg-secondary);
    padding: 40px;
    border: var(--border-subtle);
    border-radius: 4px;
}

.specs-section h2,
.reviews-section h2,
.faq-section h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 15px;
    background: var(--bg-main);
}

.specs-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    font-size: 0.95rem;
}

.specs-table th {
    width: 35%;
    color: var(--accent-gold);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
}

/* --- Historias y Modal de Video --- */
.pg-stories-container {
    display: flex;
    gap: 15px;
    padding: 10px 0 25px 0;
    overflow-x: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.pg-stories-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.story-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 3px solid #666;
    /* Gray border default */
    padding: 3px;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.story-circle.active,
.story-circle:hover {
    border-color: var(--accent-gold);
    /* Gold when active or hover */
    transform: scale(1.05);
}

.story-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #111;
}

.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.story-modal.active {
    opacity: 1;
    pointer-events: all;
}

.story-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    /* Vertical orientation max-width */
    height: 85vh;
}

.story-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.story-close {
    position: absolute;
    top: -40px;
    right: 10px;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 5px;
    z-index: 10;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--bg-main);
    padding: 25px;
    border: var(--border-subtle);
    border-radius: 2px;
}

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

.review-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.review-stars {
    margin-bottom: 15px;
    display: flex;
    gap: 2px;
}

.review-text {
    font-style: italic;
    color: #e0e0e0;
    line-height: 1.6;
}

.faq-accordion .faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.faq-accordion h4 {
    padding: 20px;
    cursor: pointer;
    background: var(--bg-main);
    margin: 0;
    font-weight: 500;
    transition: var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-accordion h4:hover {
    color: var(--accent-gold);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-main);
}

.faq-accordion h4.active+.faq-content {
    max-height: 2500px;
}

.faq-content p {
    padding: 0 20px 20px 20px;
    margin: 0;
    color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .feature-container {
        grid-template-columns: 1fr;
    }

    .product-image-container {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-title span {
        font-size: 2.2rem;
    }

    .product-gallery-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: -40px;
    }

    .pg-image-wrapper {
        height: auto;
        border-radius: 0;
        /* Full bleed on mobile */
        border-left: none;
        border-right: none;
        margin-left: -5%;
        margin-right: -5%;
        width: 110%;
    }

    .pg-image-container {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .pg-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .pg-price {
        font-size: 1.8rem;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        color: var(--text-primary);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .product-extra-sections {
        margin-top: 40px !important;
    }

    .pg-title {
        font-size: 2.2rem;
    }

    .pg-price {
        font-size: 1.8rem;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .specs-section,
    .reviews-section,
    .faq-section {
        padding: 20px;
    }

    .pg-info-wrapper {
        padding: 0 5px;
    }

    .pg-add-btn,
    .pg-cod-btn {
        padding: 15px;
        font-size: 1rem;
    }
}