/* =========================================================
   PRODUCT PAGE
   IMPORTANT:
   This file only controls Product page elements.
   Navbar / Header styles belong to navbar.css.
========================================================= */

/* Reset default browser spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
}

/* =========================================================
   PRODUCT PAGE BASE
========================================================= */

.products-page {
    width: 100%;
    min-height: calc(100vh - 85px);
    padding: 32px 0 50px;
    padding-top: 30px;
    position: relative;
    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(255, 75, 0, 0.045),
            transparent 28%
        ),
        #f7f8f9;

    color: #111111;
}


/* =========================================================
   PRODUCT PAGE CONTAINER
   IMPORTANT:
   Do NOT use .container globally here.
========================================================= */

.products-page .container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
}


/* =========================================================
   PRODUCT PAGE DECORATION
========================================================= */

.products-page::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    top: 120px;
    right: -170px;

    border-radius: 50%;

    border: 1px solid rgba(255, 75, 0, 0.06);

    pointer-events: none;
}


.products-page::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    bottom: 100px;
    left: -130px;

    border-radius: 50%;

    border: 1px solid rgba(0, 0, 0, 0.035);

    pointer-events: none;
}


/* =========================================================
   PRODUCTS TOOLBAR
========================================================= */

.products-toolbar {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 32px;

    animation: productFadeUp 0.7s ease both;
}


@keyframes productFadeUp {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}




/* =========================================================
   PRODUCT COUNT
========================================================= */

.product-count-box {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 11px 15px;

    background: #ffffff;

    border: 1px solid #e5e5e5;

    border-radius: 30px;

    color: #666666;

    font-size: 15px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.035);

    flex-shrink: 0;
}


.count-icon {
    color: #ff4b00;

    font-size: 16px;
}


/* =========================================================
   MAIN PRODUCT LAYOUT
========================================================= */

.products-layout {
    display: grid;

    grid-template-columns:
        260px minmax(0, 1fr);

    gap: 30px;

    width: 100%;

    align-items: start;
}


/* =========================================================
   LEFT SIDEBAR
========================================================= */

.products-sidebar {
    width: 260px;

    position: sticky;

    top: 20px;

    align-self: start;

    z-index: 10;

    animation:
        productSidebarIn 0.8s ease both;
}


@keyframes productSidebarIn {

    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* =========================================================
   CATEGORY BOX
========================================================= */

.category-box {
    width: 100%;

    border: 1px solid #e2e4e5;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.96);

    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.055);

    backdrop-filter: blur(10px);
}


/* =========================================================
   CATEGORY HEADER
========================================================= */

.category-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 21px 18px;

    background:
        linear-gradient(
            135deg,
            #10243e,
            #10243e
        );

    color: #ffffff;

    position: relative;

    overflow: hidden;
}


.category-header::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -45px;
    top: -45px;

    border-radius: 50%;

    background:
        rgba(255, 75, 0, 0.18);
}


.category-small-label {
    display: block;

    color: #ff7040;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 4px;
}


.category-header h3 {
    font-size: 15px;

    letter-spacing: 0.7px;
}


.category-header-icon {
    font-size: 20px;

    opacity: 0.8;

    position: relative;

    z-index: 2;
}


/* =========================================================
   CATEGORY ITEM
========================================================= */

.category-item {
    border-top: 2px solid #eeeeee;

    position: relative;

    transition:
        background 0.25s ease;
}


.category-item::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 3px;
    height: 0;

    background: #ff4b00;

    transition:
        height 0.3s ease;
}


.category-item.active::before {
    height: 100%;
}


.category-item:hover {
    background: #fff7f2;
}


/* =========================================================
   CATEGORY ROW
========================================================= */

.category-row {
    min-height: 55px;

    padding:
        0 11px 0 16px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    cursor: pointer;
}


/* =========================================================
   CATEGORY NAME
========================================================= */

.category-name {
    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 16px;

    flex: 1;

    min-width: 0;

    color: #333333;

    transition:
        color 0.25s ease;
}


