* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.app-body {
    background-color: #e62e04;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 8px 8px;
}

/* .app-body {
            background-image: url('img/background.jpg'); 
            background-size:cover; 
            background-position:center; 
            border-radius: 0 0 8px 8px;
        } */




a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: Arial, sans-serif;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #333;
    color: #ccc;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #444;
}

.top-bar .inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar a,
.top-bar span {
    color: #ccc;
    font-size: 12px;
    padding: 0 10px;
    line-height: 28px;
    border-right: 1px solid #555;
    display: inline-block;
}

.top-bar a:first-child,
.top-bar span:first-child {
    border-left: 1px solid #555;
}

.top-bar-right a:last-child {
    border-right: 1px solid #555;
}

.top-bar a:hover {
    color: #fff;
}

/* ===== HEADER ===== */
header {
    background: #e62e04;
    position: sticky;
    top: 0;
    z-index: 300;
}

.header-main {
    max-width: 1200px;
    margin: auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    padding: 4px 8px;
    flex-shrink: 0;
    line-height: 1;
    cursor: pointer;
}

.logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}

.logo-text span {
    color: #ffcc00;
}

.logo-sub {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1px;
}

.search-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-bar {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #ff8c00;
    background: #fff;
}

.search-cat-select {
    border: none;
    border-right: 1px solid #ddd;
    padding: 0 10px;
    font-size: 12px;
    color: #333;
    background: #f5f5f5;
    outline: none;
    cursor: pointer;
    min-width: 110px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    color: #333;
    min-width: 0;
}

.search-btn {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.search-btn:hover {
    background: #e67a00;
}

.search-tags {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.search-tags a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.search-tags a:hover {
    color: #fff;
    text-decoration: underline;
}

.header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

/* ===== MOBILE SEARCH ICON ===== */
.mobile-search-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 6px 8px;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.15s;
}

.mobile-search-btn:hover {
    background: rgba(0, 0, 0, 0.15);
}

.mobile-search-drop {
    display: none;
    background: #c72600;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-search-drop.open {
    display: block;
}

.mobile-search-inner {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #ff8c00;
    background: #fff;
}

.mobile-search-inner input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    color: #333;
    min-width: 0;
}

.mobile-search-inner button {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 0 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.mobile-search-inner button:hover {
    background: #e67a00;
}

/* ===== 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;
}

/* ===== DROPDOWN SHARED ===== */
.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-vendor-sign-btn {
    display: block;
    width: 100%;
    background: #ff7c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    margin-top: 5px;
}

.mobile-vendor-sign-btn {

    display: block;
    width: 100%;
    background: #ff7c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    margin-top: 5px;

}

.acct-vendor-sign-btn:hover {
    background: #fb6100;
}




.acct-vendor-login {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #e62e04;
    margin-top: 6px;
}

.acct-vendor-login:hover {
    text-decoration: underline;
}

.acct-register {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #e62e04;
    margin-top: 6px;
}

.acct-register:hover {
    text-decoration: underline;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s;
}

.dropdown-menu-item:hover {
    background: #fff4f2;
    color: #e62e04;
}

.dropdown-menu-item .dm-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 6px 0;
}

.locale-dropdown {
    min-width: 280px;
    padding: 16px;
}

.locale-group {
    margin-bottom: 14px;
}

.locale-group:last-child {
    margin-bottom: 0;
}

.locale-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.locale-select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 13px;
    color: #333;
    background: #fafafa;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.locale-select:focus {
    border-color: #e62e04;
}

.locale-save-btn {
    width: 100%;
    background: #e62e04;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 14px;
}

.locale-save-btn:hover {
    background: #c72600;
}

/* ===== NAV BAR ===== */
.nav-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
    z-index: 200;
}

.nav-bar .inner {
    max-width: 1200px;
    margin: auto;
    padding-left: 16px;
    display: flex;
    align-items: stretch;
}

/* ===== NAV CATEGORIES HAMBURGER ===== */
.nav-cat-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.nav-cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 42px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #e62e04;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    line-height: 1;
}

.nav-cat-btn:hover,
.nav-cat-btn.active {
    background: #c72600;
}

.nav-cat-btn .cat-burger {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    position: relative;
    top: 0;
}

.nav-cat-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
    z-index: 500;
    border-radius: 0 0 6px 6px;
    padding: 6px 0;
    overflow: visible;
}

