﻿/* Product List Page Styles - Dark Premium Design */
/* Note: Header styles are imported from header-styles.css */

/* Hero Banner Section */
.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.70)),
                url('../images/illustrations/product list hero section.png') center/cover no-repeat;
    border-bottom: 3px solid #2563eb;
    width: 100%;
    padding: 70px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

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

.pl-hero-badge {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235,0.3);
    padding: 6px 20px; border-radius: 50px;
    margin-bottom: 22px;
}

.pl-hero-title {
    font-size: 46px; font-weight: 900;
    color: #ffffff; line-height: 1.1;
    letter-spacing: -1px; margin-bottom: 16px;
}

.pl-hero-sub {
    font-size: 15px; color: rgba(255,255,255,0.90);
    line-height: 1.7; margin-bottom: 32px;
    max-width: 580px; margin-left: auto; margin-right: auto;
}

.pl-hero-jumps {
    display: flex; gap: 10px;
    flex-wrap: wrap; justify-content: center;
}

.pl-jump {
    display: inline-block;
    font-size: 13px; font-weight: 700;
    color: #ffffff;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 9px 18px; border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.pl-jump:hover {
    background: #2563eb; color: #ffffff;
    border-color: #2563eb; transform: translateY(-2px);
}

/* old height property replaced — keep width */
.hero-banner-placeholder {
    width: 100%;
    height: 300px;
    border-bottom: 1px solid #cbd5e1;
}

/* Main Product List Section */
.product-list-main {
    background-color: #f8fafc;
    min-height: 100vh;
    padding: 40px 20px;
}

.product-list-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 40px;
}

/* Filter Sidebar */
.filter-sidebar {
    background-color: #e2e8f0;
    padding: 25px 20px;
    border-radius: 12px;
    border: 1px solid #222222;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.filter-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.53);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222222;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    padding: 11px 14px;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-item:hover {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.filter-item.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(212, 2, 90, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #2563eb;
    font-weight: 700;
}

.filter-text {
    display: inline-block;
    pointer-events: none;
}

.filter-count {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.6;
    pointer-events: none;
    background: rgba(255,255,255,0.06);
    padding: 2px 7px;
    border-radius: 20px;
}

.filter-item.active .filter-count {
    opacity: 1;
    background: rgba(37, 99, 235, 0.2);
}

/* Products Grid Wrapper */
.products-grid-wrapper {
    width: 100%;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    max-width: 100%;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 14px;
    color: #0f172a;
    background-color: #e2e8f0;
    border: 1px solid #222222;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.search-input::placeholder {
    color: #334155;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
}

.search-btn:active {
    transform: translateY(0);
}

/* Products Grid - Dense 3-column layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Product Card */
.product-card {
    background-color: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.18);
    transform: translateY(-5px);
}

/* Product Image Container with Hover Effect */
.product-image-container {
    position: relative;
    width: 100%;
    height: 185px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    background-color: #f8fafc;
    border: 1px solid #222222;
}

