/* ============================================
 * Product List Page Styles
 * ============================================ */

/* ---- Banner text left offset (desktop only) ---- */
@media (min-width: 1024px) {
    .-translate-x-\[-140\%\] {
        transform: translateX(-140%);
    }
}

/* ---- Banner Title — 4.6rem on desktop ---- */
.projects-banner-title {
    /* mobile inherits text-4xl (2.25rem) */
}
@media (min-width: 1024px) {
    .projects-banner-title {
        font-size: 4.6rem;
        line-height: 1;
    }
}

/* ---- Sidebar: right gap from divider (desktop only) ---- */
.products-sidebar {
    padding-right: 0;
}
@media (min-width: 1024px) {
    .products-sidebar {
        padding-right: 2.5rem;
    }
}

/* ---- Product Grid: left gap from divider (desktop only) ---- */
.products-grid-col {
    padding-left: 0;
}
@media (min-width: 1024px) {
    .products-grid-col {
        padding-left: 3rem;
    }
}

/* ============================================
 * Carousel Dots (Ring-style, same as homepage)
 * ============================================ */
.products-carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5em;
    z-index: 20;
}
.products-carousel-dots .carousel-dot {
    width: 1em;
    height: 1em;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    position: relative;
    transition: all 0.5s;
    flex-shrink: 0;
    padding: 0;
}
.products-carousel-dots .carousel-dot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.3em;
    height: 0.3em;
    background: #fff;
    border-radius: 50%;
}
.products-carousel-dots .carousel-dot.active {
    border-color: #fff;
    background: transparent;
    transform: none;
}
.products-carousel-dots .carousel-dot.active::after {
    display: none;
}
.products-carousel-dots .carousel-dot:not(.active) {
    background: transparent;
}
.products-carousel-dots .carousel-dot:not(.active):hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: transparent;
}

/* ============================================
 * Sidebar Headings (Product Categories / Projects)
 * ============================================ */
.products-sidebar-heading {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
}
@media (min-width: 1024px) {
    .products-sidebar-heading {
        font-size: 1.7rem;
    }
}

/* ---- Sidebar Subheading gap: "Refine By Category" → category list (2rem) ---- */
.sidebar-sub-gap {
    margin-bottom: 2rem;
}
/* ---- Sidebar section subtitle gap (1.5rem) ---- */
.sidebar-section-sub-gap {
    margin-bottom: 2.5rem;
}
.products-sidebar-sub {
    font-size: 1rem;
    color: #999;
}
@media (min-width: 1024px) {
    .products-sidebar-sub {
        font-size: 1.15rem;
    }
}