.category-name > span:nth-child(2) {
    white-space: normal;

    line-height: 1.35;
}


.category-name b {
    margin-left: auto;

    font-size: 15px;

    color: #aaaaaa;

    flex-shrink: 0;

    font-weight: 500;
}


.category-item.active
.category-name > span:nth-child(2) {

    color: #ff4b00;

    font-weight: 700;
}


/* =========================================================
   RADIO CIRCLE
========================================================= */

.radio-circle {
    width: 19px;
    height: 19px;

    border: 1px solid #cfcfcf;

    border-radius: 50%;

    flex-shrink: 0;

    position: relative;

    transition:
        border 0.25s ease,
        transform 0.25s ease;
}


.category-item:hover .radio-circle {

    border-color: #ff4b00;

    transform: scale(1.08);
}


.category-item.active .radio-circle {

    border: 4px solid #ff4b00;

    box-shadow:
        0 0 0 3px rgba(255, 75, 0, 0.10);
}


/* =========================================================
   CATEGORY TOGGLE
========================================================= */

.category-toggle {

    border: 0;

    background: transparent;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    font-size: 20px;

    cursor: pointer;

    color: #555555;

    flex-shrink: 0;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.3s ease;
}


.category-toggle:hover {

    color: #ff4b00;

    background: #fff1eb;

    transform: rotate(90deg);
}


.category-item.open .category-toggle {

    color: #ff4b00;
}


/* =========================================================
   SUBCATEGORY
========================================================= */

.subcategory-list {

    display: block;

    max-height: 0;

    opacity: 0;

    overflow: hidden;

    padding:
        0 15px 0 39px;

    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        padding 0.35s ease;
}


.category-item.open .subcategory-list {

    max-height: 600px;

    opacity: 1;

    padding-top: 5px;

    padding-bottom: 12px;
}


/* =========================================================
   SUBCATEGORY BUTTON
========================================================= */

.subcategory-btn {

    display: block;

    width: 100%;

    border: 0;

    background: transparent;

    text-align: left;

    padding: 7px 0;

    font-size: 15px;

    color: #707070;

    cursor: pointer;

    line-height: 1.4;

    position: relative;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}