.nav-cat-dropdown.open {
    display: block;
}

.nav-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s;
    position: relative;
}

.nav-cat-item:hover,
.nav-cat-item.nav-cat-item-hover {
    background: #fff4f2;
    color: #e62e04;
}

.nav-cat-item .nci-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cat-item .nci-icon {
    font-size: 15px;
}

.nav-cat-item .nci-arr {
    font-size: 10px;
    color: #bbb;
}

.nav-cat-item:hover .nci-arr,
.nav-cat-item.nav-cat-item-hover .nci-arr {
    color: #e62e04;
}

.nav-cat-sub {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 580px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 3px solid #e62e04;
    box-shadow: 6px 0 20px rgba(0, 0, 0, 0.12);
    z-index: 600;
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 20px;
    align-content: flex-start;
    border-radius: 0 6px 6px 0;
    min-height: 100%;
}

.nav-cat-item-hover .nav-cat-sub {
    display: flex;
}

.nav-cat-sub-col {
    min-width: 130px;
}

.nav-cat-sub-col h4 {
    font-size: 14px;
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-cat-sub-col a {
    display: block;
    font-size: 12px;
    color: #555;
    padding: 3px 0;
}

.nav-cat-sub-col a:hover {
    color: #e62e04;
}

.quick-nav {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.quick-nav a {
    font-size: 13px;
    padding: 0 14px;
    line-height: 42px;
    white-space: nowrap;
    color: #333;
    border-bottom: 2px solid transparent;
    display: block;
}

.quick-nav a:hover {
    color: #e62e04;
    border-bottom-color: #e62e04;
}

.quick-nav a.hot {
    color: #e62e04;
    font-weight: 600;
}

.quick-nav-more {
    position: relative;
    display: flex;
    align-items: stretch;
}

.quick-nav-more-btn {
    font-size: 13px;
    padding: 0 14px;
    white-space: nowrap;
    color: #333;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 42px;
    font-family: Arial, sans-serif;
    transition: color 0.15s;
}

.quick-nav-more:hover .quick-nav-more-btn {
    color: #e62e04;
    border-bottom-color: #e62e04;
}

.more-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
    min-width: 210px;
    z-index: 400;
    padding: 8px 0;
}

.more-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 22px;
    width: 11px;
    height: 11px;
    background: #fff;
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    transform: rotate(45deg);
}

.quick-nav-more:hover .more-dropdown {
    display: block;
}

.more-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    transition: background 0.12s, color 0.12s;
}

.more-dropdown a:hover {
    background: #fff4f2;
    color: #e62e04;
}

.more-dropdown .md-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.more-dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

