/* ==================== CUSTOM TOAST NOTIFICATIONS ==================== */
.tm-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 4px solid #ff3333;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    pointer-events: auto;
    font-family: 'Outfit', sans-serif;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: white;
    -webkit-user-select: none;
    user-select: none;
}
.tm-notification.active { transform: translateX(0); opacity: 1; }
.tm-notification.success { border-left-color: #22c55e; }
.tm-notification.error { border-left-color: #ff3333; }
.tm-notification .icon { font-size: 1.4rem; flex-shrink: 0; }
.tm-notification .message { font-size: 0.95rem; font-weight: 600; color: white; line-height: 1.4; }

/* ==================== RED ADD TO CART BUTTON ==================== */
.view-details-tag {
    margin-top: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #ff3333 !important;
    border: none !important;
    padding: 13px !important;
    border-radius: 12px !important;
    color: white !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(255,51,51,0.35) !important;
    transition: all 0.25s ease !important;
}
.product-card:hover .view-details-tag, .view-details-tag:hover {
    background: #cc0000 !important;
    box-shadow: 0 6px 22px rgba(255,51,51,0.5) !important;
    transform: translateY(-2px) !important;
}
/* ==================== COLLECTIONS PAGE STYLES ==================== */

/* Main Layout */
.collections-main {
    min-height: 100vh;
    padding: 20px 0 0;
    /* Remove bottom padding */
    background: var(--color-black);
    -webkit-overflow-scrolling: touch;
}

/* Site Header Sticky */
.site-header {
    position: sticky;
    top: 31px;
    /* Height of the announcement bar */
    z-index: 1000;
    background: var(--color-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-main {
    padding: 15px 0;
}

/* Hide Footer on Collections Page */
.site-footer {
    display: none;
}

/* Floating Cart Button */
.cart-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-red);
    background: linear-gradient(135deg, #ff3333 0%, #e62929 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 51, 51, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    border: 3px solid rgba(10, 10, 10, 0.9);
}

.cart-float-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 51, 51, 0.6), 0 6px 12px rgba(0, 0, 0, 0.4);
}

.cart-float-btn .cart-icon {
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-float-btn .cart-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Cart Count Badge on Floating Button */
.cart-float-btn .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffffff;
    color: var(--color-red);
    font-size: 0.7rem;
    font-weight: 900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-black);
    animation: cartBadgePulse 2s ease-in-out infinite;
}

@keyframes cartBadgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cart-float-btn {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .cart-float-btn .cart-icon svg {
        width: 24px;
        height: 24px;
    }

    .cart-float-btn .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        top: -6px;
        right: -6px;
    }
}


.container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Category Header */
.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px 20px;
}

.category-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.results-count {
    display: inline-block;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid var(--color-red);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--color-red);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Logo Fix */
.header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    max-height: 50px;
    /* Reduced from default/too big */
    width: auto;
    object-fit: contain;
    margin-top: 5px;
}

/* Collections Layout */
.collections-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 0;
    /* Remove extra padding */
}

/* ==================== FILTERS SIDEBAR ==================== */
.filters-sidebar {
    position: sticky;
    top: 100px;
    background: rgba(20, 20, 20, 0.98);
    /* backdrop-filter removed */
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #333;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-red);
    border-radius: 3px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #333;
}

.filters-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.clear-filters {
    background: none;
    border: none;
    color: var(--color-red);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.close-filters-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
}

@media (max-width: 768px) {
    .close-filters-btn {
        display: block;
    }

    .filters-header {
        position: sticky;
        top: 0;
        background: #141414;
        z-index: 10;
        margin-top: -5px;
        padding-top: 5px;
    }
}

/* Filter Groups */
.filter-group {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #2a2a2a;
}

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

.filter-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Filter Checkboxes */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--color-text);
    font-size: 0.95rem;
    transition: color 0.2s;
    user-select: none;
}

.filter-checkbox:hover {
    color: white;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #444;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background: transparent;
    position: relative;
    transition: all 0.2s;
}

.filter-checkbox input[type="checkbox"]:checked {
    background: var(--color-red);
    border-color: var(--color-red);
}

.filter-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Size Grid */
.size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.size-grid .filter-checkbox {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.size-grid .filter-checkbox:hover {
    background: rgba(255, 51, 51, 0.1);
    border-color: var(--color-red);
}

.size-grid .filter-checkbox input[type="checkbox"] {
    display: none;
}

.size-grid .filter-checkbox:has(input:checked) {
    background: var(--color-red);
    border-color: var(--color-red);
    color: white;
}

/* ==================== PRODUCTS AREA ==================== */
.products-area {
    position: relative;
}

/* Mobile Filters Button */
.mobile-filters-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--color-red);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 51, 51, 0.4);
}

/* Products Grid */
.products-grid-collections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Skeleton Loaders */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.skeleton-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-info {
    padding: 20px;
}

.skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
    width: 80%;
}

