/* =====================================================
   AR GYM CLOTHES - PAGES STYLES (Option 3: Warm & Organic)
   Additional page styles for catalog, product, cart, etc.
   ===================================================== */

/* =====================================================
   CATALOG PAGE
   ===================================================== */

.catalog-section {
    padding: 60px 0;
    background: var(--beige-light);
}

.catalog-header {
    margin-bottom: 50px;
}

.breadcrumb-nav {
    margin-bottom: 15px;
}

.breadcrumb-nav a {
    color: var(--cafe);
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumb-nav span {
    color: var(--cafe-light);
    margin: 0 10px;
}

.catalog-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--cafe);
    font-weight: 600;
}

.catalog-subtitle {
    color: var(--cafe-light);
    margin-top: 8px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--blanco);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--beige);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--cafe);
    margin-bottom: 18px;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--cafe);
    font-size: 0.95rem;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--cafe);
    border-radius: var(--radius-sm);
}

.filter-option .count {
    color: var(--cafe-light);
    margin-left: auto;
    font-size: 0.85rem;
}

.filter-color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.color-swatch:hover,
.color-swatch.active {
    border-color: var(--cafe);
    transform: scale(1.1);
}

/* Size Options */
.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    min-width: 45px;
    padding: 10px 15px;
    border: 1px solid var(--beige);
    background: var(--blanco);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.size-btn:hover,
.size-btn.active {
    background: var(--cafe);
    color: white;
    border-color: var(--cafe);
}

.clear-filters {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid var(--cafe);
    border-radius: var(--radius-full);
    color: var(--cafe);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.clear-filters:hover {
    background: var(--cafe);
    color: white;
}

/* Product Grid Controls */
.grid-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: var(--blanco);
    border-radius: var(--radius-lg);
}

.results-count {
    color: var(--cafe-light);
    font-size: 0.9rem;
}

.controls-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sort-select {
    padding: 10px 18px;
    border: 1px solid var(--beige);
    border-radius: var(--radius-full);
    background: var(--blanco);
    color: var(--cafe);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--blanco);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--beige-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image i {
    font-size: 4rem;
    color: var(--beige);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.product-badge.new {
    background: var(--cafe);
    color: white;
}

.product-badge.sale {
    background: #e74c3c;
    color: white;
}

.product-actions {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s;
}

.btn-quick-view,
.btn-add-cart {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-quick-view {
    background: var(--blanco);
    color: var(--cafe);
}

.btn-add-cart {
    background: var(--cafe);
    color: white;
}

.btn-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blanco);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    background: var(--cafe);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--cafe-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    color: var(--cafe);
    margin: 10px 0;
    font-weight: 600;
}

.product-name a {
    color: inherit;
    text-decoration: none;
}

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

.price-current {
    font-weight: 700;
    color: var(--cafe);
    font-size: 1.05rem;
}

.price-old {
    color: var(--cafe-light);
    text-decoration: line-through;
    font-size: 0.9rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--beige);
    background: var(--blanco);
    border-radius: var(--radius-md);
    color: var(--cafe);
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background: var(--cafe);
    color: white;
    border-color: var(--cafe);
}

/* =====================================================
   CART PAGE
   ===================================================== */

.cart-section {
    padding: 60px 0;
    background: var(--beige-light);
}

.cart-header {
    margin-bottom: 40px;
}

.cart-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--cafe);
    font-weight: 600;
}

.cart-count-text {
    color: var(--cafe-light);
    margin-top: 8px;
}

/* Cart Items */
.cart-items {
    background: var(--blanco);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 25px;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--beige);
}

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

.cart-item-image {
    aspect-ratio: 1;
    background: var(--beige-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.cart-item-image i {
    font-size: 2rem;
    color: var(--beige);
}

.cart-item-info h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--cafe);
    margin-bottom: 5px;
    font-weight: 600;
}

.cart-item-info h3 a {
    color: inherit;
    text-decoration: none;
}

.cart-item-variant {
    color: var(--cafe-light);
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--cafe);
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--beige);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.cart-qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--cafe);
}

.cart-qty-btn:hover {
    background: var(--beige-light);
}

.cart-qty-input {
    width: 45px;
    height: 38px;
    border: none;
    border-left: 1px solid var(--beige);
    border-right: 1px solid var(--beige);
    text-align: center;
    font-weight: 600;
}

.cart-item-total {
    font-weight: 700;
    color: var(--cafe);
    font-size: 1.05rem;
}

.cart-item-remove {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--cafe-light);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}

.cart-item-remove:hover {
    background: #fee;
    color: #e74c3c;
}

/* Cart Summary */
.cart-summary {
    background: var(--blanco);
    padding: 30px;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--cafe);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--beige);
    font-weight: 600;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--cafe);
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    padding-top: 15px;
    border-top: 2px solid var(--cafe);
    margin-top: 20px;
}

.summary-row .discount {
    color: #27ae60;
}

/* Promo Code */
.promo-code {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid var(--beige);
    border-bottom: 1px solid var(--beige);
}

.promo-code label {
    font-weight: 600;
    color: var(--cafe);
    display: block;
    margin-bottom: 10px;
}

.promo-input-group {
    display: flex;
    gap: 10px;
}

.promo-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--beige);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.promo-input-group button {
    padding: 12px 20px;
    background: var(--beige);
    border: none;
    border-radius: var(--radius-md);
    color: var(--cafe);
    font-weight: 600;
    cursor: pointer;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--cafe);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.btn-checkout:hover {
    background: var(--cafe-dark);
    transform: translateY(-2px);
}

.btn-continue-shopping {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid var(--cafe);
    border-radius: var(--radius-full);
    color: var(--cafe);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--cafe-light);
    font-size: 0.85rem;
}

/* =====================================================
   NOVEDADES / SOCIAL WALL
   ===================================================== */

.novedades-section {
    padding: 40px 0 80px;
    background: var(--beige-light);
    min-height: 70vh;
}

.novedades-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.novedades-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--cafe-dark);
    margin-bottom: 0.5rem;
}
.novedades-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.novedades-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.novedades-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.novedades-social-btn.instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}
.novedades-social-btn.tiktok {
    background: #000;
    color: white;
}
.novedades-social-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.novedades-feed {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.novedad-card {
    background: var(--blanco);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow: hidden;
}

.novedad-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.novedad-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cafe);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.novedad-author-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cafe-dark);
}
.novedad-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.novedad-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cafe-dark);
    margin-bottom: 8px;
}

.novedad-text {
    font-size: 0.9rem;
    color: var(--cafe);
    line-height: 1.6;
    white-space: pre-line;
    margin-bottom: 14px;
}

.novedad-images {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
}
.novedad-images.one { }
.novedad-images.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.novedad-img {
    aspect-ratio: 1;
    overflow: hidden;
}
.novedad-images.one .novedad-img {
    aspect-ratio: 16/9;
}
.novedad-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.novedad-embed {
    margin-bottom: 14px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    justify-content: center;
}
.novedad-embed iframe {
    border-radius: var(--radius-md);
    max-width: 100%;
}

