* {
    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;
}

/* ===== FLASH DEAL BANNER (compact) ===== */
.flash-deal-banner {
    background: linear-gradient(90deg, #b31c00 0%, #e62e04 50%, #ff5722 100%);
    padding: 10px 0;
}

.flash-deal-banner .inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.fdb-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fdb-left span {
    font-size: 22px;
}

.fdb-left p {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.fdb-left p small {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

.fdb-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fdb-countdown-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.fdb-timer {
    display: flex;
    align-items: center;
    gap: 3px;
}

.fdb-unit {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    text-align: center;
    min-width: 36px;
}

.fdb-unit .n {
    font-size: 17px;
    font-weight: 900;
    color: #ffcc00;
    line-height: 1;
    display: block;
    font-variant-numeric: tabular-nums;
}

.fdb-unit .l {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    display: block;
    margin-top: 1px;
}

.fdb-sep {
    font-size: 16px;
    font-weight: 900;
    color: #ffcc00;
    margin-bottom: 8px;
}

.fdb-back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.fdb-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== 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;
}

/* ===== PRODUCT DETAIL LAYOUT ===== */
.detail-wrap {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ===== IMAGE GALLERY ===== */
.gallery-col {
    width: 400px;
    flex-shrink: 0;
    position: sticky;
    top: 70px;
}

.gallery-main {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.gallery-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
    cursor: zoom-in;
}

.gallery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(90deg, #e62e04, #ff5722);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffcc00;
    color: #c00;
    font-size: 18px;
    font-weight: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-discount-badge .off-pct {
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.gallery-discount-badge .off-txt {
    font-size: 9px;
    font-weight: 700;
}

.gallery-wish-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s;
}

.gallery-wish-btn:hover {
    transform: scale(1.1);
}

.gallery-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 68px;
    height: 68px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s;
    flex-shrink: 0;
}

.gallery-thumb.active {
    border-color: #e62e04;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.gallery-share-btn,
.gallery-compare-btn {
    flex: 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.gallery-share-btn:hover,
.gallery-compare-btn:hover {
    border-color: #e62e04;
    color: #e62e04;
    background: #fff4f2;
}

/* ===== PRODUCT INFO ===== */
.info-col {
    flex: 1;
    min-width: 0;
}

.info-top-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}

.badge-flash {
    background: linear-gradient(90deg, #e62e04, #ff5722);
    color: #fff;
}

.badge-bestseller {
    background: #fff4e0;
    color: #d07000;
    border: 1px solid #ffe0a0;
}

.badge-freeship {
    background: #e8f8e8;
    color: #20a010;
    border: 1px solid #c0e8c0;
}

.p-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin-bottom: 8px;
}

.p-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.stars {
    color: #ff8c00;
    font-size: 14px;
    letter-spacing: 1px;
}

.rating-score {
    font-size: 14px;
    font-weight: 700;
    color: #ff8c00;
}

.rating-count {
    font-size: 12px;
    color: #999;
}

.rating-sold {
    font-size: 12px;
    color: #999;
    padding-left: 8px;
    border-left: 1px solid #e0e0e0;
}

/* Price block */
.price-block {
    background: #fff8f6;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid #fce8e4;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 32px;
    font-weight: 900;
    color: #e62e04;
    line-height: 1;
}

.price-original {
    font-size: 16px;
    color: #bbb;
    text-decoration: line-through;
}

.price-save {
    font-size: 13px;
    color: #20a010;
    font-weight: 700;
    background: #e8f8e8;
    padding: 3px 8px;
    border-radius: 3px;
}

.price-note {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* Stock bar */
.stock-block {
    margin-bottom: 14px;
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.stock-label {
    font-size: 12px;
    font-weight: 700;
    color: #e62e04;
}

.stock-count {
    font-size: 12px;
    color: #888;
}

.stock-track {
    height: 8px;
    background: #f0e0de;
    border-radius: 4px;
    overflow: hidden;
}

.stock-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #e62e04, #ff5722);
    transition: width 0.5s ease;
}

.stock-sold-row {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.stock-sold {
    font-size: 11px;
    color: #888;
}

.stock-urgency {
    font-size: 11px;
    font-weight: 700;
    color: #e62e04;
}

/* Variants */
.variant-block {
    margin-bottom: 14px;
}

.variant-label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.variant-label span {
    font-weight: 400;
    color: #666;
    margin-left: 6px;
}

.variant-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.variant-opt {
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 12px;
    color: #444;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
}

.variant-opt:hover {
    border-color: #e62e04;
    color: #e62e04;
}

.variant-opt.active {
    border-color: #e62e04;
    color: #e62e04;
    background: #fff4f2;
    font-weight: 700;
}

.variant-opt.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.color-opt {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.color-opt.active {
    border-color: #e62e04;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e62e04;
}

.color-opt:hover {
    transform: scale(1.1);
}

/* Quantity */
.qty-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.qty-label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: #f5f5f5;
    border: none;
    width: 34px;
    height: 34px;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.qty-btn:hover {
    background: #e8e8e8;
}

.qty-input {
    width: 44px;
    height: 34px;
    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-max {
    font-size: 11px;
    color: #e62e04;
}

/* CTA buttons */
.cta-block {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.btn-add-cart {
    flex: 1;
    min-width: 160px;
    background: #ff8c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.15s;
}

.btn-add-cart:hover {
    background: #e67a00;
}

.btn-buy-now {
    flex: 1;
    min-width: 160px;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.15s;
}

.btn-buy-now:hover {
    background: #c72600;
}

/* Assurance row */
.assurance-row {
    display: flex;
    gap: 0;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.assurance-item {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    background: #fff;
    border-right: 1px solid #f0f0f0;
}

.assurance-item:last-child {
    border-right: none;
}

.assurance-item .a-icon {
    font-size: 20px;
    line-height: 1;
}

.assurance-item .a-title {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    margin-top: 3px;
}

.assurance-item .a-sub {
    font-size: 10px;
    color: #888;
    margin-top: 1px;
}

/* Seller card */
.seller-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 14px;
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.seller-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e62e04, #ff8c00);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seller-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.seller-meta {
    font-size: 11px;
    color: #888;
}

.seller-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.seller-stat .val {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.seller-stat .lbl {
    font-size: 10px;
    color: #888;
}

.seller-visit-btn {
    margin-left: auto;
    background: transparent;
    border: 1px solid #e62e04;
    color: #e62e04;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.seller-visit-btn:hover {
    background: #fff4f2;
}

/* ===== PRODUCT TABS ===== */
.tabs-wrap {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    margin-bottom: 16px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
}

.tab-btn:hover {
    color: #e62e04;
}

.tab-btn.active {
    color: #e62e04;
    border-bottom-color: #e62e04;
    background: #fff;
}

.tab-panel {
    display: none;
    padding: 20px;
}

.tab-panel.active {
    display: block;
}

/* Description tab */
.desc-section {
    margin-bottom: 20px;
}

.desc-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f0f0f0;
}

.desc-section p {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.desc-highlights {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.desc-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #444;
}

.desc-highlights li::before {
    content: '✓';
    color: #20a010;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Specs tab */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.specs-table tr:nth-child(even) td {
    background: #fafafa;
}

.specs-table td {
    padding: 9px 12px;
    border: 1px solid #f0f0f0;
    vertical-align: top;
}

.specs-table td:first-child {
    font-weight: 700;
    color: #444;
    width: 38%;
    white-space: nowrap;
}

.specs-table td:last-child {
    color: #555;
}

/* Reviews tab */
.reviews-summary {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.review-score-big {
    text-align: center;
    flex-shrink: 0;
}

.review-score-big .num {
    font-size: 52px;
    font-weight: 900;
    color: #e62e04;
    line-height: 1;
}

.review-score-big .stars {
    font-size: 18px;
    color: #ff8c00;
}

.review-score-big .total {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.review-bars {
    flex: 1;
    min-width: 200px;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.review-bar-row .star-lbl {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    width: 36px;
    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 .pct {
    font-size: 11px;
    color: #999;
    width: 30px;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    padding-bottom: 16px;
    border-bottom: 1px solid #f5f5f5;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e62e04, #ff8c00);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reviewer-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.reviewer-stars {
    color: #ff8c00;
    font-size: 12px;
}

.reviewer-date {
    font-size: 11px;
    color: #bbb;
    margin-left: auto;
}

.review-body {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 6px;
}

.review-variant {
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
}

.review-helpful {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}

.review-helpful button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 11px;
    color: #666;
    margin-left: 6px;
}

.review-helpful button:hover {
    border-color: #e62e04;
    color: #e62e04;
}

/* ===== RELATED FLASH DEALS ===== */
.related-section {
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 16px;
}

.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.related-header h2 {
    font-size: 17px;
    font-weight: 800;
    color: #222;
    display: flex;
    align-items: center;
    gap: 7px;
}

.related-header a {
    font-size: 12px;
    color: #e62e04;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.related-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.related-card:hover {
    box-shadow: 0 4px 14px rgba(230, 46, 4, 0.12);
    border-color: #ffc5b8;
}

.rc-img {
    position: relative;
    overflow: hidden;
}

/* Product card image fallback background */
.rc-img {
    background-color: #fff0f3;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/cart.png');

}

.rc-img img.img-broken {
    opacity: 0;
}

.gallery-main {
    background-color: #fff0f3;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/flash.png');

}

.gallery-main img.img-broken {
    opacity: 0;
}

.gallery-thumb {
    background-color: #fff0f3;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/flash.png');

}

.gallery-thumb img.img-broken {
    opacity: 0;
}

.rc-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.related-card:hover .rc-img img {
    transform: scale(1.05);
}

.rc-tag {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(90deg, #e62e04, #ff5722);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
}

.rc-wish {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


.rc-wish.active {
    color: #e62e04;
}

.rc-info {
    padding: 7px 8px;
}

.rc-name {
    font-size: 11px;
    line-height: 1.4;
    height: 32px;
    overflow: hidden;
    color: #333;
    margin-bottom: 4px;
}

.rc-price {
    font-size: 14px;
    font-weight: 700;
    color: #e62e04;
}

.rc-orig {
    font-size: 10px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 4px;
}

.rc-disc {
    font-size: 10px;
    color: #20a010;
    margin-left: 4px;
    font-weight: 600;
}

.rc-bar {
    margin-top: 5px;
}

.rc-bar-track {
    height: 3px;
    background: #f0e0de;
    border-radius: 2px;
    overflow: hidden;
}

.rc-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e62e04, #ff5722);
    border-radius: 2px;
}

/* ===== 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;
}

/* ===== STICKY BUY BAR (mobile) ===== */
.sticky-buy-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 10px 16px;
    z-index: 500;
    gap: 10px;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.sticky-buy-bar .sb-price {
    font-size: 20px;
    font-weight: 900;
    color: #e62e04;
    flex: 1;
}

.sticky-buy-bar .sb-orig {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
    display: block;
}

.sb-btn {
    padding: 11px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    color: #fff;
}

.sb-cart {
    background: #ff8c00;
}

.sb-buy {
    background: #e62e04;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .detail-wrap {
        flex-direction: column;
    }

    .gallery-col {
        width: 100%;
        position: static;
    }

    .gallery-main-img {
        height: 320px;
    }

    .related-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;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top .inner {
        flex-direction: column;
        text-align: center;
    }

    .sticky-buy-bar {
        display: flex;
    }

    .cta-block {
        display: none;
    }

    .fdb-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .assurance-row {
        flex-wrap: wrap;
    }

    .assurance-item {
        min-width: 45%;
    }

    .desc-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
    }

    .price-current {
        font-size: 26px;
    }

    .gallery-main-img {
        height: 260px;
    }

    .gallery-thumbs {
        gap: 4px;
    }

    .gallery-thumb {
        width: 56px;
        height: 56px;
    }

    .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;
    }
}