/* =========================================
   E-COMMERCE SPECIFIC STYLES (SHOP.CSS)
========================================= */

/* Hero Tienda */
.shop-header {
    margin-top: 100px;
    padding: 60px 5%;
    text-align: center;
    background: linear-gradient(to bottom, rgba(239, 246, 255, 0.5), transparent);
}

body.dark-mode .shop-header {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), transparent);
}

.shop-header h1 {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 16px;
}

body.dark-mode .shop-header h1 {
    color: var(--white);
}

/* Buscador Integrado en Navbar */
.nav-search-container {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7); /* Borde más blanco y grueso */
    margin-right: 20px;
    padding-bottom: 2px;
    width: 220px;
    transition: width 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .nav-search-container {
    border-bottom-color: rgba(255, 255, 255, 0.9);
}

.nav-search-container:focus-within {
    border-bottom-color: #FFFFFF;
    width: 250px; /* Se expande un poquito al buscar */
}

.nav-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #FFFFFF; /* Texto puramente blanco */
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    padding: 2px 5px;
}

body.dark-mode .nav-search-input {
    color: #FFFFFF;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7); /* Placeholder muy visible */
    font-style: italic;
}

.nav-search-icon {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9); /* Lupa muy blanca */
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-search-container:focus-within .nav-search-icon {
    color: #FFFFFF;
}

/* Grilla de Productos */
.products-section {
    padding: 40px 5% 100px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

body.dark-mode .product-card {
    background: #1E293B;
    border-color: rgba(255,255,255,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 138, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    background: #F8FAFC;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
}

body.dark-mode .product-image {
    background: #0F172A;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 24px;
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    font-size: 20px;
    color: var(--secondary);
    font-family: 'AlibabaSans-Bold';
    margin-bottom: 10px;
}

body.dark-mode .product-title {
    color: var(--white);
}

.product-price {
    font-size: 22px;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.dark-mode .product-price {
    color: #F8FAFC;
}

.btn-add-cart {
    background: var(--bg-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.dark-mode .btn-add-cart {
    background: #0F172A;
    color: var(--white);
}

.btn-add-cart:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(15deg);
}

/* Agotado States */
.item-agotado .product-image img {
    filter: grayscale(100%) opacity(0.6);
}

.agotado-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #FFF;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    z-index: 10;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-agotado {
    background: #e2e8f0;
    color: #94a3b8;
    border: none;
    font-size: 11px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: not-allowed;
    text-transform: uppercase;
}

body.dark-mode .btn-agotado {
    background: #334155;
    color: #64748b;
}

/* Badge Nav */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid var(--white);
}

body.dark-mode .cart-badge {
    border-color: var(--bg-dark);
}

/* Cart Slide-in Panel */
.cart-panel-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(5px);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.cart-panel {
    position: fixed;
    top: 0; right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 10002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

body.dark-mode .cart-panel {
    background: #0F172A;
    border-left: 1px solid rgba(255,255,255,0.1);
}

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

.cart-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .cart-header {
    border-bottom-color: rgba(255,255,255,0.05);
}

.cart-header h3 {
    font-size: 22px;
    color: var(--secondary);
}

body.dark-mode .cart-header h3 {
    color: var(--white);
}

.close-cart {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--primary);
}

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

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

.cart-item-img {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 5px;
}

body.dark-mode .cart-item-img {
    background: #1E293B;
}

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

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

.cart-item-info h5 {
    font-size: 15px;
    color: var(--secondary);
    margin-bottom: 4px;
}

body.dark-mode .cart-item-info h5 {
    color: var(--white);
}

.cart-item-price {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.cart-item-remove {
    color: var(--text-light);
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
}

.cart-item-remove:hover {
    color: #ef4444;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: var(--bg-light);
}

body.dark-mode .cart-footer {
    background: #1E293B;
    border-top-color: rgba(255,255,255,0.05);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
    font-family: 'AlibabaSans-Bold';
    color: var(--secondary);
}

body.dark-mode .cart-total {
    color: var(--white);
}

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

.cart-empty-msg {
    text-align: center;
    color: var(--text-light);
    margin-top: 50px;
    font-size: 16px;
}

/* ========================================= */
/* Checkout Modal & 3D Interactive Card      */
/* ========================================= */
.checkout-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10005;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.checkout-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

body.dark-mode .checkout-content {
    background: #0F172A;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.checkout-close {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
}

.checkout-carousel {
    position: relative;
    min-height: 400px;
}

.checkout-stage {
    position: absolute;
    top: 0; left: 0; width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(50px);
    transition: all 0.4s ease;
}

.checkout-stage.stage-active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
    position: relative; /* Take up flow space */
}

.checkout-stage.stage-past {
    transform: translateX(-50px);
}

.hidden-stage {
    display: none;
}

.checkout-stage.stage-active {
    display: block;
}

body.dark-mode .checkout-stage h2,
body.dark-mode .checkout-stage label {
    color: var(--white) !important;
}

/* 3D Credit Card */
.credit-card-wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 30px;
    height: 220px;
}

.credit-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.credit-card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    overflow: hidden;
}

