* {
    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-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 6px 8px;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 4px;
}

.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;
    min-width: 0;
}

.mobile-search-inner button {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 0 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

/* ===== HDR BUTTONS ===== */
.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;
}

.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;
}

.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 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;
}

.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 {
    font-size: 12px;
    color: #ccc;
}

.breadcrumb .current {
    font-size: 12px;
    color: #333;
}

/* ===== CHECKOUT STEPS ===== */
.checkout-steps {
    max-width: 1200px;
    margin: 0 auto 14px;
    padding: 0 16px;
}

.steps-bar {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #e8e8e8;
    color: #bbb;
    flex-shrink: 0;
}

.step.active .step-circle {
    background: #e62e04;
    border-color: #e62e04;
    color: #fff;
}

.step.done .step-circle {
    background: #20a010;
    border-color: #20a010;
    color: #fff;
}

.step-label {
    font-size: 13px;
    font-weight: 700;
    color: #bbb;
    white-space: nowrap;
}

.step.active .step-label {
    color: #e62e04;
}

.step.done .step-label {
    color: #20a010;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: #e8e8e8;
    margin: 0 6px;
    flex-shrink: 0;
}

.step-connector.done {
    background: #20a010;
}

/* ===== CART LAYOUT ===== */
.cart-wrap {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ===== CART ITEMS ===== */
.cart-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Select all bar */
.cart-select-bar {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-select-bar label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
}

.cart-select-bar input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: #e62e04;
    cursor: pointer;
}

.cart-item-count {
    font-size: 13px;
    color: #999;
    margin-left: 4px;
    font-weight: 400;
}

.cart-clear-btn {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
}

.cart-clear-btn:hover {
    color: #e62e04;
}

/* Seller group */
.cart-seller-group {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.cart-seller-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    background: #fafafa;
}

.cart-seller-header input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: #e62e04;
    cursor: pointer;
    flex-shrink: 0;
}

.cart-seller-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-seller-badge {
    font-size: 10px;
    background: #fff3cd;
    color: #856404;
    border-radius: 3px;
    padding: 1px 6px;
    font-weight: 600;
}

.cart-seller-shipping {
    margin-left: auto;
    font-size: 12px;
    color: #20a010;
    font-weight: 600;
}

/* Cart item row */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.12s;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: #fafafa;
}

.cart-item-check {
    flex-shrink: 0;
    padding-top: 4px;
}

.cart-item-check input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: #e62e04;
    cursor: pointer;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
    cursor: pointer;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.cart-item-name:hover {
    color: #e62e04;
}

.cart-item-attrs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cart-item-attr {
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    border-radius: 3px;
    padding: 2px 7px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-action-link {
    font-size: 12px;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
    padding: 0;
}

.cart-action-link:hover {
    color: #e62e04;
}

.cart-action-sep {
    width: 1px;
    height: 12px;
    background: #e0e0e0;
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #e62e04;
    white-space: nowrap;
}

.cart-item-orig {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
}

.cart-item-discount {
    font-size: 11px;
    color: #fff;
    background: #e62e04;
    border-radius: 3px;
    padding: 1px 6px;
    font-weight: 700;
}

.cart-item-stock {
    font-size: 11px;
    color: #ff8c00;
    white-space: nowrap;
    margin-top: 4px;
}

.qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-ctrl button {
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    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: 42px;
    height: 30px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    outline: none;
}

/* Coupon row inside seller group */
.cart-coupon-row {
    padding: 10px 16px;
    background: #fff8f7;
    border-top: 1px solid #fce0d8;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-coupon-row span {
    font-size: 12px;
    color: #e62e04;
    font-weight: 600;
}

.coupon-input-wrap {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
    min-width: 180px;
    max-width: 320px;
}

.coupon-input-wrap input {
    flex: 1;
    border: none;
    padding: 7px 10px;
    font-size: 12px;
    outline: none;
    color: #333;
}

.coupon-input-wrap button {
    background: #e62e04;
    color: #fff;
    border: none;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.coupon-input-wrap button:hover {
    background: #c72600;
}

/* Saved / Recently Viewed */
.cart-saved-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 14px 16px;
}

.cart-saved-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.cart-saved-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.cart-saved-card {
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.cart-saved-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-saved-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.cart-saved-info {
    padding: 7px;
}

.cart-saved-name {
    font-size: 11px;
    color: #333;
    line-height: 1.4;
    height: 30px;
    overflow: hidden;
}

.cart-saved-price {
    font-size: 13px;
    font-weight: 700;
    color: #e62e04;
    margin-top: 3px;
}

.cart-saved-stock {
    font-size: 10px;
    color: #ff8c00;
    margin-top: 3px;
}

.cart-saved-add:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.cart-item-stock {
    font-size: 11px;
    color: #ff8c00;
    margin-top: 6px;
}

.cart-saved-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.cart-saved-price {
    font-size: 13px;
    font-weight: 700;
    color: #e62e04;
}

.cart-saved-stock {
    font-size: 10px;
    color: #ff8c00;
    text-align: right;
    white-space: nowrap;
    margin-left: auto;
}

.cart-saved-add {
    display: block;
    width: 100%;
    text-align: center;
    background: #ff8c00;
    color: #fff;
    border: none;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 0;
    cursor: pointer;
    margin-top: 5px;
    border-radius: 2px;
}

.cart-saved-add:hover {
    background: #e67a00;
}

/* ===== ORDER SUMMARY SIDEBAR ===== */
.cart-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 80px;
}

.cart-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 80px;
    /* Sticky is now safe — cart-wrap no longer contains the tall carousels */
    align-self: flex-start;
}


