/* ============================================
   ELUDORA UI IMPROVEMENTS v3
   Beliani-inspired category & filter design
   ============================================ */


/* ============================================
   HEADER - CLEAN TOP BAR
   ============================================ */

header {
    padding: 0 !important;
    position: relative;
    z-index: 9999 !important;
    background: #fff;
}

header .sticky {
    background: #fff;
    padding: 0;
    position: relative;
    z-index: 9999;
    border-bottom: 1px solid #e8e8e8;
}

header .sticky > .container {
    display: flex;
    align-items: center;
    height: 70px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Logo */
header .logo {
    float: none !important;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0;
}

header .logo img {
    max-height: 45px;
    display: block;
}

/* Top utility nav (Home, Cart, etc.) */
header .ownmenu {
    flex: 1;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
}

header .ownmenu .navbar-header {
    display: none;
}

header .ownmenu .navbar-collapse {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    float: none !important;
}

header .ownmenu .nav {
    display: flex !important;
    align-items: center;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

header .ownmenu .nav > li {
    float: none !important;
    display: inline-flex;
    align-items: center;
}

header .ownmenu .nav > li > a {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #555 !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
    transition: color 0.2s ease;
    line-height: 1.4 !important;
    border: none !important;
    background: transparent !important;
}

header .ownmenu .nav > li > a:hover {
    color: var(--primary-color) !important;
    background: transparent !important;
}

/* Nav Right icons */
.nav-right {
    float: none !important;
    flex-shrink: 0;
    margin: 0 0 0 10px !important;
    padding: 0 !important;
    position: relative !important;
    top: auto !important;
}

.nav-right .navbar-right {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-right .navbar-right > li {
    float: none !important;
    display: inline-flex;
    align-items: center;
}

.nav-right .navbar-right > li > a {
    font-size: 18px !important;
    color: #333 !important;
    padding: 8px 10px !important;
    transition: color 0.2s ease;
}

.nav-right .navbar-right > li > a:hover {
    color: var(--primary-color) !important;
}


/* ============================================
   CATEGORY MENU BAR - STRAIGHT LINE DESIGN
   ============================================ */

.cat-menu {
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 0 !important;
    position: relative;
    z-index: 9998;
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Kill ALL floats inside cat-menu - base CSS sets float:left on .ownmenu and .ownmenu li */
.cat-menu,
.cat-menu .navbar,
.cat-menu .ownmenu,
.cat-menu nav,
.cat-menu .navbar-collapse,
.cat-menu .collapse,
.cat-menu .nav,
.cat-menu ul,
.cat-menu li,
.cat-menu a {
    float: none !important;
}

.cat-menu .navbar,
.cat-menu nav.ownmenu,
.cat-menu nav.navbar {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    border: none !important;
    display: block !important;
}

.cat-menu .navbar-header {
    display: none !important;
}

.cat-menu .navbar-collapse,
.cat-menu .collapse {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    width: 100% !important;
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

.cat-menu .navbar .nav {
    display: flex !important;
    justify-content: center;
    align-items: stretch;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap;
    list-style: none !important;
}

.cat-menu .navbar .nav > li {
    position: static;
    flex: 1 1 0 !important;
    text-align: center;
    display: flex !important;
    align-items: stretch;
    min-width: 0;
}

.cat-menu .navbar .nav > li > a {
    font-family: 'Poppins', sans-serif;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    padding: 14px 8px !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: color 0.25s ease, box-shadow 0.25s ease;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    line-height: 1.3;
    background: transparent !important;
    white-space: normal;
    text-align: center;
    position: relative;
    box-shadow: none;
}

/* Hover underline via box-shadow (renders behind text, never obscures it) */
.cat-menu .navbar .nav > li > a:hover,
.cat-menu .navbar .nav > li.open > a {
    color: var(--primary-color) !important;
    background: transparent !important;
    text-decoration: none;
    box-shadow: inset 0 -3px 0 0 var(--primary-color);
}

/* Remove dropdown arrow carets */
.cat-menu .navbar .nav > li > a::after,
.cat-menu .navbar .nav > li > a::before,
.cat-menu .navbar .nav > li > a .caret {
    display: none !important;
    content: none !important;
}

/* Separator lines between menu items */
.cat-menu .navbar .nav > li + li {
    border-left: 1px solid #eee;
}


/* ---- MEGA MENU DROPDOWN - CLEAN ALIGNED ---- */
.cat-menu .dropdown.megamenu .dropdown-menu {
    width: 100%;
    padding: 0 !important;
    margin-top: 0 !important;
    border: none !important;
    border-top: 2px solid var(--primary-color) !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10) !important;
    overflow: visible;
    z-index: 99999 !important;
    position: absolute !important;
    background: #fff !important;
    left: 0 !important;
    right: 0 !important;
}

.cat-menu .dropdown.megamenu .dropdown-menu .row {
    max-width: 100%;
    margin: 0;
    padding: 28px 30px;
    display: flex;
    flex-wrap: wrap;
}

.cat-menu .dropdown.megamenu .dropdown-menu h6 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--primary-dark-color) !important;
    margin: 0 0 18px 0 !important;
    padding: 0 0 12px 0;
    border-bottom: 1px solid #eee;
    letter-spacing: 0;
    text-transform: none;
    width: 100%;
}

.cat-menu .dropdown.megamenu .dropdown-menu .col-md-4 {
    padding: 0 20px 0 0;
    margin-bottom: 5px;
}

.cat-menu .dropdown.megamenu .dropdown-menu .col-md-4 ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.cat-menu .dropdown.megamenu .dropdown-menu .col-md-4 ul li {
    margin: 0;
}

/* Subcategory heading in dropdown */
.cat-menu .dropdown.megamenu .dropdown-menu .col-md-4 ul > li > a {
    font-family: 'Poppins', sans-serif;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding: 7px 0 !important;
    border-bottom: none !important;
    display: block;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: color 0.15s ease;
}

.cat-menu .dropdown.megamenu .dropdown-menu .col-md-4 ul > li > a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

.cat-menu .dropdown.megamenu .dropdown-menu .col-md-4 ul > li > a:before {
    display: none !important;
}

/* Sub-subcategory items in dropdown */
.cat-menu .dropdown.megamenu .dropdown-menu .col-md-4 ul ul {
    padding: 2px 0 8px 0;
    margin: 0;
}

.cat-menu .dropdown.megamenu .dropdown-menu .col-md-4 ul ul li {
    display: block;
}

.cat-menu .dropdown.megamenu .dropdown-menu .col-md-4 ul ul li a {
    font-family: 'Poppins', sans-serif;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #666 !important;
    padding: 5px 0 5px 0 !important;
    display: block;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border-bottom: none !important;
    transition: color 0.15s ease;
    position: relative;
}

.cat-menu .dropdown.megamenu .dropdown-menu .col-md-4 ul ul li a:before {
    display: none !important;
}

.cat-menu .dropdown.megamenu .dropdown-menu .col-md-4 ul ul li a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
    padding-left: 0 !important;
}


/* ============================================
   SUB BANNER - push below header
   ============================================ */

.sub-bnr {
    padding: 25px 0 !important;
    min-height: auto !important;
    background: var(--primary-dark-color) !important;
    position: relative;
    z-index: 1;
}

.sub-bnr .position-center-center {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

.sub-bnr h4 {
    font-size: 22px !important;
    margin-bottom: 5px;
}

.sub-bnr .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.sub-bnr .breadcrumb li,
.sub-bnr .breadcrumb li a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

#content {
    position: relative;
    z-index: 1;
}


/* ============================================
   SUBCATEGORY TILES (Beliani-style)
   ============================================ */

.subcat-tiles-section {
    padding: 30px 0 10px;
}

.subcat-tiles-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark-color);
    margin: 0 0 20px 0;
    padding: 0;
    letter-spacing: 0.3px;
}

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