/* Gradient overrides based on theme */
.card-front::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,138,0,0.3) 0%, transparent 50%);
}

.card-front {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-back {
    transform: rotateY(180deg);
    padding: 25px 0;
}

.card-chip {
    margin-bottom: 10px;
}

.card-logo {
    position: absolute;
    top: 25px; right: 25px;
}

.card-number {
    font-size: 24px;
    font-family: monospace;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    margin-top: 10px;
    height: 30px;
}

.card-details {
    display: flex;
    justify-content: space-between;
    color: #9CA3AF;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-details div {
    font-family: monospace;
    font-size: 16px;
    color: white;
    margin-top: 4px;
    letter-spacing: 1px;
}

.card-magnetic {
    width: 100%;
    height: 45px;
    background: #000;
    margin-top: 10px;
}

.card-cvv-stripe {
    background: white;
    margin: 20px 20px 0;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 15px;
    position: relative;
}

.card-cvv-stripe span {
    position: absolute;
    right: 15px;
    top: -20px;
    color: white;
    font-size: 12px;
}

.cvv-box {
    font-family: monospace;
    font-size: 16px;
    color: #000;
    font-style: italic;
}

/* Toast Exito */
.success-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10B981;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
    z-index: 10006;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.icon-success {
    font-size: 24px;
}

/* ========================================= */
/* MONOCHROME LIGHT OVERRIDES (PURE B&W)     */
/* ========================================= */
body.monochrome-shop-light {
    --primary: #000000;
    --accent: #555555;
    --bg-light: #F9FAFB;
    --bg-dark: #FFFFFF;
    --white: #FFFFFF;
    --secondary: #000000;
    --text-main: #333333;
    --text-light: #666666;
    background-color: #FFFFFF !important;
    font-family: 'Inter', sans-serif !important;
}

body.monochrome-shop-light .shop-header {
    background: linear-gradient(to bottom, #F9FAFB, transparent) !important;
}

body.monochrome-shop-light nav {
    background: rgba(0, 0, 0, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.monochrome-shop-light nav .nav-links li a,
body.monochrome-shop-light nav .cart-toggle {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

body.monochrome-shop-light nav .nav-links li a:hover {
    color: #CCCCCC !important;
}

body.monochrome-shop-light nav .logo-container img {
    filter: brightness(0) invert(1) !important;
}

body.monochrome-shop-light nav .mobile-menu-btn i {
    color: #FFFFFF !important;
}

body.monochrome-shop-light .product-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.monochrome-shop-light .product-image {
    background: #F9FAFB !important;
}

body.monochrome-shop-light .product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.monochrome-shop-light .cart-panel,
body.monochrome-shop-light .checkout-content {
    background: #FFFFFF !important;
    border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05) !important;
}

body.monochrome-shop-light .btn-add-cart {
    background: #F3F4F6 !important;
    color: #000000 !important;
}

body.monochrome-shop-light .btn-add-cart:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
}

body.monochrome-shop-light h2, body.monochrome-shop-light h1, body.monochrome-shop-light h3, body.monochrome-shop-light h4 {
    border-left-color: #000000 !important;
    color: #000000 !important;
}

body.monochrome-shop-light .form-control {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    color: #000000 !important;
}

body.monochrome-shop-light .form-control:placeholder {
    color: #9CA3AF !important;
}

body.monochrome-shop-light .form-control:focus {
    border-color: #000000 !important;
}

body.monochrome-shop-light .btn-primary {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: none !important;
}

body.monochrome-shop-light .btn-primary:hover {
    background: #333333 !important;
}

body.monochrome-shop-light .btn-outline {
    border-color: #000000 !important;
    color: #000000 !important;
}

body.monochrome-shop-light .btn-outline:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
}

body.monochrome-shop-light .cart-item-info h5, 
body.monochrome-shop-light .cart-total {
    color: #000000 !important;
}

body.monochrome-shop-light .checkout-close i {
    color: #000000 !important;
}

/* Footer Exception for Light Mode (Keep it Black) */
body.monochrome-shop-light footer {
    background: #000000 !important;
    color: #FFFFFF !important;
    border-top: 1px solid rgba(0,0,0,0.1);
}

body.monochrome-shop-light footer h4,
body.monochrome-shop-light footer p,
body.monochrome-shop-light footer a,
body.monochrome-shop-light footer .copyright,
body.monochrome-shop-light footer i {
    color: #FFFFFF !important;
}

body.monochrome-shop-light footer a:hover {
    color: #CCCCCC !important;
}

body.monochrome-shop-light footer .social-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

body.monochrome-shop-light footer .social-icon:hover {
    background: #FFFFFF !important;
    color: #000000 !important;
}

/* ========================================= */
/* PAGE ANIMATION TRANSITION                 */
/* ========================================= */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

.transition-logo {
    height: 80px;
    animation: pulseLogo 1.5s infinite;
    filter: brightness(0); /* Al ser fondo blanco estricto, el logo se oscurece para máximo contraste */
}

.page-transition.slide-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

@keyframes pulseLogo {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* =======================================
   Checkout Full Page Overlay (Topitop Style)
   ======================================= */
.checkout-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #F5F5F5;
    z-index: 100000;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    color: #333;
}

.checkout-page-overlay.active {
    display: flex;
}

/* Header */
.chk-header {
    background: #FFFFFF;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chk-logo img {
    height: 40px;
}

.btn-seguir-comprando {
    background: var(--primary);
    color: #FFF;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: background 0.3s;
}

.btn-seguir-comprando:hover {
    background: #e67a00;
}

/* Timeline */
.chk-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    gap: 15px;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #999;
}

.ts-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    background: #FFF;
    transition: all 0.3s;
}