.novedad-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--beige-light);
    border-radius: var(--radius-full);
    color: var(--cafe);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}
.novedad-link:hover { background: var(--crema); }

/* =====================================================
   INFO PAGES (Shipping, Returns, FAQ)
   ===================================================== */

.info-page-section {
    padding: 40px 0 80px;
    background: var(--beige-light);
    min-height: 70vh;
}

.info-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.info-page-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--cafe-dark);
    margin-bottom: 0.5rem;
}
.info-page-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.info-page-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--blanco);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.info-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--crema);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--cafe);
    margin-bottom: 1rem;
}
.info-card-icon.coming-soon {
    background: var(--beige);
    color: var(--cafe-light);
}
.info-card-icon.warning {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.info-card h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cafe-dark);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-highlight {
    color: var(--verde-salvia) !important;
    font-weight: 600;
}

.info-badge-soon {
    display: inline-block;
    padding: 4px 14px;
    background: var(--crema);
    color: var(--cafe);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--cafe);
    line-height: 1.5;
}
.info-list li i {
    color: var(--verde-salvia);
    margin-top: 3px;
    flex-shrink: 0;
}
.info-list li i.bi-x-circle { color: #dc3545; }
.info-list li i.bi-clock,
.info-list li i.bi-lightning,
.info-list li i.bi-box-seam { color: var(--cafe-light); }
.info-list.muted li { color: var(--text-muted); }
.info-list a { color: var(--cafe); }

.info-note {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    background: var(--beige-light);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--cafe);
    align-items: flex-start;
}
.info-note i { color: var(--cafe-light); margin-top: 2px; flex-shrink: 0; }
.info-note p { margin: 0; }
.info-note a { color: var(--cafe); font-weight: 600; }

.info-steps {
    padding-left: 1.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-steps li {
    font-size: 0.9rem;
    color: var(--cafe);
    line-height: 1.5;
    padding-left: 8px;
}
.info-steps li::marker { color: var(--cafe); font-weight: 700; }
.info-steps a { color: var(--cafe); font-weight: 600; }

/* FAQ Accordion */
.faq-category-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--cafe-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--crema);
}
.faq-category-title:first-child { margin-top: 0; }
.faq-category-title i { color: var(--cafe-light); }

.faq-item {
    background: var(--blanco);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cafe-dark);
    text-align: left;
    gap: 12px;
    transition: background 0.2s;
}
.faq-question:hover { background: var(--beige-light); }
.faq-question i {
    color: var(--cafe-light);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-answer {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.faq-answer a { color: var(--cafe); font-weight: 500; }
.faq-answer strong { color: var(--cafe); }

/* =====================================================
   STORE LOCATION SECTION
   ===================================================== */

.store-location-section {
    padding: 60px 0;
    background: var(--blanco);
}

.store-location-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.store-location-header .section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--cafe-dark);
    margin-bottom: 0.5rem;
}
.store-location-header .section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.store-location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.store-location-map {
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.store-location-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.store-location-detail {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.store-location-detail > i {
    font-size: 1.2rem;
    color: var(--cafe);
    margin-top: 2px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}
.store-location-detail strong {
    display: block;
    font-size: 0.85rem;
    color: var(--cafe-dark);
    margin-bottom: 2px;
}
.store-location-detail p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.store-location-detail a {
    color: var(--cafe);
    text-decoration: none;
}
.store-location-detail a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .store-location-content {
        grid-template-columns: 1fr;
    }
    .store-location-map { height: 280px; }
}

/* =====================================================
   CHECKOUT PAGE
   ===================================================== */

.checkout-section {
    padding: 40px 0 80px;
    background: var(--beige-light);
    min-height: 70vh;
}

.checkout-title {
    font-family: var(--font-display);
    color: var(--cafe-dark);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.checkout-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--beige-light);
    border-radius: var(--radius-lg);
}
.checkout-empty i { font-size: 4rem; color: var(--cafe); display: block; margin-bottom: 1.5rem; }
.checkout-empty h2 { font-family: var(--font-display); color: var(--cafe-dark); margin-bottom: 0.5rem; }
.checkout-empty p { color: var(--text-muted); margin-bottom: 2rem; }

.checkout-card {
    background: var(--blanco);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--crema);
}
.checkout-card-header h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--cafe-dark);
    margin: 0;
}

.checkout-step {
    width: 32px;
    height: 32px;
    background: var(--cafe);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.checkout-card-body { padding: 24px; }

.checkout-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* Delivery Options */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 2px solid var(--crema);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}
.delivery-option:hover:not(.disabled) {
    border-color: var(--cafe-light);
}
.delivery-option.selected {
    border-color: var(--cafe);
    background: rgba(74, 55, 40, 0.03);
}

.delivery-option.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--beige-light);
}

.delivery-option-radio {
    padding-top: 2px;
    flex-shrink: 0;
}
.radio-dot {
    width: 20px;
    height: 20px;
    border: 2px solid var(--crema-dark, #c4b8a8);
    border-radius: 50%;
    display: block;
    position: relative;
    transition: all 0.2s;
}
.radio-dot.active {
    border-color: var(--cafe);
}
.radio-dot.active::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: var(--cafe);
    border-radius: 50%;
}

.delivery-option-icon {
    width: 44px;
    height: 44px;
    background: var(--crema);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--cafe);
    flex-shrink: 0;
}
.delivery-option.selected .delivery-option-icon {
    background: var(--cafe);
    color: white;
}

.delivery-option-info { flex: 1; }
.delivery-option-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cafe-dark);
    margin: 0 0 4px;
}
.delivery-option-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.delivery-option-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--cafe-light);
}
.delivery-option-details span { display: flex; align-items: center; gap: 4px; }

.delivery-coming-soon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--crema);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--cafe);
    font-weight: 500;
}

.delivery-option-price { flex-shrink: 0; text-align: right; }

.free-badge {
    background: var(--verde-salvia);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.coming-soon-badge {
    background: var(--crema);
    color: var(--cafe);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.free-text { color: var(--verde-salvia); font-weight: 600; }

/* Checkout Items */
.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--crema);
}
.checkout-item:last-child { border-bottom: none; }

.checkout-item-image {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-item-image img { width: 100%; height: 100%; object-fit: cover; }

.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name {
    font-weight: 600;
    color: var(--cafe-dark);
    font-size: 0.9rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.checkout-item-variant {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.checkout-item-qty {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.checkout-item-total {
    font-weight: 600;
    color: var(--cafe-dark);
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

.checkout-edit-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--cafe);
    text-decoration: none;
    font-weight: 500;
}
.checkout-edit-cart:hover { text-decoration: underline; }

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cart-select-all {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--crema);
}
.cart-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cafe);
}
.cart-checkbox-label input[type="checkbox"],
.cart-item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--cafe);
    cursor: pointer;
    flex-shrink: 0;
}
.cart-item-checkbox {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}
.cart-item-deselected {
    opacity: 0.45;
}