/* ===== HOME LAYOUT ===== */
.home-layout {
    max-width: 1200px;
    margin: 12px auto;
    padding: 0 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.home-sidebar-wrap {
    position: relative;
    width: 180px;
    flex-shrink: 0;
    height: 350px;
    z-index: 100;
}

.home-sidebar {
    width: 180px;
    height: 350px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.hs-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: background 0.12s;
    user-select: none;
}

.hs-item:hover,
.hs-item.active {
    background: #fff4f2;
    color: #e62e04;
    border-left-color: #e62e04;
}

.hs-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hs-icon {
    font-size: 15px;
}

.hs-arr {
    font-size: 10px;
    color: #bbb;
}

.hs-item:hover .hs-arr,
.hs-item.active .hs-arr {
    color: #e62e04;
}

.hs-sub-panel {
    display: none;
    position: absolute;
    top: 0;
    left: 180px;
    width: 580px;
    height: 350px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 3px solid #e62e04;
    box-shadow: 6px 0 20px rgba(0, 0, 0, 0.14);
    z-index: 200;
    padding: 16px 20px;
    overflow-y: auto;
    flex-wrap: wrap;
    gap: 20px;
    align-content: flex-start;
    border-radius: 0 4px 4px 0;
}

.hs-sub-panel.active {
    display: flex;
}

.hs-sub-col {
    min-width: 120px;
}

.hs-sub-col h4 {
    font-size: 14px;
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.hs-sub-col a {
    display: block;
    font-size: 12px;
    color: #555;
    padding: 3px 0;
}

.hs-sub-col a:hover {
    color: #e62e04;
}

/* ===== HERO CAROUSEL ===== */
.hero-area {
    flex: 1;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 350px;
    min-width: 0;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent 60%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 70px;
    transform: translateY(-50%);
    color: #fff;
}

.hero-badge {
    display: inline-block;
    background: #ffcc00;
    color: #333;
    font-size: 19px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 25px;
    font-weight: 900;
    line-height: 1.3;
    max-width: 420px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    font-weight: 800;
}

.hero-btn {
    background: #e62e04;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 2px;
    cursor: pointer;
}

.hero-btn:hover {
    background: #c72600;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.hero-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: block;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dots span.active {
    background: #fff;
    width: 18px;
    border-radius: 4px;
}

/* ===== MINI BANNERS ===== */
.hero-banners {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 180px;
    flex-shrink: 0;
    height: 350px;
}

.mini-banner {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.mini-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.mini-banner:hover img {
    transform: scale(1.04);
}

.mini-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
}

.mini-banner-overlay span {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.mini-banner-overlay .disc {
    color: #ffcc00;
    font-size: 14px;
    font-weight: 900;
}

/* ===== TRUST BAR ===== */
.trust-bar {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 16px;
}

.trust-bar-inner {
    background: #fff;
    border-radius: 4px;
    display: flex;
}

.trust-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-right: 1px solid #f0f0f0;
}

.trust-item:last-child {
    border-right: none;
}

.trust-item .t-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.trust-item h4 {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.trust-item p {
    font-size: 11px;
    color: #999;
    margin-top: 1px;
}

/* ===== SECTIONS ===== */
.section {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 16px;
}

.section-box {
    background: #fff;
    border-radius: 4px;
    padding: 16px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.section-title a {
    font-size: 12px;
    color: #e62e04;
}

.section-title a:hover {
    text-decoration: underline;
}

/* Category Grid */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}

.cat-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: 4px;
    transition: background 0.15s;
}

.cat-grid-item:hover {
    background: #fff4f2;
}

.cat-img-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

.cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.cat-grid-item:hover .cat-img-wrap img {
    transform: scale(1.1);
}

.cat-grid-item span {
    font-size: 11px;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

/* Flash Deals */
.deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.deals-title {
    font-size: 20px;
    font-weight: 900;
    color: #e62e04;
}

/* NEW wrapper: groups "Ending Soon!" + counter + View all on the right */
.deals-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.deals-subtitle {
    font-size: 18px;
    color: #e62e04;
    white-space: nowrap;
    font-weight: 900;
    margin-bottom: 5px;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    /* margin-left: auto removed — now handled by deals-right wrapper */
}

/* MOBILE: title on its own line, deals-right (Ending Soon + counter + View all) drops below */
@media (max-width: 768px) {
    .deals-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .deals-right {
        width: 100%;
        justify-content: space-between;
    }
}

.time-block {
    text-align: center;
}

.time-block .num {
    background: #222;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: monospace;
    min-width: 30px;
    display: block;
    text-align: center;
}

.time-block .lbl {
    font-size: 9px;
    color: #999;
    margin-top: 2px;
    display: block;
}

.colon {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.flash-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.flash-card {
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s;
    background: #fff;
}

.flash-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flash-img {
    position: relative;
}

.flash-img img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.flash-card:hover img {
    transform: scale(1.05);
}

.flash-disc-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #e62e04, #ff6a00);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 3px 0;
}

.flash-info {
    padding: 8px;
}

.flash-price {
    font-size: 15px;
    font-weight: 700;
    color: #e62e04;
}

.flash-orig {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 4px;
}

.flash-sold-wrap {
    margin-top: 5px;
}

.flash-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.flash-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #e62e04, #ff6a00);
    border-radius: 2px;
}

.flash-sold-txt {
    font-size: 10px;
    color: #e62e04;
    margin-top: 2px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 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;
}

.p-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

/* 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;
}

.flash-img {
    background-color: #fff0f3;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/flash.png');

}

.flash-img img.img-broken {
    opacity: 0;
}

.cat-img-wrap {
    background-color: #fff0f3;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/cart.png');

}

.cat-img-wrap img.img-broken {
    opacity: 0;
}


.mini-banner {
    background-color: #fff0f3;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/cart.png');

}

.mini-banner img.img-broken {
    opacity: 0;
}

.carousel-slide {
    background-color: #fff0f3;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/img/cart.png');
}

.carousel-slide img.img-broken {
    opacity: 0;
}


.product-card:hover .p-img img {
    transform: scale(1.05);
}

.p-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e62e04;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
}

.p-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;
    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-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;
}

/* ===== PRODUCT CAROUSEL SECTION ===== */
.prod-carousel-outer {
    position: relative;
}

.prod-carousel-viewport {
    overflow: hidden;
}

.prod-carousel-track {
    display: flex;
    gap: 8px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.prod-carousel-item {
    flex-shrink: 0;
    /* 5 items visible: (100% - 4 gaps of 8px) / 5 */
    width: calc(20% - 7px);
}

/* Arrow buttons on sides (desktop) */
.pc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
    line-height: 1;
}

.pc-arrow:hover {
    background: #e62e04;
    color: #fff;
    border-color: #e62e04;
    box-shadow: 0 4px 14px rgba(230, 46, 4, 0.3);
}

.pc-arrow.disabled {
    opacity: 0.25;
    pointer-events: none;
}

.pc-arrow-prev {
    left: -19px;
}

.pc-arrow-next {
    right: -19px;
}

/* Section title actions row */
.section-title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-actions a {
    font-size: 12px;
    color: #e62e04;
}

.section-title-actions a:hover {
    text-decoration: underline;
}

/* Inline arrow buttons in header (mobile) */
.pc-title-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.pc-title-arrow:hover {
    background: #e62e04;
    color: #fff;
    border-color: #e62e04;
}

.pc-title-arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Tab strip */
.pc-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pc-tab {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.pc-tab.active,
.pc-tab:hover {
    background: #e62e04;
    color: #fff;
    border-color: #e62e04;
}

/* Dots indicator */
.pc-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 14px;
}

.pc-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ddd;
    display: block;
    cursor: pointer;
    transition: all 0.25s;
}

.pc-dots span.active {
    background: #e62e04;
    width: 18px;
    border-radius: 4px;
}

/* ===== 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;
}

/* ===== 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;
}




/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .hero-banners {
        display: none;
    }
}

@media (max-width: 960px) {
    .home-sidebar-wrap {
        display: none;
    }

    .flash-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cat-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* 4 items on tablet */
    .prod-carousel-item {
        width: calc(25% - 6px);
    }

    .pc-arrow-prev {
        left: -14px;
    }

    .pc-arrow-next {
        right: -14px;
    }
}