/* UV label overlay */
.product-image-container::after {
    content: 'UV VIEW';
    position: absolute;
    bottom: 8px; right: 8px;
    font-size: 9px; font-weight: 700;
    letter-spacing: 1.5px;
    color: #2563eb;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(37, 99, 235,0.4);
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.product-card:hover .product-image-container::after {
    opacity: 1;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-thumb {
    opacity: 1;
    z-index: 2;
}

.product-uv {
    opacity: 0;
    z-index: 1;
}

.product-card:hover .product-thumb {
    opacity: 0;
}

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

/* Fallback for old placeholder style */
.product-image-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 11px;
    margin-bottom: 14px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

/* Order Button */
.order-btn {
    width: 100%;
    padding: 11px 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 10;
    margin-top: auto;
}

.order-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.order-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Footer */
.footer {
    background-color: #f8fafc;
    color: #0f172a;
    padding: 50px 20px 25px;
    border-top: 1px solid #ffffff;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(100, 116, 139, 0.53);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #2563eb;
}

.footer-column p {
    color: rgba(100, 116, 139, 0.53);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-seo-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ffffff;
}

.footer-seo-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f172a;
    text-align: center;
}

.footer-keywords {
    text-align: center;
    line-height: 2;
    color: rgba(100, 116, 139, 0.53);
    font-size: 14px;
}

.footer-keywords a {
    color: rgba(100, 116, 139, 0.53);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-keywords a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ffffff;
}

.footer-bottom p {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-list-container {
        grid-template-columns: 180px 1fr;
        gap: 30px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .banner-images {
        gap: 15px;
    }

    .banner-image-placeholder {
        width: 160px;
        height: 100px;
    }
}

@media (max-width: 992px) {
    .product-list-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filter-sidebar {
        position: static;
        border-radius: 10px;
    }

    .filter-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-item {
        margin-bottom: 0;
        border: 1px solid #222222;
    }

    .filter-item.active {
        border: 1px solid rgba(37, 99, 235, 0.3);
    }

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

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

@media (max-width: 768px) {
    .hero-banner { padding: 56px 16px 48px; min-height: 300px; background-position: center top; }
    .pl-hero-title { font-size: 30px; }
    .pl-hero-sub { font-size: 14px; }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-list-main {
        padding: 30px 15px;
    }

    .search-container {
        flex-direction: column;
        gap: 10px;
    }

    .search-input {
        width: 100%;
        font-size: 14px;
        padding: 12px 16px;
    }

    .search-btn {
        width: 100%;
        padding: 14px 20px;
        min-height: 44px;
    }

    .order-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-height: 44px;
    }

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

    .filter-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 20px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .product-list-main {
        padding: 20px 10px;
    }

    .product-list-container {
        max-width: 100%;
    }

    .hero-banner { padding: 40px 14px 36px; }
    .pl-hero-title { font-size: 24px; }
    .pl-jump { font-size: 12px; padding: 7px 14px; }

    .filter-sidebar {
        padding: 15px;
    }

    .filter-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .filter-item {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 40px;
    }

    .products-grid {
        gap: 15px;
    }

    .product-card {
        max-width: 100%;
        padding: 12px;
    }

    .product-image-container {
        height: 160px;
    }

    .product-image-placeholder {
        height: 130px;
        font-size: 11px;
    }

    .product-name {
        font-size: 13px;
        margin-bottom: 6px;
        min-height: 32px;
    }

    .product-price {
        font-size: 16px;
    }

    .order-btn {
        padding: 9px 16px;
        font-size: 12px;
        min-height: 40px;
    }

    .search-input {
        font-size: 13px;
        padding: 10px 14px;
    }

    .search-btn {
        padding: 12px 18px;
        font-size: 13px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .footer-column ul li {
        margin-bottom: 10px;
    }

    .footer-column ul li a,
    .footer-column p {
        font-size: 12px;
    }

    .footer-keywords {
        font-size: 13px;
        line-height: 1.8;
    }
}

/* Extra small phones - additional footer styles */
@media (max-width: 360px) {
    .footer-keywords {
        font-size: 12px;
        line-height: 1.6;
    }

    .footer-keywords a {
        display: inline-block;
        margin: 2px 0;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .product-list-main {
        padding: 15px 8px;
    }

    .hero-banner { padding: 32px 12px 28px; }
    .pl-hero-title { font-size: 20px; }
    .pl-hero-jumps { gap: 6px; }

    .filter-item {
        padding: 8px 10px;
        font-size: 12px;
        min-height: 38px;
    }

    .product-card {
        padding: 10px;
    }

    .product-image-placeholder {
        height: 120px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
    }

    .order-btn {
        padding: 7px 14px;
        font-size: 11px;
        min-height: 38px;
    }

    .search-input {
        font-size: 12px;
        padding: 9px 12px;
    }

    .search-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