.checkout-spei-info {
    background: var(--beige-light, #faf7f2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
}
.checkout-spei-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--crema, #E8DFD0);
}
.checkout-spei-row:last-child { border-bottom: none; }
.checkout-spei-row span { color: var(--text-muted, #8a7a6d); }
.checkout-spei-row strong {
    color: var(--cafe-dark, #3a2a1c);
    font-family: monospace;
    letter-spacing: 0.5px;
}
.checkout-spei-row.highlight {
    background: var(--cafe, #4A3728);
    color: white;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin: 4px -8px;
}
.checkout-spei-row.highlight span { color: rgba(255,255,255,0.7); }
.checkout-spei-row.highlight strong { color: white; font-size: 1.1rem; }

.checkout-payment-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(241, 196, 15, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--cafe);
    margin-top: 8px;
}
.checkout-payment-warning i {
    color: #d4a10a;
    margin-top: 2px;
    flex-shrink: 0;
}

/* =====================================================
   ACCOUNT PAGES
   ===================================================== */

.account-section,
.orders-section {
    padding: 60px 0;
    background: var(--beige-light);
}

.account-sidebar {
    background: var(--blanco);
    padding: 30px;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 100px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--beige);
}

.user-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--cafe), var(--cafe-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.user-info h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--cafe);
    margin-bottom: 3px;
    font-weight: 600;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--cafe-light);
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    color: var(--cafe);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.account-nav .nav-item:hover {
    background: var(--beige-light);
}

.account-nav .nav-item.active {
    background: var(--cafe);
    color: white;
}

.account-nav .nav-item.logout {
    margin-top: 15px;
    color: #e74c3c;
}

/* Account Content */
.account-content,
.orders-content {
    padding-left: 30px;
}

.page-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--cafe);
    margin-bottom: 30px;
    font-weight: 600;
}

/* Account Stats */
.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--blanco);
    padding: 25px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-icon.orders {
    background: rgba(139, 90, 43, 0.1);
    color: var(--cafe);
}

.stat-icon.wishlist {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.stat-icon.points {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.stat-info .stat-value {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--cafe);
    font-weight: 700;
}

.stat-info .stat-label {
    color: var(--cafe-light);
    font-size: 0.9rem;
}

/* Account Blocks */
.account-block {
    background: var(--blanco);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: var(--radius-lg);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--beige);
}

.block-header h2 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--cafe);
    font-weight: 600;
}

.view-all {
    color: var(--cafe);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-btn,
.add-btn {
    padding: 8px 18px;
    border: 1px solid var(--cafe);
    background: transparent;
    border-radius: var(--radius-full);
    color: var(--cafe);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-btn:hover,
.add-btn:hover {
    background: var(--cafe);
    color: white;
}

/* =====================================================
   LOGIN / REGISTER PAGE
   ===================================================== */

.auth-page {
    min-height: 100vh;
    background: var(--beige-light);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-branding {
    background: linear-gradient(135deg, var(--cafe), #5d3a1a);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 50px 50px 0;
}

.branding-content {
    max-width: 400px;
    color: white;
    text-align: center;
}

.auth-logo {
    height: 60px;
    margin-bottom: 40px;
    filter: brightness(0) invert(1);
}

.branding-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 600;
}

.branding-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* Auth Forms */
.auth-forms {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.back-home {
    position: absolute;
    top: 30px;
    right: 60px;
    color: var(--cafe);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-form-container {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

.auth-form-container.hidden {
    display: none;
}

.form-header {
    margin-bottom: 35px;
}

.form-header h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--cafe);
    margin-bottom: 10px;
    font-weight: 600;
}

.form-header p {
    color: var(--cafe-light);
}

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

.auth-form .form-group label {
    display: block;
    font-weight: 500;
    color: var(--cafe);
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cafe-light);
}

.input-with-icon input {
    width: 100%;
    padding: 15px 18px 15px 50px;
    border: 1px solid var(--beige);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--cafe);
}

.btn-auth {
    width: 100%;
    padding: 16px;
    background: var(--cafe);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.btn-auth:hover {
    background: var(--cafe-dark);
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--beige);
}

.divider span {
    background: var(--beige-light);
    padding: 0 20px;
    color: var(--cafe-light);
    font-size: 0.9rem;
    position: relative;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-btn {
    padding: 14px;
    border: 1px solid var(--beige);
    background: var(--blanco);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-switch {
    text-align: center;
    margin-top: 30px;
    color: var(--cafe-light);
}

.auth-switch a {
    color: var(--cafe);
    font-weight: 600;
    text-decoration: none;
}

/* =====================================================
   WISHLIST PAGE
   ===================================================== */

.wishlist-section {
    padding: 60px 0;
    background: var(--beige-light);
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.wishlist-header .page-title {
    margin-bottom: 0;
}

.wishlist-count {
    color: var(--cafe-light);
}

.wishlist-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-add-all,
.btn-share {
    padding: 12px 25px;
    border: 2px solid var(--cafe);
    background: transparent;
    border-radius: var(--radius-full);
    color: var(--cafe);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-all:hover,
.btn-share:hover {
    background: var(--cafe);
    color: white;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.wishlist-item {
    background: var(--blanco);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.remove-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blanco);
    border: none;
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--shadow-soft);
}

.remove-wishlist:hover {
    background: #e74c3c;
    color: white;
}

.item-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--cafe);
    color: white;
    z-index: 2;
}

.item-badge.sale {
    background: #e74c3c;
}

.item-badge.out {
    background: #95a5a6;
}

.item-img-placeholder {
    aspect-ratio: 1;
    background: var(--beige-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-img-placeholder i {
    font-size: 3rem;
    color: var(--beige);
}

.wishlist-item .item-info {
    padding: 20px;
}

.item-category {
    font-size: 0.75rem;
    color: var(--cafe-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--cafe);
    margin: 8px 0;
    font-weight: 600;
}

.item-name a {
    color: inherit;
    text-decoration: none;
}

.item-price {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--cafe);
}

.btn-add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--cafe);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-notify {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--cafe);
    background: transparent;
    border-radius: var(--radius-full);
    color: var(--cafe);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* =====================================================
   ORDERS PAGE
   ===================================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.orders-filter select {
    padding: 10px 20px;
    border: 1px solid var(--beige);
    border-radius: var(--radius-md);
    background: var(--blanco);
    color: var(--cafe);
}

/* Order Cards */
.order-card {
    background: var(--blanco);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: var(--radius-lg);
}

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

.order-main-info .order-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--cafe);
    font-weight: 600;
}

.order-main-info .order-date {
    font-size: 0.85rem;
    color: var(--cafe-light);
}

.order-status-badge {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-status-badge.processing {
    background: rgba(241, 196, 15, 0.15);
    color: #d4a10a;
}

.order-status-badge.delivered {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

/* Order Tracking */
.order-tracking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 20px;
}

.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--cafe-light);
}

.tracking-step.completed,
.tracking-step.active {
    color: var(--cafe);
}

