/* ============================================================
   BREAD BASKET — RESPONSIVE OVERRIDES
   Pure layout/sizing corrections only. No design changes.
   ============================================================ */

/* ===== GLOBAL SAFETY NET ===== */
*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: hidden; max-width: 100vw; }
img  { max-width: 100%; height: auto; display: block; }

/* ===== HEADER / TOPBAR ===== */
@media (max-width: 1280px) {
  .topbar-address { font-size: 11.5px; }
  .header-inner   { padding: 0 16px; }
}
@media (max-width: 1024px) {
  .header { height: auto; min-height: 70px; }
  .header-inner.topbar-inner { padding: 10px 14px; gap: 12px; }
  .topbar-address { font-size: 11px; max-width: 220px; }
  .topbar-socials a { width: 28px; height: 28px; }
  .logo-img, .logo-video { height: 50px; }
}

/* ===== CATEGORY NAV ===== */
@media (max-width: 1280px) {
  .cat-nav-inner { padding: 0 20px; gap: 6px; }
  .cat-item      { min-width: 60px; }
  .cat-img-wrap  { width: 54px; height: 54px; }
}
@media (max-width: 1024px) {
  .cat-nav-inner { padding: 0 14px; gap: 5px; }
}

/* ===== HERO SECTION ===== */
@media (max-width: 1280px) {
  .hero         { max-height: 540px; }
  .hero-heading { font-size: clamp(28px, 3.2vw, 50px); }
}
@media (max-width: 1024px) {
  .hero       { height: 70vh; max-height: 500px; }
  .hero-inner { padding: 0 20px; }
  .hero-text  { max-width: 500px; }
}
@media (max-width: 900px) {
  .hero { height: auto; max-height: none; padding: 80px 0 95px; min-height: 320px; }
  .hero-inner { padding: 0 16px; }
  .hero-slides { width: 100%; right: 0; }
  .hero-slide-img { object-fit: cover; object-position: 75% center; -webkit-mask-image: none; mask-image: none; }
  .hero-overlay { background: linear-gradient(180deg, rgba(255,246,250,.93) 0%, rgba(255,240,247,.78) 38%, rgba(255,240,247,.32) 64%, rgba(30,8,20,.28) 100%); }
}
@media (max-width: 768px) {
  .hero         { padding: 60px 0 95px; }
  .hero-heading { font-size: clamp(26px, 6.5vw, 38px); }
  .hero-desc    { font-size: 14.5px; max-width: 100%; }
}

/* ===== CATEGORY HERO ===== */
@media (max-width: 1280px) {
  .cat-hero         { min-height: 480px; padding: 36px 0 60px; }
  .cat-hero-photo   { width: 38%; right: 4%; }
  .cat-hero-heading { font-size: 36px; }
}
@media (max-width: 1024px) and (min-width: 1001px) {
  .cat-hero         { min-height: 420px; padding: 30px 0 50px; }
  .cat-hero-photo   { width: 40%; right: 3%; }
  .cat-hero-heading { font-size: 32px; }
  .cat-hero-inner   { padding: 0 24px; }
}