.subcategory-btn::before {

    content: "";

    position: absolute;

    left: -12px;

    top: 50%;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #cccccc;

    transform:
        translateY(-50%);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.subcategory-btn:hover,
.subcategory-btn.active {

    color: #ff4b00;

    padding-left: 5px;
}


.subcategory-btn:hover::before,
.subcategory-btn.active::before {

    background: #ff4b00;

    transform:
        translateY(-50%)
        scale(1.5);
}


/* =========================================================
   RIGHT PRODUCT CONTENT
========================================================= */
.products-content {
    min-width: 0;
    height: auto;
    overflow-y: visible;
    overflow-x: hidden;
    padding:
        4px 10px 20px 2px;

    animation:
        productContentIn 0.8s ease both;

    scrollbar-width: thin;

    scrollbar-color:
        #ff4b00
        #eeeeee;
}


@keyframes productContentIn {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   PRODUCT CONTENT SCROLLBAR
========================================================= */

.products-content::-webkit-scrollbar {
    width: 7px;
}


.products-content::-webkit-scrollbar-track {

    background: #eeeeee;

    border-radius: 10px;
}


.products-content::-webkit-scrollbar-thumb {

    background:
        linear-gradient(
            #ff4b00,
            #ff7040
        );

    border-radius: 10px;
}


.products-content::-webkit-scrollbar-thumb:hover {

    background: #e64200;
}


/* =========================================================
   PRODUCTS HEADING
========================================================= */

.products-heading {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 22px;

    padding:
        2px 2px;
}


.section-label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #ff4b00;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: 1.8px;
}


.section-label::before {

    content: "";

    width: 22px;

    height: 2px;

    background: #ff4b00;

    display: inline-block;
}


.products-page .products-heading h2 {

    font-size: 25px;

    margin-top: 6px;

    letter-spacing: -0.5px;
}


/* =========================================================
   VIEW ALL BUTTON
========================================================= */

.reset-button {

    display: flex;

    align-items: center;

    gap: 8px;

    border: 1px solid #ff4b00;

    background: #ffffff;

    color: #ff4b00;

    padding:
        10px 15px;

    border-radius: 6px;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: 0.8px;

    cursor: pointer;

    position: relative;

    overflow: hidden;

    transition:
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.reset-button::before {

    content: "";

    position: absolute;

    inset: 0;

    

    transform:
        translateX(-100%);

    transition:
        transform 0.3s ease;

    z-index: 0;
}


.reset-button span {

    position: relative;

    z-index: 1;
}


.reset-button:hover::before {

    transform:
        translateX(0);
}


.reset-button:hover {


    transform:
        translateY(-2px);

}


.reset-arrow {

    font-size: 19px;

    transition:
        transform 0.3s ease;
}


.reset-button:hover .reset-arrow {

    transform:
        translate(2px, -2px);
    
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.product-grid {

    display: grid;


    gap: 20px;

    padding:
        0 1px 35px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {

    background: #ffffff;

    border: 1px solid #e4e5e6;

    border-radius: 13px;

    overflow: hidden;

    position: relative;

    transition:
        transform 0.35s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;

    animation:
        productCardIn 0.55s ease both;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.025);
}


.product-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ff4b00,
            transparent
        );

    transform:
        scaleX(0);

    transition:
        transform 0.4s ease;

    z-index: 4;
}


.product-card:hover::before {

    transform:
        scaleX(1);
}


.product-card:hover {

    transform:
        translateY(-5px);

    border-color: #d17015;

    box-shadow:
        10px 28px 50px
        rgba(221, 149, 15, 0.10);
}


/* =========================================================
   CARD ANIMATION
========================================================= */

@keyframes productCardIn {

    from {

        opacity: 0;

        transform:
            translateY(18px)
            scale(0.98);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* =========================================================
   STAGGERED CARD ANIMATION
========================================================= */

.product-card:nth-child(1) {
    animation-delay: 0.03s;
}

.product-card:nth-child(2) {
    animation-delay: 0.08s;
}

.product-card:nth-child(3) {
    animation-delay: 0.13s;
}

.product-card:nth-child(4) {
    animation-delay: 0.18s;
}

.product-card:nth-child(5) {
    animation-delay: 0.23s;
}

.product-card:nth-child(6) {
    animation-delay: 0.28s;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image {

   
    height: 180px;

    background:
        radial-gradient(
            circle at center,
            #ffffff 0%,
            #f5f7f8 72%
        );

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 18px;

    overflow: hidden;
}


.product-image::after {

    content: "";

    position: absolute;

    width: 140px;
    height: 35px;

    bottom: 17px;

    left: 50%;

    transform:
        translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(214, 206, 206, 0.13),
            transparent 70%
        );

    filter:
        blur(5px);

    opacity: 0.55;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}


.product-card:hover .product-image::after {

    transform:
        translateX(-50%)
        scale(0.75);

    opacity: 0.35;
}


.product-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    position: relative;

    z-index: 2;

    transition:
        transform 0.55s cubic-bezier(.2, .8, .2, 1),
        filter 0.4s ease;
}


.product-card:hover .product-image img {

    transform:
        scale(1.09)
        translateY(-3px);

    filter:
        drop-shadow(
            0 10px 13px
            rgba(0, 0, 0, 0.10)
        );
}


/* =========================================================
   PRODUCT BADGE
========================================================= */

.product-badge {

    position: absolute;

    top: 13px;
    left: 13px;

    background:
        linear-gradient(
            135deg,
            #ff4b00,
            #ff6a2a
        );

    color: #ffffff;

    padding:
        6px 10px;

    border-radius: 5px;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 0.8px;

    z-index: 5;

    box-shadow:
        0 5px 12px
        rgba(255, 75, 0, 0.20);

    animation:
        badgePulse 2.5s ease-in-out infinite;
}


@keyframes badgePulse {

    0%,
    100% {

        box-shadow:
            0 5px 12px
            rgba(255, 75, 0, 0.20);
    }

    50% {

        box-shadow:
            0 5px 18px
            rgba(255, 75, 0, 0.40);
    }

}


/* =========================================================
   WISHLIST
========================================================= */

.wishlist {

    position: absolute;

    top: 12px;
    right: 12px;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    border: 1px solid #e0e0e0;

    background:
        rgba(255, 255, 255, 0.92);

    backdrop-filter:
        blur(5px);

    font-size: 20px;

    cursor: pointer;

    color: #555555;

    z-index: 5;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}


.wishlist:hover {

    color: #ff4b00;

    border-color: #ff4b00;

    background: #fff7f3;

    transform:
        scale(1.1)
        rotate(-8deg);
}


.wishlist.active {

    color: #ff4b00;

    background: #fff0e9;

    border-color: #ff4b00;
}


/* =========================================================
   PRODUCT DETAILS
========================================================= */

.product-details {

    padding:
        17px 18px 18px;
}


.product-category {

    display: inline-block;

    color: #ff4b00;

    font-size: 14px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    margin-bottom: 7px;
}

.products-page .product-details h3 {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 8px;
    min-height: 42px;
}

.product-card:hover
.product-details h3 {

    color: #ff4b00;
}

.products-page .product-details p {
    color: #707070;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    min-height: 42px;
}


/* =========================================================
   VIEW DETAILS
========================================================= */

.details-link {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 17px;

    padding-top: 13px;

    border-top: 1px solid #eeeeee;

    text-decoration: none;

    color: #333333;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 0.8px;

    transition:
        color 0.25s ease;
}


.details-link span {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    background: #f5f5f5;

    font-size: 18px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.product-card:hover
.details-link {

    color: #ff4b00;
}


.product-card:hover
.details-link span {

    background: #ff4b00;

    color: #ffffff;

    transform:
        translateX(3px);
}


/* =========================================================
   NO PRODUCTS
========================================================= */

.no-products {

    display: none;

    padding:
        70px 30px;

    text-align: center;

    color: #777777;

    background: #ffffff;

    border-radius: 12px;

    border: 1px solid #e5e5e5;
}


.no-products-icon {

    width: 48px;
    height: 48px;

    margin:
        0 auto 15px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #fff0e9;

    color: #ff4b00;

    font-weight: 800;

    font-size: 20px;
}


.no-products h3 {

    margin-bottom: 7px;

    color: #222222;
}


.no-products p {

    font-size: 15px;
}


/* =========================================================
   BOTTOM SPACE
========================================================= */

.page-bottom-space {
    height: 20px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .products-page .container {

        width: 92%;
    }


    .products-layout {

        grid-template-columns:
            230px minmax(0, 1fr);

        gap: 20px;
    }


    .products-sidebar {
        width: 230px;
    }


    .products-content {
        height: auto;
    }


    .product-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 800px) {

    .products-toolbar {

        align-items: flex-start;

        gap: 20px;

        flex-direction: column;
    }


    .product-count-box {

        margin-top: 3px;
    }


    .products-layout {

        grid-template-columns:
            210px minmax(0, 1fr);

        gap: 18px;
    }


    .products-sidebar {
        width: 210px;
    }


    .product-image {
        height: 210px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .products-page {

        padding:
            28px 0 40px;
    }


    .products-page .container {
        width: 92%;
    }


    .products-layout {

        grid-template-columns: 1fr;

        gap: 25px;
    }


    .products-sidebar {

        width: 100%;

        position: relative;

        top: auto;
    }


    .products-content {

        height: auto;

        overflow: visible;

        padding:
            0 0 20px;
    }


    .products-toolbar h1 {

        font-size: 31px;
    }


    .products-heading {

        flex-direction: row;

        align-items: center;

        gap: 15px;
    }


    .products-heading h2 {

        font-size: 21px;
    }


    .reset-button {

        flex-shrink: 0;
    }


    .product-grid {

        grid-template-columns: 1fr;

        gap: 18px;
    }


    .product-image {

        height: 270px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .products-page .container {
        width: 94%;
    }


    .products-toolbar h1 {

        font-size: 28px;
    }


    .products-heading {

        align-items: flex-start;
    }


    .products-heading h2 {

        font-size: 19px;
    }


    .reset-button {

        padding:
            9px 11px;
    }


    .reset-button span:first-child {

        font-size: 9px;
    }


    .product-image {

        height: 250px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .products-page *,
    .products-page *::before,
    .products-page *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}


/* =====================================================
   SUPER CATEGORIES SIDEBAR CARDS
===================================================== */
.super-category-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.super-cat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.super-cat-card:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
  transform: translateX(2px);
}

.super-cat-icon {
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.super-cat-icon img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.super-cat-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.super-cat-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.super-cat-count {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.1rem;
}

/* Active State matching your reference screenshot */
.super-cat-card.active {
  background: linear-gradient(135deg, #ff7b00 0%, #ff5500 100%);
  border-color: #ff7b00;
  box-shadow: 0 4px 12px rgba(255, 123, 0, 0.25);
}

.super-cat-card.active .super-cat-icon {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.super-cat-card.active .super-cat-name,
.super-cat-card.active .super-cat-count {
  color: #ffffff;
}

/* =====================================================
   ACTIVE SUPER CATEGORY BANNER
===================================================== */
.active-super-banner {
  background: linear-gradient(135deg, #e66109 0%, #eeb53b 100%);
  border-radius: 12px;
  padding: 1.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.2);
  flex-shrink: 0;
}

/* Subtle background accent glow */
.active-super-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.banner-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.banner-content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 450px;
}

.banner-icon-box {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.banner-icon-box img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

/* Responsive adjustment for banner */
@media (max-width: 640px) {
  .banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .banner-icon-box {
    display: none;
  }
}

html,
body {
    overflow-x: hidden;
}

.products-page .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 1px 25px;
}

.products-page .product-card {
    padding-bottom: 12px;
}

.products-page .product-image {
    height: 170px;
    padding: 12px;
}

/* FINAL PRODUCT GRID LAYOUT */

/* Responsive product grid */
.products-page .products-content .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 1px 25px;
}

/* Tablets */
@media (max-width: 1050px) {
    .products-page .products-content .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 520px) {
    .products-page .products-content .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }
}

.products-page .products-content .product-card {
    width: 100% !important;
    min-width: 0 !important;
}

/* FINAL PRODUCT CARD CONTENT */
.products-page .product-card .product-details {
    padding: 14px 18px 16px !important;

    display: flex !important;
    flex-direction: column !important;

    min-height: 145px;
}


.products-page .product-card .product-details h3 {
    margin: 0 0 6px !important;
    min-height: auto !important;
}

.products-page .product-card .product-details p {
    margin: 0 0 12px !important;
    min-height: auto !important;
}

.products-page .product-card .details-link {
    margin-top: 0 !important;
}

/* FINAL PRODUCT CARD POLISH */

.products-page .product-card .product-details h3 {
    color: #10243e !important;
    margin: 0 0 8px !important;
}

.products-page .product-card .product-details p {
    color: #707070 !important;
    margin: 0 0 18px !important;
}

.products-page .product-card .details-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 12px !important;
    padding: 10px 0 0;

    border-top: 1px solid #eeeeee;

    color: #ff4b00 !important;
    background: transparent !important;

    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.products-page .product-card .details-link span {
    color: #ffffff !important;
}

/* Make subcategory and product card titles larger */
.product-card .product-details h3,
.product-card .product-details .subcategory-card-title {
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}


/* =====================================================
   SPECTRUM SAFETY — PREMIUM SUBCATEGORY PAGE
===================================================== */

.subcategory-page {
    isolation: isolate;
    padding: 42px 0 65px;
    background:
        radial-gradient(ellipse at 5% 0%, rgba(247, 92, 3, 0.07), transparent 32%),
        #f5f7fa;
}

.subcategory-page > .container {
    position: relative;
    z-index: 1;
}

/* Page heading */
.subcategory-page .subcategory-toolbar {
    align-items: center;
    gap: 24px;
    margin-bottom: 35px;
    padding: 28px 30px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(16, 36, 62, 0.045);
    animation: subcategoryEnter 0.65s ease both;
}

.subcategory-page .subcategory-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #f75c03;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.subcategory-page .toolbar-title h1 {
    margin: 0 0 10px;
    color: #10243e;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.subcategory-page .toolbar-title p {
    max-width: 550px;
    margin: 0;
    color: #687586;
    font-size: 14px;
    line-height: 1.8;
}

/* Product count */
.subcategory-page .product-count-box {
    gap: 10px;
    padding: 13px 17px;
    border: 1px solid #f0e1d8;
    border-radius: 10px;
    background: #fff9f5;
    color: #596579;
    font-size: 13px;
    box-shadow: none;
}

.subcategory-page .product-count-box strong {
    color: #10243e;
}

.subcategory-page .count-icon {
    font-size: 12px;
}

/* Main collection panel */
.subcategory-page .subcategory-content {
    min-width: 0;
    padding: 28px;
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(16, 36, 62, 0.04);
    animation: subcategoryEnter 0.75s 0.08s ease both;
}

/* Section heading */
.subcategory-page .subcategory-heading {
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
    padding: 0 0 23px;
    border-bottom: 1px solid #e9edf2;
}

.subcategory-page .section-label {
    gap: 9px;
    font-size: 10px;
    letter-spacing: 1.8px;
}

.subcategory-page .section-label::before {
    width: 24px;
    height: 3px;
    border-radius: 5px;
}

.subcategory-page .products-heading h2 {
    margin-top: 9px;
    color: #10243e;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.subcategory-page .subcategory-heading-note {
    margin-top: 7px;
    color: #7b8593;
    font-size: 13px;
    line-height: 1.6;
}

/* Back button */
.subcategory-page .reset-button {
    flex-shrink: 0;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid #e2e7ed;
    border-radius: 8px;
    background: #fff;
    color: #10243e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.subcategory-page .reset-button::before {
    background: #f75c03;
}

.subcategory-page .reset-button:hover {
    color: #fff;
    border-color: #f75c03;
    background: #f75c03;
    transform: translateY(-2px);
}

.subcategory-page .reset-arrow {
    font-size: 17px;
}

.subcategory-page .reset-button:hover .reset-arrow {
    transform: translateX(-3px);
}

/* Product grid */
.subcategory-page .subcategory-product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 22px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 2px 2px 10px !important;
}

/* Premium product cards */
.subcategory-page .subcategory-product-card {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 36, 62, 0.045);
    animation: subcategoryCardIn 0.6s both;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.subcategory-page .subcategory-product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.subcategory-page .subcategory-product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.subcategory-page .subcategory-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(247, 92, 3, 0.5);
    box-shadow: 0 17px 34px rgba(16, 36, 62, 0.11);
}

/* Product photography */
.subcategory-page .subcategory-product-card .product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 225px;
    min-height: 225px;
    padding: 23px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 40%, #fff 0%, #f8f9fb 75%);
    border-bottom: 1px solid #edf0f3;
}

.subcategory-page .subcategory-product-card .product-image::after {
    pointer-events: none;
}

.subcategory-page .subcategory-product-card .product-image img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.45s cubic-bezier(.2, .8, .2, 1);
}

