/* ========================================
   Explore Products Page Styles
   Lumacia Lighting Products Gallery
======================================== */

/* Hero Section */
.textures-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 5% 60px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), url('assets/explore-products-banner.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.textures-hero-content {
    max-width: 800px;
}

.page-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 6px 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

.textures-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.textures-title .highlight {
    color: #94a3b8;
    font-style: italic;
}

.textures-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Series Showcase */
.series-showcase {
    padding: 60px 5%;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.series-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.series-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.series-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 116, 139, 0.5), transparent);
}

.series-card:hover {
    border-color: rgba(100, 116, 139, 0.3);
    transform: translateY(-2px);
}

.series-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.series-icon svg {
    width: 28px;
    height: 28px;
    color: #94a3b8;
    stroke-width: 1.5;
}

.series-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
}

.series-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 16px;
}

.series-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 4px 12px;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 20px;
}

/* Controls Section */
.controls-section {
    padding: 40px 5% 20px;
    background: #0a0a0a;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.85);
}

.controls-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Search Bar */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 54px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    border-color: #64748B;
    background: rgba(255, 255, 255, 0.08);
}

/* Filter Tags */
.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 10px 22px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tag:hover {
    border-color: #64748B;
    color: #94a3b8;
}

.filter-tag.active {
    background: #64748B;
    border-color: #64748B;
    color: #fff;
}

/* Products Section */
.textures-section {
    padding: 40px 5% 80px;
    background: #0a0a0a;
    min-height: 60vh;
}

.textures-count {
    max-width: 1400px;
    margin: 0 auto 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.textures-count span {
    color: #94a3b8;
    font-weight: 600;
}

/* Products Grid */
.textures-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.no-results svg {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.no-results p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Product Card Component
======================================== */

.texture-card {
    perspective: 1000px;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.texture-card:nth-child(1) { animation-delay: 0.02s; }
.texture-card:nth-child(2) { animation-delay: 0.04s; }
.texture-card:nth-child(3) { animation-delay: 0.06s; }
.texture-card:nth-child(4) { animation-delay: 0.08s; }
.texture-card:nth-child(5) { animation-delay: 0.10s; }
.texture-card:nth-child(6) { animation-delay: 0.12s; }
.texture-card:nth-child(7) { animation-delay: 0.14s; }
.texture-card:nth-child(8) { animation-delay: 0.16s; }
.texture-card:nth-child(n+9) { animation-delay: 0.18s; }

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

.card-inner {
    position: relative;
    width: 100%;
    height: 380px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Desktop hover flip */
@media (hover: hover) {
    .texture-card:hover .card-inner {
        transform: rotateY(180deg);
    }
}

/* Mobile tap flip */
.texture-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.card-front {
    transform: rotateY(0deg);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.texture-card:hover .card-front {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Card Image Area */
.card-image {
    flex: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 220px;
}

.product-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: transform 0.4s ease;
}

.product-icon svg {
    width: 100%;
    max-width: 140px;
    height: auto;
    max-height: 140px;
    color: #475569;
    stroke-width: 1.2;
}

.texture-card:hover .product-icon {
    transform: scale(1.08);
}

/* Series Badge */
.series-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    z-index: 2;
}

.series-badge.ms05 {
    background: #1e293b;
    color: #fff;
}

.series-badge.colorful {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    color: #fff;
}

/* Card Info */
.card-info {
    padding: 16px 18px 18px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

.card-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.card-code {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Card Back */
.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.back-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.back-code {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.back-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.back-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

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

.spec-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}

.back-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #64748B;
    line-height: 1.5;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ========================================
   CTA Section
======================================== */

.cta-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-container h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-container p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-primary {
    background: #fff;
    color: #0f172a;
    border: 1px solid #fff;
}

.cta-primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.cta-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 1200px) {
    .textures-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .card-inner {
        height: 360px;
    }

    .series-container {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .textures-hero {
        min-height: 35vh;
        padding: 120px 5% 50px;
    }

    .series-showcase {
        padding: 40px 5%;
    }

    .series-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .series-card {
        padding: 24px;
    }

    .series-card h3 {
        font-size: 1.5rem;
    }

    .controls-section {
        padding: 20px 5% 16px;
    }

    .filter-tags {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-tags::-webkit-scrollbar {
        display: none;
    }

    .filter-tag {
        flex-shrink: 0;
        padding: 8px 18px;
        font-size: 0.75rem;
    }

    .textures-section {
        padding: 30px 5% 60px;
    }

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

    .card-inner {
        height: 340px;
    }

    .card-image {
        min-height: 180px;
    }

    .product-icon {
        padding: 20px;
    }

    .product-icon svg {
        max-width: 110px;
        max-height: 110px;
    }

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

    .card-name {
        font-size: 0.85rem;
        min-height: 2.4em;
    }

    .card-code {
        font-size: 0.7rem;
    }

    .card-category {
        font-size: 0.6rem;
    }

    .cta-section {
        padding: 60px 5%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .textures-grid {
        gap: 12px;
    }

    .card-inner {
        height: 320px;
    }

    .card-image {
        min-height: 160px;
    }

    .product-icon {
        padding: 16px;
    }

    .product-icon svg {
        max-width: 90px;
        max-height: 90px;
    }

    .series-badge {
        font-size: 0.6rem;
        padding: 4px 8px;
        top: 8px;
        left: 8px;
    }
}
