* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
     background:white !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #111;
    line-height: 1.5;
    padding-bottom: 75px;
    -webkit-font-smoothing: antialiased;
}

/* ============================================ */
/* PAGE WRAPPER                                 */
/* ============================================ */
.page-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ============================================ */
/* SECTION HEADER                               */
/* ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 8px;
    margin: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #f97316;
    font-size: 16px;
}

.view-all-link {
    display: none !important;
}

/* ============================================ */
/* HERO BANNER — FULL WIDTH, NO OVERLAY        */
/* ============================================ */
.hero-banner {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-radius: 0;
    overflow: hidden;
    min-height: 180px;
    background-size: cover !important;
    background-position: center !important;
}

/* overlay removed – no background overlay */
.hero-banner-overlay {
    display: none;
}

.hero-banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 20px;
    min-height: 180px;
    max-width: 1200px;
    margin: 0 auto;
   background-color: #f5f5f53f;
}

/* Left: Image */
.hero-banner-image {
    flex: 0 0 120px;
    position: relative;
}

.hero-banner-image a {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
}

.hero-banner-image img {
    width: 100%;
    height:100%;
    object-fit: cover;
}

.hero-banner-badge i {
    margin-right: 3px;
    font-size: 10px;
}

/* Center: Info */
.hero-banner-info {
    flex: 1;
    min-width: 0;
}

.hero-banner-tag {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.hero-banner-tag .tag-hot {
    background: #f97316;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.hero-banner-tag .tag-discount {
    background: rgba(17, 17, 17, 0.1);
    color: #f97316;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
}

.hero-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-banner-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-banner-title a:hover {
    color: #f97316;
}

.hero-banner-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.hero-banner-category i {
    color: #f97316;
    margin-right: 4px;
}

.hero-banner-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.hero-banner-price .current-price {
    font-size: 22px;
    font-weight: 700;
    color: #f97316;
}

.hero-banner-price .old-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
}

.hero-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f97316;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.hero-banner-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

.hero-banner-btn:active {
    transform: scale(0.97);
}

