/* === CSS Reset & Base === */
:root { --sticky-top-h: 168px; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #fff; color: #333; }
a { text-decoration: none; color: inherit; }

.main-container { max-width: 1201px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

.top-bar { background-color: #f6f7f8; padding: 8px 0; border-bottom: 1px solid #eaeaea; font-size: 13px; color: #777; }
.top-bar .main-container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-right { display: flex; align-items: center; gap: 25px; }
.top-bar-right span { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.top-bar-right a { display: flex; align-items: center; gap: 6px; cursor: pointer; color: inherit; text-decoration: none; }
.top-bar-right i { color: #7a7a7a; }

.site-sticky-top { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.main-header { padding: 18px 0; background: #fff; }
.main-header .main-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.header-left { display: flex; align-items: center; gap: 20px; }
.hamburger { display: block; font-size: 20px; color: #008dcb; cursor: pointer; padding: 8px; background: #f1f8fa; border-radius: 8px; align-items: center; justify-content: center; transition: 0.3s; }
.logo { font-size: 26px; font-weight: 700; color: #008dcb; letter-spacing: -0.5px; font-family: 'Poppins', sans-serif; cursor: pointer; }

.search-box { flex: 1; display: flex; align-items: center; background-color: #f2f9fc; padding: 8px 18px; border-radius: 30px; max-width: 600px; }
.search-box i.fa-magnifying-glass { color: #008dcb; font-size: 16px; }
.search-box input { flex: 1; border: none; background: transparent; padding: 8px 12px; font-size: 14px; outline: none; color: #555; }
.search-box input::placeholder { color: #aaa; }
.search-box i.fa-list-ul { color: #008dcb; font-size: 18px; cursor: pointer; }

.header-right { display: flex; align-items: center; gap: 25px; font-weight: 500; color: #333; font-size: 14px; }
.header-right-item { display: flex; align-items: center; gap: 8px; cursor: pointer; position: relative; }
.header-right-item i { font-size: 18px; color: #555; }
.divider { color: #ddd; font-weight: 300; }

.cart-badge { position: absolute; top: -8px; right: -10px; background: #e74c3c; color: #fff; border-radius: 50%; font-size: 10px; font-weight: 700; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }

.categories-wrapper { background: #fff; margin-bottom: 20px; }
.categories-wrapper .main-container { padding: 15px 20px; }
.categories { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-item { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 30px; background-color: #f0f8fa; color: #444; font-size: 14px; white-space: nowrap; cursor: pointer; transition: 0.2s; }
.cat-item i { font-size: 10px; }
.cat-item.active { background-color: #008dcb; color: #fff; }
.cat-item:hover:not(.active) { background-color: #e4f0f5; }

.cat-item-wrapper { position: relative; flex-shrink: 0; }
.cat-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 10px; /* space is INSIDE the hoverable box now, so moving the cursor down never leaves it */
    z-index: 1001;
}
.cat-item-wrapper:hover .cat-dropdown,
.cat-dropdown:hover { display: block; }
.cat-dropdown-inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 180px;
    padding: 8px 0;
}
.cat-dropdown-inner::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
}
.cat-dropdown-item { display: block; padding: 9px 18px; font-size: 13px; color: #444; white-space: nowrap; transition: 0.15s; }
.cat-dropdown-item:hover { background: #f0f8fa; color: #008dcb; }
.user-menu-wrapper { position: relative; display: flex; align-items: center; }
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 12px;
    z-index: 1001;
}
.user-menu-wrapper:hover .user-dropdown,
.user-dropdown:hover { display: block; }
.user-dropdown-inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 170px;
    padding: 8px 0;
}
.user-dropdown-inner::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
}
.user-dropdown-inner .cat-dropdown-item { display: flex; align-items: center; gap: 10px; }
/* ================= REVIEW FORM ================= */
.review-form {
    background: #f8fbff;
    border: 1px solid #e0e7ed;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 4px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.review-star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; position: relative; }
.review-star-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.review-star-picker label { cursor: pointer; }
.review-star-picker label i { font-size: 24px; color: #ddd; transition: color 0.1s; }
.review-star-picker input:checked ~ label i,
.review-star-picker input:focus-visible ~ label i,
.review-star-picker label:hover i,
.review-star-picker label:hover ~ label i { color: #f5a623; }
.review-star-label { font-size: 12px; color: #777; margin-left: 6px; }
.review-field { width: 100%; padding: 9px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; font-family: inherit; }
@media (max-width: 480px) {
    .review-star-picker label i { font-size: 28px; }
    .review-form { padding: 12px; }
}
/* ================= PRODUCT PAGE COLOR PICKER ================= */
.pd-color-options { display: flex; gap: 14px; flex-wrap: wrap; }
.pd-color-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pd-color-label {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid #ddd;
    display: inline-block; cursor: pointer; position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
}
.pd-color-label:hover { transform: scale(1.08); }
.pd-color-radio:checked + .pd-color-label {
    border-color: #008dcb;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #008dcb;
    transform: scale(1.08);
}
.pd-color-radio:checked + .pd-color-label::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 0 3px rgba(0,0,0,0.7), 0 0 1px rgba(0,0,0,0.9);
}
.pd-color-radio:focus-visible + .pd-color-label { outline: 2px solid #008dcb; outline-offset: 2px; }
@media (max-width: 480px) {
    .pd-color-label { width: 38px; height: 38px; }
}
.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.55); z-index: 9999; backdrop-filter: blur(4px); justify-content: flex-start; align-items: stretch; }
.mobile-menu-overlay.active { display: flex; }
.mobile-menu-panel { width: 85%; max-width: 340px; background: #fff; height: 100%; overflow-y: auto; padding: 24px 20px 30px; animation: slideInLeft 0.3s ease; box-shadow: 4px 0 30px rgba(0,0,0,0.15); }
@keyframes slideInLeft { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid #eee; }
.mobile-menu-header .logo-sm { font-size: 22px; font-weight: 700; color: #008dcb; font-family: 'Poppins', sans-serif; }
.mobile-menu-close { font-size: 28px; color: #555; cursor: pointer; padding: 0 4px; transition: 0.2s; }
.mobile-menu-close:hover { color: #008dcb; transform: rotate(90deg); }
.mobile-cat-list { display: flex; flex-direction: column; gap: 10px; }
.mobile-cat-item-wrapper { display: flex; flex-direction: column; }
.mobile-cat-item { padding: 14px 18px; background: #f8fbff; border-radius: 10px; font-size: 16px; font-weight: 500; color: #333; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.2s; border-left: 3px solid transparent; }
.mobile-cat-item i { color: #008dcb; font-size: 14px; }
.mobile-cat-item:hover { background: #eef6fe; border-left-color: #008dcb; }
.mobile-cat-item.active { background: #008dcb; color: #fff; }
.mobile-cat-item.active i { color: #fff; }
.mobile-cat-link { flex: 1; color: inherit; }
.mobile-cat-toggle { padding: 6px 10px; margin: -6px -10px -6px 6px; transition: transform 0.25s; }
.mobile-cat-toggle.open { transform: rotate(90deg); }
.mobile-cat-brands { display: none; flex-direction: column; gap: 6px; padding: 8px 10px 4px 24px; }
.mobile-cat-brands.open { display: flex; }
.mobile-cat-brand-item { padding: 10px 14px; font-size: 14px; color: #555; background: #fff; border: 1px solid #eee; border-radius: 8px; transition: 0.2s; }
.mobile-cat-brand-item:hover { border-color: #008dcb; color: #008dcb; background: #f0f8fa; }

.banner-section { position: relative; padding-bottom: 30px; }
.banner-section .main-container { padding: 0 20px; }
.slider-container { position: relative; width: 100%; aspect-ratio: 1201 / 316; overflow: hidden; border-radius: 12px; background-color: #192649; }
.slider-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out; }
.slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 60px; color: #fff; position: relative; }
.slide-content { max-width: 50%; z-index: 1; }
.slide-content h4 { font-size: 18px; font-weight: 400; color: #d9e3f0; margin-bottom: 5px; }
.slide-content h1 { font-family: 'Poppins', sans-serif; font-size: 48px; font-weight: 700; color: #ffffff; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px; line-height: 1.1; }
.slide-content h3 { font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 700; color: #ffffff; text-transform: uppercase; letter-spacing: 0.5px; }
.banner-btn { display: inline-block; background-color: #1b8ef2; color: #ffffff; padding: 12px 32px; border-radius: 50px; font-size: 16px; font-weight: 600; font-family: 'Poppins', sans-serif; text-decoration: none; margin-top: 16px; transition: background-color 0.3s ease, transform 0.2s ease; }
.banner-btn:hover { background-color: #1573cc; transform: scale(1.05); }
.banner-btn.white-btn { background-color: #fff; color: #192649; }
.banner-btn.white-btn:hover { background-color: #f0f0f0; }
.slide-image { z-index: 1; display: flex; align-items: center; justify-content: center; }
.slide-image img { width: 268px; height: 270px; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3)); }

.slider-controls { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.control-btn { pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: none; border-radius: 50%; width: 46px; height: 46px; font-size: 20px; color: #008dcb; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.control-btn:hover { transform: translateY(-50%) scale(1.05); background: #f8f8f8; }
.control-btn.prev { left: -17px; }
.control-btn.next { right: -17px; }
.dots-container { pointer-events: auto; position: absolute; bottom: 25px; left: 60px; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(255,255,255,0.3); cursor: pointer; transition: 0.3s; }
.dot.active { width: 20px; background-color: #fff; border-radius: 10px; }

.deals-section { padding: 0px 0 20px; background: #fff; }
.deals-section .main-container { padding: 0 20px; }
.deals-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid #eaeaea; padding-bottom: 15px; margin-bottom: 25px; }
.section-title { font-size: 22px; font-weight: 600; color: #555; margin: 0; font-family: 'Poppins', sans-serif; }
.section-title span.highlight-title { color: #008dcb; border-bottom: 3px solid #008dcb; padding-bottom: 6px; display: inline-block; margin-bottom: -10px; }
.view-all { font-size: 14px; color: #333; text-decoration: none; cursor: pointer; display: flex; align-items: center; gap: 5px; font-weight: 500; }
.view-all i { color: #008dcb; font-size: 12px; margin-top: 2px; }

.deals-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;
}

.deal-card{
    position:relative;
    background:#fff;
    border:1px solid #ececec;
    border-radius:14px;
    padding:20px 15px;
    overflow:hidden;
    text-align:left;
    cursor:pointer;
    transition:all .35s ease;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.deal-card::before{
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: clamp(50%, 58vw, 60%);
    background: #f4f6f8;
    transition: .35s;
    z-index: 0;
}
/* Content Above Background */
.deal-card>*{
    position:relative;
    z-index:2;
}

.badge{
    position:absolute;
    top:15px;
    right:0;
    background:#0095da;
    color:#fff;
    font-size:11px;
    font-weight:700;
    padding:4px 12px;
    border-radius:20px 0 0 20px;
    z-index:5;
}

.card-img{
    height:160px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:15px;
    transition:transform .4s ease;
}

.card-img img{
    max-width:85%;
    max-height:85%;
    object-fit:contain;
    transition:transform .4s ease;
}

/* White Text Area */
.product-name,
.price-box,
.saving-text{
    background:#fff;
}

.product-name{
    font-size:14px;
    font-weight:500;
    color:#222;
    line-height:2.4;
    min-height:40px;
    margin-bottom:6px;
}

.current-price{
    font-size:15px;
    font-weight:700;
    color:#222;
}

.old-price{
    font-size:13px;
    color:#999;
    margin-left:6px;
    text-decoration:line-through;
}

.saving-text{
    margin-top:10px;
    padding-top:8px;
    border-top:1px solid #eee;
    font-size:12px;
    color:#2e7d32;
    font-weight:700;
}

/* Hover Effect */
.deal-card:hover{
    border:2px solid #0095da;
    transform:translateY(-12px);
    box-shadow:0 18px 35px rgba(0,149,218,.18);
    animation:cardFloat .4s ease;
}

.deal-card:hover::before{
    background:#eef8ff;
}

.deal-card:hover .card-img{
    transform:translateY(-12px);
}

.deal-card:hover .card-img img{
    transform:scale(1.08);
}

@keyframes cardFloat{
    0%{
        transform:translateY(0);
    }
    60%{
        transform:translateY(-15px);
    }
    100%{
        transform:translateY(-12px);
    }
}

.brands-section { padding: 5px 0 5px; background: #fff; }
.brands-section .main-container { padding: 0 20px; }
.brand-slider-wrapper { position: relative; overflow: hidden; padding: 0 10px; margin: 0 -10px; }
.brand-slider-track { display: flex; width: 100%; transition: transform 0.5s ease-in-out; }
.brand-slide { flex: 0 0 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 2px 0; }
.brand-card { position: relative; border-radius: 18px; padding: 25px; height: 190px; display: flex; justify-content: space-between; align-items: flex-end; overflow: hidden; text-decoration: none; transition: transform 0.2s; cursor: pointer; }
.brand-card:hover { transform: translateY(-2px); }
.brand-badge { position: absolute; top: 14px; left: 14px; padding: 3px 14px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; z-index: 2; }
.brand-content { position: relative; z-index: 2; display: flex; flex-direction: column; margin-bottom: 10px; }
.brand-logo { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.brand-offer { font-size: 16px; font-weight: 700; }
.brand-product-img { position: absolute; right: -10px; bottom: -10px; height: 85%; width: 55%; object-fit: contain; z-index: 1; }

.apple-theme { background-color: #212121; color: #ffffff; }
.apple-theme .brand-badge { background-color: #4a4a4a; color: #fff; }
.realme-theme { background-color: #fff8d6; color: #222222; }
.realme-theme .brand-badge { background-color: #dcd3a0; color: #222; }
.realme-theme .brand-logo { background: #f5ce09; padding: 4px 12px; border-radius: 6px; font-size: 18px; }
.xiaomi-theme { background-color: #fde8d6; color: #222222; }
.xiaomi-theme .brand-badge { background-color: #dcd3a0; color: #222; }
.xiaomi-theme .brand-logo { background: #ff6700; padding: 6px 10px; border-radius: 6px; color: #fff; font-size: 18px; }
.oppo-theme { background-color: #e8e8e8; color: #222; }
.oppo-theme .brand-badge { background-color: #c4c4c4; color: #222; }
.oppo-theme .brand-logo { font-size: 18px; font-weight: 800; }
.vivo-theme { background-color: #e2f0fa; color: #222; }
.vivo-theme .brand-badge { background-color: #c4c4c4; color: #222; }
.vivo-theme .brand-logo { font-size: 18px; font-weight: 700; font-style: italic; }
.oneplus-theme { background-color: #e2e2e2; color: #222; }
.oneplus-theme .brand-badge { background-color: #c4c4c4; color: #222; }
.oneplus-theme .brand-logo { font-size: 20px; font-weight: 800; }

.brand-slider-controls { position: absolute; top: 50%; left: 0; width: 100%; height: 0; pointer-events: none; z-index: 10; }
.brand-control-btn { pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 16px; color: #008dcb; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.brand-control-btn:hover { transform: translateY(-50%) scale(1.1); background: #f8f8f8; }
.brand-control-btn.prev { left: -10px; }
.brand-control-btn.next { right: -10px; }
.brand-dots-container { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background-color: #e0e0e0; cursor: pointer; transition: 0.3s; }
.brand-dot.active { width: 20px; background-color: #008dcb; border-radius: 10px; }

.you-may-know-section {
    padding: 40px 0 60px;
    background: #f9fafc;
}

.you-may-know-section .main-container {
    padding: 0 20px;
}

.you-may-know-slider-wrapper {
    position: relative;
    overflow: visible;
    padding: 10px 0;
}

.you-may-know-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 16px 4px 10px;
    margin-top: -16px;
}

.you-may-know-slider::-webkit-scrollbar {
    display: none;
}

/* You-may-know-card is now just a WIDTH modifier layered on top of .deal-card (class="deal-card you-may-know-card")
   so the two card types are guaranteed to look pixel-identical — same grey backdrop, hover lift, badge, everything. */
.you-may-know-card {
    flex: 0 0 220px;
}
.you-may-know-card .badge { top: 12px; }

.product-detail-layout { display: flex; gap: 50px; align-items: flex-start; flex-wrap: wrap; background: #fff; padding: 20px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.product-detail-image {
    flex: 1 1 400px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
    position: sticky; top: calc(var(--sticky-top-h) + 24px); align-self: flex-start; z-index: 4; background: #fff;
}
.product-detail-image .main-img { max-width: 100%; height: 400px; object-fit: contain; object-position: center center; border-radius: 12px; margin-bottom: 15px; }
.product-thumbnails { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.product-thumbnails img { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: 0.2s; }
.product-thumbnails img.active { border-color: #008dcb; }
.product-detail-info { flex: 1 1 400px; }
.pd-title { font-family: 'Poppins', sans-serif; font-size: 28px; color: #222; margin-bottom: 4px; }
.pd-rating { font-size: 14px; color: #777; margin-bottom: 10px; }
.pd-price-box { margin: 10px 0; font-size: 24px; }
.pd-price-box .current-price { font-weight: 700; color: #1b8ef2; margin-right: 10px; }
.pd-price-box .old-price { font-size: 18px; color: #999; text-decoration: line-through; }
.pd-desc { font-size: 15px; color: #555; line-height: 1.6; margin: 15px 0; }

/* Point-to-point description with See More / See Less */
.pd-desc-wrap { margin: 15px 0; }
.pd-desc-list { list-style: none; padding: 0; margin: 0; }
.pd-desc-list li {
    position: relative; padding-left: 20px; margin-bottom: 9px;
    font-size: 15px; color: #555; line-height: 1.6;
}
.pd-desc-list li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 3px; color: #008dcb; font-size: 12px;
}
.pd-desc-list li.pd-desc-extra { display: none; }
.pd-desc-wrap.expanded .pd-desc-list li.pd-desc-extra { display: list-item; }
.pd-desc-toggle {
    margin-top: 4px; background: none; border: none; color: #008dcb; font-weight: 600;
    font-size: 14px; cursor: pointer; padding: 4px 0; text-decoration: underline;
}
.pd-colors { margin: 15px 0; display: flex; align-items: center; gap: 12px; }
.pd-colors span { font-weight: 600; font-size: 14px; }
.color-option { width: 24px; height: 24px; border-radius: 50%; display: inline-block; cursor: pointer; border: 2px solid transparent; position: relative; }
.color-option.active { border-color: #008dcb; outline: 2px solid #008dcb; outline-offset: 2px; }

.pd-quantity-section { margin: 20px 0; }
.pd-quantity-section label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.pd-quantity-section input[type="number"] { width: 100px; padding: 8px 12px; font-size: 15px; border: 1px solid #ccc; border-radius: 8px; outline: none; }
.pd-quantity-section input[type="number"]:focus { border-color: #008dcb; }

.pd-tiers { display: flex; gap: 15px; flex-wrap: wrap; margin: 15px 0; }
.pd-tiers label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; background: #f6f9fc; padding: 6px 14px; border-radius: 20px; border: 1px solid #e0e7ed; transition: 0.2s; }
.pd-tiers label:has(input:checked) { border-color: #008dcb; background: #e5f3ff; }
.pd-tiers input[type="radio"] { accent-color: #008dcb; margin: 0; }

.pd-total-box { font-size: 18px; font-weight: 600; color: #222; margin: 15px 0; padding: 12px 16px; background: #f6f9fc; border-radius: 8px; display: inline-block; }
.pd-total-box span { color: #008dcb; }
.pd-actions { display: flex; gap: 15px; margin-top: 15px; flex-wrap: wrap; }
.pd-actions .banner-btn { margin-top: 0; }
.btn-dark { background-color: #192649; color: #fff; }
.btn-dark:hover { background-color: #0f1a33; }

.checkout-layout { display: flex; gap: 40px; flex-wrap: wrap; }
.checkout-items { flex: 2; min-width: 300px; }
.checkout-form { flex: 2; min-width: 300px; background: #f8fbff; padding: 24px; border-radius: 12px; border: 1px solid #e0e7ed; }
.checkout-form h3 { margin-bottom: 15px; }
.checkout-form input, .checkout-form textarea, .checkout-form select { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; }
.checkout-form input:focus, .checkout-form textarea:focus, .checkout-form select:focus { border-color: #008dcb; }
.checkout-form textarea { height: 80px; resize: vertical; }

.payment-methods { margin: 15px 0 20px; }
.payment-methods h4 { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-options label { width: 100%; }
.payment-options label { display: flex; align-items: center; gap: 8px; background: #fff; padding: 8px 16px; border-radius: 30px; border: 1px solid #d0d7e0; cursor: pointer; font-size: 14px; transition: 0.2s; }
.payment-options label:has(input:checked) { border-color: #008dcb; background: #e5f3ff; }
.payment-options input[type="radio"] { accent-color: #008dcb; width: auto; margin: 0; }
.payment-options i { font-size: 16px; color: #555; }

.checkout-summary { flex: 1; min-width: 280px; background: #f8fbff; padding: 24px; border-radius: 12px; border: 1px solid #e0e7ed; height: fit-content; }
.cart-item { display: flex; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid #eee; }
.cart-item img { width: 50px; height: 50px; object-fit: contain; border-radius: 6px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 14px; font-weight: 600; }
.cart-item-info p { font-size: 12px; color: #777; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; }
.cart-item-actions .remove-btn { color: #e74c3c; cursor: pointer; font-size: 14px; font-weight: 600; background: none; border: none; transition: 0.2s; }
.cart-item-actions .remove-btn:hover { transform: scale(1.15); }

.btn-checkout { width: 100%; background-color: #008dcb; color: #fff; padding: 14px; border: none; border-radius: 30px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 15px; transition: 0.2s; }
.btn-checkout:hover { background-color: #006fa3; }

.toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 99999; display: flex; flex-direction: column; gap: 12px; max-width: 360px; width: 90%; }
.toast { background: #192649; color: #fff; padding: 16px 20px; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 14px; animation: slideUpToast 0.4s ease; font-size: 14px; }
.toast i { font-size: 20px; color: #4cdf8b; }
.toast .toast-close { margin-left: auto; cursor: pointer; font-size: 18px; color: rgba(255,255,255,0.5); transition: 0.2s; }
.toast .toast-close:hover { color: #fff; }
@keyframes slideUpToast { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.site-footer { background-color: #0095da; color: #ffffff; padding-top: 50px; margin-top: 50px; font-family: 'Inter', sans-serif; }
.site-footer .main-container { padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 30px; }
.footer-logo { font-size: 34px; font-weight: 700; color: #ffffff; font-family: 'Poppins', sans-serif; margin-bottom: 20px; letter-spacing: -0.5px; }
.footer-col-title { font-size: 15px; font-weight: 600; color: #ffffff; border-bottom: 2px solid #ffffff; display: inline-block; padding-bottom: 4px; margin-bottom: 18px; letter-spacing: 0.2px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 14px; color: #ffffff; font-weight: 400; }
.footer-contact-item i { font-size: 16px; margin-top: 2px; }
.footer-download-apps { display: flex; gap: 12px; margin-top: 12px; }
.app-btn { display: flex; align-items: center; gap: 8px; background-color: #222222; padding: 8px 16px; border-radius: 6px; color: #ffffff; text-decoration: none; font-size: 11px; font-weight: 500; transition: background 0.2s; }
.app-btn:hover { background-color: #000000; }
.app-btn i { font-size: 20px; }
.app-btn small { font-size: 9px; font-weight: 400; display: block; }
.footer-lists { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-lists li { font-size: 14px; color: #ffffff; font-weight: 400; }
.footer-lists li::before { content: "•"; margin-right: 8px; font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding: 20px 0; text-align: center; font-size: 13px; color: #ffffff; font-weight: 400; }

/* static CMS pages (About Us, FAQ, Terms, Privacy, etc.) margin: 0 auto; */
.static-page-content { max-width: 820px; color: #444; line-height: 1.7; font-size: 15px; }
.static-page-content h2 { font-family: 'Poppins', sans-serif; font-size: 26px; color: #192649; margin-bottom: 16px; }
.static-page-content h3 { font-family: 'Poppins', sans-serif; font-size: 18px; color: #008dcb; margin: 22px 0 8px; }
.static-page-content p { margin-bottom: 12px; }
.static-page-content ul, .static-page-content ol { margin: 10px 0 14px 22px; }
.static-page-content li { margin-bottom: 6px; }
.static-page-content a { color: #008dcb; text-decoration: underline; }

/* infinite scroll loader */
.loading-spinner { text-align: center; padding: 30px 0; display: none; color: #008dcb; font-size: 14px; }
.loading-spinner.active { display: block; }
.no-more-products { text-align: center; padding: 20px 0; color: #999; font-size: 13px; display: none; }
.no-more-products.active { display: block; }

/* ===================== Scroll-reveal animation utility ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
/* stagger cards within a grid/slider so they don't all pop at once */
.deals-grid .reveal:nth-child(2), .you-may-know-slider .reveal:nth-child(2) { transition-delay: 0.06s; }
.deals-grid .reveal:nth-child(3), .you-may-know-slider .reveal:nth-child(3) { transition-delay: 0.12s; }
.deals-grid .reveal:nth-child(4), .you-may-know-slider .reveal:nth-child(4) { transition-delay: 0.18s; }
.deals-grid .reveal:nth-child(5), .you-may-know-slider .reveal:nth-child(5) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== Brand logo as an image (e.g. Samsung logo + Samsung phone photo) ===================== */
.brand-logo-img { max-height: 34px; max-width: 120px; object-fit: contain; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }

/* ===================== Checkout alerts ===================== */
.checkout-alert { padding: 20px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; line-height: 1.6; }
.checkout-alert-success { background: #e5f9ee; border: 1px solid #4cdf8b; color: #1a7a45; }
.checkout-alert-error { background: #fdecea; border: 1px solid #e74c3c; color: #c0392b; padding: 15px 20px; }

/* ===================== Order History (my_orders.php) ===================== */
.order-empty { text-align: center; padding: 60px 20px; color: #999; }
.order-empty i { font-size: 48px; color: #ddd; margin-bottom: 16px; display: block; }
.order-empty p { margin-bottom: 18px; font-size: 15px; }

.order-list { display: flex; flex-direction: column; gap: 14px; }
.order-card {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid #e0e7ed; border-radius: 14px; padding: 18px 20px;
    text-decoration: none; color: inherit; transition: 0.25s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.order-card:hover { border-color: #008dcb; box-shadow: 0 10px 24px rgba(0,141,203,0.12); transform: translateY(-3px); }
.order-card-icon { width: 46px; height: 46px; border-radius: 12px; background: #f0f8fa; color: #008dcb; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.order-card-main { flex: 1; min-width: 0; }
.order-card-number { font-size: 15px; display: block; }
.order-card-meta { font-size: 13px; color: #777; margin-top: 4px; }
.order-card-side { text-align: right; flex-shrink: 0; }
.order-card-total { font-weight: 700; color: #008dcb; margin-top: 6px; font-size: 14px; }
.order-card-payment { font-size: 11px; color: #999; margin-top: 2px; }
.order-card-arrow { color: #ccc; font-size: 14px; transition: 0.25s; flex-shrink: 0; }
.order-card:hover .order-card-arrow { color: #008dcb; transform: translateX(3px); }

.order-status-pill { color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: capitalize; display: inline-block; }
.order-status-pill-lg { padding: 6px 18px; font-size: 13px; }

/* ===================== Order Detail (order_detail.php) ===================== */
.order-back-link { display: inline-flex; align-items: center; gap: 8px; color: #008dcb; font-weight: 600; font-size: 14px; margin-bottom: 18px; text-decoration: none; transition: 0.2s; }
.order-back-link:hover { gap: 12px; }

.order-detail-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #eee; }
.order-detail-placed { color: #777; font-size: 14px; margin-top: 4px; }

.delivery-card, .seller-order-card {
    background: #f8fbff; border: 1px solid #e0e7ed; border-radius: 14px; padding: 22px 24px; margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.delivery-card h3 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: #192649; }
.delivery-card h3 i { color: #008dcb; }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.delivery-grid-full { grid-column: 1 / -1; }
.delivery-grid > div { display: flex; flex-direction: column; gap: 3px; }
.delivery-label { font-size: 11.5px; color: #999; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.delivery-value { font-size: 14px; color: #333; font-weight: 500; }
.delivery-grand-total { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px dashed #d0d7e0; font-size: 15px; font-weight: 600; color: #333; }
.delivery-grand-total span { color: #008dcb; font-size: 20px; font-weight: 700; }

.seller-order-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.seller-order-header h3 { font-size: 16px; color: #192649; }
.seller-order-subnumber { font-size: 12px; color: #999; margin: 4px 0 14px; }

.tracking-banner { display: flex; align-items: flex-start; gap: 12px; background: #eef6ff; border: 1px solid #bcdcff; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: 13.5px; }
.tracking-banner i { color: #008dcb; font-size: 18px; margin-top: 2px; }
.tracking-awb { color: #777; margin-top: 3px; font-size: 12.5px; }

.order-item-list { display: flex; flex-direction: column; }
.order-item-row { display: flex; align-items: center; gap: 15px; padding: 14px 0; border-bottom: 1px solid #eee; }
.order-item-row img { width: 64px; height: 64px; min-width: 64px; object-fit: contain; border-radius: 8px; background: #f7f7f7; border: 1px solid #eee; flex-shrink: 0; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.order-item-info p { font-size: 12.5px; color: #777; }
.order-item-color { display: inline-flex; align-items: center; gap: 4px; }
.order-item-color-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 1px solid #ccc; }
.order-item-subtotal { font-weight: 700; font-size: 14px; white-space: nowrap; }
.order-item-reviewed { font-size: 12px; color: #27ae60; margin: 6px 0 14px; }

.seller-order-total { display: flex; justify-content: space-between; padding: 12px 0 0; margin-top: 8px; border-top: 1px solid #eee; font-size: 14.5px; }
.seller-order-total span:last-child { font-weight: 700; color: #008dcb; }

/* ===================== Customer Reviews (product.php) ===================== */
.review-summary { display: flex; align-items: center; gap: 20px; background: #f8fbff; border: 1px solid #e0e7ed; border-radius: 14px; padding: 20px 26px; margin-bottom: 20px; max-width: 700px; }
.review-summary-score { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.review-summary-number { font-size: 34px; font-weight: 800; color: #192649; font-family: 'Poppins', sans-serif; line-height: 1; }
.review-summary-stars { font-size: 15px; }
.review-summary-stars i { color: #ddd; margin-right: 1px; }
.review-summary-stars i.is-filled { color: #f5a623; }
.review-summary-count { font-size: 12.5px; color: #999; }

.review-list { display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.review-card { background: #fff; border: 1px solid #e0e7ed; border-radius: 12px; padding: 16px 18px; transition: 0.2s; }
.review-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.05); }
.review-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: #008dcb; color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: 'Poppins', sans-serif; }
.review-card-meta { flex: 1; min-width: 0; }
.review-author { font-size: 14px; display: block; }
.review-stars { font-size: 12px; margin-top: 2px; }
.review-stars i { color: #ddd; margin-right: 1px; }
.review-stars i.is-filled { color: #f5a623; }
.review-date { font-size: 11.5px; color: #999; white-space: nowrap; }
.review-title { font-weight: 600; margin: 6px 0 3px; font-size: 14px; color: #222; }
.review-comment { color: #555; margin: 0; font-size: 13.5px; line-height: 1.6; }

.review-empty { text-align: center; padding: 40px 20px; color: #999; max-width: 700px; }
.review-empty i { font-size: 36px; color: #ddd; margin-bottom: 12px; display: block; }
.review-empty p { font-size: 14px; }

/* ===================== Cart Slide-in Drawer ===================== */
.cart-drawer-overlay { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:1200; opacity:0; visibility:hidden; transition:opacity .25s ease; }
.cart-drawer-overlay.open { opacity:1; visibility:visible; }

.cart-drawer {
    position:fixed; top:0; right:0; width:420px; max-width:100vw; height:100vh; background:#fff;
    z-index:1201; box-shadow:-8px 0 30px rgba(0,0,0,.15); transform:translateX(100%);
    transition:transform .3s ease; display:flex; flex-direction:column;
}
.cart-drawer.open { transform:translateX(0); }

.cart-drawer-header { display:flex; justify-content:space-between; align-items:center; padding:18px 22px; border-bottom:1px solid #eee; flex-shrink:0; }
.cart-drawer-header h3 { font-size:17px; font-weight:700; color:#192649; }
.cart-drawer-close { background:none; border:none; font-size:20px; color:#777; cursor:pointer; padding:4px 8px; }
.cart-drawer-close:hover { color:#e74c3c; }

.cart-drawer-body { flex:1; overflow-y:auto; display:flex; flex-direction:column; }
.cart-drawer-loading { text-align:center; padding:60px 20px; color:#999; }

.cart-drawer-empty { text-align:center; padding:60px 20px; color:#999; }
.cart-drawer-empty i { font-size:44px; color:#ddd; margin-bottom:14px; display:block; }
.cart-drawer-empty p { margin-bottom:16px; }

.cart-drawer-items { padding:14px 18px; flex:1; }
.cart-drawer-item { display:flex; gap:12px; padding:14px 0; border-bottom:1px solid #f0f0f0; align-items:center; }
.cart-drawer-item img { width:60px; height:60px; object-fit:contain; border-radius:8px; background:#f7f7f7; flex-shrink:0; }
.cart-drawer-item-info { flex:1; min-width:0; }
.cart-drawer-item-info h4 { font-size:13.5px; font-weight:600; color:#222; margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cart-drawer-seller { font-size:11.5px; color:#999; margin-bottom:6px; }
.cart-drawer-qty { display:inline-flex; align-items:center; border:1px solid #ddd; border-radius:20px; overflow:hidden; }
.cart-drawer-qty button { width:26px; height:26px; border:none; background:#f7f7f7; cursor:pointer; font-size:15px; color:#333; }
.cart-drawer-qty button:hover { background:#e8e8e8; }
.cart-drawer-qty span { width:30px; text-align:center; font-size:13px; font-weight:600; }
.cart-drawer-item-right { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.cart-drawer-item-price { font-size:13.5px; font-weight:700; color:#1b8ef2; }
.cart-drawer-remove { background:none; border:none; color:#c0392b; cursor:pointer; font-size:13px; padding:2px; }

.cart-drawer-footer { padding:16px 18px 20px; border-top:1px solid #eee; background:#fafbfc; flex-shrink:0; }
.cart-drawer-savings { font-size:12.5px; color:#27ae60; font-weight:600; margin-bottom:8px; text-align:right; }
.cart-drawer-total { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; font-size:16px; font-weight:700; color:#192649; }
.cart-drawer-total span:last-child { color:#1b8ef2; }

@media (max-width: 640px) {
    .cart-drawer { width:100%; right:0; top:auto; bottom:0; height:85vh; border-radius:18px 18px 0 0; transform:translateY(100%); box-shadow:0 -8px 30px rgba(0,0,0,.2); }
    .cart-drawer.open { transform:translateY(0); }
}

/* ========================== RESPONSIVE ========================== */

/* Large desktop / wide screens */
@media (min-width: 1400px) {
    .main-container { max-width: 1360px; }
    .deals-grid { gap: 24px; }
    .slide-content h1 { font-size: 52px; }
}

@media (max-width: 992px) {
    .main-header .main-container { gap: 15px; }
    .search-box { max-width: 400px; }
    .header-right { gap: 10px; font-size: 13px; }
    .header-right span:not(:last-child) { display: none; }
    .header-right .divider { display: none; }
    .slide-content h1 { font-size: 38px; }
    .slide-content h3 { font-size: 26px; }
    .slide { padding: 0 40px; }
    .slide-image img { width: 220px; height: 222px; }
    .deals-grid { grid-template-columns: repeat(3, 1fr); }
    .card-img { height: 140px; }
    .brand-slide { grid-template-columns: repeat(2, 1fr); }
    .brand-card { height: 160px; padding: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .top-bar { display: none; }
    .main-header { padding: 12px 0; }
    .main-header .main-container { flex-wrap: wrap; justify-content: center; }
    .header-left { width: 100%; justify-content: space-between; margin-bottom: 12px; }
    .hamburger { display: flex; background: transparent; padding: 0; font-size: 24px; color: #333; }
    .logo { font-size: 24px; }
    .search-box { width: 100%; max-width: 100%; order: 3; padding: 6px 15px; }
    .header-right { width: 100%; justify-content: flex-end; margin-top: 10px; gap: 20px; }
    .header-right-item span { display: none; }
    .header-right-item i { font-size: 20px; }
    .divider { display: none; }
    .categories-wrapper .main-container .categories { display: none; }
    .categories-wrapper .main-container { padding: 0 20px; margin-bottom: 0; }
    .banner-section .main-container { padding: 0 10px; }
    .slider-container { aspect-ratio: auto; min-height: 420px; width: 100%; }
    .slide { flex-direction: column; padding: 30px 20px; height: auto; min-height: 420px; text-align: center; }
    .slide-content { max-width: 100%; margin-bottom: 20px; }
    .slide-content h1 { font-size: 32px; }
    .slide-content h3 { font-size: 22px; }
    .slide-image img { width: 180px; height: 181px; }
    .dots-container { left: 50%; transform: translateX(-50%); bottom: 15px; }
    .control-btn { width: 36px; height: 36px; font-size: 16px; }
    .control-btn.prev { left: -10px; }
    .control-btn.next { right: -10px; }
    .deals-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .card-img { height: 150px; margin-bottom: 6px; }
    .product-name { margin: 0 0 4px 0; min-height: unset; }
    .section-title { font-size: 18px; }
    .static-page-content { font-size: 14px; }
    .static-page-content h2 { font-size: 21px; }
    .static-page-content h3 { font-size: 16px; }
    .view-all { display: none !important; }
    .brand-slide { grid-template-columns: 1fr; }
    .brand-card { height: 160px; padding: 15px; }
    .brand-logo { font-size: 28px; }
    .brand-offer { font-size: 14px; }
    .brand-product-img { height: 80%; width: 50%; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-download-apps { flex-wrap: wrap; }

    /* ---- Product detail: mobile scrolls as one normal page, image is NOT sticky here (desktop keeps sticky) ---- */
    .product-detail-layout { flex-direction: column; padding: 15px; gap: 0; }
    .product-detail-image {
        display: flex; flex-direction: column; align-items: center; width: 100%;
        position: static; top: auto;
        padding: 8px 0 0; margin: 0 -15px; width: calc(100% + 30px);
    }
    .product-detail-image .main-img { height: 260px; max-width: 100%; margin-bottom: 2px; margin-top: 0; object-position: center center; }
    .product-thumbnails { gap: 8px; justify-content: center; margin-bottom: 0; }
    .product-thumbnails img { width: 64px; height: 64px; }
    .product-detail-info { text-align: left; padding-top: 0; }
    .pd-title { margin-top: 0; font-size: 22px; }

    .checkout-layout { flex-direction: column; }
    .toast-container { bottom: 16px; right: 16px; left: 16px; max-width: 100%; width: auto; }

    /* Orders + Reviews */
    .order-card { padding: 14px 16px; gap: 12px; }
    .order-card-icon { width: 38px; height: 38px; font-size: 15px; }
    .order-card-meta { font-size: 12px; }
    .order-card-total { font-size: 13px; }
    .order-card-arrow { display: none; }
    .delivery-card, .seller-order-card { padding: 16px 18px; }
    .delivery-grid { grid-template-columns: 1fr; gap: 12px; }
    .order-detail-heading { flex-direction: column; align-items: flex-start; }
    .review-summary { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; }
    .review-card-top { flex-wrap: wrap; }
    .review-date { width: 100%; text-align: left; margin-top: 2px; }
    .brand-logo-img { max-height: 26px; max-width: 90px; }
}
@media (max-width: 600px) {
    .brand-control-btn { width: 30px; height: 30px; font-size: 12px; }
    .brand-control-btn.prev { left: 0px; }
    .brand-control-btn.next { right: 0px; }
    .brand-product-img { height: 80%; width: 45%; }
    .product-thumbnails img { width: 52px; height: 52px; }
    .payment-options label { font-size: 12px; padding: 6px 12px; }
}
@media (max-width: 480px) {
    .deals-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .deals-header { flex-direction: row; align-items: center; justify-content: space-between; }
    .section-title { font-size: 15px; }
    .deal-card { padding: 10px; border-radius: 10px; }
    .card-img { height: 130px; margin-bottom: 6px; }
    .badge { font-size: 9px; padding: 2px 8px; top: 8px; }
    .product-name { font-size: 11px; min-height: 30px; line-height: 3.4; margin-bottom: 2px; }
    .current-price { font-size: 13px; }
    .old-price { font-size: 10px; }
    .saving-text { font-size: 10px; margin-top: 4px; }
    .brand-card { height: 140px; padding: 12px; }
    .brand-logo { font-size: 22px; }
    .brand-offer { font-size: 12px; }
    .brand-product-img { height: 75%; }
    .you-may-know-card { flex: 0 0 165px; padding: 10px; }
    .product-detail-layout { padding: 10px; }
    .product-detail-image { margin: 0 -10px; width: calc(100% + 20px); }
    .product-detail-image .main-img { height: 220px; max-width: 100%; margin-bottom: 2px; margin-top: 0; object-position: center center; }
    .product-thumbnails { justify-content: center; margin-bottom: 0; }
    .product-thumbnails img { width: 56px; height: 56px; }
    .pd-title { margin-top: 0; font-size: 19px; }
    .product-detail-info { padding-top: 0; }
    .pd-actions { flex-direction: column; gap: 12px; }
    .pd-actions .banner-btn { width: 100%; justify-content: center; text-align: center; }
    .pd-tiers { gap: 8px; }
    .pd-tiers label { font-size: 12px; padding: 4px 10px; }
    .pd-quantity-section input[type="number"] { width: 80px; }
    .cart-item img { width: 40px; height: 40px; }
    .checkout-form, .checkout-summary { padding: 15px; }
    .banner-section .main-container { padding: 0 5px; }
    .slider-container { min-height: 320px; }
    .slide-content h1 { font-size: 26px; }
    .slide-content h3 { font-size: 18px; }

    .order-card { flex-wrap: wrap; }
    .order-card-side { text-align: left; margin-left: 58px; }
    .order-item-row img { width: 48px; height: 48px; }
    .review-avatar { width: 32px; height: 32px; font-size: 13px; }
    .review-summary-number { font-size: 28px; }
}

/* Very small phones */
@media (max-width: 360px) {
    .deals-grid { gap: 8px; }
    .card-img { height: 115px; }
    .you-may-know-card { flex: 0 0 145px; }
    .product-detail-image .main-img { height: 200px; }
    .product-thumbnails img { width: 50px; height: 50px; }
    .pd-title { font-size: 17px; }
    .slide-content h1 { font-size: 22px; }
    .slide-content h3 { font-size: 16px; }
    .banner-btn { padding: 10px 22px; font-size: 14px; }
}

/* Desktop card image background height variants */
.deal-card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: #f4f6f8;
    z-index: 0;
    transition: .35s;
}
@media (max-width: 1199px){ .deal-card::before{ height: 58%; } }
@media (max-width: 991px){ .deal-card::before{ height: 58%; } }
@media (max-width: 767px){ .deal-card::before{ height: 62%; } }
@media (max-width: 575px){ .deal-card::before{ height: 60%; } }
@media (max-width: 400px){ .deal-card::before{ height: 58%; } }
