/* ==========================================================================
   Flipkart Clone — front-end stylesheet
   Palette and layout mirror the Flipkart storefront.
   ========================================================================== */

:root {
    --blue:        #2874f0;
    --blue-dark:   #1a5ed6;
    --yellow:      #ff9f00;
    --orange:      #fb641b;
    --green:       #388e3c;
    --red:         #ff6161;
    --page-bg:     #f1f3f6;
    --card-bg:     #ffffff;
    --text:        #212121;
    --text-soft:   #878787;
    --text-mid:    #565656;
    --border:      #f0f0f0;
    --border-dark: #e0e0e0;
    --footer-bg:   #172337;
    --shadow:      0 1px 2px 0 rgba(0, 0, 0, .08);
    --shadow-lg:   0 2px 10px 0 rgba(0, 0, 0, .12);
    --radius:      2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.4;
}

a    { color: inherit; text-decoration: none; }
img  { max-width: 100%; display: block; }
ul   { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

.container    { max-width: 1248px; margin: 0 auto; padding: 0 12px; }
.container-lg { max-width: 1600px; margin: 0 auto; padding: 0 16px; }

.card {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.hide { display: none !important; }
.text-green  { color: var(--green); }
.text-soft   { color: var(--text-soft); }
.text-center { text-align: center; }
.strike      { text-decoration: line-through; color: var(--text-soft); font-weight: 400; }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    background: var(--blue);
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .2);
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- logo --- */
.logo { display: block; padding: 0 4px; }

.logo-title {
    display: flex;
    align-items: baseline;
    font-size: 15px;
    font-style: italic;
    font-weight: 700;
    color: #fff;
    letter-spacing: .2px;
}

.logo-sub {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-style: italic;
    color: #fff;
    margin-top: -3px;
}

.logo-sub b { color: var(--yellow); font-weight: 500; }
.logo-sub svg { width: 10px; height: 10px; }

/* --- search --- */
.search-form {
    flex: 1;
    min-width: 0;          /* flex items default to min-width:auto and refuse to shrink */
    max-width: 570px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    height: 36px;
    padding: 0 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
}

.search-box button {
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--blue);
    padding: 0 8px 0 0;
}

.search-box input {
    flex: 1;
    min-width: 0;          /* inputs carry an intrinsic size; let it collapse */
    border: 0;
    outline: 0;
    font-size: 14px;
    color: var(--text);
    background: transparent;
}

.search-box input::placeholder { color: #a5a5a5; }

/* live suggestions */
.suggestions {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    overflow: hidden;
    z-index: 120;
}

.suggestions a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.suggestions a:last-child { border-bottom: 0; }
.suggestions a:hover      { background: #f5faff; }
.suggestions img          { width: 38px; height: 38px; object-fit: contain; }
.suggestions .s-name      { font-size: 13px; }
.suggestions .s-cat       { font-size: 11px; color: var(--text-soft); }

/* --- header actions --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.btn-login {
    background: #fff;
    color: var(--blue);
    font-weight: 600;
    padding: 5px 40px;
    border-radius: var(--radius);
    white-space: nowrap;
}

.btn-login:hover { background: #f7f7f7; }

.header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}

.cart-link { position: relative; }

.cart-badge {
    position: absolute;
    top: -8px;
    left: 12px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid var(--blue);
}

/* --- account dropdown --- */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    width: 232px;
    background: #fff;
    color: var(--text);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-weight: 400;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .15s ease;
    z-index: 130;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    border: 6px solid transparent;
    border-top: 0;
    border-bottom-color: #fff;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.dropdown-menu a:last-child { border-bottom: 0; }
.dropdown-menu a:hover      { background: #f5faff; color: var(--blue); }
.dropdown-menu svg          { color: var(--blue); flex-shrink: 0; }

/* ==========================================================================
   Category navigation strip
   ========================================================================== */

.catnav {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 56px;
    z-index: 90;
}

.catnav-inner {
    max-width: 1248px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.catnav-inner::-webkit-scrollbar { display: none; }

.catnav-item {
    position: relative;
    padding: 8px 12px 6px;
    text-align: center;
    flex-shrink: 0;
}

.catnav-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto;
    transition: transform .2s;
}

.catnav-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
    white-space: nowrap;
}

.catnav-item:hover img  { transform: translateY(-3px); }
.catnav-item:hover span { color: var(--blue); }

.catnav-item .chev { transition: transform .2s; }
.catnav-item:hover .chev { transform: rotate(180deg); }

.catnav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    text-align: left;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transition: .15s;
    z-index: 95;
}

.catnav-item:hover .catnav-sub { opacity: 1; visibility: visible; }

.catnav-sub a {
    display: block;
    padding: 9px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.catnav-sub a:hover { background: #f5faff; color: var(--blue); }

/* ==========================================================================
   Flash messages
   ========================================================================== */

.flash {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    font-size: 14px;
    border-left: 4px solid;
}

.flash-success { background: #e8f5e9; border-color: var(--green); color: #1b5e20; }
.flash-error   { background: #fff0f0; border-color: var(--red);   color: #b71c1c; }
.flash-info    { background: #e8f1fe; border-color: var(--blue);  color: #0d47a1; }

/* ==========================================================================
   Home page
   ========================================================================== */

.home { padding: 10px 0 24px; }

/* --- hero slider --- */
.slider {
    position: relative;
    background: #fff;
    overflow: hidden;
    margin-bottom: 10px;
}

.slides {
    display: flex;
    transition: transform .45s ease;
}

.slides a { min-width: 100%; }

.slides img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 72px;
    background: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.slider-btn:hover { color: var(--blue); }
.slider-btn.prev  { left: 0;  border-radius: 0 4px 4px 0; }
.slider-btn.next  { right: 0; border-radius: 4px 0 0 4px; }

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.slider-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .65);
    cursor: pointer;
}

.slider-dots i.on { background: var(--blue); width: 18px; border-radius: 4px; }

/* --- product row section --- */
.section {
    background: #fff;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 10px;
    border-bottom: 1px solid var(--border);
}

.section-head h2 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.2px;
}

.section-head .sub {
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 2px;
}

.btn-viewall {
    background: var(--blue);
    color: #fff;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-viewall:hover { background: var(--blue-dark); }

/* horizontally scrolling deal row */
.deal-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 8px 0 16px;
}

.deal-card {
    padding: 16px 12px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.deal-card:last-child { border-right: 0; }

.deal-card .thumb {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.deal-card .thumb img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
    transition: transform .25s;
}

.deal-card:hover .thumb img { transform: scale(1.05); }
.deal-card .name  { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.deal-card .price { font-size: 14px; color: var(--green); font-weight: 500; }
.deal-card .brand { font-size: 12px; color: var(--text-soft); }

/* --- offer strips --- */
.strip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.strip-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

/* ==========================================================================
   Product cards (grid listing)
   ========================================================================== */

.product-grid {
    display: grid;
    /* minmax(0,1fr) rather than 1fr: 1fr tracks refuse to shrink below the
       card's min-content width, which pushes the whole page wider */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff;
}

.product-grid > * { min-width: 0; }

.product-card {
    padding: 16px 12px 20px;
    position: relative;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .2s;
}

.product-card:hover { box-shadow: var(--shadow-lg); z-index: 2; }

.product-card .thumb {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
}

.product-card .thumb img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
}

.product-card .name {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.product-card:hover .name { color: var(--blue); }
.product-card .rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }

.product-card .price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 16px;
    font-weight: 500;
}

.product-card .price-row .off { color: var(--green); font-size: 13px; font-weight: 500; }
.product-card .assured { margin-top: 6px; }

/* wishlist heart on the card */
.wish-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow);
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c2c2c2;
    transition: .15s;
}

.wish-btn:hover      { color: var(--red); }
.wish-btn.on         { color: var(--red); }
.wish-btn.on svg     { fill: var(--red); }

/* rating chip */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    line-height: 1.3;
}

.rating-count { font-size: 12px; color: var(--text-soft); font-weight: 600; }

.assured-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--blue);
    font-weight: 600;
}