/* ===== PRODUCTS SECTION ===== */
@media (max-width: 1280px) {
  .products-layout { grid-template-columns: 240px 1fr; gap: 20px; }
  .products-grid   { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .products-layout { grid-template-columns: 220px 1fr; gap: 16px; }
  .products-grid   { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 1024px) { .products-section { padding: 36px 16px; } }

@media (max-width: 900px) {
  .products-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
  }
  .prod-sidebar {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    margin-bottom: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1.5px solid var(--pink-light, #fde8ef);
  }
  .prod-sidebar h3 {
    margin-bottom: 10px;
    font-size: 14px;
  }
  .prod-cat-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 4px 2px 8px 2px !important;
    gap: 8px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
  }
  .prod-cat-list::-webkit-scrollbar {
    display: none;
  }
  .prod-cat-item, .prod-cat-item a {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    background: var(--pink-pale, #fff5f8) !important;
    border: 1px solid var(--pink-light, #fde8ef) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    color: var(--text-mid, #475569) !important;
    min-width: auto !important;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .prod-cat-item.active {
    background: linear-gradient(135deg, var(--pink, #e85c8a) 0%, var(--pink-dark, #c43864) 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(232,92,138,0.25);
  }
  .prod-cat-item.active .pc-label {
    color: #fff !important;
    font-weight: 600;
  }
  .prod-cat-item .pc-ic {
    width: 26px;
    height: 26px;
    font-size: 13px;
    border-radius: 7px;
    flex-shrink: 0;
  }
  .prod-cat-item.active .pc-ic {
    background: rgba(255,255,255,0.25) !important;
    border-color: transparent !important;
  }
  .prod-cat-item .pc-count,
  .prod-cat-item .pc-label small {
    display: none !important;
  }
  .prod-sidebar-banner {
    display: none !important;
  }
  .prod-main {
    width: 100% !important;
    min-width: 0 !important;
  }
  .prod-toolbar {
    margin-bottom: 14px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .prod-card {
    border-radius: 16px;
  }
  .prod-img-wrap {
    height: 170px;
  }
  .prod-body {
    padding: 12px;
  }
  .prod-body h3 {
    font-size: 13.5px;
    line-height: 1.35;
  }
}

@media (max-width: 600px) {
  .products-section {
    padding: 24px 12px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .prod-card {
    border-radius: 14px;
  }
  .prod-img-wrap {
    height: 150px;
  }
  .prod-body {
    padding: 10px;
  }
  .prod-body h3 {
    font-size: 13px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
  }
  .prod-desc {
    display: none !important;
  }
  .prod-rating {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .prod-price {
    gap: 4px;
    margin-top: auto;
    margin-bottom: 6px;
    align-items: baseline;
  }
  .prod-price strong {
    font-size: 16px;
  }
  .prod-price del {
    font-size: 11px;
  }
  .prod-price em {
    font-size: 10px;
  }
  .add-btn {
    padding: 8px 6px;
    font-size: 11.5px;
    border-radius: 10px;
    gap: 4px;
    width: 100%;
    justify-content: center;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .section-header h2 {
    font-size: 24px;
  }
  .view-all-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13.5px;
  }
}

@media (max-width: 425px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .prod-img-wrap {
    height: 135px;
  }
  .prod-body {
    padding: 8px 8px 10px;
  }
  .prod-body h3 {
    font-size: 12px;
  }
  .prod-rating {
    font-size: 10px;
  }
  .prod-price strong {
    font-size: 14.5px;
  }
  .add-btn {
    padding: 7px 4px;
    font-size: 11px;
  }
}

@media (max-width: 340px) {
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .prod-img-wrap {
    height: 180px;
  }
}

/* ===== CATEGORY LISTING GRID ===== */
@media (max-width: 1100px) { .classic-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 16px; } }
@media (max-width: 800px) {
  .classic-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .pd-body      { grid-template-columns: 1fr; }
  .pd-gallery   { flex-direction: row; padding: 14px; }
  .pd-info      { padding: 14px; max-height: none; }
}
@media (max-width: 425px) {
  .classic-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; padding: 0 12px; margin-bottom: 40px !important; }
  .c-info       { padding: 10px 12px 13px; }
  .c-name       { font-size: 12.5px; }
  .c-price      { font-size: 14.5px; }
}
@media (max-width: 375px) { .classic-grid { grid-template-columns: 1fr !important; gap: 12px; } }

/* ===== PRODUCT DETAIL MODAL ===== */
@media (max-width: 768px) {
  .pd-modal  { margin: 10px auto; border-radius: 18px; }
  .pd-body   { grid-template-columns: 1fr; }
  .pd-gallery { padding: 14px 14px 0; flex-direction: row; gap: 8px; }
  .pd-thumbs  { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pd-thumbs::-webkit-scrollbar { display: none; }
  .pd-thumb   { width: 56px; height: 56px; }
  .pd-main    { min-height: 240px; }
  .pd-main img { min-height: 240px; }
  .pd-info    { padding: 14px 16px 20px; max-height: none; gap: 10px; }
  .pd-title   { font-size: 18px; }
  .pd-price   { font-size: 22px; }
  .pd-buy-btn { padding: 13px; font-size: 14px; }
}
@media (max-width: 480px) {
  .pd-overlay { padding: 10px 8px; }
  .pd-modal   { border-radius: 14px; margin: 6px auto; }
  .pd-gallery { padding: 10px 10px 0; }
  .pd-thumb   { width: 46px; height: 46px; border-radius: 8px; }
  .pd-title   { font-size: 16px; }
}

/* ===== SECTION HEADER ===== */
@media (max-width: 600px) {
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .view-all-btn   { width: 100%; justify-content: center; }
}

/* ===== TESTIMONIALS ===== */
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr; gap: 14px; } .testimonial-card { padding: 22px 18px; } }

/* ===== INSTAGRAM GRID ===== */
@media (max-width: 900px) { .insta-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
@media (max-width: 600px) { .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 375px) { .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ===== CTA BANNER 2 ===== */
@media (max-width: 900px) { .cta2-inner { padding: 28px 24px; gap: 16px; } .cta2-art { font-size: 70px; } }
@media (max-width: 700px) {
  .cta2-inner   { flex-direction: column; text-align: center; padding: 28px 18px; }
  .cta2-art     { font-size: 55px; }
  .cta2-actions { flex-direction: column; align-items: center; }
  .cta2-btn     { width: 100%; max-width: 300px; justify-content: center; }
}
@media (max-width: 425px) {
  .cta2-content h2 { font-size: 1.3rem; }
  .cta2-art        { font-size: 44px; }
  .cta2-btn        { max-width: 100%; padding: 12px 18px; font-size: .8rem; }
}

/* ===== FOOTER 2 ===== */
@media (max-width: 1100px) { .ftr2-top { grid-template-columns: 1fr 1fr 1fr; gap: 24px; } .ftr2-insta { grid-column: span 3; } }
@media (max-width: 768px) {
  .ftr2-top    { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ftr2-insta  { grid-column: span 2; }
  .ftr2-newsletter { flex-direction: column; text-align: center; padding: 20px 16px; }
  .ftr2-newsletter-form { width: 100%; flex-direction: column; }
  .ftr2-newsletter-form input { width: 100%; }
  .ftr2-strip          { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ftr2-strip-features { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 480px) {
  .ftr2-top            { grid-template-columns: 1fr; gap: 20px; }
  .ftr2-insta          { grid-column: span 1; }
  .ftr2-insta-grid     { max-width: 100%; }
  .ftr2-strip-features { flex-direction: column; gap: 10px; }
  .ftr2-copy           { font-size: 11px; padding: 14px 0 18px; }
}
@media (max-width: 375px) {
  .footer2              { padding: 36px 12px 0; }
  .ftr2-newsletter      { padding: 16px 12px; }
  .ftr2-newsletter-text h3 { font-size: 15px; }
}

/* ===== CART SIDEBAR ===== */
@media (max-width: 480px) {
  .cart-sidebar { width: 100vw; right: -100vw; max-width: 100vw; border-left: none; border-radius: 0; }
  .cart-sidebar.open { right: 0; }
  .cart-head, .cart-header { padding: 14px 16px; }
  .cart-body { padding: 12px; }
  .cart-foot, .cart-footer { padding: 14px 16px; }
}

/* ===== BACK TO TOP ===== */
@media (max-width: 480px) { .back-top { bottom: 18px; right: 16px; width: 42px; height: 42px; font-size: 15px; } }

/* ===== OFFER BANNER ===== */
@media (max-width: 768px) { .offer { margin: 50px auto; padding: 0 16px; } .offer-inner h2 { font-size: clamp(1.4rem, 5vw, 2.2rem); } }
@media (max-width: 480px) {
  .offer-inner { border-radius: 20px; padding: 32px 16px; }
  .offer-inner h2 { font-size: 1.4rem; }
  .offer-inner p.sub { font-size: .9rem; }
  .offer-deco { font-size: 1.6rem; }
}

/* ===== PROMISE SECTION ===== */
@media (max-width: 1024px) { .promise-header h2 { font-size: 42px; } .promise-grid { gap: 24px; } }
@media (max-width: 768px) {
  .promise-section   { padding: 56px 16px 64px; }
  .promise-header h2 { font-size: 32px; }
  .promise-header p  { font-size: 15px; }
  .promise-grid      { gap: 18px; }
  .promise-card      { min-width: 160px; max-width: 200px; }
  .promise-icon-wrap { width: 100px; height: 90px; }
}
@media (max-width: 480px) {
  .promise-section   { padding: 40px 12px 48px; }
  .promise-header    { margin-bottom: 40px; }
  .promise-header h2 { font-size: 26px; letter-spacing: 0; }
  .promise-header p  { font-size: 13px; }
  .promise-grid      { gap: 20px; }
  .promise-card      { min-width: 140px; max-width: 100%; width: calc(50% - 10px); }
  .promise-card h4   { font-size: 14px; }
  .promise-card p    { font-size: 12.5px; }
}
@media (max-width: 375px) { .promise-card { width: 100%; max-width: 100%; } }

/* ===== OCCASION BANNERS ===== */
@media (max-width: 1100px) { .occ-banners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .occ-banners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .occ-banner       { min-height: 140px; padding: 16px; border-radius: 16px; }
  .occ-banner-text span { font-size: 24px; }
  .occ-banner-text h3   { font-size: 14px; }
}
@media (max-width: 425px) { .occ-banners-grid { grid-template-columns: 1fr; } .occ-banner { min-height: 120px; } }

/* ===== NEWSLETTER ===== */
@media (max-width: 900px) {
  .nl-inner { flex-direction: column; text-align: center; }
  .nl-form  { flex-direction: column; width: 100%; }
  .nl-form input  { min-width: unset; width: 100%; }
  .nl-form button { width: 100%; }
}

/* ===== FILTER BAR ===== */
@media (max-width: 1024px) { .filter-bar { position: relative; top: auto; } .filter-inner { padding: 8px 14px; gap: 8px; } }
@media (max-width: 480px)  { .filter-inner { padding: 7px 10px; gap: 6px; } .sort-btn { padding: 6px 12px; font-size: 11.5px; } .f-chip { padding: 6px 12px; font-size: 11.5px; } }

/* ===== PAGE HERO ===== */
@media (max-width: 768px) { .page-hero h1 { font-size: 24px; } .page-hero p { font-size: 13px; } }
@media (max-width: 480px) { .page-hero { padding: 22px 14px 18px; } .page-hero h1 { font-size: 20px; } }
@media (max-width: 480px) { .rating-summary { padding: 0 14px; font-size: 12px; } }

/* ===== PROMO BANNERS ===== */
@media (max-width: 900px) { .promo-grid { grid-template-columns: 1fr; } .promo-card { min-height: 130px; } }

/* ===== SECTION TITLE ===== */
@media (max-width: 768px) { .section-title { font-size: 22px; } }
@media (max-width: 480px) { .section-title { font-size: 18px; } }

/* ===== BUSINESS HOURS ===== */
@media (max-width: 768px) { .business-hours p { font-size: 12px; } .ftr2-feature { font-size: 11.5px; } }

/* ===== TABLE OVERFLOW ===== */
.admin-table-wrap, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== ADMIN TABLE TOOLBAR ===== */
@media (max-width: 540px) {
  .search-input-wrap { width: 100%; }
  .search-input-wrap input { width: 100%; }
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .table-toolbar > * { width: 100%; }
}

/* ===== ADMIN SIDEBAR + CONTENT ===== */
@media (max-width: 540px) {
  .content-area { padding: 16px 12px; }
  .top-navbar   { padding: 0 12px; }
  .top-navbar-right .admin-name-nav { display: none; }
  .stats-grid   { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 375px) {
  .stats-grid        { grid-template-columns: 1fr; }
  .content-area      { padding: 12px 10px; }
  .admin-card-body   { padding: 14px; }
  .admin-card-header { padding: 14px 16px; }
}

/* ===== ADMIN FORMS ===== */
@media (max-width: 768px) {
  .page-header       { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-header h1    { font-size: 18px; }
  .form-actions      { flex-wrap: wrap; gap: 10px; }
  .form-grid-2       { grid-template-columns: 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .order-info-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 540px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ===== ADMIN LOGIN ===== */
@media (max-width: 425px) {
  .login-box { padding: 28px 16px; border-radius: 16px; }
  .login-logo .logo-icon { width: 54px; height: 54px; font-size: 22px; }
  .login-logo h2 { font-size: 17px; }
}

/* ===== DELETE MODAL ===== */
@media (max-width: 480px) {
  .del-modal      { padding: 28px 20px; border-radius: 14px; }
  .del-modal-icon { font-size: 40px; }
  .del-modal h3   { font-size: 17px; }
  .del-modal-btns { flex-direction: column; gap: 10px; }
  .btn-cancel-del, .btn-confirm-del { width: 100%; justify-content: center; text-align: center; }
}

/* ===== ADMIN CARD HEADER ===== */
@media (max-width: 480px) { .admin-card-header { flex-direction: column; align-items: flex-start; } .admin-card-header h2 { font-size: 14px; } }

/* ===== DASHBOARD ===== */
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .welcome-card { flex-direction: column; gap: 10px; padding: 16px; } .welcome-card h2 { font-size: 18px; } .welcome-icon { display: none; } }

/* ===== ADMIN MISC ===== */
@media (max-width: 540px) { .notif-item { flex-direction: column; align-items: flex-start; gap: 8px; } }
@media (max-width: 900px) { .flavour-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .flavour-grid { grid-template-columns: 1fr; } }

/* ===== CAT NAV PANEL MOBILE ===== */
@media (max-width: 375px) { .cat-nav-panel { width: 100%; max-width: 100vw; left: -100vw; } .cat-nav-panel.open { left: 0; } }

/* ===== HERO SCROLL + ARROWS ===== */
@media (max-width: 480px) { .hero-scroll { bottom: 16px; } .hero-scroll-mouse { width: 20px; height: 34px; } }
@media (max-width: 375px) { .hero-slider-arrow { width: 48px; height: 48px; } .hero-slider-arrow .arrow-svg { width: 20px; height: 20px; } .hero-slider-dots { bottom: 44px; } .hero-slider-dots button { width: 7px; height: 7px; } }

/* ===== DECORATIONS ===== */
@media (max-width: 425px) { .hero-decor .decor { font-size: 18px; } .d1,.d2 { display: block; } .d3,.d4,.d5,.d6,.d7,.d8 { display: none; } }

/* ===== 320px SAFETY ===== */
@media (max-width: 320px) {
  .header-inner.topbar-inner { padding: 8px 10px; }
  .hero-btn      { padding: 12px 18px; font-size: 12px; }
  .logo-img, .logo-video { height: 38px; }
  .cat-nav-inner { padding: 0 8px; gap: 4px; }
  .cat-img-wrap  { width: 38px; height: 38px; }
  .cat-item span { font-size: 8px; }
  .products-grid { grid-template-columns: 1fr; }
  .ftr2-top      { grid-template-columns: 1fr; }
  .cta2-inner    { padding: 22px 12px; }
  .cta2-content h2 { font-size: 1.15rem; }
}

/* ===== OVERFLOW SAFETY ===== */
.cat-hero,.hero,.cake-cta2,.promise-section,.cake-testimonials,.cake-insta-section { overflow-x: clip; }
.cat-nav-panel-overlay { width: 100vw; height: 100vh; }

/* ===== TOUCH TARGETS ===== */
@media (max-width: 768px) {
  .add-btn,.checkout-btn,.hero-btn,.cat-hero-btn,.cta2-btn,.view-all-btn,.fav-btn,.back-top,.sort-btn,.f-chip,.qc-btn { min-height: 44px; }
  .cat-nav-hamburger { min-width: 44px; min-height: 44px; }
  .topbar-socials a  { min-width: 36px; min-height: 36px; }
  .ftr2-strip-icons a { min-width: 36px; min-height: 36px; }
}

/* ===== HIDE WA BELL WRAP ===== */
.wa-bell-wrap { display: none !important; }

/* ===== PRINT ===== */
@media print {
  * { overflow: visible !important; max-width: 100% !important; }
  .cat-nav,.back-top,.cart-sidebar,.cat-nav-panel,.cat-nav-panel-overlay,.wa-bell-wrap { display: none !important; }
}

