/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: Arial, sans-serif;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: #333;
    color: #ccc;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #444;
}

.top-bar .inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar a,
.top-bar span {
    color: #ccc;
    font-size: 12px;
    padding: 0 10px;
    line-height: 28px;
    border-right: 1px solid #555;
    display: inline-block;
}

.top-bar a:first-child,
.top-bar span:first-child {
    border-left: 1px solid #555;
}

.top-bar-right a:last-child {
    border-right: 1px solid #555;
}

.top-bar a:hover {
    color: #fff;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: #e62e04;
    position: sticky;
    top: 0;
    z-index: 300;
}

.header-main {
    max-width: 1200px;
    margin: auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    padding: 4px 8px;
    flex-shrink: 0;
    line-height: 1;
    cursor: pointer;
}

.logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}

.logo-text span {
    color: #ffcc00;
}

.logo-sub {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1px;
}

.search-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-bar {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #ff8c00;
    background: #fff;
}

.search-cat-select {
    border: none;
    border-right: 1px solid #ddd;
    padding: 0 10px;
    font-size: 12px;
    color: #333;
    background: #f5f5f5;
    outline: none;
    cursor: pointer;
    min-width: 110px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    color: #333;
    min-width: 0;
}

.search-btn {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.search-btn:hover {
    background: #e67a00;
}

.search-tags {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.search-tags a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.search-tags a:hover {
    color: #fff;
    text-decoration: underline;
}

.header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

/* ===== Mobile search icon ===== */
.mobile-search-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 6px 8px;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.15s;
}

.mobile-search-btn:hover {
    background: rgba(0, 0, 0, 0.15);
}

.mobile-search-drop {
    display: none;
    background: #c72600;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-search-drop.open {
    display: block;
}

.mobile-search-inner {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #ff8c00;
    background: #fff;
}

.mobile-search-inner input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    color: #333;
    min-width: 0;
}

.mobile-search-inner button {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 0 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.mobile-search-inner button:hover {
    background: #e67a00;
}

/* ===== Header buttons (account / cart / locale) ===== */
.hdr-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    background: transparent;
    border: none;
    transition: background 0.15s;
    cursor: pointer;
    position: relative;
}

.hdr-btn:hover {
    background: rgba(0, 0, 0, 0.15);
}

.hdr-btn .icon {
    font-size: 20px;
    line-height: 1;
}

.hdr-btn .label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.hdr-btn .sublabel {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #ffcc00;
    color: #c00;
    font-size: 10px;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Shared dropdown ===== */
.hdr-dropdown-wrap {
    position: relative;
}

.hdr-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    z-index: 9999;
    padding: 12px 0;
}

.hdr-dropdown-wrap:hover .hdr-dropdown {
    display: block;
}

.hdr-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    transform: rotate(45deg);
}

.acct-dropdown-header {
    padding: 10px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
}

.acct-dropdown-header p {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.acct-sign-btn {
    display: block;
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.acct-sign-btn:hover {
    background: #c72600;
}

.acct-register {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #e62e04;
    margin-top: 6px;
}

.acct-register:hover {
    text-decoration: underline;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s;
}

.dropdown-menu-item:hover {
    background: #fff4f2;
    color: #e62e04;
}

.dropdown-menu-item .dm-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 6px 0;
}

.locale-dropdown {
    min-width: 280px;
    padding: 16px;
}

.locale-group {
    margin-bottom: 14px;
}

.locale-group:last-child {
    margin-bottom: 0;
}

.locale-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.locale-select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 13px;
    color: #333;
    background: #fafafa;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.locale-select:focus {
    border-color: #e62e04;
}

.locale-save-btn {
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 14px;
}

.locale-save-btn:hover {
    background: #c72600;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a {
    font-size: 12px;
    color: #999;
}

.breadcrumb a:hover {
    color: #e62e04;
    text-decoration: underline;
}

.breadcrumb span,
.breadcrumb .sep {
    font-size: 12px;
    color: #ccc;
}

.breadcrumb .current {
    font-size: 12px;
    color: #333;
}

