/* ═══════════════════════════════════════════════════════════════
   الروشن الذهبي — mobile.css v3.0
   Mobile-First Design (not just desktop shrinkage)
   Applied at ≤ 768px — overrides style.css
   ═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   0. GLOBAL MOBILE BASE
   ══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

/* Minimum touch target */
a, button, [role="button"], input[type="button"], input[type="submit"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ══════════════════════════════════════════
   1. HEADER — MOBILE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .header { height: var(--header-h); padding: 0; }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 100%;
  }

  .logo { font-size: 17px; flex-shrink: 0; text-decoration: none; }

  .nav, .header-controls .btn-header { display: none !important; }

  .header-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-end: 8px;
  }

  .header-controls .ctrl-icon-btn {
    display: flex !important;
    width: 36px; height: 36px;
    padding: 0;
    border-radius: 8px;
    font-size: 12px; font-weight: 700;
    align-items: center; justify-content: center;
  }

  .hamburger {
    display: flex !important;
    flex-direction: column; justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
  }

  .hamburger span {
    width: 100%; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
  }

  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ══════════════════════════════════════════
   2. MOBILE NAV DRAWER
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .mobile-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline-start: 0;
    width: 100%;
    height: calc(100dvh - var(--header-h));
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    z-index: 900;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    /* Hide off-screen */
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0.3s;
    visibility: hidden;
  }

  [dir="rtl"] .mobile-nav { transform: translateX(105%); }
  [dir="ltr"] .mobile-nav { transform: translateX(-105%); }

  .mobile-nav.open {
    transform: translateX(0) !important;
    visibility: visible;
  }

  .mobile-nav ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 4px;
  }

  .mobile-nav-link {
    display: flex; align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px; font-weight: 600;
    color: var(--text-2); text-decoration: none;
    background: transparent;
    transition: all 0.2s ease;
    min-height: 52px;
  }

  .mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--gold-subtle); color: var(--gold);
  }

  .mobile-nav-cta {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 8px 0;
  }

  .mobile-nav-cta .btn {
    justify-content: center; width: 100%;
    min-height: 48px; font-size: 14px;
  }

  .mobile-nav-toggles {
    display: flex; gap: 10px; padding-top: 8px;
  }

  .mobile-nav-toggles .ctrl-icon-btn {
    flex: 1;
    display: flex !important;
    align-items: center; justify-content: center;
    gap: 8px; min-height: 48px;
    padding: 0 12px; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; color: var(--text-2);
    width: auto; height: auto;
  }

  .mobile-nav-toggles .ctrl-icon-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
}

/* ══════════════════════════════════════════
   3. HERO — MOBILE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    padding-top: var(--header-h);
    display: flex; flex-direction: column; justify-content: center;
  }

  .hero-content { grid-template-columns: 1fr !important; gap: 0; padding: 28px 0 20px; }
  .hero-visual { display: none !important; }

  .hero-text { max-width: 100%; text-align: center; padding: 0 4px; }

  .hero-badge {
    font-size: 11px; padding: 6px 14px;
    margin: 0 auto 16px; display: inline-flex;
  }

  .hero-title {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.3; margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 14px; line-height: 1.7;
    margin-bottom: 22px; color: var(--text-muted);
  }

  .hero-cta { flex-direction: column; gap: 10px; align-items: center; }

  .hero-cta .btn {
    width: 100%; max-width: 340px;
    justify-content: center; min-height: 52px;
    font-size: 15px; border-radius: 14px;
  }

  .hero-trust-badges {
    flex-wrap: wrap; justify-content: center;
    gap: 8px; margin-top: 18px;
  }

  .trust-badge { font-size: 11px; padding: 5px 10px; }

  /* Stats — 2x2 grid */
  .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px; margin-top: 24px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
  }

  .stat-divider { display: none !important; }

  .stat-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 2px; padding: 6px 4px;
  }

  .stat-num { font-size: 22px; line-height: 1.1; }
  .stat-label { font-size: 11px; text-align: center; }
}

