/* =========================================================================
   Niotech Shop — custom stylesheet for eCommerce pages
   Extends main.css design tokens (colors, fonts, buttons, sidebar widgets).
   Table of contents:
   01. Header cart / wishlist / compare
   02. Icon-thumb placeholders + color variants
   03. Badges / rating stars
   04. Product card (grid) + list row
   05. Shop toolbar + sidebar filters
   06. Category & Brand cards
   07. Coupon cards
   08. Cart / Compare / Wishlist tables
   09. Product details (gallery, info, tabs, reviews)
   10. Track order
   11. Misc / toast / responsive helpers
   12. Blog post content (.ck-content) spacing
========================================================================= */

/* 01. Header action icons ------------------------------------------------ */
.header-action-icons { gap: 22px; margin-right: 28px; }
.header-action-icon { position: relative; color: var(--title); font-size: 20px; display: inline-flex; align-items: center; transition: .3s; }
.header-action-icon:hover { color: var(--theme); }
.header-action-icon .action-count {
  position: absolute; top: -10px; right: -11px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--theme); color: var(--white); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.cart-has-dropdown { position: relative; }
.cart-has-dropdown > a { display: inline-flex; align-items: center; position: relative; }
.mini-cart-dropdown {
  position: absolute; top: calc(100% + 24px); right: -20px; width: 340px; background: var(--white);
  box-shadow: var(--box-shadow); border-radius: 12px; padding: 30px; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: .3s; z-index: 99;
}
.cart-has-dropdown:hover .mini-cart-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mini-cart-widget .wid-title h3 { font-size: 20px; color: var(--title); font-weight: 700; margin-bottom: 22px; }
.mini-cart-widget .cart_list .mini_cart_item { padding: 0 30px 20px 66px; position: relative; margin-bottom: 20px; border-bottom: 1px solid var(--border-2); }
.mini-cart-widget .cart_list .mini_cart_item:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.cart-item-icon {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 10px;
  background: var(--theme3); display: flex; align-items: center; justify-content: center; color: var(--theme); font-size: 18px;
}
.mini-cart-widget .total { margin-top: 6px; font-size: 16px; color: var(--title); padding-top: 16px; border-top: 1px solid var(--border-2); }
.mini-cart-buttons { display: flex; gap: 10px; margin-top: 20px; }
.mini-cart-buttons .theme-btn { flex: 1; padding: 14px 10px; font-size: 14px; text-align: center; }
@media (max-width: 1199px) { .header-action-icons { display: none !important; } }

/* Header-2 (Home 02) sits transparent over a dark hero image, so its nav
   links are already forced white by main.css — match that here. */
.header-2 .header-left, .header-2 .header-right { flex: 1 0 0; }
.header-2 .header-middle { flex: 0 0 auto; }
.header-2 .header-main { gap: 24px; }
.header-2 .header-action-icon { color: var(--white); }
.header-2 .header-action-icon:hover { color: var(--white) !important; }
.header-2 .header-action-icon .action-count { background: #F0554B; color: var(--white); }

/* Header account widget (Hello, Guest) — plain link straight to /login,
   no dropdown and no hover color change. */
.header-account > a { display: inline-flex; align-items: center; gap: 10px; color: var(--title); }
.header-account-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; overflow: hidden; border-radius: 50%; }
.header-account-icon i { font-size: 22px; line-height: 1; }
.header-account-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.header-account-text { font-size: 13px; font-weight: 600; line-height: 1.3; }
.header-account-text strong { display: block; font-size: 14px; }
.header-2 .header-account > a { color: var(--white); }
.header-2 .header-account > a:hover { color: var(--white) !important; }
@media (max-width: 1500px) { .header-account-text { display: none; } }