.subcategory-page .subcategory-product-card:hover .product-image img {
    transform: scale(1.07);
}

/* Product badge */
.subcategory-page .subcategory-product-card .product-badge {
    top: 13px;
    left: 13px;
    padding: 6px 9px;
    border-radius: 5px;
    font-size: 9px;
    letter-spacing: 0.6px;
    animation: none;
}

/* Product information */
.subcategory-page .subcategory-product-card .product-details {
    display: flex !important;
    flex: 1;
    flex-direction: column !important;
    align-items: stretch;
    min-height: 190px;
    padding: 19px 18px 16px !important;
}

.subcategory-page .subcategory-product-card .product-category {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 5px 8px;
    border-radius: 4px;
    background: #fff2eb;
    color: #d94d05;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
    line-height: 1.5;
}

.subcategory-page .subcategory-product-card .product-details h3 {
    margin: 0 0 10px !important;
    min-height: 0 !important;
    color: #10243e !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
    transition: color 0.25s ease;
}

.subcategory-page .subcategory-product-card:hover .product-details h3 {
    color: #e95108 !important;
}

.subcategory-page .subcategory-product-card .subcategory-product-description {
    display: -webkit-box;
    margin: 0 0 18px !important;
    min-height: 0 !important;
    overflow: hidden;
    color: #778190 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* View details action */
.subcategory-page .subcategory-product-card .details-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto !important;
    padding: 13px 0 0 !important;
    border-top: 1px solid #edf0f3;
    color: #e95108 !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-decoration: none;
}

