/*
Theme Name: Rawplug child
Author: 
Description: Your description goes here
Version: 1.0
Template: rawplug

This is the child theme for Rawplug theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/
/* ===============================
   BASE RESET
   =============================== */

.menu,
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: system-ui, sans-serif;
    color: #234;
}

/* ===============================
   MENU / ACCORDION
   =============================== */

.menu ul {
    margin-left: 18px;
    border-left: 2px solid #e4e9f0;
    padding-left: 14px;
}

.title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin: 6px 0;
    border-radius: 10px;
    cursor: pointer;
    background: #f3f6fa;
    font-weight: 600;
    transition: 0.2s;
}

.title:hover {
    background: #eaf1f8;
}

/* MENU ARROW (unchanged) */
.arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #2c4c7c;
    border-bottom: 2px solid #2c4c7c;
    transform: rotate(-45deg);
    margin-right: 10px;
}

.title>.arrow {
    margin-right: 10px;
}

.has-sub.open>.title .arrow {
    transform: rotate(45deg);
}

.count {
    margin-left: auto;
    font-weight: 500;
    color: #7b8aa0;
}

.menu li>ul>li:not(.has-sub) {
    padding: 8px 0 8px 16px;
    position: relative;
    color: #3a5d86;
}

.menu li>ul>li:not(.has-sub)::before {
    content: "";
    width: 5px;
    height: 5px;
    background: #6b8bb3;
    position: absolute;
    left: 0;
    top: 34px;
}

.has-sub>ul {
    display: none;
}

.has-sub.open>ul {
    display: block;
}

/* ===============================
   DROPDOWN BASE
   =============================== */

.dropdown {
    position: relative;
}

/* dropdown button */
.dropdown-toggle {
    width: 100%;
    height: 40px;
    border-radius: 28px;
    border: 1px solid #7fa0d6;
    background: #ffffff;
    padding: 0 18px;
    font-size: 14px;
    color: #1c2e4a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* DROPDOWN ARROW (scoped, safe) */
.dropdown .arrow {
    transform: rotate(45deg);
    transition: .2s;
}

/* rotate only dropdown arrow when open */
.dropdown.open .arrow {
    transform: rotate(-135deg);
}

/* dropdown menu (floating fix) */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 220px;
    background: #fff;
    border: 2px solid #8aa9ff;
    border-radius: 16px;
    padding: 8px 0;
    display: none;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.dropdown.open .dropdown-menu {
    display: block;
}

/* dropdown items */
.dropdown-menu li {
    padding: 8px 16px;
    font-size: 14px;
    color: #2b4770;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background: #eef4ff;
}

.dropdown-menu li.active {
    background: #dbe7ff;
    border-radius: 12px;
    margin: 2px 10px;
}

/* ===============================
   RANGE DROPDOWN
   =============================== */

.dropdown-range .dropdown-menu {
    padding: 18px;
    width: 280px;
    border-radius: 18px;
}

.range-inputs {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.range-inputs label {
    font-size: 13px;
    color: #1c2e4a;
    margin-bottom: 4px;
    display: block;
}

.unit-input {
    display: flex;
    align-items: center;
    border: 1px solid #9db7ff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 14px;
}

.unit-input input {
    border: none;
    outline: none;
    width: 60px;
}

.unit-input span {
    margin-left: 6px;
    color: #6b7fa6;
}

.range-slider {
    width: 100%;
    margin: 16px 0;
}

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

.clear-btn {
    background: none;
    border: none;
    color: #0b2a5b;
    font-weight: 600;
    cursor: pointer;
}

.apply-btn {
    background: #4c6fff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 999px;
    cursor: pointer;
}

/* ===============================
   PAGE SIZE DROPDOWN
   =============================== */

.page-size-dropdown {
    position: relative;
    width: 80px;
}

/* ===============================
   SORT DROPDOWN
   =============================== */

.sort-dropdown {
    position: relative;
    min-width: 200px;
}


/* Active filters wrapper */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

/* Filter chip */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 14px;
    border-radius: 999px;

    background: #ffffff;
    border: 1.5px solid #8aa9ff;

    font-size: 14px;
    font-weight: 500;
    color: #1c2e4a;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover effect */
.filter-chip:hover {
    background: #f0f5ff;
    border-color: #5f84ff;
}

/* X icon style */
.filter-chip::before {
    content: "×";
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    color: #1c2e4a;
}

/* Optional: Remove all link */
.active-filters a {
    font-size: 14px;
    color: #1c2e4a;
    text-decoration: underline;
    cursor: pointer;
}

.active-filters a:hover {
    text-decoration: none;
}

.active-filters-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 26px 0;
    margin: 24px 0;

    border-top: 1px solid #8aa9ff;
    border-bottom: 1px solid #8aa9ff;
}

/* CHIP STYLE (unchanged, refined) */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 14px;
    border-radius: 999px;

    background: #ffffff;
    border: 1.5px solid #8aa9ff;

    font-size: 14px;
    font-weight: 500;
    color: #1c2e4a;

    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip::before {
    content: "×";
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.filter-chip:hover {
    background: #f0f5ff;
    border-color: #5f84ff;
}

.pagination-wrapper {
    display: none;
}

.sort-dropdown .dropdown-menu {
    max-height: 220px;
    /* control visible height */
    overflow-y: auto;
    /* vertical scroll */
    overflow-x: hidden;
}

/* Optional: smoother scrolling */
.sort-dropdown .dropdown-menu {
    scrollbar-width: thin;
    /* Firefox */
}

/* Chrome / Edge / Safari scrollbar */
.sort-dropdown .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.sort-dropdown .dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.sort-dropdown .dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}



.pagination-arrow {
    display: block;
    fill: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Previous arrow */
.pagination-prev {
    transform: rotate(180deg);
}

/* Next arrow */
.pagination-next {
    transform: rotate(0deg);
}

html {
    scroll-behavior: smooth;
}

.product-section {
    scroll-margin-top: 140px;
    /* header height adjust karo */
    margin-bottom: 80px;
}

/* NEW DESIGN CATEGORY */
.category-list__header {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #F8F9FB;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.category-list__sublist .category-list__header {
    padding-left: 36px;
}

.category-list__title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: #003366;
}

.category-list__sublist .category-list__title {
    font-size: 15px;
}

.category-list__toggle svg {
    fill: none !important;
    transition: .25s ease-in-out all;
}

.category-list__count {
    font-size: 13px;
    color: #7285B4;
    font-weight: normal;
}

.category-list__sublist-child {
    padding-left: 34px;
    padding-right: 10px;
    padding-bottom: 10px;
}

.category-list__subitem {
    font-size: 15px;
    font-weight: 700;
    color: #003366;
}

.category-list__subitem-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #003366;
    font-size: 14px;
    font-weight: 400;
}