.subcat-tile {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.2s ease;
    position: relative;
    min-height: 80px;
}

.subcat-tile:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.subcat-tile-img {
    width: 80px;
    min-width: 80px;
    height: 80px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.subcat-tile-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f5, #e4e7eb);
}

.subcat-tile-noimg i {
    font-size: 24px;
    color: #aab0b8;
}

.subcat-tile-info {
    flex: 1;
    padding: 12px 14px;
    min-width: 0;
}

.subcat-tile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark-color);
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.subcat-tile:hover .subcat-tile-name {
    color: var(--primary-color);
}

.subcat-tile-count {
    font-size: 11px;
    color: #888;
    font-weight: 400;
}

.subcat-tile-arrow {
    flex-shrink: 0;
    padding-right: 14px;
    color: #ccc;
    font-size: 16px;
    transition: all 0.2s ease;
}

.subcat-tile:hover .subcat-tile-arrow {
    color: var(--primary-color);
    padding-right: 10px;
}


/* ============================================
   SHOP PAGE LAYOUT
   ============================================ */

.shop-page {
    padding-top: 30px !important;
    padding-bottom: 60px !important;
    background: #f5f6f8;
}


/* ============================================
   SIDEBAR - FILTER BLOCKS (Beliani-style)
   ============================================ */

