/* =========================================
   Product Listing — Category & Subcategory
   ========================================= */

/* =========================================
   Subcategory Hero Banner
   ========================================= */
.subcat-hero {
    background: linear-gradient(135deg, #0d0203 0%, #1a0405 50%, #0d0203 100%) !important;
    padding: 64px 0 !important;
    position: relative;
    overflow: hidden;
}

/* Red accent line at bottom */
.subcat-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #cc272a;
}

/* Subtle radial glow */
.subcat-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(204,39,42,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.subcat-hero .breadcumb-title {
    font-size: 40px;
    margin-bottom: 0;
    line-height: 1.15;
}

.subcat-hero__count {
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.subcat-hero__count strong {
    color: #cc272a;
}

.subcat-hero .breadcumb-menu {
    margin-top: 0;
}

/* Image card */
.subcat-hero__img-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.subcat-hero__img-wrap img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.07);
}

@media (max-width: 1199px) {
    .subcat-hero {
        padding: 52px 0 !important;
    }
    .subcat-hero .breadcumb-title {
        font-size: 34px;
    }
}

@media (max-width: 991px) {
    .subcat-hero {
        padding: 48px 0 !important;
        text-align: center;
    }
    .subcat-hero .breadcumb-menu {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .subcat-hero .breadcumb-title {
        font-size: 28px;
    }
}

/* ---- Page Background ---- */
.shop-section {
    background-color: #f8f9fb;
}

/* =========================================
   Sidebar
   ========================================= */
.sidebar-area {
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
}

.widget + .widget {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #f0f0f0;
}

.widget_title {
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.widget_title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: #cc272a;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f8f8;
    transition: border-color .2s;
}

.search-form:focus-within {
    border-color: #cc272a;
    background: #fff;
}

.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 14px;
    font-size: 14px;
    outline: none;
    color: #333;
}

.search-form button {
    background: #cc272a;
    border: none;
    color: #fff;
    padding: 0 16px;
    height: 44px;
    cursor: pointer;
    font-size: 14px;
    transition: background .2s;
}

.search-form button:hover { background: #c00623; }

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
}

.category-list li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
    transition: background .2s;
}

.category-list li a:hover,
.category-list li.active a {
    color: #cc272a;
    background: #fff5f7;
}

.category-list li a:hover::before,
.category-list li.active a::before {
    background: #cc272a;
}

/* =========================================
   Toolbar (results count + sort)
   ========================================= */
.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    gap: 12px;
    flex-wrap: wrap;
}

.listing-toolbar__count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.listing-toolbar__count strong {
    color: #111;
}

/* =========================================
   Product Card — persistent detail (always visible)
   ========================================= */
.pcard {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
    position: relative;
}

.pcard:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    border-color: transparent;
    transform: translateY(-4px);
}

/* Image area */
.pcard__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f5f7;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcard__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform .5s cubic-bezier(.25,1,.5,1);
    mix-blend-mode: multiply;
}

.pcard:hover .pcard__img {
    transform: scale(1.07);
}

/* Body */
.pcard__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
}

.pcard__sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #cc272a;
}

.pcard__name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.pcard__name a {
    text-decoration: none;
    color: inherit;
}

/* Stretched link */
.pcard__name a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pcard:hover .pcard__name { color: #cc272a; }

.pcard__cta {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #cc272a;
    text-decoration: none;
    transition: gap .2s;
}

.pcard__cta i {
    font-size: 11px;
    transition: transform .2s;
}

.pcard:hover .pcard__cta { gap: 10px; }
.pcard:hover .pcard__cta i { transform: translateX(3px); }

/* =========================================
   Pagination
   ========================================= */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination {
    gap: 6px;
}

.pagination-wrapper .page-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: 1px solid #e5e5e5;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    padding: 0;
    transition: all .2s;
}

.pagination-wrapper .page-item.active .page-link {
    background: #cc272a;
    border-color: #cc272a;
    color: #fff;
}

.pagination-wrapper .page-link:hover {
    background: #cc272a;
    border-color: #cc272a;
    color: #fff;
}

/* =========================================
   Bottom content area (SEO text + FAQ)
   ========================================= */
.cat-content-area {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.cat-content-area .faq-section {
    margin-top: 48px;
}

.faq-section .accordion-item {
    border: 1px solid #ebebeb;
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 12px;
}

.faq-section .accordion-button {
    font-weight: 600;
    font-size: 15px;
    background: #fff;
    color: #111;
    border-radius: 12px !important;
}

.faq-section .accordion-button:not(.collapsed) {
    background: #fff5f7;
    color: #cc272a;
    box-shadow: none;
}

.faq-section .accordion-button::after {
    filter: none;
}

.faq-section .accordion-button:not(.collapsed)::after {
    filter: invert(16%) sepia(98%) saturate(5000%) hue-rotate(340deg) brightness(85%);
}

/* =========================================
   Empty State
   ========================================= */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 991px) {
    .sidebar-widget-area {
        margin-bottom: 40px;
    }

    .sidebar-area {
        position: static;
    }
}

@media (max-width: 575px) {
    .listing-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