.timeline-step span {
    font-size: 13px;
    font-weight: 500;
}

.timeline-step.active {
    color: #333;
}

.timeline-step.active .ts-icon {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 138, 0, 0.3);
}

.timeline-step.completed .ts-icon {
    background: #4CAF50;
    color: #FFF;
    border-color: #4CAF50;
}

.timeline-line {
    width: 60px;
    height: 2px;
    background: #ddd;
    margin-top: -25px;
}

/* Layout Split */
.chk-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto 50px;
    width: 95%;
    gap: 30px;
    align-items: flex-start;
}

.chk-left {
    flex: 2;
}

.chk-right {
    flex: 1;
    min-width: 320px;
}

/* Secciones Dinámicas */
.chk-section {
    display: none;
    background: #FFF;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.chk-section.active {
    display: block;
    animation: fadeInSlideUp 0.4s ease forwards;
}

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

/* Cart Box */
.chk-cart-header {
    display: flex;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.chk-cart-items {
    margin-top: 15px;
}

.chk-cart-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.chk-cart-row:last-child {
    border-bottom: none;
}

.c-col-producto { flex: 3; display: flex; align-items: center; gap: 15px; font-weight: 500;}
.c-col-precio, .c-col-cantidad, .c-col-total { flex: 1; font-weight: 600; text-align: center;}

.c-col-producto img {
    width: 60px;
    height: auto;
    border-radius: 4px;
}

.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: fit-content;
    margin: 0 auto;
}

