/* =========================================================================
   PRODUCTS PAGE - Advanced Designer Layout
   ========================================================================= */

/* -------------------------------------------------------------------------
   HERO BANNER
   ------------------------------------------------------------------------- */
.products-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    overflow: hidden;
    padding: 120px 0 80px;
}

.products-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at 20% 50%,
            rgba(255, 127, 80, 0.12) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse at 80% 20%,
            rgba(255, 127, 80, 0.06) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 50% 80%,
            rgba(0, 150, 255, 0.05) 0%,
            transparent 50%
        );
    z-index: 0;
}

.products-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 127, 80, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 127, 80, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.products-hero-badge {
    display: inline-block;
    background: rgba(255, 127, 80, 0.12);
    border: 1px solid rgba(255, 127, 80, 0.25);
    color: var(--brand-orange);
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 3px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.products-hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 20px;
}

.products-hero-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 30px;
}

.products-hero-stats {
    display: flex;
    gap: 30px;
}

.products-hero-stats strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-orange);
    line-height: 1;
}

.products-hero-stats span {
    font-size: 0.8rem;
    color: var(--text-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.products-hero-scroll {
    position: absolute;
    bottom: 30px;
    right: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
}

.products-hero-scroll span {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-gray);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--brand-orange);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }
}

/* -------------------------------------------------------------------------
   MAIN SECTION
   ------------------------------------------------------------------------- */
.products-main {
    background: #f5f7fa;
    padding: 60px 0 100px;
    border-top: 1px solid rgba(255, 127, 80, 0.08);
}

/* -------------------------------------------------------------------------
   SIDEBAR
   ------------------------------------------------------------------------- */
.products-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 35px;
}

.sidebar-title {
    color: #333;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.sidebar-list li {
    margin-bottom: 2px;
}

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    color: #555;
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.sidebar-list a:hover {
    background: rgba(255, 127, 80, 0.06);
    color: #333;
}

.sidebar-list a.active {
    background: rgba(255, 127, 80, 0.12);
    color: var(--brand-orange);
    font-weight: 600;
}

.sidebar-list a span {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 2px 10px;
    border-radius: 20px;
    color: #666;
}

.sidebar-list a.active span {
    background: rgba(255, 127, 80, 0.15);
    color: var(--brand-orange);
}

.sidebar-cta {
    background: #fff;
    border: 1px solid rgba(255, 127, 80, 0.12);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    margin-top: 40px;
}

.sidebar-cta i {
    font-size: 2rem;
    color: var(--brand-orange);
    margin-bottom: 12px;
}

.sidebar-cta h6 {
    color: #333;
    font-weight: 700;
    margin-bottom: 6px;
}

.sidebar-cta p {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------
   TOOLBAR
   ------------------------------------------------------------------------- */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.products-count {
    font-size: 0.85rem;
    color: #666;
}

.products-view-toggle {
    display: flex;
    gap: 6px;
}

.view-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: 0.25s;
}

.view-btn:hover {
    border-color: rgba(255, 127, 80, 0.3);
    color: var(--brand-orange);
}

.view-btn.active {
    background: rgba(255, 127, 80, 0.12);
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

/* -------------------------------------------------------------------------
   PRODUCT CARD
   ------------------------------------------------------------------------- */
.product-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 127, 80, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 127, 80, 0.05);
}

.product-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.02);
    overflow: hidden;
    min-height: 178px;
}

.product-card-glow {
    position: absolute;
    width: 180px;
    height: 130px;
    background: radial-gradient(
        circle,
        rgba(255, 127, 80, 0.1) 0%,
        transparent 70%
    );
    filter: blur(40px);
    transition: 0.5s;
    pointer-events: none;
}

.product-card:hover .product-card-glow {
    background: radial-gradient(
        circle,
        rgba(255, 127, 80, 0.2) 0%,
        transparent 70%
    );
    transform: scale(1.5);
}

.product-card-image img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    z-index: 2;
    transition: 0.5s;
}

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

.product-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(7, 10, 19, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: 0.35s;
    z-index: 5;
}

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

.overlay-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
    transform: translateY(15px);
}

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

.overlay-btn:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}

.product-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

.badge-warranty {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(7, 10, 19, 0.8);
    border: 1px solid rgba(255, 127, 80, 0.2);
    color: var(--brand-orange);
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

.product-card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.product-category,
.product-brand {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
}

.product-category {
    background: rgba(255, 127, 80, 0.1);
    color: var(--brand-orange);
}

.product-brand {
    background: rgba(0, 0, 0, 0.03);
    color: #555;
}

.product-card-title {
    color: #222;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    transition: 0.3s;
}

.product-card:hover .product-card-title {
    color: var(--brand-orange);
}

.product-card-desc {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.8rem;
}

.product-card-order {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--brand-orange), #e06530);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}
.product-card-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 127, 80, 0.3);
    color: #fff;
}

/* -------------------------------------------------------------------------
   LIST VIEW
   ------------------------------------------------------------------------- */
.products-grid--list .product-item {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.products-grid--list .product-card {
    flex-direction: row;
}

.products-grid--list .product-card-image {
    min-width: 280px;
    max-width: 280px;
    min-height: 100%;
}

.products-grid--list .product-card-body {
    padding: 28px;
}

.products-grid--list .product-card-desc {
    -webkit-line-clamp: 3;
}

@media (max-width: 768px) {
    .products-grid--list .product-card {
        flex-direction: column;
    }
    .products-grid--list .product-card-image {
        min-width: 100%;
        max-width: 100%;
    }
}

/* -------------------------------------------------------------------------
   EMPTY STATE
   ------------------------------------------------------------------------- */
.products-empty {
    text-align: center;
    padding: 80px 20px;
}

.products-empty i {
    font-size: 3rem;
    color: var(--text-gray);
    opacity: 0.3;
    margin-bottom: 20px;
}

.products-empty h3 {
    color: #333;
    margin-bottom: 10px;
}

.products-empty p {
    color: #555;
    margin-bottom: 24px;
}

/* -------------------------------------------------------------------------
   PAGINATION
   ------------------------------------------------------------------------- */
.products-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.products-pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 6px;
    margin: 0;
}

.products-pagination-list li a,
.products-pagination-list li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    transition: 0.25s;
}

.products-pagination-list li a:hover {
    border-color: rgba(255, 127, 80, 0.3);
    color: var(--brand-orange);
}
.products-pagination-list li.active span {
    background: rgba(255, 127, 80, 0.12);
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}
.products-pagination-list li.disabled span {
    opacity: 0.3;
    cursor: default;
}

/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .products-hero {
        min-height: 35vh;
        padding: 100px 0 60px;
    }
    .products-sidebar {
        position: static;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .products-hero-title {
        font-size: 2.2rem;
    }
    .products-hero-stats {
        gap: 20px;
    }
    .products-hero-stats strong {
        font-size: 1.4rem;
    }
    .product-card-image {
        min-height: 180px;
        padding: 28px;
    }
    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