.step-icon {
    width: 50px;
    height: 50px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.tracking-step.completed .step-icon {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.tracking-step.active .step-icon {
    background: var(--cafe);
    border-color: var(--cafe);
    color: white;
}

.tracking-step span {
    font-size: 0.85rem;
}

.tracking-line {
    flex: 1;
    height: 2px;
    background: var(--beige);
    margin: 0 10px;
    margin-bottom: 30px;
}

.tracking-line.completed {
    background: #27ae60;
}

/* Order Empty State */
.orders-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--blanco);
    border-radius: var(--radius-lg);
}
.orders-empty i { font-size: 3.5rem; color: var(--cafe); display: block; margin-bottom: 1rem; }
.orders-empty h2 { font-family: var(--font-display); color: var(--cafe-dark); margin-bottom: 0.5rem; }
.orders-empty p { color: var(--text-muted); margin-bottom: 1.5rem; }

.orders-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Order Status Tabs (client) */
.order-status-tab {
    padding: 8px 16px;
    background: var(--blanco);
    border: 1px solid var(--crema);
    border-radius: var(--radius-full);
    color: var(--cafe-light, #8a7a6d);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.order-status-tab:hover { border-color: var(--cafe); color: var(--cafe); }
.order-status-tab.active {
    background: var(--cafe);
    border-color: var(--cafe);
    color: white;
}
.order-tab-count {
    font-size: 0.75rem;
    background: rgba(0,0,0,0.08);
    padding: 1px 8px;
    border-radius: 10px;
}
.order-status-tab.active .order-tab-count {
    background: rgba(255,255,255,0.2);
}

.order-status-badge.ready {
    background: rgba(74, 55, 40, 0.12);
    color: var(--cafe);
}

.order-status-badge.in-transit {
    background: rgba(52, 152, 219, 0.15);
    color: #2980b9;
}

.order-delivery-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--cafe-light);
    margin-bottom: 20px;
}

.order-item-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Order Items Preview */
.order-items-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--beige);
}

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

.item-preview .item-img {
    width: 55px;
    height: 55px;
    background: var(--beige-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.item-preview .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-preview .item-img i {
    font-size: 1.3rem;
    color: var(--beige);
}

.item-preview .item-price {
    margin-left: auto;
    font-weight: 600;
    color: var(--cafe-dark);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.item-preview .item-details .item-name {
    display: block;
    font-weight: 600;
    color: var(--cafe);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.item-preview .item-details .item-variant {
    font-size: 0.8rem;
    color: var(--cafe-light);
}

/* Order Footer */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-footer .order-total span {
    color: var(--cafe-light);
    margin-right: 10px;
}

.order-footer .order-total strong {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--cafe);
}

.order-actions {
    display: flex;
    gap: 12px;
}

.btn-track,
.btn-details,
.btn-review,
.btn-reorder {
    padding: 10px 20px;
    border: 2px solid var(--cafe);
    background: transparent;
    border-radius: var(--radius-full);
    color: var(--cafe);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-track {
    background: var(--cafe);
    color: white;
}

/* Orders Pagination */
.orders-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
}

.orders-pagination .showing {
    color: var(--cafe-light);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.pagination-controls button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--beige);
    background: var(--blanco);
    border-radius: var(--radius-md);
    color: var(--cafe);
    cursor: pointer;
}

.pagination-controls button:hover,
.pagination-controls button.active {
    background: var(--cafe);
    color: white;
    border-color: var(--cafe);
}

/* =====================================================
   STORE COMPONENTS (shared by product detail & others)
   ===================================================== */

/* --- Breadcrumb Nav --- */
.breadcrumb-section {
    margin-bottom: 10px;
}

.breadcrumb-section .breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb-section .breadcrumb-nav a {
    color: var(--cafe);
    text-decoration: none;
}

.breadcrumb-section .breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-section .breadcrumb-nav span {
    color: var(--cafe-light);
}

.breadcrumb-section .breadcrumb-nav .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* --- Product Gallery --- */
.product-gallery {
    display: flex;
    gap: 12px;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    flex-shrink: 0;
}

.gallery-thumbnails .thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--beige-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.gallery-thumbnails .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails .thumbnail i {
    font-size: 1.5rem;
    color: var(--cafe-light);
    opacity: 0.4;
}

.gallery-thumbnails .thumbnail.active,
.gallery-thumbnails .thumbnail:hover {
    border-color: var(--cafe);
}

.main-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--beige-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    aspect-ratio: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image i {
    font-size: 4rem;
    color: var(--cafe-light);
    opacity: 0.3;
}

.main-image span {
    color: var(--cafe-light);
    opacity: 0.5;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.main-image .image-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e74c3c;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* --- Size Selector & Quantity (shared .option-section) --- */
.option-section {
    margin-bottom: 1rem;
}

.option-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.option-label span {
    font-weight: 400;
    color: var(--cafe-light);
    margin-left: 6px;
}

.size-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option {
    min-width: 44px;
    padding: 10px 16px;
    border: 1px solid var(--beige-dark);
    background: var(--blanco);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.size-option:hover {
    border-color: var(--cafe);
    color: var(--cafe);
}

.size-option.active {
    background: var(--cafe);
    border-color: var(--cafe);
    color: white;
}

.size-option.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.size-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: var(--cafe);
    text-decoration: none;
    font-size: 0.85rem;
}

.size-guide-link:hover {
    text-decoration: underline;
}

/* --- Quantity Selector --- */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--beige-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--blanco);
}

.qty-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cafe);
    font-size: 1rem;
    transition: background 0.2s;
}

.qty-btn:hover:not(:disabled) {
    background: var(--beige-light);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-input {
    width: 50px;
    height: 42px;
    border: none;
    border-left: 1px solid var(--beige-dark);
    border-right: 1px solid var(--beige-dark);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--blanco);
    -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Product Meta --- */
.product-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--beige);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--beige-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.meta-icon i {
    font-size: 1rem;
    color: var(--cafe);
}

.meta-text {
    display: flex;
    flex-direction: column;
}

.meta-text strong {
    font-size: 0.85rem;
    color: var(--text-dark);
}

.meta-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Product Tabs --- */
.product-tabs-section {
    margin-top: 3rem;
}

.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--beige);
    margin-bottom: 0;
}

.tab-btn {
    padding: 14px 24px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--cafe-light);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: var(--cafe);
}

.tab-btn.active {
    color: var(--cafe);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cafe);
}

.tab-content {
    background: var(--blanco);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* --- Review Summary --- */
.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.rating-overview {
    text-align: center;
    padding: 1rem;
}

.rating-big {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--cafe);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.rating-overview span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.5rem;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rating-bar-item span:first-child {
    min-width: 75px;
    white-space: nowrap;
}

.rating-bar-item span:last-child {
    min-width: 35px;
    text-align: right;
}

.bar-bg {
    flex: 1;
    height: 8px;
    background: var(--beige);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--cafe);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* =====================================================
   PRODUCT DETAIL PAGE
   ===================================================== */

.product-detail-row {
    margin-top: 1.5rem;
}

.product-detail-info {
    padding-left: 1.5rem;
}

.product-detail-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.product-detail-pricing {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-detail-pricing .price-current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cafe);
}