/* Cart sidebar (slide-in drawer triggered by the header cart icon) ---------- */
.cart-sidebar { position: fixed; top: 0; right: 0; width: 400px; max-width: 100%; height: 100%; background: var(--white); z-index: 99999; box-shadow: -10px 0 30px rgba(0,0,0,.12); transform: translateX(100%); transition: transform .45s ease-in-out; display: flex; flex-direction: column; }
.cart-sidebar.show { transform: translateX(0); }
.cart-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 26px 30px; border-bottom: 1px solid var(--border-2); }
.cart-sidebar-head h4 { font-size: 20px; font-weight: 700; color: var(--title); margin: 0; }
.cart-sidebar-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--title); font-size: 13px; transition: .3s; }
.cart-sidebar-close:hover { background: var(--theme); border-color: var(--theme); color: var(--white); }
.cart-sidebar-body { flex: 1; overflow-y: auto; padding: 10px 30px; }
.cart-sidebar-empty { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; padding: 40px 10px; }
.cart-sidebar-empty.show { display: flex; }
.cart-sidebar-empty i { font-size: 54px; color: var(--border-3); margin-bottom: 20px; }
.cart-sidebar-empty h5 { font-size: 17px; font-weight: 700; color: var(--title); margin-bottom: 8px; }
.cart-sidebar-empty p { color: var(--text); font-size: 14px; margin-bottom: 22px; }
.cart-sidebar-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border-2); }
.cart-sidebar-item .icon-thumb { width: 70px; height: 70px; flex: 0 0 70px; font-size: 26px; border-radius: 10px; }
.cart-sidebar-item-info { flex: 1; min-width: 0; }
.cart-sidebar-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cart-sidebar-item-top a { color: var(--title); font-weight: 600; font-size: 15px; transition: .3s; }
.cart-sidebar-item-top a:hover { color: var(--theme); }
.cart-sidebar-remove { color: var(--text); font-size: 13px; flex: 0 0 auto; transition: .3s; border: none; background: none; padding: 0; }
.cart-sidebar-remove:hover { color: #F0554B; }
.cart-sidebar-item .qty-box { margin-bottom: 12px; }
.cart-sidebar-item .qty-box button { width: 34px; height: 34px; font-size: 13px; }
.cart-sidebar-item .qty-box input { width: 38px; height: 34px; font-size: 13px; }
.cart-sidebar-price { font-size: 16px; font-weight: 700; color: var(--theme); }
.cart-sidebar-price del { font-size: 13px; font-weight: 500; color: var(--text); margin-right: 6px; }
.cart-sidebar-footer { padding: 20px 30px 30px; border-top: 1px solid var(--border-2); }
.cart-sidebar-summary-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; color: var(--text); }
.cart-sidebar-summary-row.total { font-size: 18px; font-weight: 700; color: var(--title); border-top: 1px solid var(--border-2); margin-top: 6px; padding-top: 16px; }
.cart-sidebar-footer .theme-btn { width: 100%; justify-content: center; margin-top: 16px; }
.cart-sidebar-overlay { position: fixed; inset: 0; background: #151515; opacity: 0; visibility: hidden; z-index: 99998; transition: .3s; }
.cart-sidebar-overlay.show { opacity: .7; visibility: visible; }
@media (max-width: 450px) { .cart-sidebar { width: 300px; } }

/* 02. Icon-thumb placeholders --------------------------------------------- */
.icon-thumb { display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--theme3); color: var(--theme); position: relative; }
.icon-thumb.round { border-radius: 50%; }
.icon-thumb.c1 { background: #EFE9FF; color: #7444FD; }
.icon-thumb.c2 { background: #FFE9E4; color: #F0554B; }
.icon-thumb.c3 { background: #E3F7EF; color: #1FAE7C; }
.icon-thumb.c4 { background: #FFF3DE; color: #E7A427; }
.icon-thumb.c5 { background: #E5F2FF; color: #2E86DE; }
.icon-thumb.c6 { background: #FCE8F5; color: #D6337B; }
.icon-thumb.c7 { background: #EAF0FF; color: #3F5EDB; }
.icon-thumb.c8 { background: #FFEFE0; color: #E78C45; }

/* 03. Badges / rating ------------------------------------------------------ */
.p-badge { display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 30px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--white); }
.p-badge.sale { background: #F0554B; }
.p-badge.new { background: #1FAE7C; }
.p-badge.hot { background: var(--orange); }
.rating-stars { color: #FFB800; font-size: 13px; letter-spacing: 2px; }
.rating-stars .empty { color: #E3E3F1; }
.rating-count { font-size: 13px; color: var(--text); margin-left: 6px; }

/* 04. Product card (grid) -------------------------------------------------- */
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 20px; transition: .35s; height: 100%; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--box-shadow); border-color: transparent; transform: translateY(-6px); }
.product-card .product-thumb { position: relative; height: 210px; border-radius: 12px; margin-bottom: 22px; }
.product-card .product-thumb .icon-thumb { width: 100%; height: 100%; font-size: 64px; }
.product-card .product-badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.product-card .product-actions { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateX(8px); transition: .3s; z-index: 2; }
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-card .product-actions button, .product-card .product-actions a { width: 40px; height: 40px; border-radius: 50%; background: var(--white); box-shadow: 0 4px 14px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; color: var(--title); font-size: 15px; transition: .3s; }
.product-card .product-actions button:hover, .product-card .product-actions a:hover, .product-card .product-actions button.active, .product-card .product-actions a.active { background: var(--theme); color: var(--white) !important; }
.product-card .product-cat { font-size: 12px; color: var(--theme); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 8px; display: block; }
.product-card .product-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.product-card .product-title a { color: var(--title); transition: .3s; }
.product-card .product-title a:hover { color: var(--theme); }
.product-card .product-rating { margin-bottom: 14px; }
.product-card .product-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border-2); }
.product-price { font-size: 20px; font-weight: 700; color: var(--title); }
.product-price del { font-size: 14px; font-weight: 500; color: var(--text); margin-right: 8px; }
.add-cart-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--theme3); color: var(--theme); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: .3s; }
.add-cart-btn:hover { background: var(--theme); color: var(--white) !important; }

/* Product list row --------------------------------------------------------- */
.product-list-item { display: flex; gap: 30px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 24px; transition: .3s; }
.product-list-item:hover { box-shadow: var(--box-shadow); border-color: transparent; }
.product-list-item .product-thumb { position: relative; width: 220px; flex: 0 0 220px; height: 180px; border-radius: 12px; overflow: hidden; }
.product-list-item .product-thumb .icon-thumb { width: 100%; height: 100%; font-size: 56px; }
.product-list-item .product-badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.product-list-item .product-info { flex: 1; display: flex; flex-direction: column; }
.product-list-item .product-desc { color: var(--text); font-size: 15px; line-height: 26px; margin: 10px 0 16px; }
.product-list-item .product-list-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.product-list-item .product-list-actions { display: flex; gap: 10px; }
.product-list-item .product-list-actions a, .product-list-item .product-list-actions button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--title); transition: .3s; }
.product-list-item .product-list-actions a:hover, .product-list-item .product-list-actions button:hover, .product-list-item .product-list-actions a.active, .product-list-item .product-list-actions button.active { background: var(--theme); border-color: var(--theme); color: var(--white) !important; }
@media (max-width: 575px) { .product-list-item { flex-direction: column; } .product-list-item .product-thumb { width: 100%; flex: none; } }

/* Quick view modal ---------------------------------------------------------- */
.quick-view-modal .modal-content { border: none; border-radius: 20px; overflow: hidden; }
.quick-view-modal .modal-body { display: flex; gap: 30px; padding: 34px; }
.quick-view-modal .qv-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--title); font-size: 14px; transition: .3s; }
.quick-view-modal .qv-close:hover { background: var(--theme); border-color: var(--theme); color: var(--white); }
.quick-view-modal .qv-thumb { position: relative; width: 280px; flex: 0 0 280px; height: 280px; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.quick-view-modal .qv-thumb .qv-icon { width: 100%; height: 100%; font-size: 90px; }
.quick-view-modal .qv-badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.quick-view-modal .qv-badges:empty { display: none; }
.quick-view-modal .qv-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.quick-view-modal .qv-cat { font-size: 13px; font-weight: 600; color: var(--theme); text-transform: uppercase; letter-spacing: .5px; }
.quick-view-modal .qv-title { font-size: 24px; font-weight: 700; color: var(--title); margin: 8px 0 10px; }
.quick-view-modal .qv-rating { margin-bottom: 14px; }
.quick-view-modal .qv-desc { color: var(--text); font-size: 15px; line-height: 26px; margin-bottom: 18px; }
.quick-view-modal .qv-desc:empty { display: none; }
.quick-view-modal .qv-price { font-size: 22px; font-weight: 700; color: var(--theme); margin-bottom: 18px; }
.quick-view-modal .qv-price del { color: var(--text); font-weight: 500; font-size: 16px; margin-right: 8px; }
.quick-view-modal .qv-qty { margin-bottom: 20px; }
.quick-view-modal .qv-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.quick-view-modal .qv-actions .theme-btn { flex: 1; text-align: center; padding: 16px 20px; }
.quick-view-modal .qv-icon-btn { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--title); transition: .3s; }
.quick-view-modal .qv-icon-btn:hover, .quick-view-modal .qv-icon-btn.active { background: var(--theme); border-color: var(--theme); color: var(--white) !important; }
.quick-view-modal .qv-full-link { color: var(--title); font-weight: 600; font-size: 14px; }
.quick-view-modal .qv-full-link:hover { color: var(--theme); }
.quick-view-modal .qv-full-link i { margin-left: 6px; font-size: 12px; }
@media (max-width: 767px) {
    .quick-view-modal .modal-body { flex-direction: column; padding: 24px; }
    .quick-view-modal .qv-thumb { width: 100%; flex: none; height: 220px; }
}

/* 05. Shop toolbar + sidebar filters ---------------------------------------- */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; background: var(--bg-2); border-radius: 14px; padding: 18px 26px; margin-bottom: 34px; }
.shop-toolbar .result-count { color: var(--title); font-weight: 600; }
.shop-toolbar .result-count span { color: var(--theme); }
.shop-toolbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.view-toggle { display: flex; gap: 8px; }
.view-toggle button { width: 42px; height: 42px; border-radius: 8px; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--text); transition: .3s; }
.view-toggle button.active, .view-toggle button:hover { background: var(--theme); color: var(--white) !important; }
.shop-sort .nice-select { border-radius: 8px; height: 42px; line-height: 40px; min-width: 190px; border-color: var(--border); }