/* ---- Sidebar Category Items ---- */
.products-category-menu .category-tab {
    font-size: 1.2rem;
}
@media (min-width: 1024px) {
    .products-category-menu .category-tab {
        font-size: 1.4rem;
    }
}
.products-category-menu .category-tab,
.products-category-menu .category-tab-link {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: 0;
}
.products-category-menu .category-tab:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}
.products-category-menu .category-tab-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}
.products-category-menu .category-tab.underline {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* ---- Category Tab Icon ---- */
.cat-tab-icon {
    display: inline-block;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 1rem;
    vertical-align: middle;
    object-fit: contain;
    filter: brightness(0);
    opacity: 0.4;
    transition: opacity 0.2s ease;
}
.category-tab:hover .cat-tab-icon,
.category-tab-link:hover .cat-tab-icon,
.category-tab.underline .cat-tab-icon {
    opacity: 1;
}

/* ============================================
 * Sidebar Projects Cards
 * ============================================ */
.products-sidebar-projects {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.products-mobile-projects-carousel {
    width: 100%;
}

.products-mobile-projects-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.products-mobile-projects-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.products-mobile-projects-slide {
    width: 100%;
    flex-shrink: 0;
}

.products-mobile-projects-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.products-mobile-projects-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    border: none;
    background: rgba(26, 26, 26, 0.18);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.products-mobile-projects-dot.active,
.products-mobile-projects-dot:hover {
    background: rgba(26, 26, 26, 0.72);
}

/* ---- Sidebar Project Card Hover Overlay (same as product cards) ---- */
.sidebar-project-overlay {
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    transition: none;
}
.sidebar-project-overlay span {
    font-size: 1.4rem;
    text-transform: none;
    color: #fff;
}
.sidebar-project-card:hover .sidebar-project-overlay {
    opacity: 1;
}
.sidebar-project-card:hover img {
    filter: grayscale(100%);
}
.sidebar-project-card img {
    transition: filter 0.4s ease;
    will-change: filter;
}

/* ---- Sidebar Project Title ---- */
.sidebar-project-title {
    display: inline-block;
}
@media (min-width: 1024px) {
    .sidebar-project-title {
        font-size: 1.2rem;
    }
}
.sidebar-project-card:hover .sidebar-project-title {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* ---- Sidebar "View All Projects+" Link ---- */
.sidebar-view-all {
    text-decoration: underline;
    text-underline-offset: 0.25em;
    color: #1a1a1a;
    transition: color 0.2s ease;
}
@media (min-width: 1024px) {
    .sidebar-view-all {
        font-size: 1.3rem;
    }
}
.sidebar-view-all:hover {
    color: #b71c1c;
}
/* ---- Sidebar "View All Projects+" top gap (1.5rem) ---- */
.sidebar-view-all-gap {
    padding-top: 1.5rem;
}

/* Center View All Projects+ on desktop */
.desktop-only > div:last-child {
    text-align: center;
}

/* ============================================
 * Right Side Product Grid Heading
 * Matches homepage Product Categories style
 * ============================================ */
.products-grid-subtitle {
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    color: #b71c1c;
}
.products-grid-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.775rem;
    color: #1a1a1a;
}
/* ---- Product Grid heading → cards gap (3rem) ---- */
.products-grid-heading-gap {
    margin-bottom: 3rem;
}
@media (min-width: 1024px) {
    .products-grid-heading {
        font-size: 3.6rem;
    }
}

/* ============================================
 * Product Grid Card
 * ============================================ */

/* Larger gap between cards — more vertical breathing room */
.category-panel .grid {
    row-gap: 6rem;
    column-gap: 3rem;
}

/* ---- Product Card Title ---- */
.product-card-title {
    font-size: 1.1rem;
}
@media (min-width: 1024px) {
    .product-card-title {
        font-size: 1.7rem;
    }
}

/* ---- Product Card Excerpt ---- */
.product-card-excerpt {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.5;
    margin-top: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: text-decoration 0.2s ease;
}
@media (min-width: 1024px) {
    .product-card-excerpt {
        font-size: 0.9625rem;
    }
}

/* ---- Product Card: Title base —— override custom.css text-decoration:none ---- */
.product-card-title {
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

/* ---- Product Card: Title + Excerpt underline on hover ---- */
.product-card:hover .product-card-title {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}
.product-card:hover .product-card-excerpt {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* Override existing ::after underline animation — use simple text-decoration instead */
.product-card-title::after {
    display: none;
}

/* ---- Product Card Overlay: white instead of black ---- */
.product-card-overlay {
    background: rgba(255, 255, 255, 0.45);
    transition: none;
}

/* Product card image — grayscale on hover */
.product-card:hover .product-card-img-inner {
    filter: grayscale(100%);
}
.product-card-img-inner {
    transition: filter 0.4s ease;
    will-change: filter;
}

/* ---- Product Card "View More+" button: no border, black text ---- */
.product-card-overlay span {
    border: none;
    color: #1a1a1a;
}
.product-card-view-more {
    font-size: 1.9rem;
    text-transform: none;
}

/* ---- Pagination Spacing ---- */
.product-pagination {
    margin-top: 3rem;
}
.product-pagination .page-numbers {
    font-size: 1.5rem;
}
@media (min-width: 1024px) {
    .product-pagination {
        margin-top: 6rem;
    }
}

/* ============================================
 * CTA Section — match homepage
 * ============================================ */
.fp-banner-title {
    font-family: 'Montserrat', sans-serif;
}

/* CTA section — base height (mobile) */
.fp-cta-section {
    height: 480px;
}

@media (min-width: 1024px) {
    .fp-cta-section {
        height: 720px;
    }
    .fp-cta-section p.text-sm {
        font-size: 1.25rem;
    }
    .fp-cta-section a.px-6.py-3 {
        font-size: 1.2rem;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile: pagination font-size */
@media (max-width: 1023px) {
    .product-pagination .page-numbers {
        font-size: 1rem;
    }
}

/* Mobile: pagination spacing + View All Projects button */
@media (max-width: 1023px) {
    .product-pagination {
        margin-bottom: 3rem;
    }
    .products-mobile-projects-carousel .sidebar-project-card {
        width: 100%;
    }
    .products-mobile-projects-carousel .sidebar-project-title {
        display: block;
        font-size: 1rem;
    }
    .mobile-only .sidebar-view-all {
        font-size: 1rem;
        margin-top: 2rem;
        display: inline-block;
    }
    .sidebar-sub-gap { margin-bottom: 1.5rem; }
    .sidebar-section-sub-gap { margin-bottom: 1.5rem; }
    .sidebar-view-all-gap { padding-top: 1rem; }
    .products-grid-heading-gap { margin-bottom: 2rem; }
    .products-sidebar-projects { gap: 1.5rem; }
    .category-panel .grid { row-gap: 3rem; }
    .mobile-only { margin-top: 4rem; }
}

/* Sweep fill hover — dark variant */
.fp-section-btn-dark {
    text-transform: none;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.7s ease, border-color 0.7s ease;
}
.fp-section-btn-dark::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    background: #b71c1c;
    border-radius: inherit;
    transition: transform 0.7s ease;
}
.fp-section-btn-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #fff;
    border-radius: inherit;
}
.fp-section-btn-dark:hover {
    color: #fff;
    border-color: #b71c1c;
}
.fp-section-btn-dark:hover::before {
    transform: scaleX(1);
}
