:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #666666;
    --accent: #000000;
    /* Botones negros */
    --accent-hover: #333333;
    --border-color: #e5e5e5;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR SIMPLIFICADA */
/* Navbar Simplificado */
nav {
    display: flex;
    justify-content: space-between;
    /* Extremos opuestos */
    /* Logo izquierda, carrito derecha */
    align-items: center;
    padding: 1.5rem 2rem;
    /* Reducido el padding derecho para que el carrito esté más pegado */
    background-color: transparent;
    width: 100%;
    /* Ocupar toda la pantalla */
    margin: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #000;
    text-decoration: none;
}

.logo img {
    height: 40px;
    /* Ajusta según tu logo real */
    width: auto;
}

/* Estilos del Carrito */
.cart-container {
    position: relative;
    cursor: pointer;
    margin-right: 0;
    /* Pegado al borde derecho */
    padding: 0.25rem;
    /* Reducido el padding para que esté más pegado */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Sin subrayado de enlace */
}

.cart-container img {
    height: 28px;
    width: 28px;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
    filter: brightness(0) saturate(100%);
    /* Asegura que el icono sea negro puro */
    opacity: 0.85;
}

.cart-container:hover img {
    transform: scale(1.15);
    opacity: 1;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    /* Oculto por defecto si es 0 */
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0);
    border: 2px solid #fff;
    /* Borde blanco para que destaque */
}

.cart-count.active {
    opacity: 1;
    transform: scale(1);
}

/* LANDING PRODUCTO */
.product-page {
    padding: 4rem 0;
    flex: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
        /* More breathing room on sides */
    }

    .product-grid {
        display: block !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Disable sticky gallery on mobile */
    .product-gallery {
        position: static !important;
        width: 100% !important;
        margin-bottom: 1.5rem;
    }

    /* Reduce font sizes for mobile to look less crowded */
    .product-info h1 {
        font-size: 2rem;
        /* Smaller title */
    }

    .price-block {
        font-size: 1.2rem;
    }

    .big-rating {
        font-size: 2.5rem;
    }

    /* Ensure lists have room */
    .features-list {
        padding-left: 0.5rem;
    }
}

/* Galería (Izquierda) */
.product-gallery {
    position: sticky;
    top: 100px;
    /* Se queda fija al hacer scroll (Only desktop now effectively, unless overridden) */
}

/* Zoom Effect */
/* Zoom Effect */
.main-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-out;
    /* Faster for tracking mouse */
    transform-origin: center center;
}


/* USE GIFS SECTION */
.usage-gifs-section {
    margin-top: 4rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.usage-gifs-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.gifs-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.gif-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gif-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    /* Or maybe video header size? keeping it square or adaptable */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gif-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gif-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.gif-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 90%;
}