/* Active filter chips ---------------------------------------------------- */
.active-filters { display: none; align-items: center; flex-wrap: wrap; gap: 10px; margin: -14px 0 24px; }
.active-filters.show { display: flex; }
.active-filters-list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--theme3); color: var(--title); font-size: 13px; font-weight: 600; padding: 6px 6px 6px 16px; border-radius: 30px; }
.filter-chip .remove-chip { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--white); color: var(--text); font-size: 10px; border: none; transition: .3s; flex: 0 0 20px; }
.filter-chip .remove-chip:hover { background: var(--theme); color: var(--white); }
.clear-all-filters { display: inline-flex; align-items: center; gap: 8px; background: var(--theme); color: var(--white); font-size: 13px; font-weight: 700; padding: 9px 20px; border-radius: 30px; border: none; transition: .3s; }
.clear-all-filters:hover { background: var(--title); }
.tagcloud a.js-tag-filter.active { background: var(--theme); color: var(--white); }

.filter-widget-list li { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; }
.filter-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text); font-size: 15px; }
.filter-checkbox input[type=checkbox] { display: inline-block; visibility: visible; opacity: 1; position: static; appearance: auto; -webkit-appearance: checkbox; accent-color: var(--theme); width: 16px; height: 16px; flex: 0 0 16px; margin: 0; cursor: pointer; }
.filter-checkbox:hover { color: var(--theme); }
.price-range-widget .price-slider { margin: 16px 0 14px; }
.price-range-widget input[type=range] { width: 100%; accent-color: var(--theme); }
.price-range-widget .price-range-values { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--title); font-weight: 600; }
.mobile-filter-toggle { display: none; align-items: center; gap: 10px; background: var(--theme); color: var(--white); border-radius: 30px; padding: 14px 26px; font-weight: 600; margin-bottom: 30px; }
@media (max-width: 991px) {
  .mobile-filter-toggle { display: inline-flex; }
  .main-sidebar { display: none; margin-bottom: 30px; }
  .main-sidebar.show { display: block; }
}

/* Compact sidebar redesign (shop pages only) --------------------------------- */
.shop-section .main-sidebar .single-sidebar-widget { padding: 24px 22px; margin-bottom: 18px; }
.shop-section .main-sidebar .single-sidebar-widget .wid-title { margin-bottom: 14px; }
.shop-section .main-sidebar .single-sidebar-widget .wid-title h3 { font-size: 17px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.shop-section .main-sidebar .single-sidebar-widget .wid-title h3::before { display: none; }

/* Search --------------------------------------------------------------------- */
.shop-section .main-sidebar .single-sidebar-widget .search-widget .search-widget-wrapper { position: relative; border:none; border-radius: 30px; background: var(--white); }
.shop-section .main-sidebar .single-sidebar-widget .search-widget .search-widget-wrapper input { border:none; padding: 11px 46px 11px 18px; font-size: 14px; background: transparent; }
.shop-section .main-sidebar .single-sidebar-widget .search-widget .search-widget-wrapper button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; font-size: 14px; background: transparent; color: var(--text); border-radius: 50%; }
.shop-section .main-sidebar .single-sidebar-widget .search-widget .search-widget-wrapper button:hover { background: var(--theme); color: var(--white); }