.shop-sidebar {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Hide old styling elements */
.shop-sidebar .shop-tittle {
    display: none !important;
}

/* Each filter block */
.filter-block {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.filter-block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.filter-block-title:hover {
    background: #fafafa;
}

.filter-block-title span {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-block-title i {
    font-size: 14px;
    color: #888;
    transition: transform 0.25s ease;
}

.filter-block-title.collapsed i {
    transform: rotate(-90deg);
}

.filter-block-content {
    border-top: 1px solid #f0f0f0;
    max-height: 600px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.filter-block-content.closed {
    max-height: 0;
    overflow: hidden;
    border-top: none;
}

/* Thin scrollbar */
.filter-block-content::-webkit-scrollbar {
    width: 4px;
}
.filter-block-content::-webkit-scrollbar-track {
    background: transparent;
}
.filter-block-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}


/* ============================================
   SIDEBAR - CATEGORY FILTER
   ============================================ */

/* Back to parent link */
.filter-cat-back {
    display: flex !important;
    align-items: center;
    padding: 10px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #e5e5e5 !important;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-cat-back i {
    margin-right: 8px;
    font-size: 14px;
}

.filter-cat-back:hover {
    background: #eef1f5 !important;
    color: var(--primary-dark-color) !important;
    text-decoration: none !important;
}

.filter-cat-group {
    border-bottom: 1px solid #f0f0f0;
}

.filter-cat-group:last-child {
    border-bottom: none;
}

.filter-cat-parent {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    transition: all 0.15s ease;
    cursor: pointer;
}

.filter-cat-parent:hover {
    background: #f8f9fa !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.filter-cat-parent.active {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

.filter-cat-parent i {
    font-size: 12px;
    color: #aaa;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.filter-cat-parent[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.filter-cat-children {
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
    padding: 4px 0;
}

.filter-cat-item {
    display: block !important;
    padding: 7px 16px 7px 28px !important;
    font-size: 13px !important;
    color: #555 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    transition: all 0.15s ease;
    position: relative;
}

.filter-cat-item:before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.15s ease;
}

.filter-cat-item:hover {
    color: var(--primary-color) !important;
    background: #f0f2f5 !important;
    text-decoration: none !important;
}

.filter-cat-item:hover:before {
    background: var(--primary-color);
}

.filter-cat-item.active {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    background: #eef3f9 !important;
}

.filter-cat-item.active:before {
    background: var(--primary-color);
    width: 6px;
    height: 6px;
}

.filter-cat-sub {
    padding-left: 40px !important;
    font-size: 12px !important;
}

.filter-cat-sub:before {
    left: 28px;
    width: 3px;
    height: 3px;
}

.filter-cat-root {
    padding-left: 16px !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #f0f0f0;
}

.filter-cat-root:before {
    display: none;
}

.filter-cat-root:last-child {
    border-bottom: none;
}


/* ============================================
   SIDEBAR - PRICE FILTER
   ============================================ */

.price-filter-inner {
    padding: 16px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.price-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.price-input-group .price-label {
    font-size: 10px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    padding: 0 0 0 10px;
    white-space: nowrap;
}

.price-input-group .price-currency {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    padding: 0 2px 0 6px;
}

.price-input-group .form-control {
    border: none !important;
    box-shadow: none !important;
    padding: 8px 8px 8px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #222 !important;
    text-align: left;
    background: transparent !important;
    border-radius: 0 !important;
    width: 50px;
    min-width: 0;
}

.price-separator {
    color: #ccc;
    font-size: 14px;
    flex-shrink: 0;
}

.price-range {
    margin: 0 4px 16px !important;
    width: auto !important;
}

/* noUiSlider overrides */
.noUi-target {
    height: 4px !important;
    border: none !important;
    background: #e9ecef !important;
    border-radius: 2px !important;
    box-shadow: none !important;
}

.noUi-connect {
    background: var(--primary-color) !important;
    border-radius: 2px !important;
}

.noUi-handle {
    width: 18px !important;
    height: 18px !important;
    top: -7px !important;
    right: -9px !important;
    background: #fff !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 50% !important;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}

.noUi-handle:before,
.noUi-handle:after {
    display: none !important;
}

.filter-apply-btn {
    width: 100%;
    padding: 10px !important;
    font-size: 13px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-dark-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-apply-btn:hover {
    background: var(--primary-color) !important;
}

/* Hide old price filter elements */
.shop-sidebar .input-group {
    display: none !important;
}

#applyPriceChange {
    display: none !important;
}


/* ============================================
   SIDEBAR - CHECKBOX FILTERS (Beliani-style)
   ============================================ */

.filter-checks-wrap {
    padding: 8px 16px 12px;
}

/* Custom checkbox */
.filter-check {
    display: flex;
    align-items: center;
    padding: 6px 0;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    transition: color 0.15s ease;
    position: relative;
}

.filter-check:hover {
    color: var(--primary-color);
}

.filter-check-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.filter-check-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: #fff;
    position: relative;
}

.filter-check-box:after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
    margin-top: -1px;
}

.filter-check-input:checked ~ .filter-check-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-check-input:checked ~ .filter-check-box:after {
    transform: rotate(45deg) scale(1);
}

.filter-check:hover .filter-check-box {
    border-color: var(--primary-color);
}

.filter-check-label {
    font-size: 13px;
    color: #444;
    flex: 1;
    line-height: 1.3;
}

.filter-check-input:checked ~ .filter-check-label {
    color: #222;
    font-weight: 600;
}

.filter-check-count {
    font-size: 11px;
    color: #aaa;
    margin-left: 6px;
    flex-shrink: 0;
}

/* Show more / Show less */
.filter-check-hidden {
    display: none;
}

.filter-checks-wrap.expanded .filter-check-hidden {
    display: flex;
}

.filter-show-more {
    display: inline-block;
    background: none;
    border: none;
    padding: 6px 0 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.filter-show-more:hover {
    color: var(--primary-dark-color);
}

/* Colour swatch filter */
.filter-colour-swatch {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.filter-check-input:checked ~ .filter-colour-swatch {
    box-shadow: 0 0 0 2px var(--primary-color), inset 0 0 0 1px rgba(0,0,0,0.06);
}

/* Star rating filter */
.filter-star {
    color: #f5a623;
    font-size: 13px;
    margin-right: 1px;
}

.filter-star-empty {
    color: #ddd;
    font-size: 13px;
    margin-right: 1px;
}

/* Old filter elements from dropdownNew() - hide if still rendered */
.filter-options-wrap > .filter-sidebar {
    display: none !important;
}

.filter-options-wrap {
    display: none !important;
}


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

.papular-block .col-md-4 {
    padding: 0 8px;
    margin-bottom: 16px;
}

.item {
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
    background: #fff;
    height: 100%;
}

.item:hover {
    border-color: #ccc !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px);
}

.item .item-img {
    height: 200px !important;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item .item-img img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.item:hover .item-img img {
    transform: scale(1.05);
}

.item .item-name {
    padding: 12px 14px 38px !important;
    height: auto !important;
    min-height: 90px !important;
    position: relative !important;
}

.item .item-name a {
    font-size: 13px !important;
    font-weight: 500;
    color: #333 !important;
    line-height: 1.4;
    display: block;
}

.item .item-name a:hover {
    color: var(--primary-color) !important;
}

.item .sku-p {
    position: absolute;
    bottom: 8px;
    left: 14px;
    right: 14px;
    text-align: left !important;
}

.item .sku-p p {
    font-size: 11px !important;
    color: #aaa;
    margin: 0 !important;
}

.item .price {
    display: block;
    padding: 10px 14px;
    background: #f8f9fa;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark-color);
    border-top: 1px solid #eee;
}

.item .price small {
    font-size: 11px;
    color: #888;
    font-weight: 400;
}

.item .overlay {
    background: rgba(12, 32, 50, 0.7) !important;
}

.item .overlay .inn a {
    background: #fff !important;
    color: var(--primary-dark-color) !important;
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-radius: 50%;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.item .overlay .inn a:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}


/* ============================================
   SORT BAR
   ============================================ */

.item-display {
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e5e5e5;
}

.item-display .selectpicker,
.item-display select {
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    min-width: 200px;
}

.pagination li a {
    border-radius: 6px !important;
    margin: 0 2px;
    font-size: 13px;
}

.pagination li.active a {
    background: var(--primary-dark-color) !important;
    border-color: var(--primary-dark-color) !important;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1199px) {
    .subcat-tiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cat-menu .navbar .nav > li > a {
        font-size: 12px !important;
        padding: 12px 5px !important;
    }
}

@media (max-width: 991px) {
    /* Top bar adjustments */
    header .sticky > .container {
        height: auto;
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    header .logo {
        width: auto;
    }

    header .ownmenu .nav > li > a {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }

    /* Cat menu smaller text */
    .cat-menu .navbar .nav > li > a {
        font-size: 12px !important;
        padding: 12px 5px !important;
    }

    .shop-sidebar {
        margin-bottom: 20px;
    }

    .subcat-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    /* Top bar: stack logo and nav */
    header .sticky > .container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
    }

    header .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 5px !important;
    }

    header .logo img {
        margin: 0 auto;
    }

    header .ownmenu {
        display: none !important;
    }

    .nav-right {
        position: absolute !important;
        right: 15px;
        top: 15px;
        margin: 0 !important;
    }

    /* Cat menu mobile: hamburger style */
    .cat-menu {
        padding: 0 !important;
    }

    .cat-menu .navbar-header {
        display: block !important;
    }

    .cat-menu .navbar-toggle {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 14px 15px;
        background: #f8f9fa;
        border: none;
        border-radius: 0;
        text-align: left;
        font-weight: 600;
        font-size: 14px;
        color: var(--primary-dark-color);
        float: none !important;
    }

    .cat-menu .navbar-collapse,
    .cat-menu .collapse {
        display: none !important;
        border: none !important;
        overflow: hidden !important;
    }

    .cat-menu .navbar-collapse.in,
    .cat-menu .collapse.in {
        display: block !important;
        overflow: visible !important;
    }

    .cat-menu .navbar .nav {
        flex-direction: column !important;
    }

    .cat-menu .navbar .nav > li {
        flex: none !important;
        text-align: left;
        border-left: none !important;
    }

    .cat-menu .navbar .nav > li + li {
        border-left: none !important;
        border-top: 1px solid #eee;
    }

    .cat-menu .navbar .nav > li > a {
        padding: 12px 15px !important;
        justify-content: flex-start !important;
        font-size: 14px !important;
        border-bottom: none !important;
    }

    .cat-menu .navbar .nav > li > a:hover,
    .cat-menu .navbar .nav > li.open > a {
        box-shadow: none !important;
    }

    .cat-menu .dropdown.megamenu .dropdown-menu {
        position: relative !important;
        box-shadow: none !important;
        border-top: 1px solid #eee !important;
    }

    .cat-menu .dropdown.megamenu .dropdown-menu .row {
        padding: 15px;
    }

    .cat-menu .dropdown.megamenu .dropdown-menu .col-md-4 {
        padding: 0;
        margin-bottom: 5px;
        width: 100%;
    }

    .shop-sidebar {
        margin-bottom: 15px;
    }

    .item .item-img {
        height: 180px !important;
    }

    .subcat-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .subcat-tile {
        min-height: 70px;
    }

    .subcat-tile-img {
        width: 65px;
        min-width: 65px;
        height: 70px;
    }

    .subcat-tile-info {
        padding: 8px 10px;
    }

    .subcat-tile-name {
        font-size: 12px;
    }
}

@media (max-width: 540px) {
    .papular-block .col-md-4 {
        width: 50%;
        float: left;
    }

    .item .item-name {
        min-height: 80px !important;
        padding: 10px !important;
    }

    .item .price {
        font-size: 15px;
        padding: 8px 10px;
    }

    .subcat-tiles-grid {
        grid-template-columns: 1fr;
    }

    .subcat-tile-img {
        width: 70px;
        min-width: 70px;
        height: 70px;
    }
}


/* ============================================
   HOMEPAGE - REDESIGNED v3
   Compact, properly sized, clean layout
   ============================================ */


/* --- Category Chip Strip --- */
.hp-cats-strip {
    background: #fff;
    padding: 14px 0 10px;
    border-bottom: 1px solid #eee;
}

.hp-cats-wrap {
    position: relative;
}

.hp-cats-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    scrollbar-width: none;
}

.hp-cats-scroll::-webkit-scrollbar {
    display: none;
}

.hp-cat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: #f5f6f8;
    border: 1px solid #e8e8e8;
    border-radius: 40px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.hp-cat-chip:hover {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(230, 188, 47, 0.2);
    text-decoration: none !important;
}

.hp-cat-chip-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hp-cat-chip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-cat-chip-img i {
    font-size: 14px;
    color: #aaa;
}

.hp-cat-chip-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1;
}

.hp-cat-chip:hover .hp-cat-chip-name {
    color: var(--primary-dark-color);
}

/* Category strip arrows */
.hp-cats-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.15s ease;
    font-size: 12px;
    color: #555;
    padding: 0;
}

.hp-cats-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.hp-cats-arrow-l { left: -6px; display: none; }
.hp-cats-arrow-r { right: -6px; display: none; }


/* --- Shared Section Styles --- */
.hp-section {
    padding: 18px 0;
    background: #fff;
}

.hp-section-alt {
    background: #fafbfc;
}

.hp-section-hot { border-top: 3px solid #ff4500; }
.hp-section-new { border-top: 3px solid var(--primary-color); }
.hp-section-cat { border-top: 1px solid #f0f0f0; }


/* --- Section Header --- */
.hp-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.hp-hdr-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hp-hdr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.hp-badge-hot {
    background: #fff3f0;
    color: #ff4500;
}

.hp-badge-new {
    background: #fdf8e8;
    color: #b8941a;
}

.hp-hdr-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark-color);
    margin: 0;
}

.hp-hdr-more {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.hp-hdr-more:hover {
    color: var(--primary-color);
    text-decoration: none !important;
}


/* --- Horizontal Carousel --- */
.hp-carousel-wrap {
    position: relative;
}

.hp-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 8px;
}

.hp-carousel::-webkit-scrollbar {
    display: none;
}

/* Product cards: clean modern style */
.hp-card-slot {
    flex-shrink: 0;
    width: 180px;
}

.hp-card-slot .item {
    height: 100%;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hp-card-slot .item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.hp-card-slot .item .item-img {
    height: 160px !important;
    padding: 10px;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-card-slot .item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hide "In Your Basket" badge on homepage cards */
.hp-card-slot .item > div[style] .badge {
    display: none !important;
}

.hp-card-slot .item > div[style*="position:absolute"] {
    display: none !important;
}

/* Hide duplicate hover image in homepage cards */
.hp-card-slot .item .item-img .img-2 {
    display: none !important;
}

/* Compact overlay on homepage cards - show only Quick View on hover */
.hp-card-slot .item .item-img .overlay {
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    display: flex !important;
    background: rgba(0,0,0,0.5) !important;
}
.hp-card-slot .item:hover .item-img .overlay {
    opacity: 1 !important;
}
.hp-card-slot .item .item-img .overlay .position-center-center .inn {
    display: none !important;
}

/* Disable zoom on hover for homepage cards */
.hp-card-slot .item:hover .item-img img {
    transform: none;
}

.hp-card-slot .item .item-name {
    padding: 8px 12px 6px !important;
    min-height: auto !important;
    height: auto !important;
    flex: 1;
    border-top: 1px solid #f5f5f5;
}

.hp-card-slot .item .item-name a {
    font-size: 13px !important;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
}

.hp-card-slot .item .sku-p {
    display: none !important;
}

.hp-card-slot .item .price {
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 700;
    margin-top: auto;
    color: var(--primary-dark-color);
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
}

.hp-card-slot .item .price small {
    font-size: 10px;
    font-weight: 400;
    color: #888;
}

/* Carousel arrow buttons */
.hp-arr {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.15s ease;
    font-size: 13px;
    color: #555;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.hp-arr:hover {
    background: var(--primary-dark-color);
    border-color: var(--primary-dark-color);
    color: #fff;
}

.hp-arr-l { left: -10px; }
.hp-arr-r { right: -10px; }


/* --- Category Showcase: Responsive grid --- */
.hp-showcase {
    padding: 16px 0 12px;
    background: #fff;
}

.hp-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hp-showcase-card {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.hp-showcase-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.hp-showcase-card-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.hp-showcase-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hp-showcase-card:hover .hp-showcase-card-img img {
    transform: scale(1.05);
}

.hp-showcase-card-label {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.3;
}


/* --- Promotional Banners --- */
.hp-banners {
    padding: 12px 0;
    background: #f5f6f8;
}

.hp-banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hp-banner-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.hp-banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.hp-banner-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}


/* --- Responsive: Tablet --- */
@media (max-width: 991px) {
    .hp-card-slot {
        width: 160px;
    }

    .hp-card-slot .item .item-img {
        height: 145px !important;
    }

    .hp-hdr-title {
        font-size: 16px;
    }

    .hp-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hp-showcase-card-img {
        height: 120px;
    }

    .hp-banner-item img {
        height: 130px;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 767px) {
    .hp-cats-strip {
        padding: 10px 0;
    }

    .hp-cat-chip {
        padding: 5px 10px 5px 5px;
        gap: 6px;
    }

    .hp-cat-chip-img {
        width: 28px;
        height: 28px;
    }

    .hp-cat-chip-name {
        font-size: 12px;
    }

    .hp-section {
        padding: 14px 0;
    }

    .hp-card-slot {
        width: 145px;
    }

    .hp-card-slot .item .item-img {
        height: 130px !important;
    }

    .hp-card-slot .item .item-name {
        min-height: auto !important;
        height: auto !important;
        padding: 6px 8px 4px !important;
    }

    .hp-card-slot .item .item-name a {
        font-size: 12px !important;
    }

    .hp-card-slot .item .price {
        font-size: 14px;
        padding: 6px 8px;
    }

    .hp-hdr-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .hp-hdr-title {
        font-size: 15px;
    }

    .hp-arr {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .hp-arr-l { left: -4px; }
    .hp-arr-r { right: -4px; }

    .hp-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-showcase-card-img {
        height: 100px;
    }

    .hp-showcase-card-label {
        font-size: 12px;
        padding: 8px;
    }

    .hp-banners-grid {
        grid-template-columns: 1fr;
    }

    .hp-banner-item img {
        height: 120px;
    }
}

/* --- Responsive: Small Mobile --- */
@media (max-width: 540px) {
    .hp-card-slot {
        width: 135px;
    }

    .hp-card-slot .item .item-img {
        height: 120px !important;
    }

    .hp-card-slot .item .item-name {
        min-height: auto !important;
        height: auto !important;
        padding: 5px 6px 3px !important;
    }

    .hp-card-slot .item .item-name a {
        font-size: 11px !important;
    }

    .hp-card-slot .item .price {
        font-size: 13px;
        padding: 5px 6px;
    }

    .hp-showcase-card-img {
        height: 90px;
    }

    .hp-showcase-card-label {
        font-size: 11px;
        padding: 6px;
    }

    .hp-banner-item img {
        height: 100px;
    }
}


/* ============================================
   PRODUCT DETAILS PAGE - REDESIGNED
   3-column layout: Images | Info | You May Need
   ============================================ */

/* Section spacing */
.dp-section {
    padding: 30px 0 60px !important;
    background: #f8f9fa;
}

.dp-row {
    display: flex;
    flex-wrap: wrap;
}

/* Images column */
.dp-col-images {
    margin-bottom: 20px;
}

.dp-col-images .product-gallery-box .main-product-image {
    border-radius: 10px;
    border: 1px solid #e5e5e5;
}

.dp-col-images .product-gallery-box .main-product-image img {
    height: 350px;
}

/* Info column */
.dp-col-info {
    margin-bottom: 20px;
}

/* Product info card wrapper */
#details-content {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    padding: 0;
    overflow: hidden;
}

/* Product name and top info */
.dp-col-info .cust_product_right_top {
    font-size: 14px !important;
    color: #333 !important;
    padding: 0;
}

.dp-col-info .table-detail {
    margin: 0;
    border: none;
}

.dp-col-info .table-detail td {
    border: none !important;
    padding: 6px 20px !important;
}

.dp-col-info .table-detail tr:first-child td {
    padding-top: 20px !important;
}

/* Product name */
.dp-col-info .table-detail h5,
.dp-col-info .table-detail h5 a {
    font-family: 'Poppins', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--primary-dark-color) !important;
    line-height: 1.3 !important;
    margin: 0 0 8px 0 !important;
    text-decoration: none !important;
}

/* Product code badge */
.dp-col-info .table-detail .badge {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #666 !important;
    background: #f0f2f5 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
}

/* Box quantity label */
.dp-col-info .table-detail tr:first-child td > div {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.dp-col-info .table-detail tr:first-child td > div strong {
    color: var(--primary-dark-color);
}

/* Price section */
.dp-col-info .priceCurrency {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: var(--primary-dark-color) !important;
    vertical-align: baseline !important;
}

.dp-col-info .priceVal {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: var(--primary-dark-color) !important;
    line-height: 1.2;
}

.dp-col-info .vatText {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #888 !important;
}

/* In Stock / Out of Stock badges */
.dp-col-info .badge-success {
    font-size: 12px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
}

.dp-col-info .badge-danger {
    font-size: 12px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
}

/* Quantity selector */
.dp-col-info .input-group-qty {
    max-width: 200px;
}

.dp-col-info .input-group-qty .form-control {
    font-size: 15px !important;
    font-weight: 600 !important;
    height: 40px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
}

.dp-col-info .input-group-qty .btn {
    border: 1px solid #ddd !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
}

/* Add to Cart button */
.dp-col-info .btn-theme {
    background: var(--primary-color) !important;
    border: none !important;
    color: var(--primary-dark-color) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.dp-col-info .btn-theme:hover {
    background: var(--primary-dark-color) !important;
    color: #fff !important;
}

/* Price Match button */
.dp-col-info .day-text .btn-theme {
    font-size: 13px !important;
    padding: 8px 18px !important;
}

/* Click & Collect */
.dp-col-info .click_collect {
    padding: 12px 0 !important;
    font-size: 14px !important;
    border: none !important;
    margin: 0 !important;
}

.dp-col-info .click_collect .click-img img {
    width: 28px;
    height: auto;
    margin-right: 6px;
}

/* Variations dropdown */
.dp-col-info .varDrops {
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
}


/* --- Product Info Tabs (below product details) --- */
.cust_pro_left_bottom {
    border-top: 1px solid #eee;
}

.cust_pro_left_bottom .nav-tabs {
    border-bottom: 2px solid #eee;
    padding: 0 20px;
    background: #fafbfc;
}

.cust_pro_left_bottom .nav-tabs .nav-item {
    margin-bottom: -2px;
}

.cust_pro_left_bottom .nav-tabs .nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #666 !important;
    padding: 14px 18px !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cust_pro_left_bottom .nav-tabs .nav-link:hover {
    color: var(--primary-dark-color) !important;
}

.cust_pro_left_bottom .nav-tabs .nav-link.active {
    color: var(--primary-dark-color) !important;
    border-bottom-color: var(--primary-color) !important;
    background: transparent !important;
}

/* Tab content styling */
.cust_pro_left_bottom .tab-content {
    padding: 0;
}

.cust_pro_left_bottom .tab-pane {
    border: none !important;
    padding: 20px !important;
}

.cust_pro_left_bottom .tab-pane h6 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--primary-dark-color) !important;
    margin: 0 0 12px 0 !important;
}

/* Bold labels in product info tab content */
.cust_pro_left_bottom .tab-pane br + br {
    display: none;
}


/* ============================================
   YOU MAY NEED - RIGHT SIDEBAR
   ============================================ */

.dp-col-sidebar {
    margin-bottom: 20px;
}

.ymn-sidebar {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.ymn-sidebar-hdr {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--primary-dark-color);
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.ymn-sidebar-hdr i {
    font-size: 16px;
    color: var(--primary-color);
}

.ymn-sidebar-hdr span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.ymn-sidebar-list {
    padding: 8px;
    max-height: 600px;
    overflow-y: auto;
}

/* Thin scrollbar */
.ymn-sidebar-list::-webkit-scrollbar {
    width: 3px;
}
.ymn-sidebar-list::-webkit-scrollbar-track {
    background: transparent;
}
.ymn-sidebar-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.ymn-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.ymn-item:hover {
    background: #f8f9fa;
    border-color: #eee;
    text-decoration: none !important;
}

.ymn-item + .ymn-item {
    border-top: 1px solid #f5f5f5;
}

.ymn-item:hover + .ymn-item {
    border-top-color: transparent;
}

.ymn-item-img {
    width: 65px;
    min-width: 65px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ymn-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ymn-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ymn-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ymn-item:hover .ymn-item-name {
    color: var(--primary-color);
}

.ymn-item-code {
    font-size: 10px;
    color: #999;
    margin-bottom: 4px;
}

.ymn-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark-color);
}


/* --- Details Page Responsive --- */

/* Large screens: sidebar beside info */
@media (min-width: 1200px) {
    .dp-col-sidebar {
        padding-left: 0;
    }
}

/* Tablet: sidebar below, full width */
@media (max-width: 1199px) {
    .dp-col-images {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .dp-col-info {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .dp-col-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ymn-sidebar {
        position: static;
    }

    .ymn-sidebar-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        max-height: none;
        padding: 8px;
    }

    .ymn-item {
        width: 50%;
        flex-shrink: 0;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .dp-section {
        padding: 20px 0 40px !important;
    }

    .dp-col-images,
    .dp-col-info,
    .dp-col-sidebar {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .dp-col-images .product-gallery-box .main-product-image img {
        height: 280px;
    }

    .dp-col-info .table-detail h5,
    .dp-col-info .table-detail h5 a {
        font-size: 17px !important;
    }

    .dp-col-info .priceCurrency {
        font-size: 1.3rem !important;
    }

    .dp-col-info .priceVal {
        font-size: 1.8rem !important;
    }

    .cust_pro_left_bottom .nav-tabs {
        padding: 0 12px;
    }

    .cust_pro_left_bottom .nav-tabs .nav-link {
        font-size: 12px !important;
        padding: 12px 12px !important;
    }

    .cust_pro_left_bottom .tab-pane {
        padding: 14px !important;
    }

    .ymn-sidebar-list {
        display: block;
    }

    .ymn-item {
        width: 100%;
    }
}


/* ============================================
   CATEGORY PAGE - SUBCATEGORY PRODUCT SECTIONS
   Horizontal carousel per subcategory
   ============================================ */

.cat-subcat-section {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cat-subcat-section:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
}

.cat-subcat-section .hp-hdr {
    margin-bottom: 12px;
}

.cat-subcat-section .hp-hdr-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark-color);
}

.cat-subcat-section .hp-carousel {
    padding: 4px 0 8px;
}

.cat-subcat-section .hp-card-slot {
    flex-shrink: 0;
    width: 180px;
}

.cat-subcat-section .hp-card-slot .item {
    height: 100%;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cat-subcat-section .hp-card-slot .item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.cat-subcat-section .hp-card-slot .item .item-img {
    height: 160px !important;
    padding: 10px;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-subcat-section .hp-card-slot .item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hide duplicate image, overlay, basket badge in carousel cards */
.cat-subcat-section .hp-card-slot .item .item-img .img-2 {
    display: none !important;
}

.cat-subcat-section .hp-card-slot .item .item-img .overlay {
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    display: flex !important;
    background: rgba(0,0,0,0.5) !important;
}
.cat-subcat-section .hp-card-slot .item:hover .item-img .overlay {
    opacity: 1 !important;
}
.cat-subcat-section .hp-card-slot .item .item-img .overlay .position-center-center .inn {
    display: none !important;
}

.cat-subcat-section .hp-card-slot .item > div[style*="position:absolute"] {
    display: none !important;
}

.cat-subcat-section .hp-card-slot .item > div[style] .badge {
    display: none !important;
}

.cat-subcat-section .hp-card-slot .item:hover .item-img img {
    transform: none;
}

.cat-subcat-section .hp-card-slot .item .item-name {
    padding: 8px 12px 6px !important;
    min-height: auto !important;
    height: auto !important;
    flex: 1;
    border-top: 1px solid #f5f5f5;
}

.cat-subcat-section .hp-card-slot .item .item-name a {
    font-size: 13px !important;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
}

.cat-subcat-section .hp-card-slot .item .sku-p {
    display: none !important;
}

.cat-subcat-section .hp-card-slot .item .price {
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 700;
    margin-top: auto;
    color: var(--primary-dark-color);
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
}

.cat-subcat-section .hp-card-slot .item .price small {
    font-size: 10px;
    font-weight: 400;
    color: #888;
}

/* Responsive */
@media (max-width: 991px) {
    .cat-subcat-section .hp-card-slot {
        width: 160px;
    }

    .cat-subcat-section .hp-card-slot .item .item-img {
        height: 145px !important;
    }

    .cat-subcat-section .hp-hdr-title {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .cat-subcat-section {
        padding: 14px 0;
    }

    .cat-subcat-section .hp-card-slot {
        width: 145px;
    }

    .cat-subcat-section .hp-card-slot .item .item-img {
        height: 130px !important;
    }

    .cat-subcat-section .hp-card-slot .item .item-name {
        padding: 6px 8px 4px !important;
    }

    .cat-subcat-section .hp-card-slot .item .item-name a {
        font-size: 12px !important;
    }

    .cat-subcat-section .hp-card-slot .item .price {
        font-size: 14px;
        padding: 6px 8px;
    }
}

@media (max-width: 540px) {
    .cat-subcat-section .hp-card-slot {
        width: 135px;
    }

    .cat-subcat-section .hp-card-slot .item .item-img {
        height: 120px !important;
    }

    .cat-subcat-section .hp-card-slot .item .item-name a {
        font-size: 11px !important;
    }

    .cat-subcat-section .hp-card-slot .item .price {
        font-size: 13px;
        padding: 5px 6px;
    }
}