.subcategory-page .subcategory-product-card .details-link span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: #fff0e8;
    color: #e95108 !important;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.subcategory-page .subcategory-product-card:hover .details-link span {
    transform: translateX(4px);
    background: #f75c03;
    color: #fff !important;
}

/* No-products message */
.subcategory-page .subcategory-content .no-products {
    padding: 55px 20px;
    border: 1px dashed #dce2e9;
    border-radius: 12px;
    background: #fafbfc;
}

.subcategory-page .subcategory-content .no-products h3 {
    margin-bottom: 10px;
    color: #10243e;
}

.subcategory-page .subcategory-content .no-products p {
    margin-bottom: 18px;
    color: #687586;
    line-height: 1.7;
}

/* Entrance animations */
@keyframes subcategoryEnter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Tablet */
@media (max-width: 1050px) {
    .subcategory-page .subcategory-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    .subcategory-page .subcategory-product-card .product-image {
        height: 205px;
        min-height: 205px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .subcategory-page {
        padding: 24px 0 38px;
    }

    .subcategory-page .subcategory-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 23px 20px;
        margin-bottom: 22px;
    }

    .subcategory-page .toolbar-title h1 {
        font-size: 30px;
    }

    .subcategory-page .subcategory-content {
        padding: 19px 15px;
    }

    .subcategory-page .subcategory-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
        padding-bottom: 19px;
    }

    .subcategory-page .products-heading h2 {
        font-size: 22px;
    }

    .subcategory-page .subcategory-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 13px !important;
    }

    .subcategory-page .subcategory-product-card .product-image {
        height: 155px;
        min-height: 155px;
        padding: 12px;
    }

    .subcategory-page .subcategory-product-card .product-details {
        min-height: 190px;
        padding: 13px 11px 12px !important;
    }

    .subcategory-page .subcategory-product-card .product-details h3 {
        font-size: 15px !important;
    }

    .subcategory-page .subcategory-product-card .product-category {
        font-size: 8px;
        letter-spacing: 0.3px;
    }

    .subcategory-page .subcategory-product-card .subcategory-product-description {
        font-size: 12px !important;
    }

    .subcategory-page .subcategory-product-card .details-link {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
}

