/* Al-Sharqawy mobile UI — loaded after styles.css */

/* Small tablets, foldables and landscape phones */
@media (max-width: 1024px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 84px;
  }

  body {
    min-width: 320px;
    overflow-x: clip;
  }

  img, svg, video, iframe { max-width: 100%; }

  .container { width: min(100% - 2rem, 960px); }

  .site-header nav,
  .nav-menu { display: none; }

  .mobile-menu-btn { display: inline-flex; }

  .nav-container {
    min-height: 68px;
    gap: 0.75rem;
  }

  .brand-tagline { display: none; }

  .hero-grid,
  .contact-grid,
  .banquet-card,
  .quality-grid { grid-template-columns: minmax(0, 1fr); }

  .hero-content {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-description { margin-inline: auto; }

  .hero-cta-group,
  .hero-stats { justify-content: center; }

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

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem;
  }
}

/* About page keeps its editorial timeline layout on small screens. */
@media (max-width: 768px) {
  .about-page .timeline-grid {
    gap: 0.85rem;
  }

  .about-page .timeline-grid::before {
    right: 19px;
  }

  .about-page .timeline-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .about-page .timeline-card::before {
    top: 1.45rem;
    right: 11px;
    width: 16px;
    height: 16px;
  }

  .about-page .timeline-year {
    min-width: 0;
    display: block;
    padding: 2.8rem 0 0;
    border: 0;
    font-size: 0.68rem;
    writing-mode: vertical-rl;
  }

  .about-page .timeline-info {
    min-height: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    column-gap: 0.7rem;
    row-gap: 0.5rem;
    padding: 0.95rem;
    border-radius: 16px;
  }

  .about-page .timeline-icon {
    position: static;
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
  }

  .about-page .timeline-info h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .about-page .timeline-info p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
  }

  .about-page .about-cta-actions {
    width: auto;
    align-self: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .about-page .about-cta-actions a {
    min-height: 40px;
    flex: 0 0 auto;
    padding: 0.5rem 0.72rem;
    font-size: 0.78rem;
    gap: 0.38rem;
  }

  .about-page .about-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .about-page .about-principles > div {
    min-height: 92px;
    gap: 0.45rem;
    padding: 0.75rem 0.6rem;
  }

  .about-page .about-principles > div:last-child {
    width: calc(50% - 0.325rem);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .about-page .about-principles i {
    width: 30px;
    font-size: 1.2rem;
  }

  .about-page .about-principles strong {
    font-size: 0.88rem;
  }

  .about-page .about-principles small {
    font-size: 0.68rem;
  }
}

/* Phones and portrait tablets */
@media (max-width: 768px) {
  :root {
    --mobile-gutter: clamp(1rem, 4vw, 1.35rem);
    --mobile-radius: 16px;
  }

  html { scroll-padding-top: 76px; }

  body { padding-bottom: env(safe-area-inset-bottom, 0px); }

  .container {
    width: 100%;
    max-width: none;
    padding-inline: var(--mobile-gutter);
  }

  .top-bar { min-height: 34px; }

  .top-bar-content {
    min-height: 34px;
    padding-block: 0.4rem;
    justify-content: center;
    text-align: center;
  }

  .top-bar-left,
  .top-bar-badge { display: none; }

  .top-bar-right {
    justify-content: center;
    min-width: 0;
  }

  .top-bar-highlight {
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .site-header { top: 0; }

  .nav-container {
    min-height: 64px;
    padding-inline: var(--mobile-gutter);
    gap: 0.5rem;
  }

  .brand-identity {
    min-width: 0;
    gap: 0.5rem;
  }

  .brand-logo-img {
    width: 58px;
    height: 46px;
    flex: 0 0 58px;
  }

  .site-header .brand-logo-img {
    width: clamp(60px, 15vw, 68px);
    height: auto;
    aspect-ratio: 224 / 180;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(28, 25, 23, 0.24)) contrast(1.12) saturate(1.08);
  }

  .brand-title { font-size: clamp(1rem, 4.4vw, 1.18rem); }
  .brand-crown-icon { font-size: 0.78rem; }

  .nav-actions {
    gap: 0.38rem;
    margin-inline-start: auto;
  }

  .theme-toggle-btn,
  .cart-toggle-btn,
  .mobile-menu-btn,
  .btn-primary-order {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 13px;
  }

  .btn-primary-order span { display: none; }

  .cart-badge {
    top: -5px;
    right: -5px;
  }

  .mobile-drawer {
    width: min(90vw, 380px);
    max-width: 100%;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-drawer-header {
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem 1rem;
  }

  .mobile-drawer-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .mobile-drawer-hotline,
  .mobile-drawer-cats,
  .mobile-drawer-footer { margin-inline: 1rem; }

  .mobile-drawer-hotline {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mobile-drawer-link {
    min-height: 58px;
    padding: 0.95rem 1.05rem;
    border-radius: 15px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .mobile-cat-tile { min-height: 76px; }

  .hero-section {
    min-height: auto;
    padding: clamp(3.75rem, 12vw, 5.5rem) 0;
    background-image: url('assets/images/hero-v3-mobile.webp');
    background-position: center;
  }

  .hero-content { width: 100%; }

  .hero-pill {
    max-width: 100%;
    margin-inline: auto;
    padding: 0;
    font-size: 0.78rem;
    white-space: normal;
  }

  .hero-title {
    font-size: clamp(2.05rem, 9vw, 3.2rem);
    line-height: 1.18;
  }

  .hero-description {
    max-width: 34rem;
    font-size: 0.98rem;
    line-height: 2.1;
  }

  .hero-cta-group {
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group > *,
  .final-order-actions > * { min-height: 48px; }

  .hero-stats {
    width: 100%;
    gap: 0.75rem;
  }

  .page-hero-header { padding-block: 3.25rem; }

  .page-hero-title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    line-height: 1.25;
  }

  .page-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .breadcrumb-nav {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .menu-section,
  .quality-section,
  .story-timeline-section,
  .contact-section,
  .banquet-section,
  .why-section,
  .home-categories { padding-block: 3.25rem; }

  .section-header { margin-bottom: 2rem; }
  .section-title { font-size: clamp(1.65rem, 7vw, 2.15rem); }
  .section-desc { font-size: 0.94rem; }

  .menu-grid,
  .home-menu-grid,
  .why-grid,
  .quality-grid,
  .banquet-features {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .trust-grid,
  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .trust-strip {
    padding-block: 1rem;
    background: var(--bg-main);
  }

  .trust-grid .trust-item {
    min-height: 108px;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.8rem 0.65rem;
    border: 1px solid var(--border-color-subtle);
    border-radius: 16px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    text-align: right;
  }

  .trust-grid .trust-item > i {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .trust-grid .trust-item strong {
    font-size: 0.94rem;
    line-height: 1.4;
  }

  .trust-grid .trust-item span {
    font-size: 0.74rem;
    line-height: 1.55;
  }

  .home-category-card.featured,
  .home-category-card.is-featured { grid-column: auto; }

  .dish-card,
  .quality-card,
  .timeline-card,
  .contact-info-card,
  .contact-form-card,
  .banquet-card { border-radius: var(--mobile-radius); }

  .dish-image-wrap { height: clamp(190px, 56vw, 250px); }
  .dish-body { padding: 1.1rem; }
  .dish-header { gap: 0.75rem; }
  .dish-title { font-size: 1.12rem; }
  .dish-price { font-size: 1.16rem; }

  .dish-actions,
  .banquet-pricing,
  .final-order-inner,
  .final-order-actions { width: 100%; }

  .banquet-content { padding: 1.4rem; }
  .banquet-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .banquet-media {
    order: -1;
    min-height: 250px;
  }

  .quality-card,
  .timeline-card,
  .contact-info-card,
  .contact-form-card { padding: 1.25rem; }

  .timeline-card {
    flex-direction: column;
    gap: 0.9rem;
  }

  .timeline-year {
    min-width: 0;
    border-left: 0;
    border-bottom: 2px solid var(--border-color);
    padding: 0 0 0.6rem;
  }

  .contact-tabs-bar {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .tab-switch-btn {
    flex: 1 1 0;
    min-height: 46px;
    padding: 0.7rem 0.65rem;
    font-size: 0.88rem;
  }

  .contact-method { gap: 0.85rem; }
  .categories-bar-section { top: 64px; }

  .categories-scroll {
    margin-inline: calc(var(--mobile-gutter) * -1);
    padding: 0.4rem var(--mobile-gutter) 0.6rem;
    scroll-padding-inline: var(--mobile-gutter);
    scroll-snap-type: inline proximity;
  }

  .cat-btn {
    min-height: 44px;
    scroll-snap-align: start;
  }

  .form-input,
  .form-select,
  .form-textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .form-textarea { min-height: 130px; }

  .cart-drawer {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .cart-header { padding-top: calc(1rem + env(safe-area-inset-top, 0px)); }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card,
  .checkout-modal-card {
    width: 100%;
    max-width: none;
    max-height: min(92dvh, 900px);
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .modal-header,
  .modal-body,
  .modal-footer { padding-inline: var(--mobile-gutter); }

  .modal-close-btn {
    width: 44px;
    height: 44px;
  }

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

  .custom-radio,
  .custom-checkbox,
  .pay-card { min-height: 48px; }

  .payment-options-grid { gap: 0.5rem; }

  .site-footer {
    padding: 3.25rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    margin-bottom: 2.25rem;
  }

  .footer-about > div:first-child { align-items: center !important; }

  .footer-logo-img {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .live-toast { display: none !important; }

  .floating-phone-btn {
    display: flex !important;
    right: max(16px, env(safe-area-inset-right, 0px));
    left: auto;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
  }

  .floating-whatsapp-btn {
    left: max(16px, env(safe-area-inset-left, 0px));
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }
}

/* Standard compact phones */
@media (max-width: 560px) {
  :root { --mobile-gutter: 1rem; }

  .top-bar-highlight i { display: none; }
  .nav-container { gap: 0.35rem; }

  .brand-logo-img {
    width: 54px;
    height: 43px;
    flex-basis: 54px;
  }

  .brand-title { font-size: 1.02rem; }

  .brand-crown-icon,
  .theme-toggle-btn { display: none; }

  .hero-section { padding-block: 3.5rem; }

  .hero-cta-group,
  .final-order-actions,
  .banquet-pricing {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group > *,
  .final-order-actions > *,
  .banquet-pricing > * {
    width: 100%;
    justify-content: center;
  }

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

  .trust-item {
    min-height: 86px;
    padding: 0.75rem 0.5rem;
  }

  .home-category-grid {
    gap: 0.65rem;
  }

  .home-category-card {
    min-height: 106px;
    padding: 0.85rem 0.55rem;
    border-radius: 16px;
  }

  .home-category-card > i {
    margin-bottom: 0.45rem;
    font-size: 1.38rem;
  }

  .home-category-card strong {
    margin-bottom: 0.12rem;
    font-size: 0.88rem;
  }

  .home-category-card span {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .dish-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dish-price { white-space: normal; }
  .dish-actions { flex-wrap: wrap; }
  .btn-add-cart { min-height: 46px; }
  .contact-tabs-bar { align-items: stretch; }

  .contact-method-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .payment-options-grid { grid-template-columns: minmax(0, 1fr); }

  .modal-footer {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .footer-about > div:first-child { gap: 0.65rem !important; }
}

/* Very narrow phones: 320–390px */
@media (max-width: 390px) {
  .top-bar { display: none; }
  .nav-container { min-height: 60px; }

  .brand-logo-img {
    width: 50px;
    height: 40px;
    flex-basis: 50px;
  }

  .brand-title { font-size: 0.94rem; }
  .nav-actions { gap: 0.28rem; }

  .cart-toggle-btn,
  .mobile-menu-btn,
  .btn-primary-order {
    width: 39px;
    min-width: 39px;
    height: 39px;
  }

  .mobile-drawer { width: 100%; }
  .hero-title { font-size: clamp(1.9rem, 10.5vw, 2.35rem); }

  .hero-stats { grid-template-columns: minmax(0, 1fr); }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .trust-grid .trust-item {
    padding-inline: 0.5rem;
  }

  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .home-category-card {
    min-height: 98px;
    padding: 0.72rem 0.42rem;
  }

  .home-category-card > i {
    font-size: 1.25rem;
  }

  .home-category-card strong {
    font-size: 0.82rem;
  }

  .home-category-card span {
    font-size: 0.63rem;
  }

  .page-hero-title,
  .section-title { overflow-wrap: anywhere; }

  .contact-tabs-bar { flex-direction: column; }

  .footer-logo-img {
    width: 84px;
    height: 68px;
    flex-basis: 84px;
  }

  .footer-brand-name { font-size: 1.05rem; }
  .footer-branch-name { font-size: 0.68rem; }
}

/* Compact package booking steps on phones. */
@media (max-width: 680px) {
  .packages-steps-section {
    padding-block: 2.75rem;
  }

  .packages-steps {
    gap: 0.7rem;
    margin-bottom: 1.5rem;
  }

  .packages-steps > div {
    min-height: 118px;
    padding: 0.85rem 2rem 0.85rem 0.85rem;
    border-radius: 16px;
  }

  .packages-steps > div > span {
    top: 0.65rem;
    inset-inline-start: 0.75rem;
    font-size: 0.88rem;
  }

  .packages-steps i {
    margin-bottom: 0.45rem;
    font-size: 1.45rem;
  }

  .packages-steps h3 {
    margin-bottom: 0.2rem;
    font-size: 1.08rem;
    line-height: 1.4;
  }

  .packages-steps p {
    font-size: 0.8rem;
    line-height: 1.55;
  }
}

/* Short landscape phones */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .top-bar { display: none; }
  .nav-container { min-height: 56px; }

  .hero-section {
    min-height: auto;
    padding-block: 2.5rem;
  }

  .mobile-drawer { width: min(62vw, 430px); }

  .modal-card,
  .checkout-modal-card { max-height: 96dvh; }
}

@media (hover: none) and (pointer: coarse) {
  a, button, input, select, textarea, label {
    -webkit-tap-highlight-color: transparent;
  }

  .dish-card:hover,
  .quality-card:hover,
  .timeline-card:hover,
  .brand-identity:hover .brand-logo-img { transform: none; }

  .cat-btn,
  .mobile-drawer-link,
  .footer-links a { touch-action: manipulation; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-drawer,
  .cart-drawer,
  .modal-card,
  .checkout-modal-card {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Clear, uncropped menu cards on phones */
@media (min-width: 769px) and (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .dish-card { align-self: start; }
  .dish-image-wrap { height: auto; aspect-ratio: 1 / 1; padding: 0; }
  .dish-body { padding: 1rem; }

  .dish-meta-row {
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    font-size: 0.74rem;
  }

  .dish-meta-row span:last-child { display: inline-flex; }
  .dish-header { margin-bottom: 0.55rem; }
  .dish-title { font-size: 1.12rem; }
  .dish-price { padding: 0.36rem 0.58rem; font-size: 1.18rem; }

  .dish-description,
  .dish-service-detail {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .dish-description { margin-bottom: 0.45rem; font-size: 0.86rem; }
  .dish-service-detail { margin-bottom: 0.8rem; font-size: 0.78rem; }
  .dish-option-group { margin-bottom: 0.8rem; padding: 0.65rem; }
  .dish-option-label { margin-bottom: 0.45rem; font-size: 0.82rem; }
  .dish-option-select { min-height: 42px; padding: 0.55rem 0.65rem; font-size: 0.88rem; }

  .dish-actions { flex-direction: row; gap: 0.45rem; }
  .btn-add-cart {
    min-height: 46px;
    padding: 0.65rem 0.7rem;
    gap: 0.4rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .btn-quick-customize {
    width: auto;
    min-width: 94px;
    min-height: 46px;
    padding: 0.65rem 0.8rem;
    justify-content: center;
  }
  .btn-quick-customize span { display: inline; }
}

@media (max-width: 768px) {
  .dish-image-wrap {
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 0;
  }

  .dish-img { object-fit: contain; }
  .dish-body { padding: 1.15rem; }
  .dish-header { flex-direction: row; align-items: center; }
  .dish-title { font-size: 1.2rem; }
  .dish-description { font-size: 0.95rem; }
  .dish-actions { flex-wrap: nowrap; }
  .btn-add-cart,
  .btn-quick-customize { min-height: 50px; }
}

@media (max-width: 430px) {
  .dish-header { align-items: flex-start; }
  .dish-actions { flex-direction: column; }
  .btn-quick-customize { width: 100%; justify-content: center; }
}

/* Compact sandwich customization sheet on phones. */
@media (max-width: 768px) {
  #customizeModal .modal-card {
    width: calc(100% - 20px);
    max-height: 88dvh;
    margin-bottom: 10px;
    border-radius: 18px;
  }

  #customizeModal .modal-header {
    padding: 0.72rem 0.9rem;
  }

  #customizeModal .modal-title {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  #customizeModal #modalItemPrice {
    font-size: 0.88rem !important;
  }

  #customizeModal .modal-close-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  #customizeModal .modal-body {
    padding: 0.8rem 0.9rem;
  }

  #customizeModal .option-group {
    margin-bottom: 0.85rem;
  }

  #customizeModal .option-group:last-child {
    margin-bottom: 0;
  }

  #customizeModal .option-group-title {
    margin-bottom: 0.42rem;
    font-size: 0.86rem;
  }

  #customizeModal .option-group-title small {
    font-size: 0.68rem !important;
  }

  #customizeModal .options-grid,
  #customizeModal .option-group > div[style*="flex-direction: column"] {
    gap: 0.42rem !important;
  }

  #customizeModal .custom-radio,
  #customizeModal .custom-checkbox {
    min-height: 42px;
    padding: 0.48rem 0.62rem;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  #customizeModal .modal-footer {
    padding: 0.62rem 0.9rem;
  }

  #customizeModal .modal-footer .btn-add-cart {
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    font-size: 0.8rem;
  }
}

/* Compact mobile density: shorter cards, buttons and footer without tiny tap targets. */
@media (max-width: 768px) {
  .why-grid {
    gap: 0.65rem;
  }

  .why-card {
    padding: 0.85rem 0.75rem;
    border-radius: 16px;
  }

  .why-card > i {
    width: 42px;
    height: 42px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }

  .why-card h3 {
    margin-bottom: 0.25rem;
    font-size: 0.98rem;
    line-height: 1.4;
  }

  .why-card p {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .site-footer {
    padding: 1.75rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1rem;
    margin-bottom: 1.25rem;
  }

  .footer-about,
  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-about > div:first-child {
    gap: 0.55rem !important;
    margin-bottom: 0.55rem !important;
  }

  .footer-logo-img {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .footer-about p {
    margin-bottom: 0.7rem;
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .footer-col h4 {
    margin-bottom: 0.65rem;
    padding-bottom: 0.3rem;
    font-size: 0.92rem;
  }

  .footer-col h4::after {
    width: 26px;
  }

  .footer-links {
    gap: 0.42rem;
  }

  .footer-links a,
  .footer-contact-item {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .footer-contact-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }

  .footer-contact-item {
    gap: 0.5rem;
  }

  .footer-contact-item i {
    font-size: 0.95rem;
  }

  .footer-socials {
    gap: 0.45rem;
  }

  .footer-social-label {
    font-size: 0.72rem;
  }

  .footer-social-list {
    gap: 0.5rem;
  }

  .footer-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
  }

  .footer-bottom {
    padding-top: 0.85rem;
    gap: 0.5rem;
    font-size: 0.7rem;
    line-height: 1.55;
  }

  .home-category-card {
    min-height: 90px;
    padding: 0.68rem 0.45rem;
  }

  .quality-card,
  .about-quality-card,
  .contact-info-card,
  .contact-form-card {
    padding: 1rem;
    border-radius: 14px;
  }

  .contact-submit-btn {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 0.7rem 1.15rem;
    white-space: nowrap;
  }

  .about-quality-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.35rem;
    padding: 0.8rem 0.85rem;
  }

  .about-quality-grid {
    gap: 0.7rem;
  }

  .about-quality-card .quality-icon {
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
    margin: 0;
    font-size: 1.05rem;
  }

  .about-quality-card h3 {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    padding-inline-end: 2.8rem;
    font-size: 1rem;
    line-height: 1.4;
  }

  .about-quality-card p {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .quality-icon,
  .about-quality-card .quality-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.8rem;
    font-size: 1.18rem;
  }

  .about-quality-card .quality-icon {
    width: 44px;
    height: 44px;
    margin: 0;
    font-size: 1.05rem;
  }

  .package-card {
    padding: 1rem;
    border-radius: 16px;
  }

  .package-card-media {
    height: auto;
    aspect-ratio: 16 / 9;
    margin: -1rem -1rem 0.8rem;
  }

  .package-card-media img {
    padding: 0;
    object-fit: cover;
  }

  .package-card h3 {
    font-size: 1.16rem;
    line-height: 1.45;
  }

  .package-card > p {
    min-height: 0;
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .package-card-top,
  .package-card > p,
  .package-card ul {
    margin-bottom: 0.8rem;
  }

  .dish-card {
    border-radius: 16px;
  }

  .dish-image-wrap {
    aspect-ratio: 3 / 2;
    max-height: 285px;
    display: block;
  }

  .dish-image-wrap .dish-img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center 44%;
  }

  .dish-body {
    padding: 0.85rem;
  }

  .dish-meta-row {
    margin-bottom: 0.55rem;
    font-size: 0.7rem;
  }

  .dish-header {
    gap: 0.55rem;
    margin-bottom: 0.45rem;
  }

  .dish-title {
    font-size: 1.02rem;
  }

  .dish-price {
    padding: 0.32rem 0.5rem;
    font-size: 1.05rem;
  }

  .dish-description,
  .dish-service-detail {
    display: block;
    overflow: visible;
  }

  .dish-description {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .dish-service-detail {
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .dish-option-group {
    margin-bottom: 0.65rem;
    padding: 0.55rem;
  }

  .dish-option-label {
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
  }

  .dish-option-select {
    min-height: 42px;
    padding: 0.48rem 0.6rem;
    font-size: 0.84rem;
  }

  .btn-hero-order,
  .btn-hero-menu,
  .btn-add-cart,
  .btn-quick-customize,
  .btn-checkout-flow,
  .btn-primary,
  .btn-secondary,
  .tab-switch-btn,
  .packages-final-cta button {
    min-height: 44px;
    padding: 0.58rem 0.78rem;
    font-size: 0.84rem;
  }

  .dish-actions {
    gap: 0.5rem;
  }

  .floating-phone-btn,
  .floating-whatsapp-btn {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 430px) {
  .dish-actions {
    flex-direction: row;
  }

  .btn-quick-customize {
    width: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    padding-inline: 0;
  }

  .btn-quick-customize span {
    display: none;
  }

  .footer-contact-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Full first-screen mobile hero with compact actions. */
@media (max-width: 768px) {
  .final-order-actions {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
  }

  .final-order-actions > button,
  .final-order-actions > a {
    width: auto !important;
    min-width: 0;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 0.6rem 1rem;
    white-space: nowrap;
  }

  .nav-actions .theme-toggle-btn {
    display: flex;
    color: var(--color-gold);
  }

  .nav-actions .btn-primary-order {
    display: none;
  }

  .mobile-drawer-cats {
    display: none;
  }

  .mobile-drawer-hotline {
    margin-top: auto;
    margin-bottom: 0.75rem;
  }

  .mobile-drawer-footer {
    margin-top: 0;
  }

  .hero-section {
    min-height: calc(100svh - 98px);
    min-height: calc(100dvh - 98px);
    padding: clamp(1.35rem, 4vh, 2.25rem) 0;
    background-image: url('assets/images/hero-v3-mobile.webp');
    background-size: cover;
    background-position: 54% center;
  }

  .hero-grid,
  .hero-content {
    min-height: 100%;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-2cm);
  }

  .hero-pill {
    margin-bottom: 0.9rem;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .hero-title {
    width: 100%;
    margin-bottom: 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
  }

  .hero-title br {
    display: none;
  }

  .hero-title-main-line {
    max-width: 100%;
    font-size: clamp(1.38rem, 5.6vw, 1.78rem);
    line-height: 1.4;
  }

  .hero-title-secondary-line {
    max-width: 100%;
    font-size: clamp(2.25rem, 9.2vw, 2.9rem);
    line-height: 1.18;
  }

  .hero-description {
    width: 96%;
    max-width: 29rem;
    margin-bottom: 1.6rem;
    font-size: clamp(0.96rem, 3.5vw, 1.08rem);
    line-height: 1.95;
    text-wrap: pretty;
  }

  .hero-cta-group {
    width: auto;
    max-width: 100%;
    margin-bottom: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-cta-group > *,
  .hero-cta-group > a {
    width: auto;
    min-height: 46px;
    padding: 0.62rem 0.95rem;
    justify-content: center;
    gap: 0.38rem;
    font-size: 0.92rem;
  }

  .hero-cta-group i,
  .btn-hero-order i,
  .btn-hero-menu i {
    font-size: 1rem !important;
  }
}

@media (max-width: 390px) {
  .hero-section {
    min-height: calc(100svh - 60px);
    min-height: calc(100dvh - 60px);
    padding-block: 1.25rem;
  }

  .hero-title {
    font-size: clamp(1.72rem, 9vw, 2.15rem);
  }

  .hero-description {
    font-size: 0.96rem;
    line-height: 1.95;
  }

  .hero-cta-group > *,
  .hero-cta-group > a {
    min-height: 44px;
    padding: 0.56rem 0.76rem;
    font-size: 0.86rem;
  }
}