/* Category tree: compact flat rows + icons + expand/collapse ----------------- */
/* Depth-agnostic: every rule below is scoped with a direct-child (>) combinator
   between a <li> and its own row/sub-list, so a subcategory that is itself
   has-children (3rd level, 4th level, ...) gets the exact same behaviour,
   independently of whatever ancestor level is hovered/active. */
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories ul { padding-left: 0; list-style: none; margin: 0; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li { background: transparent; border-radius: 0; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories ul > li:not(:last-child) { margin-bottom: 0; border-bottom: 1px solid var(--border-2); }

/* Row = either a direct <a> (leaf item) or a direct .cat-row (has-children item) */
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li > a,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li > .cat-row { display: flex; align-items: center; justify-content: flex-start; padding: 11px 2px; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li > .cat-row > a { flex: 1; display: flex; align-items: center; justify-content: flex-start; padding: 0; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li > a i,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li > a svg,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li > .cat-row > a i,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li > .cat-row > a svg { width: 20px; flex: 0 0 20px; text-align: center; color: var(--theme); font-size: 15px; margin-right: 10px; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li > a span,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li > .cat-row > a span { padding-left: 10px; font-size: 12px; font-weight: 500; color: var(--text); }

/* Hover / active colour a row's OWN link only (> stops it leaking to nested rows) */
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li:hover,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li.active { background: transparent; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li:hover > a,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li.active > a,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li:hover > .cat-row > a,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li.active > .cat-row > a { color: var(--theme) !important; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li:hover > a span,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li.active > a span,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li:hover > .cat-row > a span,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li.active > .cat-row > a span { color: var(--theme) !important; }

/* Toggle button: scoped to the row's own .cat-row so a parent's hover/active
   never re-colours a nested item's toggle button */
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .cat-toggle-btn { flex: 0 0 20px; width: 20px; height: 20px; margin-left: 6px; display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 11px; background: transparent; border: none; cursor: pointer; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li:hover > .cat-row .cat-toggle-btn,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li.active > .cat-row .cat-toggle-btn { color: var(--theme); }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .cat-toggle-btn .fa-minus { display: none; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li.active > .cat-row .cat-toggle-btn .fa-plus { display: none; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li.active > .cat-row .cat-toggle-btn .fa-minus { display: inline-block; }

/* Sub-list collapse: only the immediate child .sub-categories reacts to this
   li's own .active class, so an inner has-children item stays collapsed even
   while its parent is expanded, until it is toggled on its own */
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories { list-style: none; margin: 0; padding: 0 0 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s ease-in-out; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories li.active > .sub-categories { max-height: 600px; padding-top: 2px; padding-bottom: 4px; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li > a,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li > .cat-row { padding: 7px 2px; font-size: 13.5px; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li > a,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li > .cat-row > a { color: var(--text); }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li > a span,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li > .cat-row > a span { color: var(--text2); font-size: 11.5px; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories .cat-toggle-btn { font-size: 10px; }

/* Neutralise the theme's global "ul li:hover a { color: white !important }":
   any link nested arbitrarily deep gets muted by default, and only the
   specific row actually under the cursor (or expanded) is lit up above */
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories a,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories a span { color: var(--text) !important; }
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li:hover > a,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li.active > a,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li:hover > .cat-row > a,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li.active > .cat-row > a,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li:hover > a span,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li.active > a span,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li:hover > .cat-row > a span,
.shop-section .main-sidebar .single-sidebar-widget .news-widget-categories .sub-categories li.active > .cat-row > a span { color: var(--theme) !important; }

/* Brands / Rating checkbox lists: tighten vertical rhythm --------------------- */
.shop-section .main-sidebar .single-sidebar-widget .filter-widget-list li { padding: 5px 0; }
.shop-section .main-sidebar .single-sidebar-widget .filter-checkbox { font-size: 14px; gap: 8px; }
.shop-section .main-sidebar .single-sidebar-widget .filter-checkbox input[type=checkbox] { width: 15px; height: 15px; flex: 0 0 15px; }
.shop-section .main-sidebar .single-sidebar-widget .filter-widget-list li > span { font-size: 12px; color: var(--text); }

/* Price range: dual-handle slider --------------------------------------------- */
.shop-section .main-sidebar .single-sidebar-widget.price-range-widget .price-slider.dual-range { position: relative; height: 18px; margin: 10px 0 16px; }
/* left/right inset = half the thumb width (14px) below: native range thumbs
   never travel past half their own width from each edge, so the visible
   track must stop there too or its ends won't line up with the handles */
.shop-section .main-sidebar .single-sidebar-widget.price-range-widget .range-track { position: absolute; left: 7px; right: 7px; top: 50%; height: 4px; border-radius: 4px; background: var(--border); transform: translateY(-50%); }
.shop-section .main-sidebar .single-sidebar-widget.price-range-widget .range-fill { position: absolute; top: 0; height: 100%; background: var(--theme); border-radius: 4px; }
.shop-section .main-sidebar .single-sidebar-widget.price-range-widget .dual-range input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 18px; margin: 0; padding: 0; background: transparent; border: none; outline: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.shop-section .main-sidebar .single-sidebar-widget.price-range-widget .dual-range input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 18px; border: none; }
.shop-section .main-sidebar .single-sidebar-widget.price-range-widget .dual-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; background: var(--white); border: none; box-shadow: 0 0 0 3px var(--theme), 0 2px 6px rgba(0, 0, 0, .2); cursor: pointer; }
.shop-section .main-sidebar .single-sidebar-widget.price-range-widget .dual-range input[type=range]::-moz-range-track { background: transparent; height: 18px; border: none; }
.shop-section .main-sidebar .single-sidebar-widget.price-range-widget .dual-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: none; box-shadow: 0 0 0 3px var(--theme), 0 2px 6px rgba(0, 0, 0, .2); cursor: pointer; }
.shop-section .main-sidebar .single-sidebar-widget.price-range-widget .price-range-values span { font-size: 13px; }

/* 06. Category & Brand cards ------------------------------------------------ */
.category-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 34px 26px; text-align: center; transition: .35s; height: 100%; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--box-shadow); border-color: transparent; }
.category-card .icon-thumb { width: 84px; height: 84px; margin: 0 auto 22px; font-size: 34px; }
.category-card h4 { font-size: 19px; font-weight: 700; color: var(--title); margin-bottom: 8px; }
.category-card p { font-size: 14px; color: var(--text); margin-bottom: 0; }
.category-card .cat-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--theme); font-weight: 600; font-size: 14px; }
.brand-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 34px 20px; text-align: center; transition: .35s; height: 100%; }
.brand-card:hover { box-shadow: var(--box-shadow); border-color: transparent; transform: translateY(-6px); }
.brand-card .brand-logo { font-family: "Urbanist", sans-serif; font-size: 25px; font-weight: 800; letter-spacing: 1px; color: var(--title); }
.brand-card .brand-logo span { color: var(--theme); }
.brand-card small { color: var(--text); font-size: 13px; }
.brand-alpha-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 50px; }
.brand-alpha-nav a { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--title); transition: .3s; font-size: 14px; }
.brand-alpha-nav a:hover, .brand-alpha-nav a.active { background: var(--theme); border-color: var(--theme); color: var(--white) !important; }

/* 07. Coupon cards ---------------------------------------------------------- */
.coupon-card { position: relative; display: flex; align-items: stretch; background: var(--white); border: 1px dashed var(--border-3); border-radius: 16px; overflow: hidden; transition: .3s; margin-bottom: 26px; }
.coupon-card:hover { box-shadow: var(--box-shadow); }
.coupon-card .coupon-left { flex: 0 0 110px; background: var(--theme3); display: flex; align-items: center; justify-content: center; color: var(--theme); font-size: 38px; position: relative; }
.coupon-card .coupon-left:before, .coupon-card .coupon-left:after { content: ""; position: absolute; width: 22px; height: 22px; background: var(--white); border-radius: 50%; left: 50%; transform: translateX(-50%); }
.coupon-card .coupon-left:before { top: -11px; }
.coupon-card .coupon-left:after { bottom: -11px; }
.coupon-card .coupon-right { flex: 1; min-width: 0; padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.coupon-value-badge { display: inline-flex; align-items: center; align-self: flex-start; max-width: 100%; background: var(--theme3); color: var(--theme); font-size: 15px; font-weight: 800; padding: 4px 14px; border-radius: 30px; margin-bottom: 4px; white-space: normal; overflow-wrap: anywhere; }
.coupon-card h4 { font-size: 18px; font-weight: 700; color: var(--title); margin: 0; }
.coupon-card p { font-size: 14px; color: var(--text); margin: 0; }
.coupon-code-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.coupon-code { border: 1px dashed var(--theme); border-radius: 8px; padding: 8px 16px; font-weight: 700; letter-spacing: 1px; color: var(--theme); background: var(--theme3); font-size: 14px; }
.coupon-copy-btn { border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--title); transition: .3s; display: inline-flex; align-items: center; gap: 6px; }
.coupon-copy-btn:hover, .coupon-copy-btn.copied { background: var(--theme); border-color: var(--theme); color: var(--white); }
.coupon-expiry { font-size: 12px; color: #F0554B; font-weight: 600; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; }
.coupon-sale-progress { margin-top: 14px; }
.coupon-sale-progress .bar-track { height: 8px; border-radius: 10px; background: var(--border-2); overflow: hidden; }
.coupon-sale-progress .bar-fill { height: 100%; background: #F0554B; border-radius: 10px; }
.coupon-sale-progress p { margin: 8px 0 0; font-size: 12px; color: var(--text); font-weight: 600; }

/* 08. Cart / Compare / Wishlist tables --------------------------------------- */
.shop-table-wrap { overflow-x: auto; }
.shop-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.shop-table thead th { background: var(--bg-2); color: var(--title); font-weight: 700; padding: 18px 20px; text-align: left; white-space: nowrap; }
.shop-table thead th:first-child { border-radius: 12px 0 0 12px; }
.shop-table thead th:last-child { border-radius: 0 12px 12px 0; text-align: center; }
.shop-table tbody td { padding: 22px 20px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.shop-table tbody td:last-child { text-align: center; }
.shop-table .cart-product { display: flex; align-items: center; gap: 18px; min-width: 240px; }
.shop-table .cart-product .icon-thumb { width: 70px; height: 70px; font-size: 26px; flex: 0 0 70px; }
.shop-table .cart-product a { color: var(--title); font-weight: 600; transition: .3s; }
.shop-table .cart-product a:hover { color: var(--theme); }
.shop-table .remove-row { color: var(--text); font-size: 18px; transition: .3s; display: inline-flex; }
.shop-table .remove-row:hover { color: #F0554B !important; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 30px; overflow: hidden; }
.qty-box button { width: 44px; height: 44px; color: var(--title); font-size: 16px; font-weight: 800; }
.qty-box input { width: 50px; height: 44px; padding: 0; margin: 0; border: none; text-align: center; font-weight: 800; font-size: 15px; color: var(--title); background: transparent; }
.cart-actions-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 34px 0; }
.coupon-apply-form { display: flex; gap: 12px; max-width: 380px; flex-wrap: wrap; }
.coupon-apply-form input { flex: 1; min-width: 180px; height: 52px; border-radius: 30px; border: 1px solid var(--border); padding: 0 22px; }
.order-summary-box { background: var(--bg-2); border-radius: 16px; padding: 34px; }
.order-summary-box h4 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-2); color: var(--text); }
.summary-row.total { border-bottom: none; padding-top: 18px; font-size: 18px; font-weight: 700; color: var(--title); }
.summary-row .value { color: var(--title); font-weight: 600; }
.order-summary-box .theme-btn { width: 100%; justify-content: center; margin-top: 14px; }

.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-table td, .compare-table th { border: 1px solid var(--border-2); padding: 20px; vertical-align: middle; background: var(--white); }
.compare-table .compare-label-col { background: var(--bg-2); font-weight: 700; color: var(--title); width: 190px; white-space: nowrap; }
.compare-table .compare-product-col { text-align: center; min-width: 230px; }
.compare-table .remove-compare { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); color: var(--text); margin-bottom: 14px; transition: .3s; border: none; }
.compare-table .remove-compare:hover { background: #F0554B; color: var(--white); }
.compare-table .icon-thumb { width: 110px; height: 110px; font-size: 40px; margin: 0 auto 16px; }
.compare-table .compare-title { font-weight: 700; color: var(--title); font-size: 16px; margin-bottom: 10px; display: block; }
.compare-table .compare-price { font-size: 18px; font-weight: 700; color: var(--theme); }
.compare-vs-title { color: var(--text); font-size: 15px; font-weight: 600; margin-top: 10px; }
.compare-vs-title span { color: var(--theme); font-weight: 700; margin: 0 8px; text-transform: uppercase; font-size: 12px; }

/* Compare toolbar ------------------------------------------------------------ */
.compare-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; background: var(--bg-2); border-radius: 14px; padding: 16px 24px; margin-bottom: 24px; }
.compare-toolbar-info { color: var(--title); font-weight: 600; font-size: 14px; }
.compare-toolbar-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.compare-diff-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text); font-size: 14px; margin: 0; }
.compare-diff-toggle input[type=checkbox] { display: inline-block; visibility: visible; opacity: 1; position: static; appearance: auto; -webkit-appearance: checkbox; width: 16px; height: 16px; accent-color: var(--theme); cursor: pointer; margin: 0; }
.compare-copy-link-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 30px; padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--title); background: var(--white); transition: .3s; }
.compare-copy-link-btn:hover, .compare-copy-link-btn.copied { background: var(--theme); border-color: var(--theme); color: var(--white); }