/* ============================================================
   PRODUCT DETAIL LAYOUT
   ============================================================ */
.pd-wrap {
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 0 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ===== Gallery ===== */
.pd-gallery {
    width: 420px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    padding: 16px;
}

.pd-main-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
    cursor: zoom-in;
    background-color: #fff0f3;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/cart.png');
}

.pd-main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}

.pd-main-img-wrap img.img-broken {
    opacity: 0;
}

.pd-main-img-wrap:hover img {
    transform: scale(1.08);
}

.pd-badge-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pd-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}

.pd-badge.discount {
    background: #e62e04;
    color: #fff;
}

.pd-badge.new {
    background: #00a040;
    color: #fff;
}

.pd-badge.hot {
    background: #ff8c00;
    color: #fff;
}

.pd-wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pd-wish-btn:hover,
.pd-wish-btn.active {
    background: #fff0f0;
    border-color: #e62e04;
    color: #e62e04;
}

.pd-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pd-thumb {
    width: 60px;
    height: 60px;
    border: 2px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s;
    flex-shrink: 0;
    background-color: #fff0f3;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/cart.png');
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-thumb img.img-broken {
    opacity: 0;
}

.pd-thumb:hover,
.pd-thumb.active {
    border-color: #e62e04;
}

.pd-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.pd-share-row span {
    font-size: 12px;
    color: #999;
}

.share-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.share-btn:hover {
    background: #f0f0f0;
}

/* ===== Product info ===== */
.pd-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pd-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #222;
}

.pd-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pd-stars {
    color: #ff8c00;
    font-size: 15px;
    letter-spacing: 1px;
}

.pd-rating-val {
    font-size: 14px;
    font-weight: 700;
    color: #ff8c00;
}

.pd-review-count {
    font-size: 13px;
    color: #999;
}

.pd-review-count a {
    color: #e62e04;
}

.pd-review-count a:hover {
    text-decoration: underline;
}

.pd-sold {
    font-size: 13px;
    color: #999;
    padding-left: 10px;
    border-left: 1px solid #e0e0e0;
}

.pd-price-box {
    background: #fff8f7;
    border-radius: 6px;
    padding: 14px 16px;
    border: 1px solid #fce0d8;
}

.pd-current-price {
    font-size: 32px;
    font-weight: 900;
    color: #e62e04;
    line-height: 1;
}

.pd-current-price .currency {
    font-size: 18px;
    vertical-align: top;
    margin-top: 5px;
    display: inline-block;
}

.pd-orig-price {
    font-size: 16px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 12px;
}

.pd-discount-badge {
    display: inline-block;
    background: #e62e04;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
}

.pd-price-subrow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.pd-bulk-label {
    font-size: 12px;
    color: #888;
}

.pd-bulk-tag {
    font-size: 12px;
    color: #e62e04;
    font-weight: 600;
    border: 1px solid #e62e04;
    border-radius: 3px;
    padding: 1px 6px;
}

.pd-divider {
    height: 1px;
    background: #f0f0f0;
}

/* ===== Variants ===== */
.pd-variants-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-variant-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pd-variant-label {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    width: 72px;
    flex-shrink: 0;
    padding-top: 6px;
}

.pd-variant-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pd-color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.pd-color-option:hover,
.pd-color-option.active {
    border-color: #e62e04;
    transform: scale(1.1);
}

.pd-size-option {
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: all 0.15s;
    background: #fafafa;
}

.pd-size-option:hover,
.pd-size-option.active {
    border-color: #e62e04;
    color: #e62e04;
    background: #fff4f2;
}

.pd-size-option.disabled {
    border-color: #eee;
    color: #ccc;
    cursor: not-allowed;
    background: #f8f8f8;
    text-decoration: line-through;
}

/* ===== Quantity ===== */
.pd-qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pd-qty-label {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    width: 72px;
}

.qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-ctrl button {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    font-size: 18px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.qty-ctrl button:hover {
    background: #ebebeb;
    color: #e62e04;
}

.qty-ctrl input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    outline: none;
}

.qty-stock-info {
    font-size: 12px;
    color: #888;
}