/* Right: Timer — No Blur */
.hero-banner-timer {
    flex: 0 0 200px;
    text-align: center;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.timer-label {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;

}

.timer-label i {
    color: #f97316;
    margin-right: 4px;
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 50px;
}

.timer-number {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.timer-unit .timer-label {
    font-size: 8px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

.timer-separator {
    font-size: 20px;
    font-weight: 700;
    color: #999;
    padding: 0 2px;
}

.timer-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: #666;
}

.timer-footer .timer-stock {
    color: #f97316;
    font-weight: 600;
}

.timer-footer .timer-urgency {
    color: #f97316;
    font-weight: 600;
}

/* ============================================ */
/* PRODUCTS GRID                               */
/* ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    width: 100%;
   
}

/* ============================================ */
/* PRODUCT CARD                                 */
/* ============================================ */
.product-card {
    background: white;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #eef2f6;
    border-right: 1px solid #eef2f6;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.4s ease forwards;
}

.product-card:nth-child(even) {
    border-right: none;
}

.product-card:active {
    background: #fafafa;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-img a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.03);
}

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    pointer-events: none;
}

.badge {
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 4px;
}

.badge-danger {
    background: #f97316;
    color: white;
}

.badge-deal {
    background: #f97316;
    color: white;
}

.badge-success {
    background: #27ae60;
    color: white;
}

.badge-warning {
    background: #f39c12;
    color: white;
}

.product-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.action-btn:active {
    transform: scale(0.9);
    background: #f97316;
    color: white;
}

.product-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
    min-height: 34px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:active {
    color: #f97316;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.product-old-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.btn-add-to-cart {
    width: 100%;
    padding: 8px;
    border: none;
    background: #f97316;
    color: white;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    border-radius: 25px;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
}

.btn-add-to-cart:active {
    opacity: 0.7;
    transform: scale(0.97);
}

.btn-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-add-to-cart.btn-loading {
    opacity: 0.7;
    cursor: wait;
}

/* ============================================ */
/* EMPTY STATE                                 */
/* ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 14px;
    margin: 20px 16px;
    border: 1px solid #e5e5e5;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 48px;
    color: #f97316;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 18px;
    color: #111;
    margin-bottom: 4px;
}

.empty-state p {
    color: #737373;
    font-size: 14px;
}

/* ============================================ */
/* LOAD MORE                                   */
/* ============================================ */
.load-more-container {
    text-align: center;
    padding: 16px 20px 24px;
}

.load-more-btn {
    background: #f97316;
    color: white;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.2s;
}

.load-more-btn:active {
    opacity: 0.7;
    transform: scale(0.97);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.load-more-info {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* ============================================ */
/* RESPONSIVE                                  */
/* ============================================ */
@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 16px;
    }
    .product-card {
        border-radius: 14px;
        border: 1px solid #eef2f6;
     
    }
    .product-card:nth-child(even) {
        border-right: 1px solid #eef2f6;
    }
    .product-img {
        border-radius: 14px 14px 0 0;
    }
    .btn-add-to-cart {
        border-radius: 8px;
    }
    .section-header {
        padding: 12px 0 8px;
        max-width: 1200px;
        margin: 0 auto;
    }
    .hero-banner-inner {
        padding: 24px 20px;
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
        padding: 20px;
        max-width: 1200px;
        margin: 0 auto;
    }
    .hero-banner-image {
        flex: 0 0 140px;
    }
    .hero-banner-image a {
        width: 140px;
        height: 140px;
    }
    .hero-banner-title {
        font-size: 20px;
    }
    .hero-banner-price .current-price {
        font-size: 24px;
    }
    .timer-number {
        font-size: 28px;
    }
    .view-all-link {
        display: inline-flex !important;
        font-size: 13px;
        font-weight: 600;
        color: #f97316;
        text-decoration: none;
        align-items: center;
        gap: 4px;
    }
    .view-all-link:hover {
        color: #ea580c;
    }
    .hero-banner-inner {
        padding: 24px 32px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
        padding: 24px;
    }
    .hero-banner {
        min-height: 200px;
    }
    .hero-banner-inner {
        padding: 30px 40px;
        min-height: 200px;
      
    }
    .hero-banner-image {
        flex: 0 0 160px;
    }
    .hero-banner-image a {
        width: 160px;
        height: 160px;
        border-radius: 16px;
    }
    .hero-banner-title {
        font-size: 22px;
    }
    .hero-banner-price .current-price {
        font-size: 26px;
    }
    .timer-number {
        font-size: 30px;
    }
    .timer-unit {
        min-width: 56px;
        padding: 8px 12px;
    }
}

@media (max-width: 500px) {
    .hero-banner {
        min-height: 160px;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        border-radius: 0;
    }
    .hero-banner-inner {
        flex-wrap: wrap;
        padding: 16px 12px;
        gap: 10px;
        min-height: 140px;
        max-width: 100%;
       
    }
    .hero-banner-image {
        flex: 0 0 80px;
        order: 1;
    }
    .hero-banner-image a {
        width: 80px;
        height: 80px;
        border-radius: 10px;
        border-width: 1.5px;
    }
    .hero-banner-badge {
        font-size: 7px;
        padding: 2px 6px;
        top: -6px;
        left: -6px;
    }
    .hero-banner-info {
        flex: 1 1 100%;
        order: 2;
        min-width: 0;
    }
    .hero-banner-title {
        font-size: 14px;
        color: #222;
    }
    .hero-banner-price .current-price {
        font-size: 16px;
    }
    .hero-banner-price .old-price {
        font-size: 12px;
    }
    .hero-banner-tag .tag-hot,
    .hero-banner-tag .tag-discount {
        font-size: 8px;
        padding: 1px 8px;
    }
    .hero-banner-btn {
        padding: 5px 14px;
        font-size: 11px;
        border-radius: 20px;
    }
    .hero-banner-timer {
        flex: 1 1 100%;
        order: 3;
        padding: 10px 12px;
        border-radius: 10px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
      
    }
    .timer-label {
        font-size: 10px;
        margin-bottom: 6px;
        color: #666;
    }
    .timer-number {
        font-size: 18px;
        color: #222;
    }
    .timer-unit {
        min-width: 34px;
        padding: 3px 6px;
        border-radius: 6px;
        background: rgba(0, 0, 0, 0.05);
    }
    .timer-unit .timer-label {
        font-size: 7px;
        color: #888;
    }
    .timer-separator {
        font-size: 14px;
        padding: 0 1px;
        color: #999;
    }
    .timer-footer {
        font-size: 10px;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        margin-top: 4px;
        color: #666;
    }
    .timer-footer .timer-stock {
        color: #f97316;
    }
    .timer-footer .timer-urgency {
        color: #f97316;
    }
    .product-title {
        font-size: 12px;
        min-height: 28px;
    }
    .product-price {
        font-size: 14px;
    }
    .btn-add-to-cart {
        font-size: 10px;
        padding: 6px;
        border-radius: 20px;
    }
    .badge {
        font-size: 8px;
        padding: 2px 6px;
    }
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .section-title {
        font-size: 16px;
    }
    .load-more-btn {
        padding: 10px 24px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .hero-banner {
        min-height: 140px;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        border-radius: 0;
    }
    .hero-banner-inner {
        padding: 12px 10px;
        gap: 8px;
        min-height: 120px;
       
    }
    .hero-banner-image {
        flex: 0 0 70px;
    }
    .hero-banner-image a {
        width: 70px;
        height: 70px;
        border-radius: 8px;
    }
    .hero-banner-title {
        font-size: 13px;
        color: #222;
    }
    .hero-banner-price .current-price {
        font-size: 14px;
    }
    .hero-banner-timer {
        padding: 8px 10px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;

    }
    .timer-number {
        font-size: 16px;
        color: #222;
    }
    .timer-unit {
        min-width: 28px;
        padding: 2px 4px;
        background: rgba(0, 0, 0, 0.05);
    }
    .timer-unit .timer-label {
        font-size: 6px;
        color: #888;
    }
    .timer-separator {
        font-size: 12px;
        color: #999;
    }
    .products-grid {
        gap: 4px;
        padding: 4px;
    }
    .product-card {
        border-radius: 6px;
    }
    .product-body {
        padding: 6px 8px 10px;
    }
    .product-title {
        font-size: 11px;
        min-height: 24px;
    }
    .product-price {
        font-size: 13px;
    }
    .btn-add-to-cart {
        font-size: 9px;
        padding: 5px;
        border-radius: 16px;
    }
    .badge {
        font-size: 7px;
        padding: 1px 5px;
    }
    .action-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .section-title {
        font-size: 14px;
    }
    .load-more-btn {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 8px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
    }
    .product-img {
        aspect-ratio: 1 / 1;
    }
    .hero-banner-inner {
        flex-wrap: nowrap;
        min-height: 140px;
        padding: 16px 20px;
        
    }
    .hero-banner-image {
        flex: 0 0 100px;
    }
    .hero-banner-image a {
        width: 100px;
        height: 100px;
    }
    .hero-banner-timer {
        flex: 0 0 160px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
       
    }
    .timer-number {
        font-size: 20px;
        color: #222;
    }
    .timer-unit {
        min-width: 40px;
        padding: 4px 8px;
        background: rgba(0, 0, 0, 0.05);
    }
    .timer-unit .timer-label {
        color: #888;
    }
    .timer-separator {
        color: #999;
    }
}

@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none !important;
    }
    .product-card:hover .product-img img {
        transform: none !important;
    }
    .product-card:active {
        background: #fafafa;
    }
    .btn-add-to-cart:active {
        opacity: 0.7;
        transform: scale(0.97);
    }
    .action-btn:active {
        transform: scale(0.9);
        background: #f97316;
        color: white;
    }
    .load-more-btn:active {
        opacity: 0.7;
        transform: scale(0.97);
    }
    .hero-banner-btn:hover {
        transform: none !important;
    }
    .hero-banner-btn:active {
        transform: scale(0.97);
    }
}

/* ============================================ */
/* UTILITY                                     */
/* ============================================ */
.text-center {
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::selection {
    background: #eea4706b;
    color: white;
}

@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(75px + env(safe-area-inset-bottom));
    }
}