/* Very narrow screens */
@media (max-width: 360px) {
    .subcategory-page .subcategory-product-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .subcategory-page .subcategory-product-card .product-image {
        height: 210px;
        min-height: 210px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .subcategory-page .subcategory-toolbar,
    .subcategory-page .subcategory-content,
    .subcategory-page .subcategory-product-card {
        animation: none !important;
    }

    .subcategory-page .subcategory-product-card,
    .subcategory-page .subcategory-product-card * {
        transition: none !important;
    }
}


/* ==========================================
   SHARED GLASSMORPHIC PRODUCT CARDS
   Main product page + subcategory cards
   ========================================== */

.products-content .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

.glass-product-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    width: 100%;
    aspect-ratio: 0.82 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: #eef1f5;
    box-shadow: 0 8px 24px rgba(16, 36, 62, 0.10);
    animation: glassCardReveal 0.55s ease both;
    animation-delay: calc(min(var(--card-index, 0), 8) * 45ms);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(16, 36, 62, 0.18);
}

.glass-product-image-link {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    background: #fff;
}

.glass-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.55s ease;
}

.glass-product-card:hover .glass-product-image {
    transform: scale(1.055);
}

/* Glass panel at the bottom */

.glass-product-overlay {
    position: absolute;
    z-index: 2;
    left: 11px;
    right: 11px;
    bottom: 11px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;

    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.74);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    backdrop-filter: blur(15px) saturate(150%);

    box-shadow: 0 8px 24px rgba(16, 36, 62, 0.12);
}