.qty-control button {
    border: none;
    background: #FFF;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
}

.qty-control span {
    padding: 0 10px;
}

/* Summary Box */
.chk-summary-box {
    background: #FFF;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 20px;
}

.promo-code {
    display: flex;
    margin-bottom: 30px;
}

.promo-code input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 2px 0 0 2px;
    outline: none;
}

.promo-code button {
    background: #111;
    color: #FFF;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 2px 2px 0;
}

.chk-summary-box h3 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.chk-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
    color: #555;
}

.chk-row.total {
    font-size: 20px;
    font-weight: 900;
    color: #000;
    margin-top: 15px;
}

.btn-siguiente {
    background: var(--primary);
    color: #FFF;
    border: none;
    width: 100%;
    padding: 15px;
    font-weight: bold;
    font-size: 16px;
    margin-top: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-siguiente:hover {
    background: #e67a00;
}

.btn-back {
    background: transparent;
    border: none;
    color: #666;
    margin-top: 15px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-size: 14px;
}

.btn-back:hover {
    color: #000;
    text-decoration: underline;
}

/* Formularios Varios */
.chk-form-box h2 {
    font-size: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.delivery-option:hover {
    border-color: #999;
}

.delivery-option input:checked + .delivery-details {
    color: var(--primary);
}

.delivery-details {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.delivery-details strong {
    margin-left: auto;
}

/* Card Wrapper para Izipay */
.card-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.card-input-wrapper i {
    position: absolute;
    left: 15px;
    color: #aaa;
    font-size: 20px;
}

.card-input-wrapper input {
    padding-left: 45px;
}

@media (max-width: 900px) {
    .chk-container {
        flex-direction: column;
    }
    .chk-timeline {
        display: none;
    }
    .chk-right {
        width: 100%;
    }
    .c-col-precio, .c-col-cantidad {
        display: none;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #userLoginText {
        display: none; /* Ocultar texto Iniciar Sesion en moviles */
    }
    .user-login-btn .btn {
        padding: 8px !important;
        border-radius: 50% !important;
    }
    .nav-search-container {
        width: 150px;
    }
    .nav-search-container:focus-within {
        width: 180px;
    }
}

@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .shop-header h1 {
        font-size: 32px;
    }
    .product-info {
        padding: 15px;
    }
    .product-image {
        height: 250px;
    }
    
    /* Shrink the search bar heavily on super small mobile to avoid breaking */
    .nav-search-container {
        width: auto !important;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 2px 10px;
        margin-right: 5px;
    }
    .nav-search-input {
        width: 60px;
        transition: width 0.3s ease;
    }
    .nav-search-container:focus-within .nav-search-input {
        width: 100px;
    }

    .checkout-floating-btn {
        width: 90%;
        left: 5%;
        border-radius: 30px;
        bottom: 10px;
    }
}

/* Integración del buscador y login en el menú de hamburguesa */
@media (max-width: 768px) {
    .nav-actions .nav-search-container {
        display: none !important; /* Oculta buscar del navbar principal */
    }
    .nav-actions .user-login-btn {
        display: none !important; /* Oculta login del navbar principal */
    }
    .mobile-search-item {
        display: flex !important; /* Se muestra dentro del ul.nav-links */
    }
    .mobile-login-item {
        display: flex !important; /* Se muestra dentro del ul.nav-links */
    }
}
@media (min-width: 769px) {
    .mobile-search-item {
        display: none !important;
    }
    .mobile-login-item {
        display: none !important;
    }
}