.summary-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px;
}

.summary-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.summary-row .sr-label {
    color: #888;
}

.summary-row .sr-val {
    color: #333;
    font-weight: 600;
}

.summary-row .sr-val.savings {
    color: #20a010;
}

.summary-row .sr-val.free {
    color: #20a010;
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 10px 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.summary-total-row .st-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.summary-total-row .st-val {
    font-size: 22px;
    font-weight: 900;
    color: #e62e04;
}

.summary-vat {
    font-size: 11px;
    color: #bbb;
    text-align: right;
    margin-bottom: 14px;
}

.btn-checkout {
    display: block;
    width: 100%;
    text-align: center;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-checkout:hover {
    background: #c72600;
}

.btn-checkout:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.summary-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #888;
    margin-top: 10px;
}

.summary-payment-icons {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.pay-icon {
    background: #f0f0f0;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 10px;
    color: #555;
    font-weight: 600;
}

.promo-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fef0;
    border: 1px solid #20a010;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
    color: #20a010;
    font-weight: 600;
}

.promo-applied button {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}

.promo-applied button:hover {
    color: #e62e04;
}

/* ===== EMPTY CART ===== */
.cart-empty {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 60px 20px;
    text-align: center;
    display: none;
}

.cart-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.cart-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.cart-empty p {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.btn-continue-shopping {
    display: inline-block;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-continue-shopping:hover {
    background: #c72600;
}

/* ===== 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;
}

/* ===== 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;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f8f8f8;
}

.mobile-nav-item:hover {
    background: #fff4f2;
    color: #e62e04;
}

.mn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mn-icon {
    font-size: 16px;
}

.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-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-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;
    cursor: pointer;
}

/* ===== MOBILE STICKY CHECKOUT BAR ===== */
.mobile-checkout-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 10px 16px;
    z-index: 500;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.mobile-checkout-bar .mcb-total {
    flex: 1;
}

.mobile-checkout-bar .mcb-label {
    font-size: 11px;
    color: #888;
}

.mobile-checkout-bar .mcb-price {
    font-size: 18px;
    font-weight: 900;
    color: #e62e04;
    line-height: 1;
}

.mobile-checkout-bar .btn-checkout {
    padding: 12px 20px;
    font-size: 14px;
    width: auto;
    display: inline-block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .cart-sidebar {
        display: none;
    }

    .mobile-checkout-bar {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }

    .cart-saved-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-wrap {
        display: none;
    }

    .mobile-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-main {
        justify-content: space-between;
    }

    .nav-bar {
        display: none;
    }

    .cart-wrap {
        padding: 0 8px;
    }

    .checkout-steps {
        padding: 0 8px;
    }

    .breadcrumb {
        padding: 0 8px;
    }

    .step-label {
        display: none;
    }

    .step-connector {
        width: 30px;
    }

    .cart-saved-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .cart-item {
        gap: 10px;
    }

    .cart-item-img {
        width: 64px;
        height: 64px;
    }

    .cart-item-price {
        font-size: 15px;
    }

    .cart-item-right {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-top .inner {
        flex-direction: column;
        text-align: center;
    }
}

* {
    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;
}

.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-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 6px 8px;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 4px;
}

.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;
}

.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;
}

.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;
}

.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;
}


/* ===== 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;
}

.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-nav-item.open .mn-arr {
    transform: rotate(90deg);
    color: #e62e04;
}

.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;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #999;
}

.breadcrumb a:hover {
    color: #e62e04;
    text-decoration: underline;
}

.breadcrumb .sep {
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
}

/* ===== PAGE LAYOUT ===== */
.page-layout {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ===== FILTER SIDEBAR ===== */
.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 ===== */
.products-main {
    flex: 1;
    min-width: 0;
}

/* Toolbar */
.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 */
.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 */
.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;
}

/* Product card image fallback background */
.p-img {
    background-color: #fff0f3;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/cart.png');

}

.p-img img.img-broken {
    opacity: 0;
}


.p-img img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.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;
}

/* ===== 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;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .filter-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 {
        display: none;
    }

    .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;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top .inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
    }

    .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;
    }
}

/* ── Newsletter Section ── */
.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;
}

.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;
}

@media (max-width: 640px) {
    .newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }

    .newsletter-form button {
        white-space: nowrap;
        flex-shrink: 0;
    }
}


/* ===== CAROUSEL ===== */
.carousel-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.carousel-viewport {
    flex: 1;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 12px;
}