/* Compare table: product cell polish (price/savings/stock badges) ------------ */
.compare-table .compare-title a { color: var(--title); transition: .3s; }
.compare-table .compare-title a:hover { color: var(--theme); }
.compare-product-price { margin-bottom: 10px; }
.compare-product-price del { color: var(--text); font-weight: 500; font-size: 14px; margin-right: 6px; }
.compare-savings-badge { display: inline-flex; align-items: center; gap: 6px; background: #F0554B; color: var(--white); font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 30px; margin-bottom: 10px; }
.compare-stock-badge { margin-bottom: 16px; }
.compare-stock-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.compare-table .compare-add-cart-btn { padding: 12px 24px; font-size: 14px; }

/* Compare table: spec groups + empty slot / hidden columns -------------------- */
.compare-group-row th { background: var(--bg-2); color: var(--title); font-weight: 700; font-size: 14px; text-align: left; padding: 14px 20px; border: 1px solid var(--border-2); }
.compare-empty-slot { min-width: 180px; }
.compare-add-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; border: 2px dashed var(--border-3); border-radius: 12px; padding: 30px 14px; background: transparent; color: var(--text); font-size: 13px; font-weight: 600; transition: .3s; }
.compare-add-slot i { font-size: 20px; color: var(--theme); }
.compare-add-slot:hover { border-color: var(--theme); color: var(--theme); background: var(--theme3); }
.compare-table.diff-only [data-spec-row]:not(.has-diff) { display: none; }