@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;
    }

    .hero-area {
        height: 230px;
        border-radius: 0;
    }

    .home-layout {
        padding: 0;
        margin: 6px 0;
    }

    .hero-content h2 {
        font-size: 20px;
        max-width: 240px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .hero-btn {
        padding: 8px 18px;
        font-size: 12px;
    }

    .flash-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .trust-bar-inner {
        flex-wrap: wrap;
    }

    .trust-item {
        min-width: 50%;
        border-bottom: 1px solid #f0f0f0;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top .inner {
        flex-direction: column;
        text-align: center;
    }

    /* Product carousel mobile: native scroll */
    .prod-carousel-viewport {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .prod-carousel-viewport::-webkit-scrollbar {
        display: none;
    }

    .prod-carousel-track {
        transition: none;
        flex-wrap: nowrap;
        width: max-content;
        /* Reset transform on mobile to let native scroll work */
    }

    /* 2.3 items visible on mobile */
    .prod-carousel-item {
        width: 160px;
    }

    /* Hide side arrows on mobile */
    .pc-arrow {
        display: none;
    }

    /* Dots on mobile */
    .pc-dots {
        display: none;
    }
}

@media (max-width: 600px) {
    .cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cat-img-wrap {
        width: 52px;
        height: 52px;
    }

    .flash-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-img img {
        height: 160px;
    }

    .section {
        padding: 0 8px;
    }

    .trust-bar {
        padding: 0 8px;
    }

    .prod-carousel-item {
        width: 145px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
    }

    .search-cat-select {
        display: none;
    }

    .hero-area {
        height: 200px;
    }

    .hero-content {
        left: 16px;
    }

    .hero-content h2 {
        font-size: 17px;
        max-width: 200px;
    }

    .hero-badge {
        font-size: 10px;
    }

    .trust-item {
        min-width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 20px 12px;
    }

    .hdr-btn .sublabel {
        display: none;
    }

    .prod-carousel-item {
        width: 135px;
    }
}

@media (max-width: 380px) {
    .header-main {
        gap: 8px;
        padding: 8px 10px;
    }

    .hdr-btn {
        padding: 6px 7px;
    }

    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ── 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;
    }
}