/* Fixed pixel width — never use % inside a scroll container */
.carousel-track .cart-saved-card {
    flex: 0 0 180px;
    width: 180px;
    min-width: 180px;
}

.carousel-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.carousel-btn:hover {
    background: #f0f0f0;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}


/* ===== CAROUSEL SECTIONS (matches product-detail style) ===== */
.carousel-section {
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 0;
}

.carousel-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.carousel-section-title {
    font-size: 17px;
    font-weight: 800;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.carousel-section-title .cs-icon {
    font-size: 19px;
}

.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;
}

/* Override the old .carousel-wrap / .carousel-viewport with the new track-wrap */
.carousel-track-wrap {
    position: relative;
}

.carousel-track-wrap::before,
.carousel-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    pointer-events: none;
    z-index: 2;
}

.carousel-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, #f5f5f5, transparent);
}

.carousel-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, #f5f5f5, transparent);
}

/* Override the old .carousel-track inside .cart-saved-section */
.carousel-section .carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px 12px;
}

.carousel-section .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;
    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;
}

/* Section doesn't have enough products to scroll or "View All" through yet */
.carousel-arrow.carousel-control-disabled,
.carousel-view-all.carousel-control-disabled {
    display: none !important;
}

/* Product cards inside cart carousels */
.carousel-section .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-section .carousel-track .product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.11);
    transform: translateY(-2px);
}

.carousel-section .carousel-track .p-img {
    position: relative;
    height: 175px;
    overflow: hidden;
    background: #f5f5f5;
}

.carousel-section .carousel-track .p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.carousel-section .carousel-track .product-card:hover .p-img img {
    transform: scale(1.05);
}

.carousel-section .carousel-track .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-section .carousel-track .p-tag.yellow {
    background: #ff8c00;
}

.carousel-section .carousel-track .p-tag.green {
    background: #20a010;
}

.carousel-section .carousel-track .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: 22px;
    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-section .carousel-track .product-card:hover .p-wish {
    opacity: 1;
}

.carousel-section .carousel-track .p-wish:hover {
    background: #e62e04;
    color: #fff;
}

.carousel-section .carousel-track .p-info {
    padding: 8px 10px 10px;
}

.carousel-section .carousel-track .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-section .carousel-track .p-price {
    font-size: 15px;
    font-weight: 700;
    color: #e62e04;
}

.carousel-section .carousel-track .p-orig {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 4px;
}

.carousel-section .carousel-track .p-disc {
    font-size: 11px;
    color: #20a010;
    font-weight: 600;
    margin-left: 3px;
}

.carousel-section .carousel-track .p-meta {
    font-size: 11px;
    color: #777;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-section .carousel-track .p-stars {
    color: #ff8c00;
    font-size: 11px;
}

.carousel-section .carousel-track .p-reviews {
    color: #aaa;
    margin-left: 2px;
}

.carousel-section .carousel-track .p-ship {
    color: #20a010;
    font-size: 10px;
    font-weight: 600;
}

.carousel-divider {
    margin: 0 0 20px;
    border: none;
    border-top: 1px solid #ebebeb;
}

@media (max-width: 768px) {
    .carousel-arrow {
        display: none;
    }

    .carousel-track-wrap::before,
    .carousel-track-wrap::after {
        width: 16px;
    }

    .carousel-section .carousel-track .product-card {
        min-width: 155px;
        max-width: 155px;
    }

    .carousel-section .carousel-track .p-img {
        height: 145px;
    }

    .carousel-section-title {
        font-size: 15px;
    }

    .carousel-view-all {
        font-size: 12px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .carousel-section .carousel-track .product-card {
        min-width: 138px;
        max-width: 138px;
    }

    .carousel-section .carousel-track .p-img {
        height: 128px;
    }
}

/* ===== RECOMMENDATIONS BELOW CART (outside two-col layout) ===== */
.cart-recommendations {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 16px;
}

/* When carousels are inside .cart-recommendations, restore horizontal padding */
.cart-recommendations .carousel-section {
    padding: 0;
    margin-bottom: 24px;
}

/* Also fix the gradient fade — it was using #f5f5f5 already, stays correct */

/* ===== Confirm dialog (used by Remove / Delete Selected) ===== */
.cart-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.cart-confirm-overlay.open {
    display: flex;
}

.cart-confirm-box {
    background: #fff;
    border-radius: 8px;
    width: 340px;
    max-width: 90vw;
    padding: 24px 20px 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.cart-confirm-message {
    font-size: 14px;
    color: #333;
    margin: 0 0 20px;
    line-height: 1.5;
}

.cart-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cart-confirm-cancel,
.cart-confirm-ok {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity 0.15s, background 0.15s;
}

.cart-confirm-cancel {
    background: #f2f2f2;
    color: #333;
    border-color: #e0e0e0;
}

.cart-confirm-cancel:hover {
    background: #e8e8e8;
}

.cart-confirm-ok {
    background: #e62e04;
    color: #fff;
}

.cart-confirm-ok:hover {
    opacity: 0.9;
}