/* REVIEWS SECTION */
.reviews-section {
    padding-top: 4rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.reviews-summary-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.big-rating {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stars.big {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.btn-write-review {
    background: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-write-review:hover {
    background: var(--text-primary);
    color: #fff;
}

/* Masonry-like Grid for Reviews */
.reviews-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

@media (max-width: 968px) {
    .reviews-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .reviews-grid {
        column-count: 1;
    }
}

.review-card {
    break-inside: avoid;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-badge {
    color: #2ecc71;
    font-size: 0.8rem;
}

.review-date {
    font-size: 0.8rem;
    color: #999;
}

.review-stars {
    color: #ffd700;
    font-size: 1.3rem;
    /* Made larger */
    margin-bottom: 0.5rem;
}

.review-variant {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.review-image-container {
    margin-bottom: 0.8rem;
    border-radius: 8px;
    overflow: hidden;
}

.review-uploaded-img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
}

.review-content {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #f9f9f9;
    padding-top: 0.8rem;
    font-size: 0.85rem;
    color: #999;
}

.btn-helpful {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.btn-helpful:hover {
    color: var(--text-primary);
}


/* Modal Review Content */
.modal-content-review {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    margin: auto;
    text-align: left;
    /* Reset text align */
}

.review-product-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.review-product-summary img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.review-product-summary span {
    font-weight: 600;
    color: var(--text-primary);
}

.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.2s;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #000;
}

.review-form textarea {
    height: 120px;
    resize: vertical;
}

.rating-stars-input {
    display: flex;
    gap: 5px;
    cursor: pointer;
}

.star-input {
    font-size: 2rem;
    color: #e0e0e0;
    /* Gray by default */
    transition: color 0.2s;
}

.star-input.active,
.star-input:hover,
.star-input:hover~.star-input {
    /* Logic handled by JS, but 'active' class usually for selected */
}

/* We'll use JS for hover logic mainly, but here is selected state class */
.star-input.selected {
    color: #ffd700;
}

.btn-submit-review {
    width: 100%;
    background-color: #fca311;
    /* Similar orange/yellow */
    color: #fff;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-review:hover {
    background-color: #e8960f;
}

/* File input simple styling */
.file-input {
    font-size: 0.9rem;
}

/* Modal / Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.thumbnails-grid {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
    /* Centrar las miniaturas */
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--accent);
    opacity: 1;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info (Derecha) */
.product-info h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.price-block {
    margin: 1.5rem 0;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-size: 1.5rem;
}

.original-price {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-weight: 400;
    font-size: 1.2rem;
}

.current-price {
    font-weight: 700;
    color: var(--text-primary);
}

.sale-badge {
    background: #000;
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    transform: translateY(-2px);
}

.reviews {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stars {
    color: #ffd700;
    /* Dorado para estrellas */
}

/* Beneficios */
.features-list {
    list-style: none;
    margin: 2rem 0;
}

.features-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.check-icon {
    color: var(--text-primary);
    font-weight: bold;
}

/* CTA */
.cta-block {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-add-cart {
    background: var(--accent);
    color: #fff;
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-cart:hover {
    background: var(--accent-hover);
}

.payment-icons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 0.3rem;
    /* Extremadamente pegado */
    width: 100%;
}

.payment-icons img {
    height: 24px;
    /* Más pequeños */
    width: 38px;
    padding: 3px;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    object-fit: contain;
    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.trust-badges {
    margin-top: 1rem;
    /* Más cerca de los logos */
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding-top: 1rem;
    /* Línea divisoria muy cerca */
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-primary);
    gap: 0.8rem;
    flex: 1;
    /* Para que ocupen el mismo espacio */
}

/* Iconos de trust badges (Imagen y Emojis) */
.trust-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 4px;
    /* Un poco de aire solo aquí */
    display: block;
    /* Asegurar que se comporta como bloque para margenes */
    margin-left: auto;
    margin-right: auto;
}

/* Ajuste óptico para el icono de entrega rápida (reloj) */
.icon-nudge-left {
    position: relative;
    right: 4px;
    /* Lo empuja visualmente a la izquierda */
}

.trust-item strong {
    display: block;
    margin: 0;
    /* CERO margen */
    padding: 0;
    /* CERO padding */
    margin-bottom: 0;
    /* Cero separación abajo */
    font-size: 0.85rem;
    line-height: 1.1;
    /* Altura mínima */
    color: #000;
}

.trust-item span {
    display: block;
    font-size: 0.8rem;
    color: #333;
    margin: 0;
    /* CERO margen */
    padding: 0;
    /* CERO padding */
    margin-top: -5px;
    /* Margen negativo para subirlo y pegarlo al título */
    line-height: 1.1;
    /* Altura mínima */
}


/* Footer limpio */
footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* ------------------------------------------- */
/* BLACK FRIDAY TICKER (SOLICITADO NO TOCAR)   */
/* ------------------------------------------- */
.ticker-wrap {
    width: 100%;
    background-color: #000;
    overflow: hidden;
    height: 30px;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    width: fit-content;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    flex-shrink: 0;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 0;
    white-space: nowrap;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ------------------------------------------- */
/* PÁGINA DEL CARRITO                          */
/* ------------------------------------------- */
.cart-page {
    padding: 3rem 0;
    min-height: 60vh;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.continue-shopping {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.continue-shopping:hover {
    color: var(--text-primary);
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 968px) {
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-page {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Carrito Vacío */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9f9f9;
    border-radius: 12px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-cart h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

/* Items del Carrito */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

@media (max-width: 768px) {

    /* Header adjustments */
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cart-header h1 {
        font-size: 2rem;
    }

    .continue-shopping {
        font-size: 0.9rem;
    }

    /* Cart Item Card adjustments */
    .cart-item {
        display: flex !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        position: relative;
    }

    .item-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        grid-row: auto;
    }

    /* Flex column for details */
    .item-details {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
        grid-column: auto;
        grid-row: auto;
    }

    .item-price {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .item-quantity {
        grid-column: auto;
        grid-row: auto;
        width: fit-content;
        margin-top: 0;
        padding: 0.2rem 0.5rem;
    }

    .qty-btn {
        width: 24px;
        height: 24px;
        font-size: 1.1rem;
    }

    /* Hide per-item total on mobile */
    .item-total {
        display: none;
    }

    .item-remove {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.2rem;
    }
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.item-image {
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.item-price {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    border-radius: 4px;
}

.qty-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.item-quantity span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.item-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.item-remove {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 4px;
}

.item-remove:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Resumen del Carrito */
.cart-summary {
    position: sticky;
    top: 100px;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cart-summary h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-line.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-checkout {
    display: block;
    /* Ensure it behaves like a block */
    width: 100%;
    background: var(--accent);
    color: #fff;
    padding: 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    /* Center text */
    text-decoration: none;
    /* Remove underline */
}

.btn-checkout:hover {
    background: var(--accent-hover);
}

.trust-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.trust-mini {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trust-mini span {
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1rem;
}

.trust-mini p {
    margin: 0;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .item-quantity,
    .item-total {
        grid-column: 2;
    }

    .item-remove {
        grid-column: 2;
        justify-self: end;
    }
}

/* Centered Empty Cart Layout */
.cart-content.is-empty {
    display: block;
}

.cart-content.is-empty .cart-items {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Language Selector */
.nav-right {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
}

.language-selector {
    position: relative;
}

.lang-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 5px;
    font-weight: 700;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.arrow {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    display: none;
    z-index: 100;
    margin-top: 10px;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: background 0.1s;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option.active {
    font-weight: 600;
    background: #f9f9f9;
}

/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    animation: scaleUp 0.2s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    to {
        transform: scale(1);
    }
}

.modal-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-modal {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.btn-modal.cancel {
    background: #f0f0f0;
    color: var(--text-primary);
}

.btn-modal.confirm {
    background: #e74c3c;
    color: #fff;
}

/* Checkout Page */
.checkout-page {
    padding: 3rem 0;
    min-height: 80vh;
}

.checkout-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 968px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
        /* Add breathing room */
    }

    /* Move summary back to top */
    .checkout-summary-section {
        grid-row: 1;
    }

    .checkout-form-section {
        grid-row: 2;
        /* No margin bottom needed if it's last */
    }

    /* Stack form rows (City/Zip) */
    .form-row {
        grid-template-columns: 1fr !important;
    }

    .checkout-title {
        font-size: 1.8rem;
    }
}

.checkout-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.checkout-form .form-group {
    margin-bottom: 1.2rem;
}

.checkout-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.checkout-form input:focus,
.checkout-form select:focus {
    border-color: #000;
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-summary-box {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.checkout-item-img {
    position: relative;
    width: 64px;
    height: 64px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    padding: 2px;
}

.checkout-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.checkout-item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #666;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.checkout-item-details h4 {
    font-size: 0.95rem;
    margin: 0 0 0.2rem 0;
    color: var(--text-primary);
}

.checkout-item-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.checkout-item-price {
    margin-left: auto;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Custom Select Styles */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-select__trigger:hover {
    border-color: #999;
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid var(--border-color);
    border-top: 0;
    background: #fff;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10;
    max-height: 200px;
    /* Scrollable */
    overflow-y: auto;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    margin-top: 4px;
    /* Slight gap? Or connected. standardized margin top */
}

.custom-select.open .custom-select__trigger {
    /* optionally change border radius or color */
    border-color: #000;
}


.custom-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.8rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
    gap: 10px;
    /* Space between flag and text */
}

.custom-option:hover {
    background-color: #f2f2f2;
}

.custom-option.selected {
    background-color: #e9e9e9;
    font-weight: 600;
}

.flag-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    /* make flags slightly larger */
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.arrow {
    position: relative;
    height: 10px;
    width: 10px;
}

.arrow::before,
.arrow::after {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 0.15rem;
    height: 100%;
    transition: all 0.2s;
}

.arrow::before {
    left: -3px;
    transform: rotate(45deg);
    background-color: #394a6d;
}

.arrow::after {
    left: 3px;
    transform: rotate(-45deg);
    background-color: #394a6d;
}

.open .arrow::before {
    transform: rotate(-45deg);
}

.open .arrow::after {
    transform: rotate(45deg);
}