/* ============================================================
   PARIJAT FASHION &mdash; Comprehensive Responsive Stylesheet
   Breakpoints:
     1200px  &mdash; Large tablet / small desktop
      960px  &mdash; Tablet landscape
      768px  &mdash; Tablet portrait
      640px  &mdash; Large mobile
      480px  &mdash; Mobile
      380px  &mdash; Small mobile
   ============================================================ */

/* ─── Base Fluid Utilities ──────────────────────────────────── */
html { font-size: 16px; }
* { box-sizing: border-box; }
img, video { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ────────────────────────────────────────────────────────────
   1200px &mdash; Large Tablet / Small Desktop
──────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-ultra-title        { font-size: 58px; letter-spacing: -2px; }
  .section-title-premium   { font-size: 36px; }
  .categories-premium-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .testimonials-premium-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .trust-grid              { grid-template-columns: repeat(2, 1fr) !important; }
  .products-grid           { grid-template-columns: repeat(3, 1fr); }
  .footer-grid             { grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
  .stat-cards              { grid-template-columns: repeat(2, 1fr); }
  .promo-title             { font-size: 32px; }
  .ultra-stats-row         { gap: 0; }
  .ultra-stat              { padding: 0 20px; }
}

/* ────────────────────────────────────────────────────────────
   960px &mdash; Tablet Landscape
──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .container { padding: 0 16px; }

  /* ── Navbar ── */
  .navbar-links            { display: none !important; }
  .navbar-search           { display: none !important; }
  .hamburger               { display: flex !important; }
  .navbar-inner            { height: 64px; }

  /* ── Hero Ultra ── */
  .hero-ultra              { min-height: auto; }
  .hero-ultra-inner        { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 40px; }
  .hero-ultra-visual       { display: none; }
  .hero-ultra-title        { font-size: 48px; letter-spacing: -2px; }
  .hero-ultra-sub          { font-size: 16px; }
  .hero-ultra-stats        { padding: 0; }
  .ultra-stats-row         { flex-wrap: wrap; justify-content: center; gap: 4px; padding: 20px 0; }
  .ultra-stat              { padding: 8px 16px; }
  .ultra-stat-sep          { display: none; }
  .hero-live-badge         { margin-bottom: 20px; }

  /* ── Sections ── */
  .section-premium         { padding: 60px 0; }
  .alt-premium             { padding: 60px 0; }
  .section-head-premium    { margin-bottom: 36px; }
  .section-title-premium   { font-size: 32px; }

  /* ── Categories ── */
  .categories-premium-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 12px; }

  /* ── Trust ── */
  .trust-grid              { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }

  /* ── Testimonials ── */
  .testimonials-premium-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }

  /* ── Products ── */
  .products-grid           { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }

  /* ── Shop ── */
  .shop-layout             { grid-template-columns: 1fr !important; }
  .shop-sidebar            { display: block; position: fixed; top: 0; left: 0; height: 100vh; z-index: 1200; overflow-y: auto; transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); border-radius: 0; width: 300px; max-width: 85vw; background: #fff !important; }
  .shop-sidebar.sidebar-open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,0.25); }
  .shop-mobile-filter-btn  { display: inline-flex !important; }

  /* ── Cart ── */
  .cart-layout             { grid-template-columns: 1fr !important; }
  .cart-table thead        { display: none; }
  .cart-table tr           { display: block; border: 1px solid #f1f5f9; border-radius: 12px; margin-bottom: 16px; padding: 16px; }
  .cart-table td           { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 !important; border: none !important; font-size: 13px; }
  .cart-table td::before   { content: attr(data-label); font-weight: 700; font-size: 11px; text-transform: uppercase; color: #64748b; }

  /* ── Checkout ── */
  .checkout-layout         { grid-template-columns: 1fr !important; }

  /* ── Account ── */
  .account-layout          { grid-template-columns: 1fr !important; gap: 20px !important; }

  /* ── Product Detail ── */
  .product-detail-inner    { grid-template-columns: 1fr !important; gap: 30px !important; }

  /* ── Footer ── */
  .footer-grid             { grid-template-columns: 1fr 1fr !important; gap: 30px; }

  /* ── Admin ── */
  .admin-sidebar           { transform: translateX(-100%); position: fixed; z-index: 1100; height: 100vh; }
  .admin-sidebar.active    { transform: translateX(0); }
  .admin-content           { margin-left: 0 !important; }
  .admin-topbar            { height: auto !important; padding: 16px 20px !important; }
  .admin-main              { padding: 16px !important; }
  .stat-cards              { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .admin-top-mobile        { display: flex !important; }

  /* ── Promo Banner ── */
  .promo-banner-inner      { flex-direction: column; text-align: center; padding: 40px 30px; }
  .promo-visual            { display: none; }
  .promo-title             { font-size: 28px; }

  /* ── Newsletter ── */
  .newsletter-premium-inner { padding: 50px 30px; }
  .newsletter-content h2   { font-size: 30px; }

  /* ── Order detail ── */
  .order-detail-layout     { grid-template-columns: 1fr !important; }

  /* ── Find / Award ── */
  .find-inner              { grid-template-columns: 1fr !important; }
  .find-visual             { display: none; }
  .award-inner             { flex-direction: column; text-align: center; gap: 24px; }
  .award-content           { flex-direction: column; align-items: center; }

  /* ── Carousel ── */
  .carousel-slide          { flex: 0 0 calc(50% - 10px) !important; }
  .carousel-btn            { display: none !important; }
}

/* ────────────────────────────────────────────────────────────
   768px &mdash; Tablet Portrait
──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* ── Navbar compact ── */
  .logo-tagline            { display: none; }
  .navbar-inner            { height: 60px; }
  .top-bar-center          { display: none !important; }
  .top-bar-right           { gap: 10px; }

  /* ── Hero ── */
  .hero-ultra-title        { font-size: 40px; letter-spacing: -1.5px; }
  .hero-live-badge         { font-size: 11px; padding: 7px 14px; }
  .hero-ultra-sub          { font-size: 15px; max-width: 100%; }
  .hero-ultra-ctas         { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-primary-ultra       { width: 100%; justify-content: space-between; }
  .cta-ghost-ultra         { width: 100%; justify-content: center; }
  .hero-trust-row          { flex-wrap: wrap; gap: 10px; }
  .hero-social-proof       { flex-wrap: wrap; }

  /* ── Categories ── */
  .categories-premium-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; }
  .cat-card-premium        { padding: 18px 10px; }
  .cat-icon-premium        { width: 46px; height: 46px; font-size: 18px; }
  .cat-name-premium        { font-size: 11px; }
  .cat-count-premium       { font-size: 10px; }
  .cat-arrow-premium       { display: none; }

  /* ── Products ── */
  .products-grid           { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .product-card-body       { padding: 14px; }
  .product-card-title      { font-size: 14px; }
  .product-card-price .price { font-size: 17px; }

  /* ── Carousel ── */
  .carousel-slide          { flex: 0 0 100% !important; }

  /* ── Trust ── */
  .trust-grid              { grid-template-columns: 1fr !important; gap: 14px; }
  .trust-card              { padding: 20px; }

  /* ── Testimonials ── */
  .testimonials-premium-grid { grid-template-columns: 1fr !important; }

  /* ── Newsletter ── */
  .newsletter-premium-form { flex-direction: column !important; }
  .newsletter-premium-inner { padding: 40px 20px; }
  .newsletter-content h2   { font-size: 26px; }

  /* ── Promo ── */
  .promo-banner-inner      { padding: 32px 20px; }
  .promo-title             { font-size: 24px; }
  .promo-desc              { font-size: 14px; }

  /* ── Section ── */
  .section-premium         { padding: 48px 0; }
  .section-title-premium   { font-size: 28px; letter-spacing: -0.5px; }
  .section-head-premium    { margin-bottom: 28px; }

  /* ── Footer ── */
  .footer-grid             { grid-template-columns: 1fr !important; gap: 28px; }
  .footer-bottom           { flex-direction: column; text-align: center; gap: 12px; font-size: 12px; }
  .footer                  { padding: 40px 0 0; }

  /* ── Auth ── */
  .auth-split-container    { grid-template-columns: 1fr !important; }
  .auth-sidebar            { display: none !important; }
  .auth-form-container     { padding: 32px 24px !important; }
  .auth-card               { padding: 32px 24px; }

  /* ── Cart ── */
  .cart-product img        { width: 56px !important; height: 72px !important; }

  /* ── Account ── */
  .account-sidebar         { padding: 20px !important; border-radius: 16px; }
  .order-row               { grid-template-columns: 1fr 1fr !important; gap: 10px; }

  /* ── Admin ── */
  .stat-cards              { grid-template-columns: 1fr !important; gap: 12px !important; }
  .admin-card-header       { flex-direction: column; align-items: flex-start !important; gap: 10px; }
  .admin-card              { padding: 16px !important; border-radius: 16px !important; }
  .admin-form-grid         { grid-template-columns: 1fr !important; }
  .data-table th, .data-table td { padding: 10px 12px; font-size: 13px; }

  /* ── Product Detail ── */
  .product-detail-title    { font-size: 24px; }
  .big-price               { font-size: 28px; }

  /* ── Find Section ── */
  .find-content h2         { font-size: 32px; }
  .find-stats              { gap: 12px; }

  /* ── Award ── */
  .award-banner            { margin: 20px 10px; padding: 36px 20px; }

  /* ── Grid fixes ── */
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* ── Form row ── */
  .form-row                { grid-template-columns: 1fr !important; }

  /* ── Pagination ── */
  .pagination              { flex-wrap: wrap; gap: 4px; }
  .pagination a, .pagination span { padding: 6px 10px; font-size: 13px; }
}

/* ────────────────────────────────────────────────────────────
   640px &mdash; Large Mobile
──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .container               { padding: 0 14px; }

  /* ── Navbar ── */
  .logo-img-wrap           { width: 40px !important; height: 40px !important; }
  .logo-name               { font-size: 15px !important; }
  .navbar-inner            { height: 58px; }
  .nav-icon-btn            { width: 36px; height: 36px; font-size: 15px; }
  .top-bar                 { padding: 6px 0; font-size: 11px; }

  /* ── Hero ── */
  .hero-ultra              { padding-top: 0; }
  .hero-ultra-inner        { padding: 40px 0 30px; }
  .hero-ultra-title        { font-size: 34px; letter-spacing: -1px; }
  .live-text               { font-size: 11px; }
  .live-sub                { display: none; }
  .live-sep                { display: none; }
  .ultra-stats-row         { gap: 0; padding: 16px 0; }
  .ultra-stat              { padding: 6px 10px; }
  .ultra-stat-text strong  { font-size: 18px; }
  .ultra-stat-text em      { font-size: 10px; }
  .hero-trust-row          { gap: 8px; }
  .trust-pill              { font-size: 11px; }
  .trust-dot               { display: none; }

  /* ── Section ── */
  .section-premium         { padding: 40px 0; }
  .section-title-premium   { font-size: 26px; }
  .section-label           { font-size: 10px; padding: 5px 14px; }

  /* ── Categories ── */
  .categories-premium-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .section-categories      { padding: 40px 0; }

  /* ── Products ── */
  .products-grid           { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .product-card-body       { padding: 12px; }
  .product-card-title      { font-size: 13px; }
  .product-card-author     { font-size: 11px; margin-bottom: 8px; }
  .product-card-price .price { font-size: 15px; }
  .product-card-price .old-price { font-size: 12px; }
  .btn-cart                { font-size: 12px; padding: 8px 12px; }
  .product-card-wishlist   { width: 30px; height: 30px; font-size: 13px; top: 10px; right: 10px; }
  .product-card-quickview  { width: 30px; height: 30px; font-size: 12px; top: 46px; right: 10px; }
  .product-card-badge      { font-size: 9px; padding: 3px 8px; }

  /* ── Carousel ── */
  .carousel-slide          { flex: 0 0 100% !important; }
  .carousel-track          { gap: 12px !important; }

  /* ── Product Detail ── */
  .product-detail          { padding: 24px 0; }
  .product-detail-title    { font-size: 20px; }
  .big-price               { font-size: 24px; }
  .product-detail-brand    { font-size: 14px; }

  /* ── Cart ── */
  .cart-page               { padding: 24px 0; }
  .cart-product img        { width: 50px !important; height: 65px !important; }
  .cart-product-name       { font-size: 13px; }
  .order-summary           { padding: 18px; border-radius: 16px; }
  .order-summary h3        { font-size: 16px; }
  .summary-row.total       { font-size: 16px; }

  /* ── Checkout ── */
  .checkout-layout         { padding: 24px 0; }
  .checkout-card           { padding: 18px; border-radius: 16px; }
  .checkout-card h3        { font-size: 16px; margin-bottom: 14px; }
  .payment-option          { padding: 12px; }

  /* ── Account ── */
  .account-layout          { padding: 24px 0 !important; }
  .account-card            { padding: 18px !important; border-radius: 16px; }
  .account-card h3         { font-size: 16px !important; }
  .order-row               { grid-template-columns: 1fr !important; gap: 8px; padding: 14px; }
  .account-nav a           { padding: 10px 12px; font-size: 13px; }
  .account-avatar          { width: 56px; height: 56px; font-size: 22px; }

  /* ── Shop ── */
  .shop-layout             { padding: 20px 0; }

  /* ── Admin ── */
  .admin-main              { padding: 12px !important; }
  .admin-topbar            { padding: 14px !important; }
  .admin-topbar h2         { font-size: 16px !important; }
  .stat-card               { padding: 16px !important; }
  .stat-icon               { width: 42px; height: 42px; font-size: 18px; }
  .stat-info strong        { font-size: 22px; }
  .data-table              { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 10px; }
  .action-btns .btn        { padding: 4px 8px; font-size: 11px; }

  /* ── Auth ── */
  .auth-card               { padding: 24px 18px; }
  .auth-header h1          { font-size: 22px; }

  /* ── Footer ── */
  .footer                  { padding: 32px 0 0; }
  .footer-brand .logo-text { font-size: 20px; }
  .footer-bottom           { padding: 16px 0; }

  /* ── Find ── */
  .find-section            { padding: 60px 0; margin: 20px 10px; border-radius: 24px; }
  .find-content h2         { font-size: 26px; }
  .find-stats              { flex-direction: column; gap: 10px; }

  /* ── Award ── */
  .award-banner            { padding: 28px 16px; margin: 16px 8px; }
  .award-text h3           { font-size: 18px; }

  /* ── Error ── */
  .error-page h1           { font-size: 80px; }
  .error-page h2           { font-size: 22px; }

  /* ── Promo ── */
  .promo-banner-premium    { padding: 30px 0; }
  .promo-banner-inner      { padding: 28px 18px; border-radius: 20px; }
  .promo-title             { font-size: 22px; }

  /* ── Newsletter ── */
  .newsletter              { padding: 50px 20px; margin: 30px 10px; border-radius: 24px; }
  .newsletter h2           { font-size: 30px; letter-spacing: -1px; }
  .newsletter p            { font-size: 15px; }
  .newsletter-premium      { padding: 40px 0; }
  .newsletter-premium-inner { padding: 36px 16px; border-radius: 20px; }
  .newsletter-content h2   { font-size: 22px; }
  .newsletter-note         { font-size: 11px; }

  /* ── Trust ── */
  .trust-section           { padding: 40px 0; }
  .trust-card              { padding: 16px; gap: 14px; border-radius: 16px; }
  .trust-icon-wrap         { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
  .trust-card-body h4      { font-size: 14px; }
  .trust-card-body p       { font-size: 12px; }

  /* ── Testimonials ── */
  .testimonial-premium-card { padding: 20px; border-radius: 16px; }
  .testimonial-premium-text { font-size: 13px; }

  /* ── CTA Btns ── */
  .btn-view-all-premium    { padding: 11px 24px; font-size: 14px; }
  .btn-promo               { padding: 12px 24px; font-size: 14px; }

  /* ── Pagination ── */
  .pagination              { gap: 3px; margin-top: 24px; }
}

/* ────────────────────────────────────────────────────────────
   480px &mdash; Mobile
──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  /* ── Navbar ── */
  .navbar-inner            { height: 56px; }
  .logo-name               { font-size: 14px !important; }
  .navbar-actions          { gap: 4px; }
  .nav-icon-btn            { width: 34px; height: 34px; font-size: 14px; }
  .top-bar-left            { font-size: 10px; }

  /* ── Hero ── */
  .hero-ultra-title        { font-size: 30px; letter-spacing: -0.5px; }
  .hero-ultra-sub          { font-size: 14px; line-height: 1.6; }
  .hero-ultra-inner        { padding: 30px 0 24px; }
  .hero-live-badge         { padding: 6px 12px; margin-bottom: 16px; }
  .proof-avatars           { display: none; }
  .hero-trust-row          { display: none; }

  /* ── Stats bar ── */
  .ultra-stats-row         { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 12px 0; }
  .ultra-stat              { border-right: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
  .ultra-stat:nth-child(2n) { border-right: none; }
  .ultra-stat:nth-last-child(-n+2) { border-bottom: none; }
  .ultra-stat-sep          { display: none; }

  /* ── Products ── */
  .products-grid           { gap: 10px !important; }
  .product-card-body       { padding: 10px; }
  .product-card-title      { font-size: 12px; -webkit-line-clamp: 2; }
  .product-card-price .price { font-size: 14px; }
  .btn-cart                { font-size: 11px; padding: 7px 10px; }

  /* ── Categories ── */
  .cat-card-premium        { padding: 14px 8px; border-radius: 14px; }
  .cat-icon-premium        { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
  .cat-name-premium        { font-size: 10px; }
  .cat-count-premium       { display: none; }

  /* ── Section ── */
  .section-title-premium   { font-size: 23px; }
  .section-desc            { font-size: 14px; }

  /* ── Marquee ── */
  .marquee-track span      { font-size: 11px; padding: 0 24px; }
  .marquee-strip           { padding: 10px 0; }

  /* ── Cart ── */
  .cart-qty input          { width: 44px; font-size: 13px; }
  .cart-table td           { font-size: 12px; }

  /* ── Checkout ── */
  .checkout-card h3        { font-size: 15px; }
  .payment-option          { font-size: 13px; padding: 10px; }

  /* ── Auth ── */
  .auth-card               { padding: 20px 16px; }
  .form-control            { padding: 10px 14px; font-size: 13px; }
  .btn-lg                  { padding: 12px 24px; font-size: 14px; }

  /* ── Newsletter ── */
  .newsletter-premium-inner { padding: 28px 14px; border-radius: 16px; }
  .newsletter-content h2   { font-size: 20px; }

  /* ── Account ── */
  .account-name            { font-size: 15px; }
  .account-email           { font-size: 11px; }
  .account-avatar          { width: 50px; height: 50px; font-size: 20px; }

  /* ── Admin table ── */
  .product-thumb           { width: 36px !important; height: 46px !important; }

  /* ── Mobile menu ── */
  .mobile-menu-inner       { width: 100% !important; max-width: 100% !important; }
  .mobile-nav-links a      { font-size: 14px; padding: 12px 18px; }

  /* ── Footer ── */
  .footer-payments span    { font-size: 10px; padding: 4px 8px; }
  .footer-col h4           { font-size: 13px; }
  .footer-col ul li a      { font-size: 12px; }

  /* ── Promo ── */
  .promo-code              { font-size: 13px; }

  /* ── Error ── */
  .error-page h1           { font-size: 64px; }
  .error-page h2           { font-size: 18px; }
  .error-page p            { font-size: 13px; }
}

/* ────────────────────────────────────────────────────────────
   380px &mdash; Small Mobile
──────────────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .container               { padding: 0 10px; }
  .hero-ultra-title        { font-size: 26px; }
  .logo-name               { font-size: 13px !important; }
  .products-grid           { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .categories-premium-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .product-card-body       { padding: 8px; }
  .product-card-title      { font-size: 11px; }
  .btn-cart                { padding: 6px 8px; font-size: 10px; }
  .section-title-premium   { font-size: 21px; }
  .trust-grid              { grid-template-columns: 1fr !important; }
  .cart-table td           { font-size: 11px; }
  .auth-card               { padding: 18px 12px; }
  .ultra-stats-row         { grid-template-columns: 1fr 1fr; }
  .hero-ultra-inner        { padding: 24px 0 20px; }
}

/* ────────────────────────────────────────────────────────────
   SPECIFIC COMPONENT PATCHES
──────────────────────────────────────────────────────────── */

/* Shop mobile filter toggle button */
.shop-mobile-filter-btn {
  display: none;
  align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 50px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
  transition: all 0.3s ease;
  margin-bottom: 8px;
}
.shop-mobile-filter-btn:hover { transform: translateY(-2px); }
.shop-filter-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1199; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease; display: block;
}
.shop-filter-overlay.active { opacity: 1; pointer-events: auto; }
@media (max-width: 960px) {
  .shop-mobile-filter-btn { display: inline-flex !important; }
}

/* Responsive admin overlay */
.admin-sidebar-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.6); backdrop-filter: blur(4px);
  z-index: 1099; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease; display: block;
}
.admin-sidebar.active .admin-sidebar-overlay { opacity: 1; pointer-events: all; }

/* Mobile-only admin toggle */
.admin-top-mobile {
  display: none;
  align-items: center; gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 50;
}
@media (max-width: 960px) {
  .admin-top-mobile { display: flex !important; }
}

/* Sticky bottom cart on mobile */
@media (max-width: 640px) {
  .cart-sticky-mobile {
    position: sticky; bottom: 0; z-index: 100;
    background: #fff;
    padding: 16px;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
    border-radius: 20px 20px 0 0;
  }
}

/* Product card: ensure image always squares correctly on mobile */
@media (max-width: 480px) {
  .product-card-img { aspect-ratio: 3 / 4 !important; }
}

/* Prevent horizontal overflow everywhere */
body { overflow-x: hidden !important; }
/* aurora-bg still needs to clip its large blurred blobs */
.aurora-bg { overflow: hidden; }
/* Grid children must not overflow their tracks */
.hero-ultra-inner > * { min-width: 0; }

/* Smooth touch scrolling on iOS */
.carousel-track, .mobile-nav-links, .shop-sidebar, .admin-sidebar { -webkit-overflow-scrolling: touch; }

/* Fix floating badges hiding off-screen on small viewports */
@media (max-width: 960px) {
  .ultra-badge, .hero-float-badge, .badge-rating, .badge-delivery { display: none !important; }
  .hero-ring { display: none !important; }
}

/* Ultra-premium hero stats &mdash; responsive text sizes */
@media (max-width: 640px) {
  .ultra-stat-text strong { font-size: 17px; }
  .ultra-stat-text span   { font-size: 13px; }
  .ultra-stat-icon        { font-size: 20px; }
}

/* Ensure product price doesn't overflow on narrow cards */
.product-card-price { flex-wrap: wrap; gap: 4px 8px; }

/* Hamburger always visible on mobile */
@media (max-width: 960px) {
  .hamburger { display: flex !important; }
}

/* Hide mobile until ready */
@media (min-width: 961px) {
  .hamburger { display: none !important; }
  .shop-mobile-filter-btn { display: none !important; }
  .admin-top-mobile { display: none !important; }
}

/* ── Toast fix for mobile ── */
.toast-container { max-width: calc(100vw - 32px) !important; }
@media (max-width: 480px) {
  .toast { font-size: 13px; padding: 12px 16px; border-radius: 12px; }
}

/* ────────────────────────────────────────────────────────────
   SECTION HEADER &mdash; Mobile stacking
──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .section-header         { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
  .section-header h2      { font-size: 20px; }
  .section                { padding: 36px 0; }
}

/* ────────────────────────────────────────────────────────────
   PRODUCT DETAIL &mdash; Full mobile
──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-image-box img  { border-radius: 16px; }
  .product-detail-title   { font-size: 22px; letter-spacing: -0.5px; }
  .big-price              { font-size: 26px; }
  .review-card            { padding: 14px; }
  .product-detail-inner   { gap: 24px !important; }

  /* Size/variant selector rows */
  .size-selector, .color-selector { flex-wrap: wrap; gap: 8px; }

  /* Sticky bottom bar for Add to Cart on mobile */
  .product-cta-wrap { position: sticky; bottom: 0; z-index: 50; background: #fff; padding: 12px 16px; border-top: 1px solid #e2e8f0; margin: 0 -14px; border-radius: 16px 16px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); }
}

/* ────────────────────────────────────────────────────────────
   CART TABLE &mdash; Full mobile card view
──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cart-table             { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .cart-table thead       { display: none; }
  .cart-table tbody tr    { display: block; background: #fff; border-radius: 16px; margin-bottom: 14px; padding: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); border: 1px solid #f1f5f9; }
  .cart-table td          { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 !important; border: none !important; border-bottom: 1px dashed #f1f5f9 !important; font-size: 13px; }
  .cart-table td:last-child { border-bottom: none !important; padding-top: 12px !important; }
  .cart-table td::before  { content: attr(data-label); font-weight: 700; font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; margin-right: 12px; }
  .cart-product           { flex-direction: row !important; gap: 10px; }
  .cart-product img       { width: 52px !important; height: 68px !important; border-radius: 8px; }
  .cart-qty               { justify-content: flex-end; }
  .cart-qty input         { width: 40px; padding: 4px 6px; font-size: 13px; }
}

/* ────────────────────────────────────────────────────────────
   CHECKOUT &mdash; Mobile card spacing
──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .checkout-card          { padding: 16px !important; border-radius: 14px; margin-bottom: 14px; }
  .checkout-card h3       { font-size: 15px; padding-bottom: 10px; margin-bottom: 12px; }
  .payment-option         { padding: 10px 12px; font-size: 13px; border-radius: 10px; }
  .form-group             { margin-bottom: 14px; }
  .form-control           { padding: 10px 14px; font-size: 13.5px; }
}

/* ────────────────────────────────────────────────────────────
   FIND SECTION &mdash; Mobile tweaks
──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .find-section           { padding: 48px 0; margin: 16px 8px; border-radius: 20px; }
  .find-content h2        { font-size: 24px; }
  .find-content p         { font-size: 14px; }
  .find-stat              { padding: 16px; border-radius: 14px; }
  .stat-num               { font-size: 20px; }
}

/* ────────────────────────────────────────────────────────────
   TOP BAR &mdash; Mobile
──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .top-bar                { padding: 6px 0; }
  .top-bar-left           { font-size: 10.5px; }
  .top-bar-left span      { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; display: inline-block; }
  .top-bar-center         { display: none !important; }
  .top-bar-right          { display: none !important; }
}

/* ────────────────────────────────────────────────────────────
   HAMBURGER &mdash; Always correct
──────────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  border: none;
  background: none;
  z-index: 1001;
}
@media (max-width: 960px) {
  .hamburger { display: flex !important; }
}

/* ────────────────────────────────────────────────────────────
   ADMIN &mdash; Data tables collapse on mobile
──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .data-table             { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; border-radius: 12px; }
  .data-table thead,
  .data-table tbody,
  .data-table tr          { display: table-row-group; }
  .data-table thead tr    { display: table-row; }
  .data-table td,
  .data-table th          { display: table-cell; white-space: nowrap; }
}

/* ────────────────────────────────────────────────────────────
   ACCOUNT &mdash; Order row compact on mobile
──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .order-row              { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: #f9fafb; border: 1px solid #f1f5f9; margin-bottom: 10px; }
  .order-row:hover        { transform: none; }
  .order-status           { align-self: flex-start; }
}

/* ────────────────────────────────────────────────────────────
   FOOTER &mdash; Compact mobile
──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .footer-grid            { gap: 20px !important; }
  .footer-brand p         { font-size: 13px; margin-bottom: 14px; }
  .footer-col             { padding-bottom: 0; }
  .footer-col ul li       { margin-bottom: 6px; }
  .footer-bottom          { padding: 14px 0; font-size: 11px; }
}

/* ────────────────────────────────────────────────────────────
   SAFE AREA (iPhone X+ notch / home bar)
──────────────────────────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .site-header            { padding-top: env(safe-area-inset-top, 0); }
  footer.footer           { padding-bottom: calc(env(safe-area-inset-bottom, 0) + 20px); }
  .mobile-menu-inner      { padding-bottom: env(safe-area-inset-bottom, 0); }
  .product-cta-wrap       { padding-bottom: calc(env(safe-area-inset-bottom, 0) + 12px); }
}

/* ────────────────────────────────────────────────────────────
   PRINT &mdash; Remove decorative elements
──────────────────────────────────────────────────────────── */
@media print {
  .site-header, .footer, .hamburger, .mobile-menu,
  .hero-ultra-stats, .marquee-strip, .newsletter-premium,
  .promo-banner-premium   { display: none !important; }
  body                    { background: #fff !important; color: #000 !important; }
}