/* ══════════════════════════════════════════
   4. SECTIONS SPACING
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-sm { padding: 28px 0; }
  .section-header { margin-bottom: 24px; text-align: center; }
  .section-title { font-size: clamp(20px, 6vw, 28px); line-height: 1.3; }
  .section-subtitle { font-size: 13px; max-width: 100%; }
  .section-tag { font-size: 11px; padding: 4px 12px; }
}

/* ══════════════════════════════════════════
   5. FEATURES STRIP
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .features-strip { padding: 20px 0; overflow: hidden; }
  .features-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .feature-item { padding: 12px 14px; gap: 12px; }
  .feature-icon { width: 38px; height: 38px; flex-shrink: 0; }
  .feature-icon svg { width: 18px; height: 18px; }
  .feature-item h4 { font-size: 13px; margin-bottom: 2px; }
  .feature-item p { font-size: 12px; }
}

/* ══════════════════════════════════════════
   6. SECTORS GRID
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .sectors-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .sector-card { border-radius: 14px; overflow: hidden; }
  .sector-img-wrap { height: 130px !important; }
  .sector-card-body { padding: 10px; }
  .sector-card-icon { font-size: 20px; }
  .sector-card-name { font-size: 12px; font-weight: 700; }
  .sector-card-desc { font-size: 11px; display: none; }
  .sector-card-link { font-size: 11px; padding: 6px 10px; min-height: 36px; display: inline-flex; align-items: center; }
}

@media (max-width: 360px) {
  .sectors-grid { grid-template-columns: 1fr !important; }
  .sector-img-wrap { height: 180px !important; }
  .sector-card-desc { display: block; }
}

/* ══════════════════════════════════════════
   7. UNIFORM DESIGNER — MOBILE REWORK
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  #customizer { padding: 28px 0; }

  .customizer-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
  }

  /* Progress Steps — scrollable */
  .designer-progress {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0; padding-bottom: 8px; margin-bottom: 4px;
  }
  .designer-progress::-webkit-scrollbar { display: none; }

  .progress-step { flex-shrink: 0; min-width: 60px; align-items: center; }
  .step-num-circle { width: 28px; height: 28px; font-size: 11px; flex-shrink: 0; }
  .progress-step-label { font-size: 9px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56px; }
  .progress-line { width: 16px; flex-shrink: 0; }

  /* Preview */
  .customizer-preview { position: static !important; top: auto !important; order: 2; border-radius: 14px; }

  .preview-canvas {
    height: 300px !important;
    border-radius: 12px;
    touch-action: pan-y;
    cursor: ew-resize;
  }

  .preview-img-wrap { max-height: 230px; border-radius: 10px; }
  .preview-img-wrap img { max-height: 230px; object-fit: contain; }

  /* Rotation bar */
  .rotation-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; }
  .rotation-bar .rot-slider-wrap { flex: 1; min-width: 100px; }
  .rotation-bar .view-btn, .rotation-bar .ctrl-icon-btn { min-width: 34px; min-height: 34px; font-size: 11px; padding: 0 6px; }

  /* Info bar */
  .preview-info-bar { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  .info-badge { font-size: 10px; }

  /* Actions */
  .customizer-actions-row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .customizer-actions-row .btn { font-size: 12px; padding: 10px 6px; min-height: 44px; justify-content: center; }
  #add-to-rfq { grid-column: 1 / -1; min-height: 52px; font-size: 15px; }

  /* Controls Panel */
  .customizer-controls { order: 1; border-radius: 14px; }
  .ctrl-step { border-radius: 12px; margin-bottom: 6px; }
  .ctrl-step-header { padding: 13px 14px; font-size: 13px; min-height: 50px; display: flex; align-items: center; gap: 10px; }
  .ctrl-step-panel { padding: 10px 12px 12px; }
  .ctrl-step-panel.open { display: block; }

  /* Sector tabs */
  .customizer-sector-tabs {
    display: flex !important;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; gap: 6px;
    padding-bottom: 4px; flex-wrap: nowrap !important;
  }
  .customizer-sector-tabs::-webkit-scrollbar { display: none; }
  .sector-tab-btn { white-space: nowrap; flex-shrink: 0; font-size: 12px; padding: 8px 12px; min-height: 36px; border-radius: 8px; }

  /* Product thumbnails */
  #product-cards-scroll {
    display: flex; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 10px; padding-bottom: 4px;
  }
  #product-cards-scroll::-webkit-scrollbar { display: none; }
  .product-thumb { flex-shrink: 0; width: 85px; border-radius: 10px; }
  .product-thumb-img { height: 85px; border-radius: 8px; }
  .product-thumb-name { font-size: 10px; padding: 3px; text-align: center; }

  /* Fabric cards — 2 columns */
  .fabric-cards-grid { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .fabric-card { padding: 10px; border-radius: 10px; }
  .fabric-card-icon { font-size: 18px; }
  .fabric-card-name { font-size: 12px; }
  .fabric-card-desc { font-size: 10px; }

  /* Color swatches — grid */
  #color-swatches {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 8px !important;
    flex-wrap: unset !important;
  }

  .swatch {
    width: 100% !important;
    aspect-ratio: 1 !important;
    height: auto !important;
    border-radius: 8px !important;
  }

  /* Custom color */
  .custom-color-row { display: flex; flex-direction: column; gap: 8px; }
  .custom-color-row input { width: 100%; }

  /* Logo controls */
  .logo-controls { display: flex; flex-direction: column; gap: 10px; }
  .logo-upload-zone { padding: 14px; border-radius: 12px; text-align: center; }
  .logo-sliders { display: flex; flex-direction: column; gap: 10px; }

  .slider-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
  .slider-row input[type="range"] { width: 100%; }
  .slider-val { min-width: 36px; text-align: center; font-size: 12px; }

  /* Position grid */
  #position-grid, .logo-position-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
  #position-grid .ctrl-btn, .logo-position-grid .ctrl-btn { font-size: 11px; padding: 8px 6px; min-height: 40px; text-align: center; }

  /* Text controls */
  .text-controls { display: flex; flex-direction: column; gap: 10px; }
  .text-controls textarea, .text-controls input[type="text"] { width: 100%; font-size: 16px !important; min-height: 70px; border-radius: 10px; padding: 10px; }
  .text-controls select, .text-controls input[type="color"] { width: 100%; min-height: 44px; font-size: 16px; border-radius: 10px; }
  .text-format-row { display: flex; gap: 8px; }
  .text-format-row .ctrl-btn { flex: 1; min-height: 44px; font-size: 14px; font-weight: 700; }

  /* Print method — 1 col */
  .print-options { display: grid !important; grid-template-columns: 1fr !important; gap: 8px; }
  .print-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; }
  .print-card-icon { font-size: 22px; flex-shrink: 0; }
  .print-card-name { font-size: 13px; font-weight: 700; }
  .print-card-desc { font-size: 11px; }

  /* Size table — scrollable container */
  .size-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: 12px; border: 1px solid var(--border);
  }
  .size-table { min-width: 440px; width: 100%; border-collapse: collapse; }
  .size-table th, .size-table td { padding: 10px 12px; font-size: 12px; white-space: nowrap; border-bottom: 1px solid var(--border); text-align: center; }
  .size-table th { background: var(--gold-subtle); color: var(--gold); font-weight: 700; font-size: 11px; }
  .size-qty-input { width: 60px; min-height: 40px; padding: 6px; font-size: 15px; text-align: center; border-radius: 8px; }
  .size-total-row { padding: 10px 14px; font-size: 13px; font-weight: 700; border-top: 2px solid var(--gold); display: flex; justify-content: space-between; align-items: center; }
  #size-total { color: var(--gold); font-size: 15px; }

  /* Designer size table — vertical list on mobile */
  .size-table { display: flex; flex-direction: column; gap: 6px; }
  .size-table-row {
    display: grid;
    grid-template-columns: 48px 1fr 40px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
  }
  .size-label { font-size: 13px; font-weight: 700; color: var(--gold); }
  .size-table-row .size-qty-input { width: 100%; min-height: 42px; font-size: 16px; }
  .qty-input-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
  .qty-manual { flex: 1; font-size: 16px !important; min-height: 48px; border-radius: 12px; padding: 0 14px; }
  .qty-unit { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

  /* Gender toggle */
  .gender-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 12px; }
  .gender-btn { min-height: 46px; font-size: 13px; border-radius: 10px !important; display: flex; align-items: center; justify-content: center; gap: 6px; }

  /* Design ID */
  .design-id-display { font-size: 12px; padding: 8px 10px; border-radius: 10px; letter-spacing: 1px; word-break: break-all; text-align: center; }

  /* Cart summary */
  #cart-summary { margin-top: 12px; border-radius: 14px; padding: 12px; }
  .cart-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .cart-item-thumb { width: 48px; height: 48px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
  .cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .cart-item-name { font-size: 12px; font-weight: 700; }
  .cart-item-detail { font-size: 11px; color: var(--text-muted); }
  .cart-item-remove { min-width: 30px; min-height: 30px; font-size: 14px; }
}