.product-detail-pricing .price-original {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 1.1rem;
}

.product-detail-pricing .discount-badge {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-detail-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-detail-brand {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.palette-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.palette-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border-light);
    padding: 0;
}

.palette-option:hover {
    transform: scale(1.15);
}

.palette-option.active {
    border-color: var(--cafe);
    box-shadow: 0 0 0 2px var(--cafe);
}

.palette-option i {
    font-size: 0.75rem;
    color: #fff;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.product-detail-quantity {
    margin: 1.5rem 0;
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.product-detail-actions .btn-main {
    flex: 1;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-detail-actions .action-btn {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.product-detail-stock-warning {
    margin-top: 1rem;
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-detail-tab-content {
    padding: 1.5rem;
    line-height: 1.8;
}

.product-detail-specs {
    width: 100%;
    border-collapse: collapse;
}

.product-detail-specs tr {
    border-bottom: 1px solid var(--beige);
}

.product-detail-specs tr:last-child {
    border-bottom: none;
}

.product-detail-specs td {
    padding: 0.75rem;
    color: var(--text-dark);
}

.product-detail-specs td:first-child {
    font-weight: 600;
}

.product-detail-not-found {
    text-align: center;
    padding: 6rem 2rem;
}

.product-detail-not-found i {
    font-size: 4rem;
    opacity: 0.3;
}

.product-detail-not-found h2 {
    margin-top: 1rem;
    color: var(--text-dark);
}

.product-detail-not-found p {
    opacity: 0.6;
}

.product-detail-not-found .btn-main {
    margin-top: 1.5rem;
}

/* =====================================================
   ADDITIONAL ACCOUNT PAGE STYLES
   ===================================================== */

/* In-transit order badge */
.order-status-badge.in-transit { background: rgba(59,130,246,0.15); color: #3b82f6; }

/* Profile fields */
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-field label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cafe-light); margin-bottom: 5px; display: block; font-weight: 600; }
.profile-field p { color: var(--cafe); font-size: 1rem; font-weight: 500; margin: 0; }

/* Profile edit form */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.profile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.profile-form-field label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cafe-light);
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
}
.profile-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
}
.btn-outline {
    padding: 10px 24px;
    border: 1px solid var(--cafe);
    background: transparent;
    color: var(--cafe);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover { background: var(--crema); }
.profile-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .profile-fields {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .account-block {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    .block-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    .block-header h2 {
        font-size: 1.05rem;
    }
    .edit-btn,
    .add-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .account-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    .stat-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .stat-info .stat-value {
        font-size: 1.4rem;
    }
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 576px) {
    .profile-form-row { grid-template-columns: 1fr; }
    .profile-form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .profile-form-actions > * {
        width: 100%;
        justify-content: center;
    }
}

/* Color Swatch */
.order-color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    vertical-align: middle;
    flex-shrink: 0;
}

/* Order Detail Tags (client) */
.order-detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--beige-light, #faf7f2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cafe);
}
.order-detail-tag i { font-size: 0.75rem; opacity: 0.6; }

/* Order Detail Items (client) */
.order-detail-items-list {
    display: flex;
    flex-direction: column;
}
.order-detail-client-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--crema);
}
.order-detail-client-item:last-child { border-bottom: none; }
.order-detail-client-item-img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.order-detail-client-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-detail-client-item-img i { font-size: 1.3rem; opacity: 0.25; }
.order-detail-client-item-body { flex: 1; min-width: 0; }