.skeleton-price {
    height: 24px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 16px;
    width: 50%;
}

.skeleton-button {
    height: 48px;
    background: linear-gradient(90deg, rgba(255, 51, 51, 0.1) 0%, rgba(255, 51, 51, 0.2) 50%, rgba(255, 51, 51, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Hide skeleton when products loaded */
.skeleton-grid.hidden {
    display: none;
}

/* Empty State: delay prevents flash of empty state during loading */
@keyframes delayedShow {
    0%, 98% { opacity: 0; pointer-events: none; }
    100%     { opacity: 1; pointer-events: auto; }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
    /* Safety net: never show for first 5s, no matter what JS does */
    animation: delayedShow 5s ease forwards;
}

.empty-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-icon svg {
    color: rgba(255, 255, 255, 0.3);
    stroke: rgba(255, 255, 255, 0.3);
}

.empty-state h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
}

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

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

/* Tablet */
@media (max-width: 1024px) {
    .collections-layout {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }

    .filters-sidebar {
        padding: 20px;
    }

    .products-grid-collections {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .collections-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 2100;
        transition: left 0.3s ease;
        max-height: 100vh;
        border-radius: 0;
        border-right: 1px solid #333;
    }

    .filters-sidebar.active {
        left: 0;
    }

    .mobile-filters-btn {
        display: flex;
    }

    .products-grid-collections {
        grid-template-columns: 1fr;
        /* Una sola columna para que las fotos se vean grandes */
        gap: 30px;
        /* Más espacio entre tarjetas */
        padding: 0 10px;
    }

    .product-card {
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.02);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .product-info {
        padding: 16px;
        /* Más compacto */
    }

    .product-name {
        font-size: 1.4rem;
        /* Nombre más grande y legible */
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 1.5rem;
        /* Precio resaltado */
    }

    .category-header {
        padding: 20px 10px 10px;
    }
}

/* Global fixes for mobile */
body {
    overscroll-behavior-y: contain;
    -webkit-tap-highlight-color: transparent;
}

/* Back Button */
.view-details-tag {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.product-card:hover .view-details-tag {
    background: var(--color-red);
    border-color: var(--color-red);
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

.view-details-tag svg {
    transition: transform 0.3s ease;
}

.product-card:hover .view-details-tag svg {
    transform: translateX(4px);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--color-red);
}

/* Adjust WhatsApp float position to avoid overlap with Cart Button on this page */
.whatsapp-float {
    bottom: 100px !important;
    right: 30px !important;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px !important;
        right: 20px !important;
    }
}

/* ==================== SIZE SELECTOR IN PRODUCT CARDS ==================== */
.size-selector-container {
    margin: 12px 0;
    width: 100%;
}

.size-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-selector {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.size-selector:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-red);
}

.size-selector:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.1);
}

.size-selector option {
    background: var(--color-gray);
    color: white;
    padding: 10px;
}

/* Size in cart items */
.item-size {
    font-size: 0.85rem;
    color: var(--color-red);
    margin: 4px 0;
    font-weight: 600;
}

.item-size strong {
    color: white;
}

/* Color selector - same styling as size selector */
.color-selector-container {
    margin: 12px 0;
    width: 100%;
}

.color-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-selector {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.color-selector:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-red);
}

.color-selector:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.1);
}

.color-selector option {
    background: var(--color-gray);
    color: white;
    padding: 10px;
}

/* Color in cart items */
.item-color {
    font-size: 0.85rem;
    color: var(--color-red);
    margin: 4px 0;
    font-weight: 600;
}

.item-color strong {
    color: white;
}

/* ==================== SIZE SELECTOR CHIPS ==================== */
.size-chips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 5px;
}

.size-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-chip:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.size-chip.selected {
    background: var(--color-red);
    border-color: var(--color-red);
    color: white;
    font-weight: 700;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 51, 51, 0.3);
}

/* Make sure container handles different content heights */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: rgba(255, 255, 255, 0.03);
}

.product-image-container .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.product-image.loaded {
    opacity: 1;
}

.product-image-container .product-image.active {
    opacity: 1;
    pointer-events: auto;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    /* backdrop-filter removed */
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.product-image-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(255, 51, 51, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    color: white;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--color-red);
    width: 24px;
    border-radius: 4px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .product-image-container {
        height: 320px;
        /* Foto mucho más grande y "gruesa" */
        border-radius: 16px 16px 0 0;
    }

    /* Selectores más profesionales en móvil */
    .size-selector-container,
    .color-selector-container {
        margin: 8px 0;
    }

    .size-label,
    .color-label {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .size-selector,
    .color-selector {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    /* Botón más pro */
    .product-btn {
        margin-top: 10px;
        padding: 14px;
        font-size: 1rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        opacity: 0.8;
    }

    .product-image-container:hover .carousel-btn {
        opacity: 0.8;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }

    .carousel-dot.active {
        width: 20px;
    }
}

/* ==================== PROFESSIONAL PRODUCT MODAL ==================== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    /* backdrop-filter removed for mobile performance */
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    /* iOS scroll lock helper */
    -webkit-overflow-scrolling: touch;
}

.product-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content-container {
    background: #111;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s;
    font-size: 1.5rem;
}

.modal-close:hover {
    background: var(--color-red);
    transform: rotate(90deg);
}

/* Robust 2-Column Professional Layout */
.modal-content-container {
    background: #111;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
    animation: modalPop 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overscroll-behavior: contain;
}

/* Left side: Gallery */
.modal-gallery {
    background: #000;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid #1a1a1a;
}

.modal-main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 400px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.modal-main-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.modal-thumbnails {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    justify-content: center;
    overflow-x: auto;
}

.thumb-item {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.5;
    background: #111;
}

.thumb-item:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.2);
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--color-red);
}

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