/* ══════════════════════════════════════════
   8. PROCESS STEPS
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .process-grid::before { display: none !important; }
  .process-step { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); }
  .process-step-num { width: 38px; height: 38px; font-size: 13px; flex-shrink: 0; }
  .process-step-content { flex: 1; }
  .process-step-title { font-size: 13px; margin-bottom: 3px; }
  .process-step-desc { font-size: 11px; }
}

/* ══════════════════════════════════════════
   9. ABOUT
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr !important; gap: 20px; }
  .about-img-wrap, .about-img-secondary, .about-badge-float { display: none; }
  .about-values { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .about-value-card { padding: 12px; border-radius: 12px; }
  .about-value-icon { font-size: 18px; margin-bottom: 4px; }
  .about-value-title { font-size: 12px; }
  .about-value-desc { font-size: 11px; }
  .about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-top: 14px; }
  .about-stat { text-align: center; }
  .about-stat-num { font-size: 22px; }
  .about-stat-label { font-size: 11px; }
  .about-stat-divider { display: none; }
  .about-timeline { padding-inline-start: 16px; border-inline-start: 2px solid var(--gold); }
  .timeline-item { padding-inline-start: 14px; margin-bottom: 16px; }
  .timeline-year { font-size: 13px; }
  .timeline-desc { font-size: 12px; }
}

/* ══════════════════════════════════════════
   10. QUALITY
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .quality-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .quality-card { padding: 12px; border-radius: 12px; text-align: center; }
  .quality-icon { font-size: 24px; margin-bottom: 6px; }
  .quality-title { font-size: 12px; font-weight: 700; }
  .quality-desc { font-size: 11px; }
}
@media (max-width: 380px) { .quality-grid { grid-template-columns: 1fr !important; } }

/* ══════════════════════════════════════════
   11. TESTIMONIALS & PARTNERS
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .testimonial-card { padding: 16px; border-radius: 14px; }
  .testimonial-text { font-size: 13px; line-height: 1.7; }
  .testimonial-name { font-size: 13px; }
  .testimonial-role { font-size: 11px; }

  .partners-static-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .partner-card { padding: 12px; border-radius: 12px; }
  .partner-logo { max-height: 34px; }
  .partner-name { font-size: 11px; }
}

/* ══════════════════════════════════════════
   12. RFQ FORM
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  #rfq { padding: 36px 0; }
  .rfq-layout { grid-template-columns: 1fr !important; gap: 16px; }
  .rfq-info { position: static !important; top: auto !important; }
  .rfq-info-card { padding: 14px; border-radius: 14px; }
  .rfq-form { padding: 18px 14px; border-radius: 14px; }

  /* All form rows → single column */
  .form-row { grid-template-columns: 1fr !important; gap: 10px; }
  .form-group { margin-bottom: 10px; }
  .form-group label { font-size: 13px; margin-bottom: 5px; display: block; }

  /* Prevent iOS zoom (font-size must be >= 16px) */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
    padding: 12px 14px;
    min-height: 50px;
    border-radius: 12px;
    width: 100%;
  }

  .form-group textarea { min-height: 90px; resize: vertical; }

  /* Checkboxes */
  .form-checks { display: flex; flex-direction: column; gap: 8px; }
  .form-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border); min-height: 48px; }
  .form-check input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; min-height: unset; }
  .form-check span { font-size: 13px; }

  /* File upload */
  .form-file-group { display: flex; flex-direction: column; gap: 8px; }
  .file-upload-zone { padding: 14px; border-radius: 12px; text-align: center; border: 2px dashed var(--border); }

  /* RFQ size table — scrollable */
  .rfq-size-table-wrap, .rfq-size-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rfq-size-table-header, .rfq-size-table-body { grid-template-columns: repeat(7, 1fr) !important; display: grid !important; min-width: 380px; }
  .rfq-size-cell, .rfq-size-header-cell { display: block !important; padding: 8px 4px; font-size: 11px; text-align: center; }
  .rfq-size-input { width: 48px; font-size: 14px; min-height: 38px; text-align: center; border-radius: 6px; padding: 4px; }

  /* Submit */
  .submit-btn-wrap { margin-top: 16px; }
  #rfq-submit { width: 100%; min-height: 56px; font-size: 16px; border-radius: 14px; justify-content: center; }

  .form-section-title { font-size: 13px; margin-bottom: 12px; padding-bottom: 8px; }
}