/* Review Cards (Mis resenas) */
.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.review-card-product {
    display: flex;
    gap: 12px;
    align-items: center;
}
.review-card-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.review-card-img img { width: 100%; height: 100%; object-fit: cover; }
.review-card-img i { font-size: 1rem; opacity: 0.3; }
.review-card-product-name {
    display: block;
    font-weight: 600;
    color: var(--cafe-dark);
    text-decoration: none;
    font-size: 0.95rem;
}
.review-card-product-name:hover { text-decoration: underline; }
.review-card-product-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.review-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.review-card-rating { margin-bottom: 8px; }
.review-card-text {
    color: var(--cafe);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Report Badges */
.report-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.report-type-badge.suggestion { background: rgba(52,152,219,0.12); color: #2980b9; }
.report-type-badge.bug { background: rgba(220,53,69,0.12); color: #dc3545; }
.report-type-badge.complaint { background: rgba(230,126,34,0.12); color: #e67e22; }
.report-type-badge.question { background: rgba(122,139,111,0.15); color: var(--verde-salvia); }
.report-type-badge.other { background: var(--crema); color: var(--cafe); }

.report-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}
.report-status-badge.open { background: rgba(241,196,15,0.15); color: #c9a90a; }
.report-status-badge.in_progress { background: rgba(52,152,219,0.12); color: #2980b9; }
.report-status-badge.resolved { background: rgba(39,174,96,0.12); color: #27ae60; }
.report-status-badge.closed { background: var(--crema); color: var(--cafe-light); }

/* Address cards */
/* Coming Soon Card */
.coming-soon-card {
    text-align: center;
    padding: 3.5rem 2rem;
    background: var(--blanco);
    border-radius: var(--radius-lg);
}
.coming-soon-icon {
    width: 80px;
    height: 80px;
    background: var(--crema);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--cafe);
}
.coming-soon-card h2 {
    font-family: var(--font-display);
    color: var(--cafe-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.coming-soon-card > p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
}
.coming-soon-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.coming-soon-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--cafe);
    font-weight: 500;
}
.coming-soon-feature i {
    font-size: 1.1rem;
    color: var(--verde-salvia);
}

.addresses-list { display: flex; flex-direction: column; gap: 1rem; }
.address-card { background: var(--blanco); padding: 1.25rem; border-radius: var(--radius-md); border: 1px solid var(--beige); }
.address-card.default { border-color: var(--cafe); box-shadow: 0 2px 12px rgba(139, 115, 85, 0.08); }
.address-label { font-weight: 600; color: var(--cafe); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.address-label > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.default-badge { background: var(--cafe); color: var(--blanco); font-size: 0.7rem; padding: 2px 8px; border-radius: var(--radius-full); font-weight: 600; flex-shrink: 0; }
.address-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.address-text p { margin: 0; }
.address-actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.address-actions .btn-outline.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.address-actions .address-delete-btn { color: #dc3545; border-color: rgba(220, 53, 69, 0.3); }
.address-actions .address-delete-btn:hover:not(:disabled) { background: #dc3545; color: white; border-color: #dc3545; }
@media (max-width: 480px) {
    .address-actions .btn-outline.btn-sm { flex: 1 1 calc(50% - 0.25rem); justify-content: center; display: inline-flex; align-items: center; gap: 4px; }
}

/* Logout form in sidebar */
.account-nav-form { display: contents; }
.account-nav button.nav-item.logout { width: 100%; background: none; border: none; cursor: pointer; font-size: inherit; font-family: inherit; text-align: left; }

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

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-branding {
        display: none;
    }

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

    .account-content,
    .orders-content {
        padding-left: 0;
        margin-top: 30px;
    }

    .account-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .order-tracking {
        flex-wrap: wrap;
        gap: 20px;
    }

    .tracking-line {
        display: none;
    }

    .order-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .order-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    /* Product detail responsive */
    .product-gallery {
        flex-direction: column-reverse;
    }

    .gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }

    .gallery-thumbnails .thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .product-detail-info {
        padding-left: 0;
        margin-top: 1.5rem;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        overflow-x: auto;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────
   STOREFRONT RESPONSIVE — extra Tier 1/2 rules
   Sits on top of pages.css existing media queries. Targets
   iPhone SE (375×667). Breakpoints: 991, 768, 576, 414.
   ──────────────────────────────────────────────────────────────────── */

/* Long product names, brand names, refs in cart/checkout/order detail */
.checkout-item-name,
.checkout-item-variant,
.cart-item-name,
.cart-item-variant,
.order-detail-item-name,
.order-detail-item-meta,
.product-card-title,
.product-card-meta {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Images never overflow their cell */
.product-card img,
.cart-item img,
.checkout-item img,
.order-detail-item img,
.review-card img,
.novedad-card img {
    max-width: 100%;
    height: auto;
}

/* ────────── Catalog filter chip row ────────── */
@media (max-width: 768px) {
    .active-filters,
    .filter-chips {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
}

/* ────────── Cart line items ────────── */
@media (max-width: 576px) {
    .cart-item {
        grid-template-columns: 70px 1fr;
        font-size: 0.9rem;
    }
    .cart-item-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .cart-summary {
        position: static;        /* drop sticky on phone */
    }
}

/* ────────── Checkout (sidebar + steps) ────────── */
@media (max-width: 991px) {
    .checkout-section .row {
        --bs-gutter-y: 1rem;
    }
    .checkout-section .col-lg-8,
    .checkout-section .col-lg-4 {
        width: 100%;
    }
    .cart-summary {
        position: static;
    }
}
@media (max-width: 768px) {
    .checkout-card {
        padding: 1rem;
    }
    .checkout-card-header {
        gap: 0.5rem;
    }
    .delivery-options {
        gap: 0.75rem;
    }
    .delivery-option {
        flex-wrap: wrap;
    }
    .delivery-option-info {
        flex: 1 1 200px;
    }
    .checkout-spei-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* ────────── ProductDetail (gallery + buy column) ────────── */
@media (max-width: 991px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        position: static;
    }
}
@media (max-width: 576px) {
    .product-detail-actions {
        flex-direction: column;
    }
    .product-detail-actions > * {
        width: 100%;
    }
}

/* ────────── Account pages ────────── */
@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
    .account-sidebar {
        position: static;
        margin-bottom: 1rem;
    }
    .order-card {
        padding: 1rem;
    }
}

/* ────────── Novedades (social wall) ────────── */
@media (max-width: 576px) {
    .novedad-card {
        padding: 1rem;
    }
    .novedad-images {
        grid-template-columns: 1fr;
    }
}

/* ────────── Search overlay ────────── */
@media (max-width: 576px) {
    .search-overlay-content {
        padding: 1rem;
    }
    .search-result-item {
        padding: 0.5rem;
    }
    .search-result-img {
        width: 40px;
        height: 40px;
    }
}

/* ────────── Promo banner ────────── */
@media (max-width: 576px) {
    .promo-banner {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* iPhone SE specific guards (≤ 414px) */
@media (max-width: 414px) {
    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .checkout-title,
    .page-title {
        font-size: 1.4rem;
    }
    .btn-checkout,
    .btn-main {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────
   STOREFRONT MOBILE OVERHAUL
   Targeted fixes for the issues reported on real devices:
     • Cart line item layout collapsing on phones
     • Auth page absolute positioning overflowing
     • Forms whose inputs / selects don't fit the viewport
     • Header actions pushing the logo off-screen on iPhone SE
     • Product detail and account pages stacking poorly
   ──────────────────────────────────────────────────────────────────── */

/* Header actions: shrink and tighten on phones so the logo + 4 buttons
   fit comfortably side-by-side without wrapping or pushing offscreen. */
@media (max-width: 768px) {
    .header-wrapper {
        gap: 0.75rem;
    }
    .header-logo img {
        height: 42px;
    }
    .header-actions {
        gap: 0.25rem;
    }
    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
@media (max-width: 414px) {
    .header-logo img {
        height: 36px;
    }
    .action-btn {
        width: 36px;
        height: 36px;
    }
    /* WhatsApp / wishlist icons can be hidden on the smallest screens
       to make room — the icons exist in the bottom nav / drawer too. */
    .header-actions .wishlist-btn {
        display: none;
    }
}

/* Cart line item: rebuild the grid for phones.
   Image + info on the top row, qty/total/remove on the bottom row,
   so nothing gets squeezed off-screen. */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 72px 1fr auto;
        grid-template-areas:
            "img info remove"
            "img qty total";
        gap: 0.5rem 0.75rem;
        padding: 1rem;
        align-items: start;
    }
    .cart-item .cart-item-checkbox {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
    }
    .cart-item-image { grid-area: img; }
    .cart-item-info  { grid-area: info; min-width: 0; }
    .cart-item-info h3 { font-size: 0.95rem; }
    .cart-item-variant { font-size: 0.8rem; }
    .cart-item-price {
        display: none;            /* total is enough on mobile */
    }
    .cart-qty-controls { grid-area: qty; justify-self: start; }
    .cart-item-total   { grid-area: total; justify-self: end; align-self: center; }
    .cart-item-remove  { grid-area: remove; justify-self: end; }
    .cart-qty-btn {
        width: 32px;
        height: 32px;
    }
    .cart-qty-input {
        width: 38px;
        height: 32px;
    }
    .cart { position: relative; }
}

@media (max-width: 414px) {
    .cart-item {
        grid-template-columns: 64px 1fr auto;
        gap: 0.4rem 0.6rem;
        padding: 0.75rem;
    }
    .cart-summary {
        padding: 1.25rem;
    }
    .summary-row {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
}

/* Auth page (login / register / change password): the desktop two-column
   layout uses absolute back-link + 60px padding, which is unusable on
   phones. Collapse to a single column with normal flow padding. */
@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    .auth-branding {
        display: none;
    }
}
@media (max-width: 768px) {
    .auth-page {
        min-height: auto;
    }
    .auth-forms {
        padding: 1.5rem 1.25rem 2rem;
        min-height: 100vh;
    }
    .back-home {
        position: static;
        margin-bottom: 1.25rem;
        display: inline-flex;
    }
    .auth-form-container {
        max-width: 100%;
    }
    .form-header {
        margin-bottom: 1.5rem;
    }
    .form-header h2 {
        font-size: 1.5rem;
    }
    .input-with-icon input {
        font-size: 16px;          /* prevent iOS zoom */
        padding: 13px 16px 13px 44px;
    }
    .input-with-icon i {
        left: 14px;
    }
    .social-auth {
        grid-template-columns: 1fr;
    }
}

/* Checkout: tighten and stack everything cleanly */
@media (max-width: 768px) {
    .checkout-section { padding: 1.5rem 0 3rem; }
    .checkout-title { font-size: 1.5rem; margin-bottom: 1.25rem; }
    .checkout-card-header { padding: 1rem; }
    .checkout-card-header h2 { font-size: 1rem; }
    .checkout-card-body { padding: 1rem; }
    .checkout-step {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    .delivery-option {
        flex-wrap: wrap;
        padding: 0.875rem;
        gap: 0.5rem;
    }
    .delivery-option-info {
        flex: 1 1 60%;
    }
    .delivery-option-price {
        flex-basis: 100%;
        text-align: left;
        order: 3;
    }
    .delivery-option-details {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    .checkout-item {
        gap: 0.75rem;
    }
    .checkout-item-image {
        width: 60px;
        height: 60px;
    }
    .checkout-item-name { font-size: 0.9rem; }
    .checkout-item-variant { font-size: 0.75rem; }
}

/* Product detail: full-width gallery, full-width buy column.
   Sizes + colors should wrap, not push the page wider. */
@media (max-width: 768px) {
    .product-detail-row {
        gap: 1.25rem;
    }
    .product-detail-info {
        padding: 0;
    }
    .product-detail-title {
        font-size: 1.4rem;
    }
    .product-detail-pricing .price-current {
        font-size: 1.5rem;
    }
    .gallery-thumbnails {
        gap: 0.5rem;
    }
    .product-detail-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .product-detail-actions > * {
        width: 100%;
    }
    .argym-size-options,
    .argym-color-selector {
        flex-wrap: wrap;
    }
}

/* Account / Orders / Reviews pages */
@media (max-width: 768px) {
    .account-section,
    .orders-section,
    .wishlist-section {
        padding: 1.5rem 0;
    }
    .account-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .account-sidebar {
        position: static;
        padding: 1rem;
    }
    .account-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .account-nav .nav-item {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.6rem 0.5rem;
    }
    .order-card {
        padding: 1rem;
    }
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .order-detail-client-item {
        gap: 0.75rem;
        padding: 0.875rem 0;
    }
    .order-detail-client-item-img {
        width: 56px;
        height: 56px;
    }
    .review-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    .review-card-date {
        align-self: flex-start;
    }
}

/* Profile / address forms: any 2-col layout collapses cleanly. */
@media (max-width: 576px) {
    .profile-form-row,
    .form-row,
    .auth-form .form-row {
        grid-template-columns: 1fr !important;
        flex-direction: column;
    }
    .profile-form-row > *,
    .form-row > * {
        width: 100%;
    }
    .address-actions {
        flex-wrap: wrap;
    }
}

/* Drop sticky positioning on small viewports — sticky elements behave
   poorly inside a viewport whose visible height shrinks with the iOS
   keyboard, especially on the cart and checkout summary cards. */
@media (max-width: 991px) {
    .cart-summary,
    .checkout-summary,
    .product-gallery,
    .account-sidebar {
        position: static !important;
        top: auto !important;
    }
}

/* Newsletter signup, footer column buttons */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    .footer-bottom {
        text-align: center;
    }
}

/* ProductCard hover-only actions: on touch devices reveal them by default
   so add-to-cart isn't impossible to reach. */
@media (hover: none) and (pointer: coarse) {
    .product-card .product-actions {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* =====================================================
   CATALOG — MOBILE UX
   - Mobile toolbar (Filtros + sort) replaces the stacked desktop sidebar
   - Sidebar becomes a slide-in right drawer below 992px
   - Active filter chips remain visible after the drawer closes
   ===================================================== */

/* Desktop defaults: hide the mobile-only affordances and the drawer chrome. */
.catalog-mobile-toolbar { display: none; }
.catalog-filters-backdrop { display: none; }
.catalog-filters-panel-header,
.catalog-filters-panel-footer { display: none; }

/* Active filter chips (visible on both desktop and mobile when any filter is applied). */
.active-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.active-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: var(--blanco);
    border: 1px solid var(--beige);
    border-radius: var(--radius-full);
    color: var(--cafe);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.active-chip:hover,
.active-chip:focus-visible {
    background: var(--cafe);
    color: #fff;
    border-color: var(--cafe);
    outline: none;
}

.active-chip .bi-x {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.7;
}

.active-chip:hover .bi-x { opacity: 1; }

.active-chip-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.active-chip-clear {
    background: transparent;
    border: none;
    color: var(--cafe-light);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.4rem 0.25rem;
}

.active-chip-clear:hover { color: var(--cafe); }

/* ---- Mobile layout (< 992px) ---- */
@media (max-width: 991.98px) {
    /* Cut the heavy desktop spacing — every pixel above the first card matters. */
    .catalog-section {
        padding: 24px 0 40px;
    }

    .catalog-header {
        margin-bottom: 18px;
    }

    .catalog-title {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .catalog-subtitle {
        font-size: 0.9rem;
    }

    /* Show the toolbar, hide the desktop sort/controls bar. */
    .catalog-mobile-toolbar {
        display: flex;
        align-items: stretch;
        gap: 0.6rem;
        margin-bottom: 1rem;
        position: sticky;
        top: 0;
        z-index: 20;
        padding: 0.5rem 0;
        background: var(--beige-light);
    }

    .catalog-controls-desktop { display: none !important; }

    .catalog-toolbar-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.65rem 1rem;
        background: var(--blanco);
        border: 1px solid var(--beige);
        border-radius: var(--radius-full);
        color: var(--cafe);
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        box-shadow: var(--shadow-soft);
        flex-shrink: 0;
    }

    .catalog-toolbar-btn i { font-size: 1rem; }

    .catalog-toolbar-badge {
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 999px;
        background: var(--cafe);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .catalog-toolbar-sort {
        position: relative;
        flex: 1;
        display: flex;
        align-items: center;
        background: var(--blanco);
        border: 1px solid var(--beige);
        border-radius: var(--radius-full);
        padding: 0 0.85rem;
        box-shadow: var(--shadow-soft);
    }

    .catalog-toolbar-sort > i {
        color: var(--cafe-light);
        font-size: 0.95rem;
        pointer-events: none;
    }

    .catalog-toolbar-select {
        flex: 1;
        appearance: none;
        -webkit-appearance: none;
        background: transparent;
        border: none;
        padding: 0.65rem 0.5rem;
        color: var(--cafe);
        font-size: 0.9rem;
        font-weight: 500;
        outline: none;
        cursor: pointer;
        width: 100%;
        min-width: 0;
        text-overflow: ellipsis;
    }

    /* Sidebar -> off-canvas drawer. The outer Bootstrap col collapses to a stub
       so the products column starts at the top of the row immediately. */
    .catalog-filters-col {
        padding: 0;
        margin: 0;
        position: static;
        width: 0;
        min-height: 0;
        flex: 0 0 0;
    }

    .catalog-filters-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(61, 50, 38, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 1040;
    }

    .catalog-filters-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(380px, 88vw);
        max-width: 100vw;
        background: var(--blanco);
        box-shadow: -8px 0 32px rgba(61, 50, 38, 0.18);
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        padding: 0;
        border-radius: 0;
    }

    .catalog-filters-col.is-open .catalog-filters-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .catalog-filters-col.is-open .catalog-filters-panel {
        transform: translateX(0);
    }

    .catalog-filters-panel-header,
    .catalog-filters-panel-footer {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .catalog-filters-panel-header {
        justify-content: space-between;
        padding: 1.1rem 1.25rem;
        border-bottom: 1px solid var(--beige);
        font-family: var(--font-primary);
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--cafe);
    }

    .catalog-filters-close {
        width: 36px;
        height: 36px;
        border: none;
        background: var(--beige-light);
        border-radius: 50%;
        color: var(--cafe);
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
    }

    .catalog-filters-close:hover { background: var(--beige); }

    .catalog-filters-panel-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 1.25rem 1rem;
    }

    /* Inside the drawer, reset the desktop-card chrome of the filters sidebar. */
    .catalog-filters-panel-body .filters-sidebar {
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .catalog-filters-panel-body .filter-section {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .catalog-filters-panel-body .filter-option {
        padding: 0.35rem 0;
        font-size: 1rem;
    }

    .catalog-filters-panel-body .filter-option input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }

    /* Hide the in-drawer clear button; chip strip + footer button cover this. */
    .catalog-filters-panel-body .clear-filters { display: none; }

    .catalog-filters-panel-footer {
        padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--beige);
        background: var(--blanco);
    }

    .catalog-filters-apply {
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .active-chips-row {
        margin-bottom: 0.85rem;
    }

    .active-chip {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }
}

/* Phones: shrink chip strip further. */
@media (max-width: 480px) {
    .catalog-title { font-size: 1.4rem; }

    .catalog-toolbar-btn,
    .catalog-toolbar-select { font-size: 0.85rem; }
}

/* Lock body scroll while the drawer is open (modern browsers). */
@media (max-width: 991.98px) {
    body:has(.catalog-filters-col.is-open) {
        overflow: hidden;
    }
}

/* =====================================================
   PRODUCT CARDS — NATURAL IMAGE ASPECT + MASONRY
   Applies anywhere ProductCard renders (catalog, home
   featured, product detail "related"). Each card hugs
   its image's real aspect — no trimming, no white gap
   below short images. The .products-grid container is
   a CSS multi-column masonry so heights vary without
   producing inter-card whitespace.
   ===================================================== */

.product-image {
    aspect-ratio: auto;
    overflow: hidden;
    background: var(--beige-light);
}

.product-image .product-image-link,
.product-image .product-image-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
    color: inherit;
    font: inherit;
    /* Sits above the absolutely-positioned overlays inside .product-image so
       clicks anywhere on the image reach this button. The action buttons keep
       their own clicks via the pointer-events rules below. */
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.product-image .product-image-link {
    /* Anchor variant: navigates to the product detail page. */
    cursor: pointer;
}

.product-image .product-image-button:focus-visible {
    outline: 2px solid var(--cafe);
    outline-offset: -2px;
}

/* The invisible (opacity:0) overlays inside .product-image were intercepting
   image clicks on the bottom strip. Make the wrappers non-interactive while
   keeping the individual action buttons clickable. */
.product-image .product-actions {
    pointer-events: none;
}

.product-image .product-actions .action-btn {
    pointer-events: auto;
}

.product-image .add-to-cart-hint {
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background: var(--beige-light);
}

.product-card .product-placeholder {
    aspect-ratio: 1;
}

/* Masonry: CSS multi-column packs cards top-to-bottom per column, so card
   heights can vary without producing inter-row whitespace. */
.products-grid {
    display: block;
    column-count: 4;
    column-gap: 1.5rem;
    column-fill: balance;
    grid-template-columns: none;
}

.products-grid > * {
    display: block;
    width: 100%;
    margin: 0 0 1.5rem;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

@media (max-width: 1399.98px) {
    .products-grid { column-count: 3; }
}

@media (max-width: 991.98px) {
    .products-grid {
        column-count: 2;
        column-gap: 0.85rem;
    }
    .products-grid > * {
        margin-bottom: 0.85rem;
    }
}

@media (max-width: 420px) {
    .products-grid {
        column-gap: 0.65rem;
    }
    .products-grid > * {
        margin-bottom: 0.65rem;
    }
}

/* The hover-lift on cards breaks column flow (translation shifts the card
   off the masonry pack). Drop the translate; keep the shadow as affordance. */
.products-grid .product-card:hover {
    transform: none;
}

/* ProductGallery main image becomes a button when wired to the lightbox. */
.product-gallery .main-image-button {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
}

.product-gallery .main-image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery .main-image-button:focus-visible {
    outline: 2px solid var(--cafe);
    outline-offset: -2px;
}

/* =====================================================
   PRODUCT IMAGE LIGHTBOX
   Fullscreen preview with click-to-zoom + carousel.
   ===================================================== */

.product-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 8, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    outline: none;
    animation: lightbox-fade-in 0.18s ease-out;
}

@keyframes lightbox-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.product-lightbox-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: calc(0.9rem + env(safe-area-inset-top, 0px)) 1.25rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    z-index: 2;
    pointer-events: none;
}

.product-lightbox-header > * { pointer-events: auto; }

.product-lightbox-counter {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.product-lightbox-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.product-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.product-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.product-lightbox-nav.prev { left: 1.25rem; }
.product-lightbox-nav.next { right: 1.25rem; }

.product-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.06);
}

.product-lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4.5rem 1rem 7rem;
    touch-action: pan-y;
}

.product-lightbox-img {
    max-width: min(92vw, 1100px);
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.product-lightbox-stage.is-zoomed .product-lightbox-img {
    cursor: zoom-out;
}

.product-lightbox-thumbs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
    z-index: 2;
}

.product-lightbox-thumbs::-webkit-scrollbar { display: none; }

.product-lightbox-thumb {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    padding: 0;
    opacity: 0.55;
    transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.product-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-lightbox-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.product-lightbox-thumb.active {
    opacity: 1;
    border-color: #fff;
}

@media (max-width: 768px) {
    .product-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .product-lightbox-nav.prev { left: 0.5rem; }
    .product-lightbox-nav.next { right: 0.5rem; }
    .product-lightbox-stage {
        padding: 3.75rem 0.5rem 5.5rem;
    }
    .product-lightbox-img {
        max-width: 96vw;
        max-height: 72vh;
    }
    .product-lightbox-thumb {
        width: 50px;
        height: 50px;
    }
    .product-lightbox-header {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

/* Lock body scroll while the lightbox is open. */
body:has(.product-lightbox) {
    overflow: hidden;
}