.stars .star.on  { color: #ffc107; }
.stars .star.off { color: #d9d9d9; }

/* ==========================================================================
   Listing page (filters + results)
   ========================================================================== */

.listing {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0 30px;
    align-items: start;
}

.filters {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 128px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.filters h3 {
    font-size: 18px;
    font-weight: 500;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters h3 a { font-size: 12px; color: var(--blue); font-weight: 600; }

.filter-group { padding: 14px 16px; border-bottom: 1px solid var(--border); }

.filter-group h4 {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 12px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    padding: 5px 0;
    cursor: pointer;
}

.filter-group label:hover { color: var(--blue); }
.filter-group input[type=checkbox],
.filter-group input[type=radio] { accent-color: var(--blue); width: 15px; height: 15px; cursor: pointer; }

.price-inputs { display: flex; align-items: center; gap: 8px; }

.price-inputs select,
.price-inputs input {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    outline: 0;
}

.results-head {
    background: #fff;
    box-shadow: var(--shadow);
    padding: 12px 16px;
    margin-bottom: 6px;
}

.results-head h1 { font-size: 18px; font-weight: 500; }
.results-head .count { font-size: 12px; color: var(--text-soft); font-weight: 400; margin-left: 6px; }

.sort-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    overflow-x: auto;
}

.sort-bar b { font-size: 14px; font-weight: 500; flex-shrink: 0; }

.sort-bar a {
    font-size: 14px;
    padding: 4px 0;
    color: var(--text-mid);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.sort-bar a.on { color: var(--blue); font-weight: 500; border-color: var(--blue); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f5ff;
    border: 1px solid #d6e4ff;
    color: var(--blue);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 14px;
}

.chip span { cursor: pointer; font-weight: 700; }

.empty-state {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-state img  { width: 180px; margin: 0 auto 20px; }
.empty-state h3   { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.empty-state p    { color: var(--text-soft); margin-bottom: 18px; }

/* pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    padding: 16px;
    box-shadow: var(--shadow);
}

.pagination a, .pagination span {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-mid);
}

.pagination a:hover { background: #f0f5ff; color: var(--blue); }
.pagination .on     { background: var(--blue); color: #fff; font-weight: 500; }
.pagination .off    { color: #c2c2c2; }

/* ==========================================================================
   Product detail page
   ========================================================================== */

.detail {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 0;
    background: #fff;
    box-shadow: var(--shadow);
    margin: 10px 0 24px;
    align-items: start;
}

.gallery {
    position: sticky;
    top: 128px;
    padding: 16px;
    display: flex;
    gap: 14px;
}

.thumb-strip { display: flex; flex-direction: column; gap: 10px; }

.thumb-strip button {
    width: 56px;
    height: 56px;
    border: 1px solid var(--border-dark);
    background: #fff;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius);
}

.thumb-strip button.on { border-color: var(--blue); border-width: 2px; }
.thumb-strip img { width: 100%; height: 100%; object-fit: contain; }

.main-image {
    flex: 1;
    border: 1px solid var(--border);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.main-image img { max-height: 100%; width: auto; object-fit: contain; }

.gallery-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.btn-cart, .btn-buy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    border: 0;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .3px;
    text-transform: uppercase;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.btn-cart { background: var(--yellow); }
.btn-buy  { background: var(--orange); }
.btn-cart:hover { background: #f39200; }
.btn-buy:hover  { background: #ef5a0d; }
.btn-cart:disabled, .btn-buy:disabled { background: #c2c2c2; cursor: not-allowed; }

.detail-body { padding: 20px 24px 40px; border-left: 1px solid var(--border); }

.breadcrumb {
    font-size: 12px;
    color: var(--text-soft);
    padding: 12px 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a:hover { color: var(--blue); }

.detail-body h1 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 8px;
}

.detail-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.special-price {
    color: var(--green);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.price-block { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-block .now { font-size: 28px; font-weight: 500; }
.price-block .mrp { font-size: 16px; }
.price-block .off { font-size: 16px; color: var(--green); font-weight: 500; }

.detail-table { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px 8px; margin-top: 22px; }
.detail-table > * { min-width: 0; }
.detail-table > .lbl { font-size: 14px; color: var(--text-soft); font-weight: 500; }

.offer-list li {
    display: flex;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.offer-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.offer-list b { font-weight: 500; }

.highlight-list li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    margin-bottom: 8px;
}

.highlight-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    width: 5px;
    height: 5px;
    background: #878787;
    border-radius: 50%;
}

.seller-name { color: var(--blue); font-weight: 500; }

.stock-out { color: var(--red); font-weight: 500; font-size: 15px; }

.delivery-input {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--blue);
    max-width: 220px;
    padding-bottom: 4px;
}

.delivery-input input { border: 0; outline: 0; flex: 1; font-size: 14px; }
.delivery-input button { border: 0; background: none; color: var(--blue); font-weight: 500; cursor: pointer; }

/* specification table */
.specs { margin-top: 34px; }
.specs h2 { font-size: 24px; font-weight: 500; margin-bottom: 16px; }
.spec-group { margin-bottom: 24px; }
.spec-group h3 { font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.spec-group table { width: 100%; border-collapse: collapse; }

.spec-group td {
    padding: 10px 12px;
    font-size: 14px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.spec-group td:first-child { color: var(--text-soft); width: 240px; }

/* reviews */
.reviews { margin-top: 34px; }
.reviews h2 { font-size: 20px; font-weight: 500; margin-bottom: 16px; }

.review-summary {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.review-score { text-align: center; }
.review-score .num { font-size: 42px; font-weight: 500; }
.review-score .num small { font-size: 20px; }
.review-score .cnt { font-size: 13px; color: var(--text-soft); }

.review-bars { flex: 1; min-width: 240px; }
.review-bars .bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.review-bars .track { flex: 1; height: 5px; background: #e0e0e0; border-radius: 3px; overflow: hidden; }
.review-bars .fill  { height: 100%; background: var(--green); }

.review-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review-item .top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-item .rt  { font-weight: 500; font-size: 14px; }
.review-item p    { font-size: 14px; color: var(--text-mid); margin-bottom: 8px; }
.review-item .by  { font-size: 13px; color: var(--text-soft); }

.review-form { margin-top: 20px; background: #fafafa; padding: 18px; border-radius: var(--radius); }
.review-form h3 { font-size: 16px; font-weight: 500; margin-bottom: 14px; }

.star-picker { display: flex; gap: 4px; font-size: 26px; cursor: pointer; margin-bottom: 12px; }
.star-picker span { color: #d9d9d9; }
.star-picker span.on { color: #ffc107; }

/* ==========================================================================
   Forms & buttons
   ========================================================================== */

.field { margin-bottom: 18px; position: relative; }

.field label {
    display: block;
    font-size: 12px;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    outline: 0;
    background: #fff;
    color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); }

.field textarea { resize: vertical; min-height: 90px; }
.field .err { color: var(--red); font-size: 12px; margin-top: 5px; display: block; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 0;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background: var(--blue);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn:hover        { background: var(--blue-dark); }
.btn-orange       { background: var(--orange); text-transform: uppercase; }
.btn-orange:hover { background: #ef5a0d; }
.btn-yellow       { background: var(--yellow); text-transform: uppercase; }
.btn-yellow:hover { background: #f39200; }
.btn-block        { width: 100%; }
.btn-sm           { padding: 7px 14px; font-size: 13px; }

.btn-outline {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border-dark);
    box-shadow: none;
}

.btn-outline:hover { background: #f7f7f7; color: var(--text); }

/* ==========================================================================
   Auth pages (login / register)
   ========================================================================== */

.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 12px 60px;
}

.auth-card {
    display: grid;
    grid-template-columns: 40% 60%;
    width: 100%;
    max-width: 750px;
    min-height: 528px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-side {
    background: var(--blue);
    color: #fff;
    padding: 40px 33px;
}

.auth-side h2 { font-size: 28px; font-weight: 600; line-height: 1.3; margin-bottom: 16px; }
.auth-side p  { font-size: 18px; color: #dbdbdb; line-height: 1.5; }
.auth-side img { width: 220px; margin-top: 40px; }

.auth-form { padding: 40px 35px 24px; display: flex; flex-direction: column; }
.auth-form .note { font-size: 12px; color: var(--text-soft); margin: 18px 0; line-height: 1.6; }
.auth-form .note a { color: var(--blue); }
.auth-form .swap { text-align: center; color: var(--blue); font-weight: 600; font-size: 14px; margin-top: auto; padding-top: 20px; }

/* ==========================================================================
   Cart page
   ========================================================================== */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 366px;
    gap: 10px;
    padding: 12px 0 40px;
    align-items: start;
}

.cart-panel { background: #fff; box-shadow: var(--shadow); }
.cart-item > *, .order-row > * { min-width: 0; }

.cart-panel > h2 {
    font-size: 18px;
    font-weight: 500;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.cart-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.cart-item .ci-thumb img { width: 112px; height: 112px; object-fit: contain; }
.cart-item .ci-name { font-size: 16px; margin-bottom: 4px; }
.cart-item .ci-name:hover { color: var(--blue); }
.cart-item .ci-seller { font-size: 12px; color: var(--text-soft); margin-bottom: 10px; }
.cart-item .ci-price { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }

.qty-box { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

.qty-control { display: flex; align-items: center; gap: 10px; }

.qty-control button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border-dark);
    background: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-control button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.qty-control button:disabled { color: #d9d9d9; cursor: not-allowed; }

.qty-control .val {
    width: 44px;
    height: 26px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    text-align: center;
    font-weight: 500;
}

.link-action {
    background: none;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
    padding: 4px 8px;
}

.link-action:hover { color: var(--blue); }

.cart-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
}

.cart-footer .btn-orange { min-width: 250px; height: 51px; font-size: 16px; }

/* price details sidebar */
.price-panel { background: #fff; box-shadow: var(--shadow); position: sticky; top: 128px; }

.price-panel h3 {
    font-size: 16px;
    color: var(--text-soft);
    font-weight: 500;
    text-transform: uppercase;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.price-rows { padding: 16px; }

.price-rows .row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
}

.price-rows .row.total {
    border-top: 1px dashed var(--border-dark);
    margin-top: 10px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 600;
}

.price-rows .saving {
    border-top: 1px dashed var(--border-dark);
    padding-top: 14px;
    margin-top: 4px;
    color: var(--green);
    font-size: 15px;
    font-weight: 500;
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-top: 12px solid #f5f5f5;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
}

.coupon-box { padding: 14px 16px; border-top: 1px solid var(--border); }
.coupon-box form { display: flex; gap: 8px; }
.coupon-box input { flex: 1; padding: 9px 10px; border: 1px solid var(--border-dark); border-radius: var(--radius); outline: 0; text-transform: uppercase; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--green); font-weight: 500; }

/* ==========================================================================
   Checkout
   ========================================================================== */

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 366px;
    gap: 10px;
    padding: 12px 0 40px;
    align-items: start;
}

.step { background: #fff; box-shadow: var(--shadow); margin-bottom: 10px; }

.step-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
}

.step-head .num {
    width: 24px;
    height: 24px;
    border-radius: var(--radius);
    background: #f0f0f0;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-head .ttl { font-size: 14px; color: var(--text-soft); font-weight: 500; text-transform: uppercase; letter-spacing: .3px; }
.step-head .val { font-size: 14px; margin-top: 3px; }
.step-head .tick { color: var(--blue); margin-left: 4px; }

.step.on .step-head { background: var(--blue); color: #fff; }
.step.on .step-head .num { background: #fff; color: var(--blue); }
.step.on .step-head .ttl { color: #fff; }

.step-body { padding: 0 20px 20px 60px; }

.addr-option {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.addr-option:hover { background: #fafafa; }
.addr-option.sel   { background: #f5faff; }
.addr-option input { accent-color: var(--blue); margin-top: 4px; }
.addr-option .tag  { background: #f0f0f0; color: var(--text-soft); font-size: 11px; padding: 2px 7px; border-radius: 2px; text-transform: uppercase; font-weight: 600; }
.addr-option .nm   { font-weight: 500; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.addr-option .ad   { font-size: 14px; color: var(--text-mid); line-height: 1.6; max-width: 640px; }

.addr-form { padding: 20px; background: #f5faff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; max-width: 640px; }
.form-grid .full { grid-column: 1 / -1; }

/* payment options */
.pay-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.pay-option:hover { background: #fafafa; }
.pay-option.sel   { background: #f5faff; }
.pay-option input { accent-color: var(--blue); margin-top: 3px; }
.pay-option .pm-name { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.pay-option .pm-desc { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

.pay-fields {
    padding: 16px 0 4px;
    max-width: 460px;
    border-top: 1px dashed var(--border-dark);
    margin-top: 14px;
}

.sandbox-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #7a5900;
    font-size: 13px;
    padding: 12px 14px;
    border-radius: var(--radius);
    margin: 14px 0;
    line-height: 1.6;
}

/* payment processing screen */
.processing { max-width: 480px; margin: 60px auto; text-align: center; background: #fff; padding: 44px 30px; box-shadow: var(--shadow); }
.processing h2 { font-size: 20px; font-weight: 500; margin: 22px 0 8px; }
.processing p  { color: var(--text-soft); }

.spinner {
    width: 54px;
    height: 54px;
    border: 4px solid #e3e3e3;
    border-top-color: var(--blue);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Order confirmation / my orders / tracking
   ========================================================================== */

.confirm-card { background: #fff; box-shadow: var(--shadow); padding: 40px; text-align: center; margin: 20px 0; }
.confirm-card .tick-circle { width: 74px; height: 74px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.confirm-card h1 { font-size: 24px; font-weight: 500; margin-bottom: 8px; }
.confirm-card p  { color: var(--text-soft); margin-bottom: 6px; }
.confirm-card .ordno { font-weight: 600; color: var(--text); }
.confirm-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

.order-card { background: #fff; box-shadow: var(--shadow); margin-bottom: 12px; }

.order-card .oc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
    flex-wrap: wrap;
    gap: 10px;
}

.order-card .oc-head .no { font-weight: 500; }
.order-card .oc-head .dt { font-size: 13px; color: var(--text-soft); }

.order-row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 160px 200px;
    gap: 16px;
    padding: 18px 20px;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.order-row img { width: 72px; height: 72px; object-fit: contain; }
.order-row .nm { font-size: 14px; margin-bottom: 4px; }
.order-row .qt { font-size: 13px; color: var(--text-soft); }
.order-row .pr { font-weight: 500; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.status-pill::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.status-pill.active::before    { background: var(--green); }
.status-pill.delivered::before { background: var(--green); }
.status-pill.cancelled::before { background: var(--red); }
.status-pill .sub { display: block; font-size: 12px; color: var(--text-soft); font-weight: 400; margin-top: 3px; }

/* tracking timeline */
.track { display: flex; align-items: flex-start; padding: 30px 20px 10px; overflow-x: auto; }

.track-step { flex: 1; min-width: 120px; text-align: center; position: relative; }

.track-step::before {
    content: '';
    position: absolute;
    top: 11px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: #e0e0e0;
}

.track-step:first-child::before { display: none; }
.track-step.done::before { background: var(--green); }

.track-step i {
    position: relative;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e0e0e0;
    display: block;
    margin: 0 auto 10px;
}

.track-step.done i { border-color: var(--green); background: var(--green); }
.track-step .lb { font-size: 13px; font-weight: 500; }
.track-step .dt { font-size: 11px; color: var(--text-soft); margin-top: 3px; }

/* ==========================================================================
   Account pages (sidebar layout)
   ========================================================================== */

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    padding: 16px 0 40px;
    align-items: start;
}

.account-side { background: #fff; box-shadow: var(--shadow); }

.acct-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 8px solid #f1f3f6;
}

.acct-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f5ff;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.acct-user .hi { font-size: 12px; color: var(--text-soft); }
.acct-user .nm { font-weight: 500; }

.acct-menu a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
}

.acct-menu a svg  { color: var(--blue); flex-shrink: 0; }
.acct-menu a:hover { background: #f5faff; color: var(--blue); }
.acct-menu a.active { color: var(--blue); font-weight: 600; background: #f5faff; }

/* grid children must be allowed to shrink, or wide content widens the page */
.listing > *,
.cart-layout > *,
.checkout-layout > *,
.account-layout > *,
.detail > * { min-width: 0; }

/* account page column splits */
.stat-cols   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr;        gap: 12px; margin-bottom: 40px; }

.panel { background: #fff; box-shadow: var(--shadow); padding: 24px; }
.panel h2 { font-size: 18px; font-weight: 500; margin-bottom: 20px; }
.panel h2 .edit { font-size: 13px; color: var(--blue); font-weight: 600; margin-left: 16px; cursor: pointer; }

.addr-card { border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; position: relative; }
.addr-card .acts { position: absolute; top: 14px; right: 14px; display: flex; gap: 14px; }
.addr-card .acts a { font-size: 13px; color: var(--blue); font-weight: 500; }
.addr-card .acts a.del { color: var(--red); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--footer-bg); color: #fff; margin-top: auto; }

.footer-top {
    max-width: 1248px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.4fr 1.2fr;
    gap: 20px;
    padding: 40px 12px;
    border-bottom: 1px solid #454d5e;
}

.footer h4 {
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 14px;
}

.footer li { margin-bottom: 9px; }
.footer li a { font-size: 12px; color: #fff; }
.footer li a:hover { text-decoration: underline; }

.footer-col.bordered { border-left: 1px solid #454d5e; padding-left: 20px; }
.footer address { font-style: normal; font-size: 12px; line-height: 1.9; }

.footer-bottom {
    max-width: 1248px;
    margin: 0 auto;
    padding: 20px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
}

.footer-bottom .links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-bottom .links a { display: flex; align-items: center; gap: 7px; }
.footer-bottom .links svg { color: var(--yellow); }

/* ==========================================================================
   Toast
   ========================================================================== */

.toast-host {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.toast {
    background: #212121;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    animation: toast-in .25s ease;
}

.toast.ok  { background: #1b5e20; }
.toast.err { background: #b71c1c; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Layout scaffolding
   ========================================================================== */

.page { min-height: calc(100vh - 56px); display: flex; flex-direction: column; }
.page-body { flex: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .detail        { grid-template-columns: 380px 1fr; }
    .product-grid  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-top    { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .listing,
    .cart-layout,
    .checkout-layout,
    .account-layout { grid-template-columns: 1fr; }

    .filters, .price-panel, .gallery { position: static; max-height: none; }
    .detail { grid-template-columns: 1fr; }
    .stat-cols, .detail-cols { grid-template-columns: 1fr; }
    .detail-body { border-left: 0; }
    .order-row { grid-template-columns: 64px 1fr; }
    .order-row .pr, .order-row .st { grid-column: 2; }
}

@media (max-width: 768px) {
    .header-inner   { gap: 8px; padding: 0 10px; }
    .header-actions { gap: 14px; }
    .header-actions .hide-sm { display: none; }
    .btn-login      { padding: 5px 18px; }
    .search-form    { max-width: none; }
    .product-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-card      { grid-template-columns: 1fr; min-height: 0; }
    .auth-side      { padding: 26px; }
    .auth-side img  { display: none; }
    .form-grid      { grid-template-columns: 1fr; }
    .strip-grid     { grid-template-columns: 1fr; }
    .step-body      { padding: 0 16px 16px; }
    .footer-top     { grid-template-columns: repeat(2, 1fr); }
    .footer-col.bordered { border-left: 0; padding-left: 0; }
    .slides img     { height: 160px; }
    .cart-item      { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 16px; }
    .cart-item .ci-thumb img { width: 84px; height: 84px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-table { grid-template-columns: 1fr; gap: 6px 0; }
    .detail-table > .lbl { margin-top: 12px; }
    .deal-row     { grid-auto-columns: minmax(150px, 1fr); }
    .price-block .now { font-size: 22px; }
    .footer-top   { grid-template-columns: 1fr; }
}
/* ==========================================================================
   Mobile Home Page — Flip-kart responsive layout
   ========================================================================== */

@media (max-width: 768px) {

    /* ---------- Header ---------- */

    .header {
        height: 104px;
        position: sticky;
        top: 0;
    }

    .header-inner {
        height: 104px;
        padding: 0 10px;
        display: block;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 10px;
        top: 9px;
        padding: 0;
        z-index: 2;
    }

    .logo-title {
        font-size: 15px;
    }

    .logo-sub {
        font-size: 9px;
    }

    .logo-sub svg {
        width: 8px;
        height: 8px;
    }

    /* Search gets its own full-width row */
    .search-form {
        position: absolute;
        left: 10px;
        right: 10px;
        top: 52px;
        width: auto;
        max-width: none;
        z-index: 3;
    }

    .search-box {
        height: 40px;
        border-radius: 3px;
        padding: 0 10px;
    }

    .search-box input {
        font-size: 13px;
    }

    /* Login + cart stay on top row */
    .header-actions {
        position: absolute;
        top: 10px;
        right: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        font-size: 12px;
        z-index: 4;
    }

    .header-actions .hide-sm {
        display: none !important;
    }

    .btn-login {
        padding: 5px 12px;
        font-size: 12px;
    }

    .header-link {
        gap: 4px;
        font-size: 12px;
    }

    .header-link svg {
        width: 14px;
        height: 14px;
    }

    /* ---------- Category navigation ---------- */

    .catnav {
        top: 104px;
        position: sticky;
        overflow: hidden;
    }

    .catnav-inner {
        justify-content: flex-start;
        gap: 4px;
        padding: 5px 8px 7px;
        overflow-x: auto;
    }

    .catnav-item {
        padding: 3px 7px 2px;
        min-width: 68px;
    }

    .catnav-item img {
        width: 46px;
        height: 46px;
    }

    .catnav-item span {
        font-size: 10px;
        line-height: 13px;
        margin-top: 2px;
    }

    .catnav-item .chev {
        width: 8px;
        height: 8px;
    }

    /* Hide desktop hover dropdown on mobile */
    .catnav-sub {
        display: none !important;
    }

    /* ---------- Home spacing ---------- */

    .home {
        padding: 6px 0 18px;
    }

    .container-lg {
        width: 100%;
        max-width: none;
        padding: 0 6px;
    }

    /* ---------- Hero banner ---------- */

/* ---------- Responsive hero slider ---------- */

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 8px;
    border-radius: 6px;
}

.slides {
    display: flex;
    width: 100%;
    transition: transform .45s ease;
}

.slides a {
    min-width: 100%;
    width: 100%;
    display: block;
    flex: 0 0 100%;
}

.slides img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1600 / 280;
    object-fit: contain;
}


    .slider-btn {
        width: 24px;
        height: 50px;
    }

    .slider-btn svg {
        width: 16px;
        height: 16px;
    }

    .slider-dots {
        bottom: 5px;
        gap: 4px;
    }

    .slider-dots i {
        width: 5px;
        height: 5px;
    }

    .slider-dots i.on {
        width: 12px;
    }

    /* ---------- Product sections ---------- */

    .section {
        margin-bottom: 8px;
        border-radius: 4px;
    }

    .section-head {
        padding: 11px 12px 8px;
    }

    .section-head h2 {
        font-size: 16px;
        line-height: 20px;
    }

    .section-head .sub {
        font-size: 10px;
        margin-top: 1px;
    }

    .btn-viewall {
        padding: 6px 10px;
        font-size: 10px;
    }

    /* ---------- Horizontal product row ---------- */

.deal-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 8px) / 2);
    padding: 7px 8px 11px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
}

.deal-card {
    width: 100%;
    min-width: 0;
    padding: 8px 6px;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.deal-card .thumb {
    height: 105px;
    margin-bottom: 6px;
}

.deal-card .thumb img {
    max-height: 105px;
    max-width: 115px;
}

.deal-card .name {
    font-size: 11px;
    line-height: 14px;
    margin-bottom: 2px;
}

.deal-card .price {
    font-size: 12px;
}

.deal-card .brand {
    font-size: 10px;
}

    .deal-card .thumb {
        height: 105px;
        margin-bottom: 8px;
    }

    .deal-card .thumb img {
        max-height: 105px;
        max-width: 120px;
    }

    .deal-card .name {
        font-size: 11px;
        line-height: 15px;
        margin-bottom: 2px;
    }

    .deal-card .price {
        font-size: 12px;
    }

    .deal-card .brand {
        font-size: 10px;
    }

    /* ---------- Offer strips ---------- */

    .strip-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-bottom: 8px;
    }

    .strip-grid img {
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: contain;
    }

    /* ---------- Recommended products ---------- */

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card {
        padding: 10px 8px 14px;
    }

    .product-card .thumb {
        height: 145px;
        margin-bottom: 8px;
    }

    .product-card .thumb img {
        max-height: 145px;
        max-width: 100%;
    }

    .product-card .name {
        font-size: 12px;
        line-height: 16px;
        min-height: 32px;
    }

    .product-card .price-row {
        font-size: 14px;
        gap: 5px;
    }

    .product-card .price-row .off {
        font-size: 10px;
    }
}


/* Extra-small phones */
@media (max-width: 480px) {



    .section-head h2 {
        font-size: 15px;
    }

    .product-card .thumb {
        height: 135px;
    }

    .product-card .thumb img {
        max-height: 135px;
    }
}
.mobile-banner {
    display: none !important;
}

.desktop-banner {
    display: block !important;
    width: 100%;
}

@media (max-width: 768px) {

    .desktop-banner {
        display: none !important;
    }

    .mobile-banner {
        display: block !important;
        width: 100% !important;
        height: 180px !important;
        object-fit: fill !important;
    }

    .home-banner {
        display: block;
        width: 100%;
    }
}
@media (max-width: 768px) {

    .catnav {
        height: 105px !important;
        padding: 5px 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .catnav-inner {
        gap: 6px !important;
        padding: 0 6px !important;
        height: 95px !important;
    }

    .catnav-item {
        min-width: 65px !important;
        font-size: 11px !important;
        flex: 0 0 65px !important;
    }

    .catnav-item img,
    .catnav-item .icon {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 2px !important;
    }
}
@media (max-width: 768px) {

    .section {
        margin-bottom: 8px !important;
    }

    .section-head {
        padding: 10px 12px 7px !important;
    }

    .section-head h2 {
        font-size: 17px !important;
        line-height: 21px !important;
    }

    .section-head .sub {
        font-size: 11px !important;
        margin-top: 2px !important;
    }

    .btn-viewall {
        padding: 7px 11px !important;
        font-size: 11px !important;
    }

    .deal-row {
        padding: 5px 6px 8px !important;
        gap: 6px !important;
    }

    .deal-card {
        padding: 6px 5px !important;
    }

    .deal-card .thumb {
        height: 120px !important;
        margin-bottom: 5px !important;
    }

    .deal-card .thumb img {
        max-height: 120px !important;
        max-width: 110px !important;
    }

    .deal-card .name {
        font-size: 11px !important;
        line-height: 14px !important;
        margin-bottom: 2px !important;
    }

    .deal-card .price {
        font-size: 12px !important;
    }

    .deal-card .brand {
        font-size: 10px !important;
    }
}
@media (max-width: 768px) {

    /* Product page */
    .breadcrumb {
        display: none !important;
    }

    .detail {
        display: block !important;
    }

    .gallery {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Remove the desktop wrapper so mobile can reorder everything */
    .gallery > div {
        display: contents !important;
    }

    /* Main image */
.gallery .main-image {
    order: 1 !important;
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    overflow: hidden !important;
}
    }

.gallery .main-image img {
    width: auto !important;
    height: 225px !important;
    max-width: 90% !important;
    max-height: 225px !important;
    object-fit: contain !important;
}

    /* Thumbnails */
    .gallery .thumb-strip {
        order: 2 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
    }

    .gallery .thumb-strip button {
        flex: 0 0 55px !important;
        width: 55px !important;
        height: 60px !important;
        padding: 4px !important;
    }

    .gallery .thumb-strip button img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    /* Add to Cart / Buy Now */
    .gallery .gallery-actions {
        order: 3 !important;
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        box-sizing: border-box !important;
    }

    .gallery .gallery-actions button {
        flex: 1 !important;
        min-height: 48px !important;
        font-size: 15px !important;
    }

}
/* Product page mobile header - back arrow beside search */
.product-back-mobile {
    display: none;
}

@media (max-width: 768px) {

    .product-search-form {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        gap: 4px !important;
    }

    .product-search-form .product-back-mobile {
        display: flex !important;
        flex: 0 0 38px !important;
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #222 !important;
        font-size: 26px !important;
        line-height: 1 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .product-search-form .search-box {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .product-search-form .search-box input {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* FINAL MOBILE PRODUCT SEARCH + BACK BUTTON */

@media (max-width: 768px) {

    .product-search-form {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 20px 0 40px !important;
        box-sizing: border-box !important;
    }

    .product-search-form .product-back-mobile {
        display: flex !important;
        position: absolute !important;
        left: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;

        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        margin: 0 !important;

        border: 0 !important;
        background: transparent !important;
        color: #222 !important;
        font-size: 28px !important;
        line-height: 1 !important;

        align-items: center !important;
        justify-content: center !important;
    }

    .product-search-form .search-box {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .product-search-form .search-box input {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
@media (max-width: 768px) {
    .product-search-form .product-back-mobile {
        left: 2px !important;
    }
}
@media (max-width: 768px) {

    .gallery .main-image {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
        padding: 8px !important;
    }

    .gallery .main-image img {
        height: 230px !important;
        max-height: 230px !important;
        max-width: 80% !important;
    }

    .gallery .thumb-strip {
        padding: 10px !important;
        gap: 8px !important;
    }

    .gallery .thumb-strip button {
        width: 58px !important;
        height: 62px !important;
        flex: 0 0 58px !important;
    }

}
@media (max-width: 768px) {

    /* Compact product gallery */
    .gallery .main-image {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
        padding: 5px !important;
    }

    .gallery .main-image img {
        height: 175px !important;
        max-height: 175px !important;
        max-width: 75% !important;
    }

    /* Compact thumbnails */
    .gallery .thumb-strip {
        padding: 6px 10px !important;
        gap: 6px !important;
        min-height: 72px !important;
    }

    .gallery .thumb-strip button {
        width: 52px !important;
        height: 56px !important;
        flex: 0 0 52px !important;
    }

    /* Compact buttons */
    .gallery .gallery-actions {
        padding: 6px 10px !important;
        gap: 8px !important;
    }

    .gallery .gallery-actions button {
        min-height: 48px !important;
        height: 48px !important;
        font-size: 14px !important;
    }

}
@media (max-width: 768px) {

    /* Product page back arrow */
    .product-back-mobile {
        position: absolute !important;
        left: 18px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;

        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;

        color: #111 !important;
        font-size: 38px !important;
        line-height: 1 !important;
        z-index: 20 !important;
    }

    /* Search row */
    .product-search-form {
        position: relative !important;
        width: 100% !important;
        padding-left: 55px !important;
        box-sizing: border-box !important;
    }

    .product-search-form .search-box {
        width: 100% !important;
        box-sizing: border-box !important;
    }

}
/* =========================================================
   MOBILE HOMEPAGE
   ========================================================= */
@media (max-width: 768px) {

    /* Homepage overall */
    .home .container-lg {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Category strip - compact horizontal scroll */
    .home ~ * {
        box-sizing: border-box;
    }

    .catnav {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .catnav-inner {
        display: flex !important;
        width: max-content !important;
        min-width: 100% !important;
        gap: 18px !important;
        padding: 12px 14px !important;
    }

    .catnav-item {
        flex: 0 0 auto !important;
        width: 72px !important;
    }

    .catnav-item > a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 5px !important;
    }

    .catnav-item > a img {
        width: 52px !important;
        height: 52px !important;
        object-fit: contain !important;
    }

    .catnav-item > a span {
        font-size: 12px !important;
        line-height: 15px !important;
        white-space: nowrap !important;
    }

    /* Hide category dropdowns on mobile */
    .catnav-sub {
        display: none !important;
    }

    /* Hero banner */
    .home .slider {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }

    .home .slides {
        width: 100% !important;
    }

    .home .home-banner {
        display: block !important;
        width: 100% !important;
    }

    .home .mobile-banner {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1080 / 600 !important;
        object-fit: cover !important;
        display: block !important;
    }

    .home .desktop-banner {
        display: none !important;
    }

    /* Slider arrows smaller */
    .home .slider-btn {
        width: 34px !important;
        height: 34px !important;
    }

    .home .slider-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Slider dots */
    .home .slider-dots {
        bottom: 7px !important;
    }

    /* Sections */
    .home .section {
        margin: 8px 0 !important;
        border-radius: 0 !important;
    }

    .home .section-head {
        padding: 12px 14px !important;
    }

    .home .section-head h2 {
        font-size: 18px !important;
        line-height: 22px !important;
    }

    .home .section-head .sub {
        font-size: 12px !important;
    }

    .home .btn-viewall {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }

    /* Product deal rows - horizontal scroll */
    .home .deal-row {
        display: flex !important;
        overflow-x: auto !important;
        gap: 10px !important;
        padding: 0 12px 12px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .home .deal-row > * {
        flex: 0 0 155px !important;
        min-width: 155px !important;
    }

    /* Offer strips */
    .home .strip-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    .home .strip-grid > * {
        flex: 0 0 85% !important;
    }

    .home .strip-grid img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Recommended products - 2 columns */
    .home .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 0 8px 12px !important;
    }

    .home .product-grid > * {
        min-width: 0 !important;
    }
}
@media (max-width: 768px) {

    .catnav {
        height: 100px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .catnav-inner {
        height: 100px !important;
        padding: 10px 12px !important;
        gap: 14px !important;
        align-items: center !important;
    }

    .catnav-item {
        width: 68px !important;
        flex: 0 0 68px !important;
    }

    .catnav-item > a img {
        width: 48px !important;
        height: 48px !important;
    }

    .catnav-item > a span {
        font-size: 11px !important;
        line-height: 14px !important;
        margin-top: 2px !important;
    }

    .catnav-item .chev {
        width: 8px !important;
        height: 8px !important;
    }
}
@media (max-width: 768px) {

    /* Best of Electronics / deal cards */
    .deal-row {
        display: flex !important;
        overflow-x: auto !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .deal-row > * {
        flex: 0 0 50% !important;
        width: 50% !important;
        min-width: 50% !important;
        box-sizing: border-box !important;
    }

    .deal-card {
        padding: 10px !important;
        min-height: 300px !important;
        box-sizing: border-box !important;
    }

    .deal-card img {
        width: 100% !important;
        height: 170px !important;
        object-fit: contain !important;
    }

    .deal-card h3 {
        font-size: 14px !important;
        line-height: 18px !important;
        margin: 8px 0 4px !important;
    }

    .deal-card .price {
        font-size: 14px !important;
    }

    .deal-card .brand {
        font-size: 12px !important;
    }
}
@media (max-width: 768px) {

    .deal-row > * {
        flex: 0 0 45% !important;
        width: 45% !important;
        min-width: 45% !important;
    }

    .deal-card {
        min-height: 0 !important;
        height: 260px !important;
        padding: 8px !important;
        overflow: hidden !important;
    }

    .deal-card img {
        height: 125px !important;
        max-height: 125px !important;
    }

    .deal-card h3 {
        font-size: 13px !important;
        line-height: 17px !important;
        max-height: 34px !important;
        overflow: hidden !important;
        margin: 6px 0 3px !important;
    }

    .deal-card .price {
        font-size: 13px !important;
        line-height: 18px !important;
    }

    .deal-card .brand {
        font-size: 11px !important;
        line-height: 15px !important;
    }
}
@media (max-width: 768px) {

    .deal-row {
        height: 230px !important;
        max-height: 230px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .deal-row > * {
        flex: 0 0 42% !important;
        width: 42% !important;
        min-width: 42% !important;
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
    }

    .deal-card {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
        padding: 6px !important;
    }

    .deal-card img {
        height: 105px !important;
        max-height: 105px !important;
    }

    .deal-card h3 {
        font-size: 12px !important;
        line-height: 15px !important;
        margin: 4px 0 !important;
    }

    .deal-card .price {
        font-size: 12px !important;
        line-height: 16px !important;
    }

    .deal-card .brand {
        font-size: 10px !important;
    }
}
/* =========================================================
   DESKTOP FULL WIDTH LAYOUT
   ========================================================= */

@media (min-width: 769px) {

    .header-inner {
        max-width: none !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .home .container-lg {
        max-width: none !important;
        width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
    }

}
/* =========================================================
   DESKTOP HEADER + SEARCH FIX
   ========================================================= */

@media (min-width: 769px) {

    .header-inner {
        width: 100% !important;
        max-width: none !important;
        height: 56px !important;
        padding: 0 24px !important;
        box-sizing: border-box;
        display: flex !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .logo {
        flex: 0 0 90px !important;
        padding: 0 !important;
    }

    .logo-title {
        font-size: 16px !important;
    }

    .logo-sub {
        font-size: 9px !important;
    }

    .search-form {
        flex: 1 1 auto !important;
        max-width: 650px !important;
        margin: 0 !important;
    }

    .search-box {
        height: 40px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .search-box input {
        font-size: 14px !important;
    }

    .header-actions {
        margin-left: auto !important;
        gap: 22px !important;
        white-space: nowrap;
    }

    .btn-login {
        padding: 6px 24px !important;
    }
}
/* iPhone 18 Pre-booking poster clickable */
.iphone-prebook-image-link {
    display: block;
    cursor: pointer;
}

.iphone-prebook-image-link img {
    display: block;
    width: 100%;
    cursor: pointer;
}
/* =========================================================
   FINAL PRODUCT GALLERY FIX - DESKTOP
   ========================================================= */

@media (min-width: 769px) {

    .detail {
        grid-template-columns: 560px 1fr !important;
    }

    .gallery {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px !important;
        gap: 14px !important;
    }

    /* Thumbnail column */
    .gallery > .thumb-strip {
        display: flex !important;
        flex-direction: column !important;
        flex: 0 0 56px !important;
        width: 56px !important;
        gap: 10px !important;
    }

    /* Main gallery wrapper */
    .gallery > div[style*="flex:1"] {
        display: block !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    /* Main product image box */
    .gallery .main-image {
        width: 100% !important;
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        background: #fff !important;
        border: 1px solid var(--border) !important;
    }

    /* Main product image */
    .gallery .main-image img {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 360px !important;
        object-fit: contain !important;
    }

    /* Buttons */
    .gallery .gallery-actions {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
        margin-top: 14px !important;
    }

}
/* =========================================================
   FINAL MOBILE PRODUCT IMAGE + GALLERY
   ========================================================= */

@media (max-width: 768px) {

    /* Main product image box */
    .gallery .main-image {
        height: 260px !important;
        min-height: 260px !important;
        max-height: 260px !important;
        padding: 5px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    /* Bigger product image - no crop */
    .gallery .main-image img {
        width: auto !important;
        height: auto !important;
        max-width: 92% !important;
        max-height: 235px !important;
        object-fit: contain !important;
    }

    /* Thumbnail area */
    .gallery .thumb-strip {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .gallery .thumb-strip button {
        flex: 0 0 58px !important;
        width: 58px !important;
        height: 62px !important;
    }

}
/* =========================================================
   FINAL MOBILE PRODUCT PAGE - COMPACT SPACING
   ========================================================= */

@media (max-width: 768px) {

    /* ---------- PRODUCT GALLERY ---------- */

    .detail {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .gallery {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    /* Main image area */
    .gallery .main-image {
        width: 100% !important;
        height: 255px !important;
        min-height: 255px !important;
        max-height: 255px !important;

        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border: 0 !important;
        background: #fff !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Main product image - BIG + NO CROP */
    .gallery .main-image img {
        display: block !important;

        width: auto !important;
        height: auto !important;

        max-width: 94% !important;
        max-height: 245px !important;

        object-fit: contain !important;
    }


    /* ---------- THUMBNAILS ---------- */

    .gallery .thumb-strip {
        width: 100% !important;

        height: 72px !important;
        min-height: 72px !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 7px !important;

        padding: 5px 8px !important;
        margin: 0 !important;

        box-sizing: border-box !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .gallery .thumb-strip button {
        flex: 0 0 52px !important;

        width: 52px !important;
        height: 58px !important;

        min-width: 52px !important;
        min-height: 58px !important;

        padding: 3px !important;
        margin: 0 !important;

        box-sizing: border-box !important;
    }

    .gallery .thumb-strip button img {
        width: 100% !important;
        height: 100% !important;

        object-fit: contain !important;
    }


    /* ---------- PRE-BOOK / CART BUTTONS ---------- */

    .gallery .gallery-actions {
        width: 100% !important;

        display: flex !important;

        gap: 7px !important;

        margin: 2px 0 0 !important;
        padding: 0 10px !important;

        box-sizing: border-box !important;
    }

    .gallery .gallery-actions button {
        min-height: 48px !important;
        height: 48px !important;

        margin: 0 !important;

        font-size: 14px !important;
    }


    /* ---------- PRODUCT DETAILS ---------- */

    .detail-body {
        margin: 0 !important;
        padding: 12px 14px !important;
    }

    .detail-body h1 {
        margin: 0 0 7px !important;
        padding: 0 !important;

        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    .detail-rating {
        margin: 0 0 7px !important;
    }

    .special-price {
        margin: 5px 0 !important;
    }

    .price-block {
        margin: 2px 0 6px !important;
    }

    .detail-table {
        margin-top: 8px !important;
    }

}
/* =========================================================
   FINAL MOBILE PRODUCT DETAILS - COMPACT SPACING
   ========================================================= */

@media (max-width: 768px) {

    /* Product information area */
    .detail-body {
        padding: 8px 14px !important;
        margin: 0 !important;
    }

    /* Product name */
    .detail-body h1 {
        margin: 0 0 5px !important;
        padding: 0 !important;
        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    /* Rating row */
    .detail-rating {
        margin: 0 0 5px !important;
        padding: 0 !important;
    }

    /* Special price */
    .special-price {
        margin: 3px 0 !important;
        padding: 0 !important;
    }

    /* Price */
    .price-block {
        margin: 2px 0 4px !important;
        padding: 0 !important;
    }

    /* Pre-booking / stock text */
    .detail-body > .detail-table {
        margin-top: 4px !important;
    }

    /* All detail labels */
    .detail-table > .lbl {
        margin-top: 14px !important;
        margin-bottom: 6px !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }

    /* First section should come closer to price */
    .detail-table > .lbl:first-child {
        margin-top: 8px !important;
    }

    /* Offers list */
    .offer-list {
        margin: 0 !important;
        padding: 0 !important;
    }

    .offer-list li {
        margin: 0 0 8px !important;
        padding: 0 !important;
        line-height: 1.4 !important;
    }

    .offer-list li:last-child {
        margin-bottom: 0 !important;
    }

    /* Delivery section */
    .delivery-input {
        margin: 0 !important;
    }

    .delivery-input + div,
    .delivery-input ~ div {
        margin-top: 5px !important;
    }

    /* Highlights */
    .highlight-list {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-left: 20px !important;
    }

    .highlight-list li {
        margin-bottom: 5px !important;
        line-height: 1.4 !important;
    }

    /* Seller */
    .seller-name {
        margin: 0 !important;
    }

    /* Description */
    .detail-table > .lbl + div {
        margin-top: 0 !important;
    }

    /* Specifications */
    .specs {
        margin-top: 16px !important;
    }

    /* Reviews */
    .reviews {
        margin-top: 16px !important;
    }
}
/* =========================================================
   FINAL MOBILE PRODUCT PAGE - REMOVE EXTRA SPACE
   ========================================================= */

@media (max-width: 768px) {

    /* Product details main container */
    .detail-body {
        padding: 8px 12px !important;
        margin: 0 !important;
    }

    /* Product title */
    .detail-body h1 {
        margin: 0 0 5px !important;
        line-height: 1.15 !important;
    }

    /* Rating */
    .detail-rating {
        margin: 0 0 4px !important;
        padding: 0 !important;
    }

    /* Special price */
    .special-price {
        margin: 3px 0 !important;
        line-height: 1.2 !important;
    }

    /* Price */
    .price-block {
        margin: 2px 0 4px !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }

    /* Pre-booking available / stock text */
    .detail-body p {
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }


    /* =====================================================
       AVAILABLE OFFERS
       ===================================================== */

    .detail-table {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    .detail-table > .lbl {
        margin: 10px 0 5px !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }

    .detail-table > .lbl:first-child {
        margin-top: 7px !important;
    }

    .offer-list {
        margin: 0 !important;
        padding: 0 !important;
    }

    .offer-list li {
        margin: 0 0 5px !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }

    .offer-list li:last-child {
        margin-bottom: 0 !important;
    }


    /* =====================================================
       DELIVERY
       ===================================================== */

    .delivery-input {
        margin: 0 !important;
    }

    .delivery-input + div {
        margin-top: 5px !important;
        line-height: 1.4 !important;
    }


    /* =====================================================
       HIGHLIGHTS
       ===================================================== */

    .highlight-list {
        margin: 0 !important;
        padding-left: 20px !important;
    }

    .highlight-list li {
        margin: 0 0 4px !important;
        line-height: 1.35 !important;
    }


    /* =====================================================
       SELLER
       ===================================================== */

    .seller-name {
        margin: 0 !important;
        line-height: 1.3 !important;
    }


    /* =====================================================
       DESCRIPTION
       ===================================================== */

    .detail-table > div[style*="line-height"] {
        margin: 0 !important;
        line-height: 1.5 !important;
    }


    /* =====================================================
       SPECIFICATIONS
       ===================================================== */

    .specs {
        margin: 12px 0 0 !important;
        padding: 0 !important;
    }

    .specs h2 {
        margin: 0 0 10px !important;
    }

    .spec-group {
        margin: 0 0 10px !important;
    }

    .spec-group h3 {
        margin: 0 0 5px !important;
    }

    .spec-group table {
        margin: 0 !important;
    }


    /* =====================================================
       RATINGS & REVIEWS
       ===================================================== */

    .reviews {
        margin: 12px 0 0 !important;
        padding: 0 !important;
    }

    .reviews h2 {
        margin: 0 0 10px !important;
    }

    /* Important: mobile review summary should NOT
       keep a large desktop-style empty column */
    .review-summary {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .review-score {
        margin: 0 0 10px !important;
        padding: 0 !important;
    }

    .review-score .num {
        margin: 0 !important;
        line-height: 1 !important;
    }

    .review-score .cnt {
        margin: 5px 0 0 !important;
        line-height: 1.4 !important;
    }

    .review-bars {
        margin: 8px 0 0 !important;
        padding: 0 !important;
    }

    .bar-row {
        margin: 0 0 5px !important;
        padding: 0 !important;
    }


    /* =====================================================
       SIMILAR PRODUCTS
       ===================================================== */

    .detail-body + .section {
        margin-top: 8px !important;
    }

    .section {
        margin-bottom: 8px !important;
    }
}
/* =========================================================
   FINAL MOBILE FOOTER - COMPACT
   ========================================================= */

@media (max-width: 768px) {

    /* Footer overall */
    footer,
    .footer {
        padding: 24px 16px 18px !important;
        margin: 0 !important;
    }

    /* Footer columns / sections */
    footer > div,
    .footer > div,
    .footer-grid,
    .footer-columns {
        gap: 0 !important;
        margin: 0 !important;
    }

    /* Individual footer sections */
    footer section,
    .footer section,
    .footer-col,
    .footer-column {
        margin: 0 0 18px !important;
        padding: 0 !important;
    }

    /* Section headings */
    footer h3,
    footer h4,
    .footer h3,
    .footer h4 {
        margin: 0 0 10px !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }

    /* Footer links */
    footer ul,
    .footer ul {
        margin: 0 !important;
        padding: 0 !important;
    }

    footer li,
    .footer li {
        margin: 0 0 8px !important;
        padding: 0 !important;
        line-height: 1.35 !important;
    }

    /* Address / Mail Us */
    footer p,
    .footer p {
        margin: 0 0 8px !important;
        line-height: 1.5 !important;
    }

    /* Social links */
    footer .social,
    .footer .social {
        margin: 0 !important;
        padding: 0 !important;
        gap: 10px !important;
    }

    /* Footer bottom */
    footer .footer-bottom,
    .footer .footer-bottom {
        margin-top: 8px !important;
        padding-top: 14px !important;
    }

    /* Bottom action links */
    footer .footer-actions,
    .footer .footer-actions {
        margin: 0 !important;
        padding: 12px 0 !important;
        gap: 12px !important;
    }

}
/* =========================================================
   FINAL COMPACT MOBILE FOOTER
   ========================================================= */

@media (max-width: 768px) {

    .footer {
        margin-top: 0 !important;
    }

    /* Main footer sections - 2 columns */
    .footer-top {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px 24px !important;
        padding: 24px 16px !important;
        margin: 0 !important;
    }

    /* Every footer column */
    .footer-top .footer-col {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-left: 0 !important;
    }

    /* Headings */
    .footer-top .footer-col h4 {
        font-size: 11px !important;
        margin: 0 0 9px !important;
        line-height: 1.25 !important;
    }

    /* Lists */
    .footer-top .footer-col ul {
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer-top .footer-col li {
        margin: 0 0 6px !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }

    .footer-top .footer-col li a {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    /* Social section */
    .footer-top .footer-col .social {
        gap: 7px !important;
    }

    /* Mail Us / Address sections full width */
    .footer-top .footer-col:nth-child(5),
    .footer-top .footer-col:nth-child(6) {
        grid-column: 1 / -1 !important;
    }

    /* Address */
    .footer-top .footer-col address {
        font-size: 12px !important;
        line-height: 1.55 !important;
        margin: 0 !important;
    }

    /* Footer bottom */
    .footer-bottom {
        padding: 14px 16px !important;
        margin: 0 !important;
        gap: 10px !important;
        font-size: 11px !important;
    }

    .footer-bottom .links {
        gap: 12px !important;
    }

    .footer-bottom .links a {
        gap: 5px !important;
        font-size: 11px !important;
    }
}


/* Extra compact on small phones */
@media (max-width: 480px) {

    .footer-top {
        gap: 18px 16px !important;
        padding: 20px 14px !important;
    }

    .footer-top .footer-col h4 {
        margin-bottom: 7px !important;
    }

    .footer-top .footer-col li {
        margin-bottom: 5px !important;
    }

    .footer-top .footer-col li a {
        font-size: 12px !important;
    }

    .footer-top .footer-col address {
        font-size: 11px !important;
        line-height: 1.5 !important;
    }

    .footer-bottom {
        padding: 12px 14px !important;
    }
}
/* =========================================================
   FINAL COMPACT RATINGS & REVIEWS
   Desktop + Mobile
   ========================================================= */

.reviews {
    padding: 18px !important;
    margin-top: 12px !important;
}

.reviews h2 {
    font-size: 20px !important;
    margin: 0 0 14px !important;
    line-height: 1.3 !important;
}

/* Rating summary */
.review-summary {
    display: grid !important;
    grid-template-columns: 140px 1fr !important;
    gap: 18px !important;
    align-items: center !important;
    padding: 8px 0 16px !important;
}

/* Big rating number */
.review-score .num {
    font-size: 38px !important;
    line-height: 1 !important;
    margin-bottom: 6px !important;
}

.review-score .num small {
    font-size: 18px !important;
}

.review-score .cnt {
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* Rating bars */
.review-bars {
    width: 100% !important;
}

.review-bars .bar-row {
    height: 26px !important;
    margin-bottom: 5px !important;
    gap: 8px !important;
    font-size: 12px !important;
}

.review-bars .track {
    height: 12px !important;
    border-radius: 3px !important;
}

.review-bars .text-soft {
    font-size: 11px !important;
}

/* Review form */
.review-form {
    padding: 16px !important;
    margin-top: 8px !important;
}

.review-form h3 {
    font-size: 15px !important;
    margin: 0 0 12px !important;
}

.review-form .star-picker {
    margin-bottom: 10px !important;
}

.review-form .star-picker span {
    font-size: 22px !important;
}

.review-form .field {
    margin-bottom: 10px !important;
}

.review-form input[type="text"] {
    height: 38px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
}

.review-form textarea {
    height: 65px !important;
    min-height: 65px !important;
    padding: 9px 10px !important;
    font-size: 13px !important;
}

.review-form .btn {
    padding: 9px 18px !important;
    font-size: 13px !important;
}

/* Login / no-review message */
.reviews > .text-soft {
    font-size: 13px !important;
    margin: 10px 0 !important;
}

/* Individual reviews */
.review-item {
    padding: 12px 0 !important;
}

.review-item .top {
    margin-bottom: 5px !important;
}

.review-item p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 5px 0 !important;
}

.review-item .by {
    font-size: 11px !important;
}


/* =========================================================
   MOBILE - EXTRA COMPACT
   ========================================================= */

@media (max-width: 768px) {

    .reviews {
        padding: 14px !important;
        margin-top: 8px !important;
    }

    .reviews h2 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .review-summary {
        grid-template-columns: 90px 1fr !important;
        gap: 10px !important;
        padding: 4px 0 12px !important;
    }

    .review-score .num {
        font-size: 32px !important;
    }

    .review-score .num small {
        font-size: 15px !important;
    }

    .review-score .cnt {
        font-size: 10px !important;
        line-height: 1.4 !important;
    }

    .review-bars .bar-row {
        height: 22px !important;
        margin-bottom: 3px !important;
        gap: 5px !important;
        font-size: 10px !important;
    }

    .review-bars .track {
        height: 9px !important;
    }

    .review-bars .text-soft {
        font-size: 9px !important;
    }

    .review-form {
        padding: 12px !important;
        margin-top: 6px !important;
    }

    .review-form h3 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .review-form .star-picker span {
        font-size: 19px !important;
    }

    .review-form input[type="text"] {
        height: 35px !important;
        font-size: 12px !important;
    }

    .review-form textarea {
        height: 58px !important;
        min-height: 58px !important;
        font-size: 12px !important;
    }

    .review-form .btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }

    .review-item {
        padding: 9px 0 !important;
    }

    .review-item p {
        font-size: 12px !important;
    }

    .review-item .by {
        font-size: 10px !important;
    }
}


/* Very small phones */
@media (max-width: 480px) {

    .reviews {
        padding: 12px !important;
    }

    .review-summary {
        grid-template-columns: 82px 1fr !important;
        gap: 8px !important;
    }

    .review-score .num {
        font-size: 29px !important;
    }

    .review-bars .bar-row {
        height: 20px !important;
    }
}
/* =========================================================
   FINAL - COMPACT RATINGS & REVIEWS
   ========================================================= */

/* Specifications ke neeche unnecessary gap kam */
.specs {
    margin-bottom: 8px !important;
    padding-bottom: 8px !important;
}

.specs h2 {
    margin-bottom: 12px !important;
}

.spec-group {
    margin-bottom: 8px !important;
}

/* Reviews section */
.reviews {
    margin-top: 0 !important;
    padding: 14px 20px !important;
}

/* Heading */
.reviews h2 {
    font-size: 19px !important;
    margin: 0 0 10px !important;
}

/* Rating summary */
.review-summary {
    grid-template-columns: 125px 1fr !important;
    gap: 14px !important;
    padding: 0 0 10px !important;
    min-height: 0 !important;
}

/* Rating number */
.review-score .num {
    font-size: 34px !important;
    line-height: 1 !important;
}

.review-score .num small {
    font-size: 16px !important;
}

.review-score .cnt {
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin-top: 4px !important;
}

/* Individual rating rows */
.review-bars {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.review-bars .bar-row {
    display: grid !important;
    grid-template-columns: 28px 1fr 20px !important;
    align-items: center !important;
    gap: 6px !important;
    height: 19px !important;
    margin: 0 !important;
    font-size: 10px !important;
}

/* Small separate rating track */
.review-bars .track {
    height: 10px !important;
    border-radius: 6px !important;
    background: #eeeeee !important;
    overflow: hidden !important;
}

/* Rating colours */
.review-bars .bar-row:nth-child(1) .track {
    background: #fff3cd !important;
}

.review-bars .bar-row:nth-child(2) .track {
    background: #e8f5e9 !important;
}

.review-bars .bar-row:nth-child(3) .track {
    background: #e3f2fd !important;
}

.review-bars .bar-row:nth-child(4) .track {
    background: #fff0e6 !important;
}

.review-bars .bar-row:nth-child(5) .track {
    background: #ffebee !important;
}

/* Actual fill */
.review-bars .fill {
    height: 100% !important;
    border-radius: 6px !important;
}

/* Review form - compact card */
.review-form {
    margin-top: 8px !important;
    padding: 12px 14px !important;
    border-radius: 6px !important;
}

.review-form h3 {
    font-size: 14px !important;
    margin: 0 0 7px !important;
}

.review-form .star-picker {
    margin-bottom: 7px !important;
}

.review-form .star-picker span {
    font-size: 18px !important;
}

.review-form .field {
    margin-bottom: 7px !important;
}

.review-form input[type="text"] {
    height: 34px !important;
    padding: 6px 9px !important;
    font-size: 12px !important;
}

.review-form textarea {
    height: 52px !important;
    min-height: 52px !important;
    padding: 7px 9px !important;
    font-size: 12px !important;
}

.review-form .btn {
    padding: 7px 14px !important;
    font-size: 12px !important;
}

/* No written reviews */
.reviews > .text-soft {
    margin: 7px 0 !important;
    font-size: 12px !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .specs {
        margin-bottom: 4px !important;
        padding-bottom: 4px !important;
    }

    .specs h2 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .spec-group {
        margin-bottom: 4px !important;
    }

    .reviews {
        padding: 10px 12px !important;
        margin: 0 !important;
    }

    .reviews h2 {
        font-size: 17px !important;
        margin-bottom: 7px !important;
    }

    .review-summary {
        grid-template-columns: 78px 1fr !important;
        gap: 8px !important;
        padding-bottom: 7px !important;
    }

    .review-score .num {
        font-size: 28px !important;
    }

    .review-score .num small {
        font-size: 13px !important;
    }

    .review-score .cnt {
        font-size: 9px !important;
    }

    .review-bars {
        gap: 3px !important;
    }

    .review-bars .bar-row {
        grid-template-columns: 24px 1fr 16px !important;
        height: 17px !important;
        gap: 4px !important;
        font-size: 9px !important;
    }

    .review-bars .track {
        height: 8px !important;
    }

    .review-form {
        margin-top: 6px !important;
        padding: 9px 10px !important;
    }

    .review-form h3 {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }

    .review-form .star-picker {
        margin-bottom: 5px !important;
    }

    .review-form .star-picker span {
        font-size: 17px !important;
    }

    .review-form input[type="text"] {
        height: 32px !important;
        font-size: 11px !important;
    }

    .review-form textarea {
        height: 48px !important;
        min-height: 48px !important;
        font-size: 11px !important;
    }

    .review-form .btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
}
/* =========================================================
   PRODUCT TITLE - CLEAN & BOLD
   Desktop + Mobile
   ========================================================= */

.product-info h1,
.product-detail h1,
.detail h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #212121 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.2px !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

/* Mobile */
@media (max-width: 768px) {

    .product-info h1,
    .product-detail h1,
    .detail h1 {
        font-size: 25px !important;
        font-weight: 700 !important;
        color: #212121 !important;
        line-height: 1.25 !important;
        margin-top: 0 !important;
        margin-bottom: 8px !important;
    }
}
/* =========================================================
   PRODUCT CARD - REMOVE EMPTY SPACE BELOW NAME
   ========================================================= */

.product-card .name {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 5px !important;
    line-height: 1.35 !important;
}

/* Product rating ko name ke immediately neeche lao */
.product-card .rating-row {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
}

/* Price section bhi compact */
.product-card .price-row {
    margin-top: 0 !important;
}

/* Assured badge ka extra gap kam */
.product-card .assured {
    margin-top: 4px !important;
}


/* MOBILE */
@media (max-width: 768px) {

    .product-card .name {
        min-height: 0 !important;
        height: auto !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }

    .product-card .rating-row {
        margin-top: 0 !important;
        margin-bottom: 4px !important;
    }

    .product-card .assured {
        margin-top: 3px !important;
    }
}
/* =========================================================
   TOP OFFER / DEAL ROW - COMPACT CLEAN DESIGN
   ========================================================= */

.deal-card {
    padding: 10px 10px 12px !important;
}

.deal-card .thumb {
    height: 165px !important;
    margin-bottom: 8px !important;
}

.deal-card .thumb img {
    max-height: 155px !important;
}

.deal-card .name {
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
}

.deal-card .price {
    margin-top: 2px !important;
}


/* Desktop */
@media (min-width: 769px) {
    .deal-row {
        min-height: 0 !important;
    }

    .deal-card {
        min-height: 0 !important;
    }
}


/* Mobile */
@media (max-width: 768px) {
    .deal-card {
        padding: 8px 8px 10px !important;
    }

    .deal-card .thumb {
        height: 145px !important;
        margin-bottom: 6px !important;
    }

    .deal-card .thumb img {
        max-height: 135px !important;
    }
}
/* =========================================================
   MOBILE CATEGORY / PRODUCTS PAGE - COMPACT
   ========================================================= */

@media (max-width: 768px) {

    /* Hide large desktop filter sidebar on mobile */
    .listing {
        display: block !important;
    }

    .listing > .filters {
        display: none !important;
    }

    /* Results take full mobile width */
    .listing > div {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Compact results header */
    .results-head {
        margin: 0 !important;
        padding: 14px 12px !important;
    }

    .results-head h1 {
        font-size: 24px !important;
        margin: 0 0 10px !important;
    }

    .results-head .count {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    /* Sort bar */
    .sort-bar {
        margin: 0 !important;
        padding: 10px 0 !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .sort-bar b {
        font-size: 15px !important;
    }

    .sort-bar a {
        font-size: 15px !important;
        margin-left: 18px !important;
    }

    /* Product grid immediately after sort */
    .product-grid {
        margin-top: 0 !important;
    }

}
@media (max-width: 768px) {

    .sort-bar {
        display: flex !important;
        align-items: center !important;
        gap: 18px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 12px 0 !important;
    }

    .sort-bar::-webkit-scrollbar {
        display: none !important;
    }

    .sort-bar b {
        flex: 0 0 auto !important;
    }

    .sort-bar a {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        min-height: 36px !important;
        padding: 5px 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }
}
/* =========================================================
   RECOMMENDED PRODUCT CARDS - DESKTOP SPACING FIX
   ========================================================= */

@media (min-width: 769px) {

    .product-card {
        padding: 16px 16px 20px !important;
        box-sizing: border-box !important;
    }

    .product-card .thumb {
        margin-left: 4px !important;
        margin-right: 4px !important;
    }

    .product-card .name,
    .product-card .rating-row,
    .product-card .price-row,
    .product-card .assured {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

}
/* =========================================================
   DESKTOP PRE-BOOKING POPUP - REMOVE SIDE WHITE SPACE
   ========================================================= */

@media (min-width: 769px) {

    .iphone-prebook-popup {
        padding: 0 !important;
        overflow: hidden !important;
    }

    .iphone-prebook-image-link {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }

    .iphone-prebook-image-link img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .iphone-prebook-action {
        padding: 16px !important;
    }

}
/* FINAL DESKTOP HERO BANNER - FIXED 1600x280 */
@media (min-width: 769px) {

    .home-banner {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: hidden !important;
        height: auto !important;
        max-height: 280px !important;
    }

    .desktop-banner {
        display: block !important;
        width: 100% !important;
        max-width: 1600px !important;
        height: auto !important;
        max-height: 280px !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}
/* ==========================================================
   FINAL PRODUCT LISTING IMAGE FIX
   Fixed image box + no crop + any aspect ratio
   ========================================================== */

.product-card .thumb {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
    position: relative !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.product-card .thumb img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 210px !important;

    object-fit: contain !important;
    object-position: center !important;
}


/* Mobile product cards */
@media (max-width: 768px) {

    .product-card .thumb {
        width: 100% !important;
        height: 165px !important;
        min-height: 165px !important;
        max-height: 165px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        overflow: hidden !important;
        background: #fff !important;
    }

    .product-card .thumb img {
        width: auto !important;
        height: auto !important;

        max-width: 100% !important;
        max-height: 155px !important;

        object-fit: contain !important;
        object-position: center !important;
    }
}
/* ==========================================================
   PRODUCT IMAGE LIGHTBOX
   ========================================================== */

.product-image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;

    background: rgba(0, 0, 0, 0.85);

    align-items: center;
    justify-content: center;

    padding: 30px;
    box-sizing: border-box;

    cursor: zoom-out;
}

.product-image-lightbox.show {
    display: flex;
}

.product-image-lightbox img {
    display: block;

    width: auto;
    height: auto;

    max-width: 95vw;
    max-height: 92vh;

    object-fit: contain;

    background: #fff;

    border-radius: 4px;

    cursor: default;
}

.product-lightbox-close {
    position: fixed;

    top: 18px;
    right: 24px;

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);
    color: #111;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    z-index: 100000;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox-close:hover {
    background: #fff;
}

.product-image-lightbox-open {
    overflow: hidden !important;
}

.main-image img[data-main-image] {
    cursor: zoom-in;
}


/* Mobile */
@media (max-width: 768px) {

    .product-image-lightbox {
        padding: 12px;
    }

    .product-image-lightbox img {
        max-width: 96vw;
        max-height: 88vh;
        border-radius: 2px;
    }

    .product-lightbox-close {
        top: 12px;
        right: 12px;

        width: 40px;
        height: 40px;

        font-size: 28px;
    }
}
/* Product detail accordions should use full width */
.product-accordion {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}
/* Make desktop hero banner fully clickable */
@media (min-width: 769px) {
    .home .home-banner {
        position: relative !important;
        z-index: 10 !important;
        display: block !important;
        width: 100% !important;
        cursor: pointer !important;
    }

    .home .home-banner .desktop-banner {
        display: block !important;
        width: 100% !important;
        max-width: 1600px !important;
        height: auto !important;
        object-fit: contain !important;
        pointer-events: none !important;
    }
}