/* ══════════════════════════════════════════
   13. FOOTER
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .footer-top { padding: 36px 0 20px; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .footer-brand { max-width: 100%; }
  .footer-brand-desc { font-size: 13px; }
  .footer-col h4 { font-size: 13px; margin-bottom: 10px; }
  .footer-links { gap: 6px; }
  .footer-links a { font-size: 13px; min-height: 40px; display: flex; align-items: center; }
  .footer-social { gap: 8px; }
  .social-btn { width: 40px; height: 40px; }
  .footer-bottom { padding: 14px 0; }
  .footer-bottom-inner { flex-direction: column !important; align-items: center; gap: 6px; text-align: center; font-size: 12px; }
  .footer-legal { gap: 12px; }
  .footer-legal a { font-size: 12px; }
}

/* ══════════════════════════════════════════
   14. FLOATING ELEMENTS
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .floating-whatsapp { bottom: 76px; inset-inline-end: 14px; }
  .wa-btn { width: 50px; height: 50px; }
  .wa-btn svg { width: 24px; height: 24px; }
  .back-to-top { bottom: 136px; inset-inline-end: 14px; width: 38px; height: 38px; }
  .rfq-counter { bottom: 18px; inset-inline-start: 14px; }
  .toast-container { top: calc(var(--header-h) + 8px); inset-inline-end: 10px; inset-inline-start: 10px; width: auto; max-width: none; }
  .toast { width: 100%; min-height: 44px; font-size: 13px; border-radius: 12px; }
  #cart-notification { top: calc(var(--header-h) + 56px); bottom: auto; inset-inline-end: 10px; max-width: calc(100vw - 20px); }
}

/* ══════════════════════════════════════════
   15. BUTTONS TOUCH
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .btn:active { transform: scale(0.96); }
  .btn-lg { min-height: 52px; font-size: 15px; padding: 0 22px; border-radius: 14px; }
  .btn-sm { min-height: 40px; font-size: 13px; padding: 0 14px; border-radius: 10px; }
}

/* ══════════════════════════════════════════
   16. PAGE HERO (portfolio/fabrics)
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .page-hero { min-height: auto; padding: 70px 0 28px; }
  .page-hero-content { text-align: center; }
  .breadcrumb { justify-content: center; }
  .products-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .product-card-img { height: 200px; }
  .product-card-body { padding: 12px; }
  .product-card-name { font-size: 15px; }
  .product-card-desc { font-size: 12px; }
  .product-card-actions { flex-direction: column; gap: 6px; }
  .product-card-actions .btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════
   17. ACCESSIBILITY & OVERFLOW
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
  p, h1, h2, h3, h4, h5, h6, span, a, li { overflow-wrap: break-word; word-break: break-word; }
}

/* ══════════════════════════════════════════
   18. EXTRA SMALL < 380px
   ══════════════════════════════════════════ */
@media (max-width: 380px) {
  :root { --container-pad: 12px; }
  .hero-title { font-size: 22px; }
  .hero-cta .btn { font-size: 14px; min-height: 48px; }
  .mobile-nav-cta { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr !important; }
  #color-swatches { grid-template-columns: repeat(5, 1fr) !important; }
}