/* Ecommerce empty state (compare, cart, ...) ------------------------------------ */
.ecommerce-empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 20px; }
.ecommerce-empty-state i { font-size: 54px; color: var(--border-3); margin-bottom: 20px; }
.ecommerce-empty-state h3 { font-size: 19px; font-weight: 700; color: var(--title); margin-bottom: 8px; }
.ecommerce-empty-state p { color: var(--text); font-size: 14px; margin-bottom: 22px; }

/* Compare picker modal ---------------------------------------------------------- */
.compare-picker-modal .modal-content { border: none; border-radius: 20px; }
.compare-picker-modal .modal-header { border-bottom: 1px solid var(--border-2); padding: 22px 26px; }
.compare-picker-modal .modal-title { font-size: 18px; font-weight: 700; color: var(--title); }
.compare-picker-modal .modal-body { padding: 20px 26px; }
.compare-picker-item { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--border-2); border-radius: 12px; }
.compare-picker-item .icon-thumb { width: 60px; height: 60px; flex: 0 0 60px; font-size: 22px; }
.compare-picker-info { flex: 1; min-width: 0; }
.compare-picker-info h6 { font-size: 15px; font-weight: 700; color: var(--title); margin-bottom: 4px; }
.compare-picker-price { color: var(--theme); font-weight: 700; font-size: 14px; }

/* Compact breadcrumb bar (product detail) ---------------------------------------- */
/* padding-top is a fallback; JS (shop.js) overrides it with the header's
   real measured height, since the header is position:absolute/overlay
   (header-section-3.top-0) and reserves no space of its own, so the top
   padding can't safely be hand-guessed. */
.pd-breadcrumb-bar { background: var(--bg-2); padding: 140px 0 16px; }
.pd-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.pd-breadcrumb a { color: var(--text); font-weight: 500; transition: .3s; }
.pd-breadcrumb a:hover { color: var(--theme); }
.pd-breadcrumb .sep { color: var(--border-3); font-size: 14px; line-height: 1; }
.pd-breadcrumb .current { color: var(--title); font-weight: 700; }
.pd-breadcrumb-bar.pd-breadcrumb-dark { background: var(--title); }
.pd-breadcrumb-bar.pd-breadcrumb-dark h1 { color: var(--white); }
.pd-breadcrumb-bar.pd-breadcrumb-dark .pd-breadcrumb a { color: rgba(255, 255, 255, .7); }
.pd-breadcrumb-bar.pd-breadcrumb-dark .pd-breadcrumb a:hover { color: var(--theme); }
.pd-breadcrumb-bar.pd-breadcrumb-dark .pd-breadcrumb .sep { color: rgba(255, 255, 255, .3); }
.pd-breadcrumb-bar.pd-breadcrumb-dark .pd-breadcrumb .current { color: var(--white); }

/* 09. Product details --------------------------------------------------------- */
.product-gallery { display: flex; gap: 20px; }
.product-gallery-thumbs { display: flex; flex-direction: column; gap: 14px; }
.product-gallery-thumbs button { width: 84px; height: 84px; border-radius: 12px; border: 2px solid var(--border); background: var(--theme3); display: flex; align-items: center; justify-content: center; color: var(--theme); font-size: 26px; transition: .3s; }
.product-gallery-thumbs button.active, .product-gallery-thumbs button:hover { border-color: var(--theme); }
.product-gallery-main { flex: 1; border-radius: 20px; overflow: hidden; }
.product-gallery-main .icon-thumb { width: 100%; min-height: 440px; font-size: 150px; border-radius: 20px; }
@media (max-width: 575px) { .product-gallery { flex-direction: column-reverse; } .product-gallery-thumbs { flex-direction: row; overflow-x: auto; } }
.pd-info .pd-cat { color: var(--theme); text-transform: uppercase; font-weight: 700; font-size: 13px; letter-spacing: .5px; }
.pd-info h1 { font-size: 32px; font-weight: 700; color: var(--title); margin: 12px 0; }
.pd-meta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.pd-stock { font-size: 13px; font-weight: 700; color: #1FAE7C; display: inline-flex; align-items: center; gap: 6px; }
.pd-price-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pd-price-row .price { font-size: 32px; font-weight: 800; color: var(--title); }
.pd-price-row del { font-size: 18px; color: var(--text); font-weight: 500; }
.pd-desc { color: var(--text); line-height: 28px; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--border-2); }
.pd-variant-row { margin-bottom: 20px; }
.pd-variant-row .label { font-weight: 700; color: var(--title); margin-bottom: 10px; display: block; font-size: 15px; }
.size-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.size-swatches span { min-width: 46px; height: 46px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--title); cursor: pointer; transition: .3s; }
.size-swatches span.active, .size-swatches span:hover { border-color: var(--theme); background: var(--theme); color: var(--white); }
.pd-cart-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 26px 0; }
.pd-icon-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--title); font-size: 18px; transition: .3s; flex: 0 0 auto; }
.pd-icon-btn:hover, .pd-icon-btn.active { background: var(--theme); border-color: var(--theme); color: var(--white); }
.pd-extra-info { display: flex; flex-direction: column; gap: 14px; }
.pd-extra-info .item { display: flex; align-items: center; gap: 14px; color: var(--text); font-size: 14px; }
.pd-extra-info .item i { width: 40px; height: 40px; border-radius: 50%; background: var(--theme3); color: var(--theme); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 auto; }
.pd-extra-info .item strong { color: var(--title); }

