/* ===== Collections Page Styles ===== */

/* Page setup */
.collections-page {
    background: var(--bg, #0a0f1a);
    min-height: 100vh;
}

.collections-page #site-header {
    background: rgba(10, 15, 26, 0.92);
}

/* ===== Hero Banner ===== */
.collections-hero {
    padding: 160px 60px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.collections-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(99, 140, 255, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 50%, rgba(138, 180, 214, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(138, 180, 214, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle grid lines on hero */
.collections-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.collections-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.collections-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(138, 180, 214, 0.8);
    border: 1px solid rgba(138, 180, 214, 0.2);
    border-radius: 40px;
    margin-bottom: 28px;
    background: rgba(138, 180, 214, 0.06);
}

.collections-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 300;
    letter-spacing: -1px;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.15;
}

.collections-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

/* ===== Category Filters ===== */
.collections-filters {
    position: sticky;
    top: 72px;
    z-index: 50;
    background: rgba(10, 15, 26, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 0;
}

.filters-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.filters-inner::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    flex-shrink: 0;
    padding: 9px 20px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: inherit;
    white-space: nowrap;
    position: relative;
}

.filter-pill:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.filter-pill.active {
    color: #fff;
    background: rgba(138, 180, 214, 0.15);
    border-color: rgba(138, 180, 214, 0.35);
    box-shadow: 0 0 24px rgba(138, 180, 214, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ===== Product Grid ===== */
.collections-grid-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px 80px;
}

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

/* ===== Product Card — Redesigned ===== */
.product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.4s ease,
        box-shadow 0.5s ease;
    animation: cardFadeIn 0.5s ease both;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(138, 180, 214, 0.2);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(138, 180, 214, 0.05);
}

/* Subtle shine sweep on hover */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 30%,
            rgba(255, 255, 255, 0.04) 45%,
            rgba(255, 255, 255, 0.09) 50%,
            rgba(255, 255, 255, 0.04) 55%,
            transparent 70%);
    transition: left 0.65s ease;
    pointer-events: none;
    z-index: 5;
}

.product-card:hover::before {
    left: 140%;
}

.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 3.8;
    overflow: hidden;
    background: linear-gradient(160deg, #1a2236 0%, #0f1520 100%);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
    opacity: 0;
    /* Initially hidden */
}

.product-card-image img.loaded {
    opacity: 1;
    /* Fade in when loaded */
}

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

/* Bottom gradient on card image */
.product-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(10, 15, 26, 0.85) 0%, rgba(10, 15, 26, 0.3) 45%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hover overlay with quick-view */
.product-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.25) 30%,
            rgba(0, 0, 0, 0.05) 55%,
            transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 10px 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(12px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        background 0.3s ease;
}

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

/* Card info */
.product-card-info {
    padding: 16px 18px 20px;
    position: relative;
}

.product-card-category {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(138, 180, 214, 0.55);
    margin-bottom: 7px;
}

.product-card-name {
    font-size: 14.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
    margin: 0;
    letter-spacing: -0.1px;
}

.product-card-sizes {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* ===== Product Modal — Redesigned ===== */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.product-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.modal-content {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 880px;
    width: 90%;
    max-height: 82vh;
    background: linear-gradient(165deg, #151d2e 0%, #0e1525 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.65),
        0 0 80px rgba(138, 180, 214, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.4s ease;
}

.product-modal.open .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: rotate(90deg);
}

.modal-image-wrap {
    flex: 0 0 45%;
    max-height: 82vh;
    overflow: hidden;
    background: linear-gradient(145deg, #161e2e 0%, #0a0f1a 100%);
    position: relative;
}

.modal-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset -20px 0 40px rgba(14, 21, 37, 0.4);
    pointer-events: none;
}

.modal-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.modal-info {
    flex: 1;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.modal-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(138, 180, 214, 0.7);
    margin-bottom: 12px;
}

.modal-title {
    font-size: 28px;
    font-weight: 300;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.modal-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(138, 180, 214, 0.5), transparent);
    margin-bottom: 18px;
    border-radius: 2px;
}

.modal-desc {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
    margin: 0 0 24px;
}

.modal-sizes {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 28px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-sizes svg {
    flex-shrink: 0;
    color: rgba(138, 180, 214, 0.5);
}

.modal-sizes-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

/* Modal WhatsApp CTA — single button, full width */
.modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.modal-cta-whatsapp {
    width: 100%;
    color: #fff;
    background: #25D366;
    border: none;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.2);
}

.modal-cta-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 14px 44px rgba(37, 211, 102, 0.3);
}

.modal-cta-whatsapp svg {
    flex-shrink: 0;
}

/* ===== CTA Section ===== */
.collections-cta {
    padding: 100px 60px;
    text-align: center;
    position: relative;
}

.collections-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(99, 140, 255, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(138, 180, 214, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle decorative line */
.collections-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 180, 214, 0.3), transparent);
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 30px;
    font-weight: 300;
    color: #fff;
    margin: 0 0 14px;
}

.cta-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    margin: 0 0 32px;
}

.cta-button {
    display: inline-flex;
    padding: 15px 38px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.08);
}

/* ===== Footer ===== */
.collections-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 60px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    height: 36px;
    width: auto;
    opacity: 0.7;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-address {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    text-align: right;
    margin: 4px 0 0;
    line-height: 1.5;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.18);
    text-align: center;
    width: 100%;
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .collections-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .modal-content {
        flex-direction: column;
        max-height: 90vh;
    }

    .modal-image-wrap {
        flex: 0 0 auto;
        max-height: 40vh;
    }

    .modal-image-wrap::after {
        box-shadow: inset 0 -20px 40px rgba(14, 21, 37, 0.4);
    }

    .modal-info {
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    .collections-hero {
        padding: 130px 24px 40px;
    }

    .filters-inner {
        padding: 0 24px;
        justify-content: flex-start;
    }

    .collections-grid-section {
        padding: 28px 20px 60px;
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .collections-cta {
        padding: 60px 24px;
    }

    .collections-footer {
        padding: 36px 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-address {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-card-info {
        padding: 12px 12px 14px;
    }

    .product-card-category {
        font-size: 8.5px;
        letter-spacing: 2px;
    }

    .product-card-name {
        font-size: 13px;
    }

    .product-card-sizes {
        font-size: 10px;
    }

    .filter-pill {
        padding: 7px 14px;
        font-size: 11.5px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-info {
        padding: 22px 18px;
    }

    .modal-cta {
        padding: 13px 22px;
        font-size: 12px;
    }
}