/* Right side: Info */
.modal-info {
    padding: 30px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #1a1a1a;
}

.modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.stock-badge {
    color: #25d366;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1.2;
    text-transform: uppercase;
    color: white;
}

.modal-category {
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.modal-price-container {
    margin-bottom: 25px;
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 850;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.modal-old-price {
    color: #666;
    text-decoration: line-through;
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
}

.size-guide-container {
    margin-bottom: 20px;
}

.size-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.size-guide-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.size-guide-btn svg {
    opacity: 0.7;
}

.size-warning {
    font-size: 0.85rem;
    color: #ffcc00; /* Slightly brighter for dark mode */
    margin: 15px 0;
    padding: 12px 16px;
    background: rgba(255, 153, 0, 0.08);
    border-radius: 8px;
    border-left: 4px solid #ff9900;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

/* Quantity Selector */
.qty-input-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 10px 0;
}

.qty-picker {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2px;
}

.qty-btn-modal {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.qty-btn-modal:hover {
    background: #222;
    border-radius: 4px;
}

.qty-value-modal {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

/* Options */
.modal-options {
    margin-bottom: 30px;
}

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

.option-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #eee;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    padding: 10px 20px;
    border: 1.5px solid #333;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.03);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pill:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.08);
}

.pill.active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

/* Actions */
.modal-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-btn {
    background: var(--color-red);
    color: white;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 850;
    letter-spacing: 1px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(255, 51, 51, 0.4);
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 51, 51, 0.6);
    filter: brightness(1.1);
}

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

.actions-secondary .btn {
    flex: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid #333;
    color: white;
    font-weight: 700;
}

.btn-outline:hover {
    border-color: var(--color-red);
    background: rgba(255, 51, 51, 0.05);
}

.wa-btn-circle {
    width: 65px;
    height: 65px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.wa-btn-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.wa-btn-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    filter: brightness(1.1);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .modal-content-container {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Crucial for iOS scroll */
        display: block;
        margin: 5vh auto;
        width: 95%;
    }

    .modal-info {
        padding: 25px 20px;
        overflow-y: visible !important;
        height: auto;
    }
    .modal-title {
        font-size: 1.6rem;
    }
}


/* SIZE GUIDE MODAL STYLES */
.size-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.94);
    z-index: 3001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* backdrop-filter: blur(12px); */
}
.size-guide-modal.active {
    display: flex;
}
.size-guide-content {
    background: #fff !important;
    color: #000 !important;
    width: 100%;
    max-width: 850px;
    border-radius: 12px;
    position: relative;
    padding: 40px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
    max-height: 92vh;
    overflow-y: auto;
}
.sg-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}
.sg-logo {
    height: 60px;
    margin-bottom: 10px;
}
.sg-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #000;
    text-transform: uppercase;
    margin: 0;
}
.sg-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}
.sg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: 3px solid #000;
}
.sg-table th, .sg-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ccc;
}
.red-th {
    background: #cc0000 !important;
    color: #fff !important;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.sg-type {
    background: #fafafa;
    font-weight: 900;
    color: #cc0000 !important;
    vertical-align: middle;
    font-size: 1rem;
}
.separator-row td {
    border-top: 3px solid #000;
}
.sg-info-column {
    background: #fdfdfd;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sg-steps h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 15px 0;
    line-height: 1.3;
    text-transform: uppercase;
    color: #333;
}
.sg-steps ol {
    padding-left: 18px;
    margin-bottom: 20px;
}
.sg-steps li {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}
.sg-step-img {
    text-align: center;
    margin-bottom: 15px;
}
.sg-step-img img {
    height: 90px;
    object-fit: contain;
}
.sg-footer-badge {
    background: #000;
    color: #fff;
    padding: 15px;
    border-radius: 30px;
    text-align: center;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sg-footer-badge:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.2);
}
@media (max-width: 900px) {
    .sg-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .size-guide-content {
        padding: 40px 15px;
        width: 100%;
        border-radius: 0;
    }
    .sg-table {
        font-size: 0.8rem;
    }
}
/* Body scroll lock when modal open (works on iOS) */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}