.pd-tabs { margin-top: 70px; }
.pd-tabs .nav-tabs { border-bottom: 1px solid var(--border); margin-bottom: 36px; flex-wrap: wrap; }
.pd-tabs .nav-tabs .nav-link { border: none; background: transparent; color: var(--text); font-weight: 700; font-size: 17px; padding: 10px 4px; margin-right: 34px; position: relative; border-radius: 0; }
.pd-tabs .nav-tabs .nav-link:after { content: ""; position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--theme); transition: .3s; }
.pd-tabs .nav-tabs .nav-link.active, .pd-tabs .nav-tabs .nav-link:hover { color: var(--title); }
.pd-tabs .nav-tabs .nav-link.active:after { width: 100%; }
.spec-table { width: 100%; }
.spec-table tr td { padding: 14px 20px; border-bottom: 1px solid var(--border-2); color: var(--text); }
.spec-table tr td:first-child { width: 220px; font-weight: 700; color: var(--title); }
.spec-table tr:nth-child(odd) td { background: var(--bg-2); }
.spec-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 30px; font-size: 12px; font-weight: 700; color: var(--white); }
.spec-badge-success { background: #1FAE7C; }
.spec-badge-danger { background: #F0554B; }
.review-item { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--border-2); }
.review-item .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--theme3); color: var(--theme); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex: 0 0 auto; }
.review-item .review-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.review-item .review-head h6 { margin: 0; color: var(--title); font-weight: 700; }
.review-item .review-date { font-size: 13px; color: var(--text); }
.rating-summary { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border-2); }
.rating-summary .avg { text-align: center; }
.rating-summary .avg .num { font-size: 52px; font-weight: 800; color: var(--title); line-height: 1; }
.rating-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.rating-bars .bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.rating-bars .bar-track { flex: 1; height: 8px; border-radius: 10px; background: var(--border-2); overflow: hidden; }
.rating-bars .bar-fill { height: 100%; background: #FFB800; border-radius: 10px; }
.related-products { margin-top: 80px; }

/* Vendor tab ------------------------------------------------------------------ */
.vendor-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border-2); }
.vendor-logo { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; background: var(--theme3); color: var(--theme); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.vendor-info h4 { font-size: 19px; font-weight: 700; color: var(--title); margin-bottom: 8px; }
.vendor-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.vendor-joined { font-size: 13px; color: var(--text); }
.vendor-contact { margin-bottom: 24px; }
.vendor-desc { color: var(--text); line-height: 26px; margin: 0; }

/* FAQs tab ---------------------------------------------------------------------- */
.pd-faq-item { border-bottom: 1px solid var(--border-2); }
.pd-faq-item:first-child { border-top: 1px solid var(--border-2); }
.pd-faq-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 2px; background: none; border: none; text-align: left; font-size: 16px; font-weight: 700; color: var(--title); transition: color .3s; }
.pd-faq-toggle:not(.collapsed) { color: var(--theme); }
.pd-faq-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: 1px solid var(--border-3); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--title); transition: .3s; }
.pd-faq-icon .fa-minus { display: none; }
.pd-faq-toggle:not(.collapsed) .pd-faq-icon { background: var(--theme); border-color: var(--theme); color: var(--white); }
.pd-faq-toggle:not(.collapsed) .pd-faq-icon .fa-plus { display: none; }
.pd-faq-toggle:not(.collapsed) .pd-faq-icon .fa-minus { display: inline-block; }
.pd-faq-body { padding: 0 30px 22px 2px; color: var(--text); line-height: 26px; }
.pd-faq-body a { color: var(--theme); font-weight: 600; }

/* Buy Together & Save bundle ----------------------------------------------------- */
.buy-together-section { background: var(--theme3); border: 1px solid var(--theme); border-radius: 16px; padding: 30px; margin: 60px 0; }
.bt-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px dashed var(--border-3); }
.bt-icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; background: var(--theme); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.bt-header-text h3 { font-size: 20px; font-weight: 700; color: var(--theme); margin-bottom: 4px; }
.bt-header-text p { font-size: 14px; color: var(--text); margin: 0; }
.bt-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.bt-item { display: flex; align-items: flex-start; gap: 16px; background: var(--white); border-radius: 14px; padding: 18px; transition: opacity .3s; }
.bt-item.is-unchecked { opacity: .5; }
.bt-check { position: relative; display: inline-flex; flex: 0 0 24px; margin-top: 26px; cursor: pointer; }
.bt-check input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; padding: 0; cursor: pointer; }
.bt-check-box { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--border-3); display: flex; align-items: center; justify-content: center; color: transparent; font-size: 12px; transition: .2s; }
.bt-check input:checked + .bt-check-box { background: var(--theme); border-color: var(--theme); color: var(--white); }
.bt-thumb { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 10px; }
.bt-thumb .icon-thumb { width: 100%; height: 100%; font-size: 30px; }
.bt-info { flex: 1; min-width: 0; }
.bt-name { font-size: 15px; font-weight: 700; color: var(--title); margin-bottom: 8px; }
.bt-price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bt-price-row del { font-size: 13px; color: var(--text); font-weight: 500; }
.bt-price { font-size: 18px; font-weight: 800; color: var(--theme); }
.bt-variant { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--text); }
.bt-color-swatch { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.bt-color-swatch.active { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--theme); }
.bt-size-swatch { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.bt-size-swatch.active { background: var(--theme); color: var(--white); }
.bt-cart-btn { align-self: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; border: 1px solid var(--border); color: var(--title); display: flex; align-items: center; justify-content: center; transition: .3s; }
.bt-cart-btn:hover { background: var(--theme); border-color: var(--theme); color: var(--white); }
.bt-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 20px; border-top: 1px dashed var(--border-3); }
.bt-total { font-size: 15px; color: var(--title); }
.bt-total-value { font-size: 20px; font-weight: 800; color: var(--theme); margin-left: 4px; }
.bt-add-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--theme); color: var(--white); border: none; border-radius: 30px; padding: 14px 28px; font-size: 14px; font-weight: 700; transition: .3s; }
.bt-add-btn:hover { background: var(--title); }
.bt-add-btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 575px) { .bt-item { flex-wrap: wrap; } .bt-cart-btn { margin-left: auto; } }