.qty-stock-info .in-stock {
    color: #20a010;
    font-weight: 600;
}

.qty-stock-info .low-stock {
    color: #ff8c00;
    font-weight: 600;
}

/* ===== CTA buttons ===== */
.pd-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-add-cart {
    flex: 1;
    min-width: 140px;
    background: #ff8c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}

.btn-add-cart:hover {
    background: #e67a00;
}

.btn-buy-now {
    flex: 1;
    min-width: 140px;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}

.btn-buy-now:hover {
    background: #c72600;
}

.btn-wishlist {
    padding: 13px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #555;
    font-size: 18px;
    transition: all 0.15s;
}

.btn-wishlist:hover {
    border-color: #e62e04;
    color: #e62e04;
    background: #fff4f2;
}

/* ===== Services ===== */
.pd-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.pd-service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background: #fafafa;
}

.pd-service-item .svc-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.pd-service-item .svc-info h5 {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.pd-service-item .svc-info p {
    font-size: 11px;
    color: #888;
    margin-top: 1px;
}

/* ============================================================
   SIDEBAR CARD
   ============================================================ */
.pd-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 14px;
}

.sidebar-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.seller-avatar {
    width: 44px;
    height: 44px;
    background: #e62e04;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.seller-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.seller-meta {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.seller-stats {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.seller-stat {
    flex: 1;
    text-align: center;
    background: #fafafa;
    border-radius: 4px;
    padding: 6px 4px;
    border: 1px solid #f0f0f0;
}

.seller-stat .s-val {
    font-size: 14px;
    font-weight: 700;
    color: #e62e04;
    display: block;
}

.seller-stat .s-lbl {
    font-size: 10px;
    color: #999;
    display: block;
    margin-top: 1px;
}

.btn-visit-store {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff;
    border: 1px solid #e62e04;
    color: #e62e04;
    border-radius: 4px;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s;
}

.btn-visit-store:hover {
    background: #fff4f2;
}

.btn-contact-seller {
    display: block;
    width: 100%;
    text-align: center;
    background: #fafafa;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    transition: all 0.15s;
}

.btn-contact-seller:hover {
    background: #f0f0f0;
}

.protect-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.protect-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #555;
}

.protect-list li span.pck {
    color: #20a010;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.delivery-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 12px;
}

.delivery-row:last-child {
    border-bottom: none;
}

.delivery-row .dr-label {
    color: #888;
    width: 80px;
    flex-shrink: 0;
}

.delivery-row .dr-val {
    color: #333;
    text-align: right;
}

.delivery-row .dr-val .free {
    color: #20a010;
    font-weight: 600;
}

.delivery-row .dr-val .fast {
    color: #e62e04;
    font-weight: 600;
}

/* ============================================================
   TABS SECTION
   ============================================================ */
.pd-tabs-wrap {
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 0 16px;
}

.pd-tabs-header {
    display: flex;
    border-bottom: 2px solid #e8e8e8;
    background: #fff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.05);
}

.pd-tab-btn {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    margin-bottom: -2px;
}

.pd-tab-btn:hover {
    color: #e62e04;
}

.pd-tab-btn.active {
    color: #e62e04;
    border-bottom-color: #e62e04;
}

.pd-tab-content {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
    max-width: 100%;
}

.pd-tab-content * {
    max-width: 100%;
}

.pd-tab-content img {
    height: auto;
}

.pd-tab-panel {
    display: none;
}

.pd-tab-panel.active {
    display: block;
}

/* ===== Description tab ===== */
.desc-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.desc-text {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 14px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.desc-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.desc-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #444;
}

.desc-feature-item span.chk {
    color: #20a010;
    font-size: 15px;
    flex-shrink: 0;
}

/* ===== Specifications tab ===== */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.spec-table tr:nth-child(even) {
    background: #fafafa;
}

.spec-table td {
    padding: 9px 14px;
    border: 1px solid #f0f0f0;
    color: #444;
    vertical-align: top;
}

.spec-table td:first-child {
    color: #888;
    width: 200px;
    font-weight: 600;
    background: #f5f5f5;
}