.glass-product-title {
    width: 100%;
    margin: 0;
    color: #10243e;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.glass-view-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    max-width: 100%;
    padding: 10px 14px;
    border-radius: 8px;

    background: #f75c03;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;

    transition: background 0.25s ease, transform 0.25s ease;
}

.glass-view-product:hover {
    background: #d94b00;
    color: #fff;
    transform: translateY(-2px);
}

.glass-product-badge {
    position: absolute;
    z-index: 3;
    top: 13px;
    left: 13px;

    padding: 6px 10px;
    border-radius: 20px;
    background: #f75c03;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.glass-product-image-link:focus-visible,
.glass-view-product:focus-visible {
    outline: 3px solid #10243e;
    outline-offset: 3px;
}

/* Tablet */

@media (max-width: 1050px) {
    .products-content .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Mobile */

@media (max-width: 520px) {
    .products-content .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .glass-product-card {
        aspect-ratio: 0.72 / 1;
        border-radius: 13px;
    }

    .glass-product-image {
        padding: 5px;
    }

    .glass-product-overlay {
        left: 6px;
        right: 6px;
        bottom: 6px;
        padding: 9px;
        gap: 8px;
        border-radius: 10px;
    }

    .glass-product-title {
        font-size: 13px;
        line-height: 1.35;
    }

    .glass-view-product {
        width: 100%;
        padding: 9px 5px;
        gap: 5px;
        font-size: 10px;
    }

    .glass-product-badge {
        top: 8px;
        left: 8px;
        font-size: 9px;
    }
}

@keyframes glassCardReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .glass-product-card {
        animation: none;
        transition: none;
    }

    .glass-product-image,
    .glass-view-product {
        transition: none;
    }
}


@media (max-width: 600px) {
    .glass-view-product {
        padding: 12px 18px;
        font-size: 20px;
        min-height: 50px;
        min-width: 180px;
    }
}




.subcategory-page .reset-arrow {
    color: inherit;
}


/* Back to Products button hover effect */
.subcategory-page .reset-button {
    background-color: #f75c03;
    color: #ffffff;
    border: 2px solid #f75c03;
    transition: all 0.3s ease;
}

.subcategory-page .reset-button .reset-arrow {
    color: #ffffff;
    transition: color 0.3s ease;
}

.subcategory-page .reset-button:hover {
    background-color: #ffffff;
    color: #f75c03;
    border-color: #f75c03;
}

.subcategory-page .reset-button:hover .reset-arrow {
    color: #f75c03;
}


/* Back to Products — default state */
.subcategory-page .reset-button {
    background: #f75c03;
    color: #ffffff;
    border: 1px solid #f75c03;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    z-index: 0;
    transition: color 0.3s ease,
                background-color 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s ease;
}

/* Sliding background layer */
.subcategory-page .reset-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

/* Hover: white background, orange text */
.subcategory-page .reset-button:hover {
    background: #ffffff;
    color: #f75c03;
    border-color: #f75c03;
    opacity: 1;
    visibility: visible;
    transform: translateY(-2px);
}

.subcategory-page .reset-button:hover::before {
    transform: translateX(0);
}

/* Arrow follows the text color */
.subcategory-page .reset-button .reset-arrow {
    color: inherit;
    transition: color 0.3s ease;
}