/* Frequently Bought Together carousel ------------------------------------------- */
.fbt-section { background: var(--bg-2); border-radius: 16px; padding: 30px; margin: 60px 0; }
.fbt-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px dashed var(--border-3); }
.fbt-icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; background: var(--theme); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.fbt-header-text { flex: 1; min-width: 200px; }
.fbt-header-text h3 { font-size: 20px; font-weight: 700; color: var(--title); margin-bottom: 4px; }
.fbt-header-text p { font-size: 14px; color: var(--text); margin: 0; }
.fbt-nav { display: flex; gap: 8px; }
.fbt-arrow { width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); color: var(--title); display: flex; align-items: center; justify-content: center; font-size: 13px; transition: .3s; }
.fbt-arrow:hover { background: var(--theme); border-color: var(--theme); color: var(--white); }
.fbt-slider { overflow: hidden; }
.fbt-slider .swiper-slide { height: auto; }
.fbt-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px; height: 100%; display: flex; flex-direction: column; }
.fbt-thumb { height: 130px; border-radius: 10px; margin-bottom: 16px; }
.fbt-thumb .icon-thumb { width: 100%; height: 100%; font-size: 40px; }
.fbt-name { font-size: 14px; font-weight: 600; color: var(--title); line-height: 20px; margin-bottom: 10px; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fbt-card .product-price { font-size: 16px; margin-bottom: 14px; }
.fbt-add-btn { margin-top: auto; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--theme); color: var(--white); border: none; border-radius: 30px; padding: 11px 14px; font-size: 13px; font-weight: 700; transition: .3s; }
.fbt-add-btn:hover { background: var(--title); }
@media (max-width: 575px) { .fbt-nav { margin-left: auto; } }

/* 10. Track order -------------------------------------------------------------- */
.track-form-box { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 50px; box-shadow: var(--box-shadow); max-width: 760px; margin: 0 auto; }
.track-form-box .form-group { margin-bottom: 22px; }
.track-form-box label { display: block; font-weight: 700; color: var(--title); margin-bottom: 10px; font-size: 15px; }
.track-form-box input { width: 100%; height: 56px; border-radius: 10px; border: 1px solid var(--border); padding: 0 22px; }
.order-tracker { display: flex; justify-content: space-between; position: relative; margin: 60px 0 20px; }
.order-tracker:before { content: ""; position: absolute; top: 26px; left: 0; right: 0; height: 2px; background: var(--border); }
.order-tracker .track-progress { position: absolute; top: 26px; left: 0; height: 2px; background: var(--theme); }
.order-tracker .track-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.order-tracker .track-step .dot { width: 54px; height: 54px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: var(--text); font-size: 18px; transition: .3s; }
.order-tracker .track-step.done .dot { background: var(--theme); border-color: var(--theme); color: var(--white); }
.order-tracker .track-step h6 { font-size: 15px; font-weight: 700; color: var(--title); margin-bottom: 4px; }
.order-tracker .track-step span { font-size: 12px; color: var(--text); }
@media (max-width: 767px) {
  .order-tracker { flex-direction: column; gap: 30px; align-items: flex-start; }
  .order-tracker:before, .order-tracker .track-progress { display: none; }
  .order-tracker .track-step { display: flex; align-items: center; gap: 16px; text-align: left; }
  .order-tracker .track-step .dot { margin: 0; }
}
.track-result { margin-top: 60px; display: none; }
.track-result.show { display: block; }
.track-order-summary { background: var(--bg-2); border-radius: 16px; padding: 34px; }

/* 11. Misc ---------------------------------------------------------------------- */
.shop-section { padding-top: 60px; }
.toast-msg { position: fixed; bottom: 30px; right: 30px; background: var(--title); color: var(--white); padding: 16px 26px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: var(--box-shadow); z-index: 9999; opacity: 0; transform: translateY(20px); transition: .3s; display: flex; align-items: center; gap: 10px; }
.toast-msg.show { opacity: 1; transform: translateY(0); }
.toast-msg i { color: #1FAE7C; }

.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading:after {
  content: '';
  display: inline-block;
  position: absolute;
  left: calc(50% - .625rem);
  top: calc(50% - .625rem);
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 100%;
  color: var(--theme);
  animation: spinner-border .75s linear infinite;
}

/* 12. Blog post content (.ck-content) ---------------------------------------- */
/* main.css resets margin to 0 on p / h1-h6 / ul globally, so CKEditor output
   (paragraphs, headings, lists, images, quotes, tables) renders with zero
   spacing between elements unless it's restored here. */
.ck-content { color: var(--text); font-size: 16px; line-height: 28px; }
.ck-content > *:first-child { margin-top: 0; }
.ck-content > *:last-child { margin-bottom: 0; }
.ck-content p { margin: 0 0 20px; line-height: 28px; }
.ck-content h1, .ck-content h2, .ck-content h3,
.ck-content h4, .ck-content h5, .ck-content h6 {
  margin: 36px 0 18px; line-height: 1.3; text-transform: none;
}
.ck-content ul, .ck-content ol { margin: 0 0 20px; padding-left: 22px; }
.ck-content ul { list-style: disc; }
.ck-content ol { list-style: decimal; }
.ck-content li { margin-bottom: 8px; line-height: 26px; }
.ck-content li:last-child { margin-bottom: 0; }
.ck-content li > ul, .ck-content li > ol { margin: 8px 0 0; }
.ck-content a { color: var(--theme); text-decoration: underline; }
.ck-content strong, .ck-content b { color: var(--title); font-weight: 700; }
.ck-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; display: block; }
.ck-content figure { margin: 24px 0; }
.ck-content figure img { margin: 0; }
.ck-content figcaption { margin-top: 10px; font-size: 13px; color: var(--text); text-align: center; }
.ck-content blockquote {
  margin: 26px 0; padding: 20px 26px; border-left: 4px solid var(--theme);
  background: var(--bg-2); border-radius: 0 12px 12px 0; font-style: italic; color: var(--title);
}
.ck-content blockquote p:last-child { margin-bottom: 0; }
.ck-content table { width: 100%; border-collapse: collapse; margin: 26px 0; }
.ck-content table td, .ck-content table th { border: 1px solid var(--border-2); padding: 12px 16px; }
.ck-content hr { margin: 34px 0; border: none; border-top: 1px solid var(--border-2); }
.ck-content iframe { max-width: 100%; margin: 24px 0; }