/* ===== Reviews tab ===== */
.reviews-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    flex-wrap: wrap;
}

.reviews-big-score {
    text-align: center;
    flex-shrink: 0;
}

.reviews-big-score .score {
    font-size: 56px;
    font-weight: 900;
    color: #e62e04;
    line-height: 1;
}

.reviews-big-score .stars {
    color: #ff8c00;
    font-size: 20px;
    letter-spacing: 2px;
    margin: 4px 0;
}

.reviews-big-score .total {
    font-size: 12px;
    color: #999;
}

.reviews-bars {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.review-bar-row .rbl {
    width: 34px;
    color: #888;
    text-align: right;
}

.review-bar-track {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: #ff8c00;
    border-radius: 4px;
}

.review-bar-row .rbn {
    width: 30px;
    color: #333;
    font-weight: 600;
}

.review-card {
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    min-width: 0;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e62e04;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-header>div:not(.review-avatar):not(.review-stars) {
    min-width: 0;
    flex: 1;
}

.review-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

.review-date {
    font-size: 11px;
    color: #bbb;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-stars {
    color: #ff8c00;
    font-size: 13px;
    margin-left: auto;
    flex-shrink: 0;
}

.review-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
}

.review-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.review-tag {
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 2px 10px;
}

.review-images {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.review-img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #222;
    color: #aaa;
    margin-top: 20px;
}

.footer-top {
    background: #1a1a1a;
    padding: 14px 0;
    border-bottom: 1px solid #333;
}

.footer-top .inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-top h3 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 2px;
}

.footer-top p {
    font-size: 12px;
    color: #888;
}

.app-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.app-btn {
    background: #fff;
    color: #333;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.app-btn:hover {
    background: #f0f0f0;
}

.footer-links {
    max-width: 1200px;
    margin: auto;
    padding: 28px 16px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.f-col h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.f-col a {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 7px;
}

.f-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 14px 16px;
}

.footer-bottom .inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 11px;
    color: #555;
}

.payment-icons {
    display: flex;
    gap: 6px;
}

.pay-icon {
    background: #333;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 10px;
    color: #aaa;
    font-weight: 600;
}

/* ===== Newsletter ===== */
.footer-newsletter {
    background: #1a1a1a;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 0;
}

.newsletter-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.newsletter-text h3 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.newsletter-text p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 460px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 13px;
    background: #2d2d2d;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
    color: #666;
}

.newsletter-form input[type="email"]:focus {
    border-color: #ff8c00;
}

.newsletter-form button {
    padding: 9px 20px;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: Arial, sans-serif;
    flex-shrink: 0;
}

.newsletter-form button:hover {
    background: #c72600;
}

.newsletter-msg {
    font-size: 11px;
    margin-top: 6px;
    min-height: 16px;
}

.newsletter-msg.success {
    color: #66bb6a;
}

.newsletter-msg.error {
    color: #ef5350;
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 800;
}

.mobile-overlay.open {
    display: block;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 285px;
    height: 100vh;
    background: #fff;
    z-index: 900;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.22);
}

.mobile-drawer.open {
    left: 0;
}

.mobile-drawer-header {
    background: #e62e04;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-drawer-logo {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.mobile-drawer-logo span {
    color: #ffcc00;
}

.mobile-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
}

.mobile-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.mobile-user-section {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff8f7;
}