.category-list__subitem-child::before {
    content: "";
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    max-width: 4px;
    background-color: #7285B4;
    font-size: 14px;
    margin: 0 6px;
}

.category-list__text {
    flex: 1;
}

.breadcrumbs-list li {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.breadcrumbs-list li::after {
    content: "";
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcgMTNMMTEgOUw3IDUiIHN0cm9rZT0iIzAwMzM2NiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=);
    background-repeat: no-repeat;
    background-size: 18px 18px;
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 .25rem;
}

.breadcrumbs-list li:last-child::after {
    display: none;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 1px solid #A3BBEE;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.subcategory-card:hover {
    border-color: #2f6df6;
    transform: translateY(-3px);
}

.subcategory-image {
    max-width: 106px;
    aspect-ratio: 106/80;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-image img {
    max-width: 100%;
    max-height: 100%;
}

.subcategory-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.subcategory-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.125;
}

.subcategory-count {
    font-size: 12px;
    line-height: 1.125;
    color: #000;
}

.btn--svgicon {
    fill: none !important;
}

.btn.btn--sm {
    padding-top: .575rem;
    padding-bottom: .575rem;
    border-width: 1px;
}

.js--target:not(.is-open) {
    display: none;
}

button.category-list__toggle {
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

button.category-list__toggle.is-active svg {
    transform: rotate(180deg);
}

.category-card {
    border: 1px solid #A3BBEE;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-card-img {
    max-width: 106px;
    aspect-ratio: 106 / 80;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.category-card-img img {
    max-width: 100%;
    max-height: 100%;
}

.category-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
}

.dots-listing {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dots-listing li {
    font-size: 14px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.125;
}

.dots-listing li::before {
    content: "";
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    max-width: 4px;
    margin: 0 5px;
    background-color: #7285B4;
}

.dots-listing li a {
    text-decoration: none;
    color: #003366;
}

.dots-listing li a:hover {
    color: #000;
}

.hidden-cat,
.hidden-subcat {
    display: none !important;
}

.svgicon svg,
.btn__svgicon svg {
    fill: none !important;
}

.show-more-btn {
    font-size: 14px;
    color: #003366;
    margin-top: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-loader {
    text-align: center;
    margin-top: 24px;
    color: #003366;
    font-size: 14px;
}



/* PRODUCT CARD */
.product-card {
    border: 1px solid #A3BBEE;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-card-title {
    font-size: 15px;
    font-weight: 700;
    display: block;
    color: #003366;
}

.product-card__head {
    position: relative;
}

.product-card__body {
    flex: 1;
}

.product-card-media {
    aspect-ratio: 270/142;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-card-media a {
    display: block;
    height: 100%;
    width: 100%;
}

.product-card-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    margin: 0 auto;
}

.product-card-info .list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card-info .list li {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    color: #7E7E7E;
    font-size: 13px;
}

.product-card-info .list li span {
    color: #000000;
}

.product-card-additional {
    position: absolute;
    border: 1px solid #D5DFE5;
    border-radius: 4px;
    padding: 5px;
    top: -10px;
    right: -10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background-color: #fff;
    color: #003366;
    max-width: 72px;
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
}

.product-card-additional .icon {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card-additional .details span {
    font-weight: 700;
    display: block;
}