.mobile-user-section p {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.mobile-sign-btn {
    display: block;
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.mobile-sign-btn:hover {
    background: #c72600;
}

.mobile-drawer-section {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-drawer-section-title {
    font-size: 11px;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px 4px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid #f8f8f8;
}

.mobile-nav-item:hover {
    background: #fff4f2;
    color: #e62e04;
}

.mobile-nav-item.open .mn-arr {
    transform: rotate(90deg);
    color: #e62e04;
}

.mn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mn-icon {
    font-size: 16px;
}

.mn-arr {
    font-size: 11px;
    color: #ccc;
    transition: transform 0.2s;
}

.mobile-cat-sub {
    display: none;
    background: #fafafa;
}

.mobile-cat-sub.open {
    display: block;
}

.mobile-cat-sub a {
    display: block;
    padding: 9px 16px 9px 48px;
    font-size: 12px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-cat-sub a:hover {
    color: #e62e04;
    background: #fff4f2;
}

.mobile-quick-link {
    display: block;
    padding: 11px 16px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f8f8f8;
}

.mobile-quick-link:hover {
    color: #e62e04;
    background: #fff4f2;
}

.mobile-quick-link.hot {
    color: #e62e04;
    font-weight: 700;
}

/* ============================================================
   STICKY MOBILE BUY BAR
   ============================================================ */
.mobile-buy-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 10px 16px;
    z-index: 500;
    gap: 8px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.mobile-buy-bar .mbb-price {
    font-size: 18px;
    font-weight: 900;
    color: #e62e04;
    flex: 1;
    display: flex;
    align-items: center;
}

.mobile-buy-bar .btn-add-cart {
    flex: 1;
    padding: 11px 14px;
    font-size: 13px;
}

.mobile-buy-bar .btn-buy-now {
    flex: 1;
    padding: 11px 14px;
    font-size: 13px;
}

/* ============================================================
   PRODUCT LISTING PAGE — FILTER SIDEBAR
   ============================================================ */
.page-layout {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.filter-sidebar {
    width: 210px;
    flex-shrink: 0;
}

.filter-box {
    background: #fff;
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 10px;
}

.filter-box h3 {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-category-list {
    list-style: none;
}

.filter-category-list li {
    padding: 5px 0;
}

.filter-category-list li a {
    font-size: 12px;
    color: #555;
    display: flex;
    justify-content: space-between;
}

.filter-category-list li a:hover {
    color: #e62e04;
}

.filter-category-list li a.active {
    color: #e62e04;
    font-weight: 700;
}

.filter-category-list li a span {
    color: #bbb;
    font-size: 11px;
}

.filter-section {
    margin-bottom: 14px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-section h4 .toggle-icon {
    font-size: 10px;
    color: #bbb;
}

.filter-check-list {
    list-style: none;
}

.filter-check-list li {
    padding: 4px 0;
}

.filter-check-list label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}

.filter-check-list label:hover {
    color: #e62e04;
}

.filter-check-list input[type="checkbox"] {
    accent-color: #e62e04;
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-check-list label span.count {
    color: #bbb;
    font-size: 11px;
    margin-left: auto;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-inputs input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 8px;
    font-size: 12px;
    color: #333;
    outline: none;
    min-width: 0;
}

.price-inputs input:focus {
    border-color: #e62e04;
}

.price-inputs span {
    font-size: 12px;
    color: #bbb;
    flex-shrink: 0;
}

.price-go-btn {
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.price-go-btn:hover {
    background: #c72600;
}

.rating-list {
    list-style: none;
}

.rating-list li {
    padding: 4px 0;
}

.rating-list label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}

.rating-list label:hover {
    color: #e62e04;
}

.rating-stars {
    color: #ff8c00;
    font-size: 12px;
    letter-spacing: 1px;
}

.rating-list input[type="radio"] {
    accent-color: #e62e04;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-clear-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #e62e04;
    color: #e62e04;
    border-radius: 3px;
    padding: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}

.filter-clear-btn:hover {
    background: #fff4f2;
}

/* ===== Main content / toolbar ===== */
.products-main {
    flex: 1;
    min-width: 0;
}

.products-toolbar {
    background: #fff;
    border-radius: 4px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.toolbar-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.toolbar-cat-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

.toolbar-results {
    font-size: 12px;
    color: #999;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sort-label {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.sort-select {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 24px 5px 8px;
    font-size: 12px;
    color: #333;
    outline: none;
    cursor: pointer;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
}

.sort-select:focus {
    border-color: #e62e04;
}

.view-btns {
    display: flex;
    gap: 2px;
}

.view-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.view-btn.active {
    background: #e62e04;
    border-color: #e62e04;
    color: #fff;
}

.view-btn:hover:not(.active) {
    background: #eee;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.active-filters-label {
    font-size: 12px;
    color: #666;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff4f2;
    border: 1px solid #ffd6cc;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 11px;
    color: #e62e04;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: #e62e04;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.clear-all-filters {
    font-size: 11px;
    color: #e62e04;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
}

/* ===== Product grid (listing page — canonical) ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.product-card {
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s;
    background: #fff;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.p-img {
    position: relative;
    overflow: hidden;
    background-color: #fff0f3;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/cart.png');
}

.p-img img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.p-img img.img-broken {
    opacity: 0;
}

.product-card:hover .p-img img {
    transform: scale(1.05);
}

.p-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e62e04;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
}

.p-tag.yellow {
    background: #ff8c00;
}

.p-tag.green {
    background: #20a010;
}

.p-wish {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-card:hover .p-wish {
    opacity: 1;
}

.p-info {
    padding: 8px;
}

.p-name {
    font-size: 12px;
    line-height: 1.4;
    height: 34px;
    overflow: hidden;
    color: #333;
    margin-bottom: 5px;
}

.p-price {
    font-size: 17px;
    font-weight: 700;
    color: #e62e04;
}

.p-orig {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 4px;
}

.p-disc {
    font-size: 11px;
    color: #20a010;
    margin-left: 4px;
    font-weight: 600;
}

.p-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.p-stars {
    color: #ff8c00;
    font-size: 11px;
}

.p-reviews {
    font-size: 10px;
    color: #999;
    margin-left: 2px;
}

.p-ship {
    font-size: 10px;
    color: #20a010;
    font-weight: 600;
}

.p-add-cart {
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    display: none;
    transition: background 0.15s;
}

.p-add-cart:hover {
    background: #c72600;
}

.product-card:hover .p-add-cart {
    display: block;
}

/* ===== List view ===== */
.product-grid.list-view {
    grid-template-columns: 1fr;
}

.product-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.product-grid.list-view .p-img {
    width: 180px;
    flex-shrink: 0;
}

.product-grid.list-view .p-img img {
    width: 100%;
    height: 180px;
}

.product-grid.list-view .p-info {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

.product-grid.list-view .p-name {
    height: auto;
    font-size: 14px;
    margin-bottom: 8px;
}

.product-grid.list-view .p-add-cart {
    display: block;
    max-width: 180px;
    margin-top: auto;
}

.product-grid.list-view .product-card:hover .p-add-cart {
    display: block;
}

.p-list-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 6px;
    display: none;
}

.product-grid.list-view .p-list-desc {
    display: block;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.page-btn:hover {
    border-color: #e62e04;
    color: #e62e04;
}

.page-btn.active {
    background: #e62e04;
    border-color: #e62e04;
    color: #fff;
    font-weight: 700;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn.prev,
.page-btn.next {
    width: auto;
    padding: 0 12px;
    font-size: 12px;
}

/* ============================================================
   CAROUSEL SECTIONS
   ============================================================ */
.carousel-section {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 16px;
}

.carousel-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 20px 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.05);
}

.carousel-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.carousel-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.carousel-section-title span.cs-icon {
    font-size: 20px;
}

.carousel-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #e62e04;
    border: 1px solid #e62e04;
    border-radius: 3px;
    padding: 5px 14px;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.carousel-view-all:hover {
    background: #e62e04;
    color: #fff;
}

.carousel-track-wrap {
    position: relative;
}

.carousel-track-wrap::before,
.carousel-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    pointer-events: none;
    z-index: 2;
}

.carousel-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.carousel-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px 12px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.carousel-arrow:hover {
    background: #e62e04;
    border-color: #e62e04;
    color: #fff;
    box-shadow: 0 4px 16px rgba(230, 46, 4, 0.3);
}

.carousel-arrow.prev {
    left: -18px;
}

.carousel-arrow.next {
    right: -18px;
}

.carousel-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.carousel-track .product-card {
    min-width: 190px;
    max-width: 190px;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.carousel-track .product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.11);
    transform: translateY(-2px);
}

.carousel-track .product-card .p-img {
    position: relative;
    height: 175px;
    overflow: hidden;
    background: #f5f5f5;
}

.carousel-track .product-card .p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.carousel-track .product-card:hover .p-img img {
    transform: scale(1.05);
}

.carousel-track .product-card .p-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e62e04;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    z-index: 2;
}

.carousel-track .product-card .p-tag.yellow {
    background: #ff8c00;
}

.carousel-track .product-card .p-tag.green {
    background: #20a010;
}

.carousel-track .product-card .p-wish {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
    z-index: 2;
}

.carousel-track .product-card:hover .p-wish {
    opacity: 1;
}

.carousel-track .product-card .p-wish:hover {
    background: #e62e04;
    color: #fff;
}

.carousel-track .product-card .p-info {
    padding: 8px 10px 10px;
}

.carousel-track .product-card .p-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 34px;
    height: auto;
}

.carousel-track .product-card .p-price {
    font-size: 15px;
    font-weight: 700;
    color: #e62e04;
}

.carousel-track .product-card .p-orig {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 4px;
}

.carousel-track .product-card .p-disc {
    font-size: 11px;
    color: #20a010;
    font-weight: 600;
    margin-left: 3px;
}

.carousel-track .product-card .p-meta {
    font-size: 11px;
    color: #777;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-track .product-card .p-stars {
    color: #ff8c00;
    font-size: 11px;
}

.carousel-track .product-card .p-reviews {
    color: #aaa;
    margin-left: 2px;
}

.carousel-track .product-card .p-ship {
    color: #20a010;
    font-size: 10px;
    font-weight: 600;
}

.carousel-divider {
    display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .pd-sidebar {
        width: 210px;
    }

    .pd-gallery {
        width: 360px;
    }
}

@media (max-width: 960px) {

    .filter-sidebar,
    .pd-sidebar {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions .hdr-dropdown-wrap {
        display: none;
    }

    .search-tags,
    .search-wrap {
        display: none;
    }

    .mobile-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-main {
        justify-content: space-between;
    }

    .nav-bar {
        display: none;
    }

    .pd-wrap {
        flex-direction: column;
        padding: 0 8px;
        gap: 10px;
    }

    .pd-gallery {
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .pd-info {
        gap: 10px;
    }

    .pd-title {
        font-size: 17px;
    }

    .pd-current-price {
        font-size: 26px;
    }

    .pd-services {
        grid-template-columns: 1fr;
    }

    .pd-cta-row .btn-wishlist {
        display: none;
    }

    .mobile-buy-bar {
        display: flex;
    }

    body {
        padding-bottom: 72px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-tabs-wrap {
        padding: 0 8px;
    }

    .pd-tabs-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pd-tabs-header::-webkit-scrollbar {
        display: none;
    }

    .pd-tab-btn {
        flex-shrink: 0;
    }

    .desc-features {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .reviews-bars {
        width: 100%;
        min-width: 0;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top .inner {
        flex-direction: column;
        text-align: center;
    }

    .carousel-section {
        margin: 0 auto 14px;
    }

    .carousel-card {
        padding: 14px 14px 18px;
        border-radius: 10px;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-track-wrap::before,
    .carousel-track-wrap::after {
        width: 16px;
    }

    .carousel-track .product-card {
        min-width: 155px;
        max-width: 155px;
    }

    .carousel-track .product-card .p-img {
        height: 145px;
    }

    .carousel-section-title {
        font-size: 15px;
    }

    .carousel-view-all {
        font-size: 12px;
        padding: 4px 10px;
    }
}

@media (max-width: 640px) {
    .newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .pd-gallery {
        padding: 10px;
    }

    .pd-thumbs .pd-thumb {
        width: 50px;
        height: 50px;
    }

    .pd-tab-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .pd-tab-content {
        padding: 14px;
    }

    .reviews-bars {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
    }

    .pd-variant-label {
        width: 58px;
        font-size: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-right {
        align-self: flex-end;
    }

    .product-grid.list-view .p-img {
        width: 120px;
    }

    .product-grid.list-view .p-img img {
        height: 120px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 20px 12px;
    }

    .carousel-track .product-card {
        min-width: 138px;
        max-width: 138px;
    }

    .carousel-track .product-card .p-img {
        height: 128px;
    }
}