/* ============================================================
   GLUS Family web — additive overrides for the Blade port.
   Replaces runtime behaviors previously provided by Next.js
   (next/image fill) and framer-motion (entrance/exit animations).
   Loaded after globals.css; must not alter the original visual design.
   ============================================================ */

/* Author display:flex/grid on an element beats the UA [hidden]{display:none}
   rule, so elements that rely on the hidden attribute (auth modal backdrop,
   OTP forms, banners, etc.) would never hide. Normalize them. */
[hidden],
[hidden="true"],
[data-hidden="true"],
.is-hidden {
  display: none !important;
}

/* ============================================================
   MASTER UNIFIED CONTAINER & FULL-WIDTH ARCHITECTURE
   (Header, Body, and Footer share identical width & alignment)
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  min-width: 100%;
  width: 100%;
  overflow-x: hidden;
}

.locale-shell,
.site-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* 1. Full-Width Background Bands */
.announcement-bar,
.site-header,
.site-footer,
.footer-top-strip,
.footer-bottom-bar {
  width: 100% !important;
  margin-inline: 0 !important;
  left: 0;
  right: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-footer {
  margin-top: auto;
}

/* 2. Unified Master Container Grid (Header, Main, and Footer align pixel-perfectly) */
:root {
  --glus-container-max: 1320px;
}

.announcement-inner,
.site-header-inner,
.site-main,
.footer-container {
  width: 100% !important;
  max-width: var(--glus-container-max) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
  padding-inline: 24px !important;
}

/* Ensure inner body wrappers never constrain or shrink narrower than site-main */
.glus-page-enter,
.page-stack,
.landing-page-stack,
.account-welcome-hero,
.account-dashboard-shell,
.furniture-container,
.furniture-layout,
.package-layout,
.catalog-layout,
.checkout-layout,
.orders-container,
.orders-layout {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  box-sizing: border-box !important;
}

.site-main {
  padding-top: 32px;
  padding-bottom: 48px;
}

.footer-top-strip .footer-container {
  padding-top: 0;
  padding-bottom: 0;
}

.footer-main-content {
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-bottom-inner {
  padding-top: 0;
  padding-bottom: 0;
}

/* 3. Tablet Responsiveness (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .announcement-inner,
  .site-header-inner,
  .site-main,
  .footer-container {
    padding-inline: 20px !important;
  }

  .site-main {
    padding-top: 24px;
    padding-bottom: 36px;
  }
}

/* 4. Mobile Responsiveness (<= 768px) */
@media (max-width: 768px) {
  .announcement-inner,
  .site-header-inner,
  .site-main,
  .footer-container {
    padding-inline: 16px !important;
  }

  .announcement-inner {
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 8px;
  }

  .announcement-location {
    display: none !important;
  }

  .announcement-marquee {
    font-size: 11px;
  }

  .announcement-contact {
    font-size: 11px;
    gap: 4px;
  }

  .site-header-inner {
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 8px;
    min-height: 60px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-title strong {
    font-size: 15px;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-pill,
  .user-pill,
  .lang-pill,
  .cart-pill,
  .menu-button {
    min-height: 36px;
    padding: 0 8px;
    font-size: 12px;
  }

  .site-main {
    padding-top: 16px;
    padding-bottom: 28px;
  }

  .footer-main-content {
    padding-top: 28px;
    padding-bottom: 24px;
  }
}

/* --- next/image "fill" replacement: plain <img> filling a relative parent --- */
.glus-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --- framer-motion entrance equivalents --- */
@keyframes glusToastIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glusModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glusFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glusPageIn {
  from { opacity: 0; transform: translateY(14px); }
  /* End with transform:none so the finished page does not become a
     containing block for position:fixed descendants (modals/backdrops). */
  to   { opacity: 1; transform: none; }
}

@keyframes glusMenuIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glusSplashContentIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.toast.glus-motion { animation: glusToastIn 0.3s ease-out both; }

.auth-modal-card.glus-motion,
.map-picker-card.glus-motion { animation: glusModalIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both; }

.auth-modal-backdrop.glus-motion,
.map-modal-backdrop.glus-motion,
.order-details-modal-overlay.glus-motion,
.modal-backdrop.glus-motion { animation: glusFadeIn 0.2s ease-out both; }

.glus-page-enter { animation: glusPageIn 0.3s ease-out both; }

.responsive-menu.glus-motion { animation: glusMenuIn 0.2s ease-out both; }

.splash-content-wrap.glus-motion { animation: glusSplashContentIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* --- framer-motion exit equivalents (JS adds the class, then removes the node) --- */
.splash-screen.glus-exit {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- reduced motion parity with framer-motion useReducedMotion --- */
@media (prefers-reduced-motion: reduce) {
  .toast.glus-motion,
  .auth-modal-card.glus-motion,
  .map-picker-card.glus-motion,
  .auth-modal-backdrop.glus-motion,
  .map-modal-backdrop.glus-motion,
  .order-details-modal-overlay.glus-motion,
  .modal-backdrop.glus-motion,
  .glus-page-enter,
  .responsive-menu.glus-motion,
  .splash-content-wrap.glus-motion {
    animation: none;
  }
}

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

.animate-spin,
.spin-icon {
  animation: spin 1s linear infinite;
}

.rotate-180 {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .animate-spin,
  .spin-icon {
    animation: none;
  }
}

.text-primary { color: var(--glus-primary, #ff503b); }
.text-muted { color: var(--glus-text-muted, #6b6570); }
.text-success { color: #01aa9e; }
.text-emerald { color: #01aa9e; }

/* --- header: language pill + cart pill (clearer affordance) --- */
.lang-pill {
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--glus-white, #fff);
  border: 1px solid var(--glus-card-border, rgba(44, 38, 44, 0.1));
  color: var(--glus-ink, #2c262c);
  box-shadow: 0 4px 10px rgba(44, 38, 44, 0.04);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.lang-pill-code {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lang-pill-name {
  font-weight: 700;
  opacity: 0.85;
  font-size: 12px;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 180ms ease, opacity 180ms ease, margin 180ms ease;
  margin-inline-start: -2px;
}

.lang-pill:hover .lang-pill-name,
.lang-pill:focus-visible .lang-pill-name {
  max-width: 90px;
  opacity: 0.95;
  margin-inline-start: 0;
}

.lang-pill:hover,
.lang-pill:focus-visible {
  background: var(--glus-soft-orange, #fff1ed);
  border-color: rgba(255, 80, 59, 0.4);
  color: var(--glus-primary, #ff503b);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 80, 59, 0.14);
}

.lang-pill:focus-visible,
.cart-pill-clean:focus-visible,
.signin-button:focus-visible {
  outline: 2px solid var(--glus-primary, #ff503b);
  outline-offset: 2px;
}

.cart-pill-clean {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  gap: 0;
  border-radius: 10px;
  background: var(--glus-white, #fff);
  border: 1px solid var(--glus-card-border, rgba(44, 38, 44, 0.1));
  color: var(--glus-ink, #2c262c);
  box-shadow: 0 4px 10px rgba(44, 38, 44, 0.04);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cart-pill-clean:hover,
.cart-pill-clean:focus-visible {
  background: var(--glus-soft-orange, #fff1ed);
  border-color: rgba(255, 80, 59, 0.4);
  color: var(--glus-primary, #ff503b);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 80, 59, 0.12);
}

.cart-badge-counter {
  top: -7px;
  inset-inline-end: -7px;
  right: auto;
  left: auto;
  border: 2px solid #fff;
  min-width: 20px;
  height: 20px;
  font-size: 11px;
  line-height: 1;
  animation: glusBadgePop 0.22s ease-out;
}

[dir="rtl"] .cart-badge-counter {
  right: auto;
  left: auto;
  inset-inline-end: -7px;
}

@keyframes glusBadgePop {
  from { transform: scale(0.7); opacity: 0.5; }
  to   { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cart-badge-counter { animation: none; }
  .lang-pill,
  .cart-pill-clean { transition: none; }
}

/* Compact header: collapse language name */
@media (max-width: 900px) {
  .lang-pill-name {
    display: none;
  }

  .lang-pill:hover .lang-pill-name,
  .lang-pill:focus-visible .lang-pill-name {
    display: none;
  }

  .lang-pill {
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }
}

/* Profile avatar (upload / remove photo) */
.avatar-editable {
  position: relative;
}

.avatar-editable .avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.avatar-editable .avatar-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-cam-btn {
  position: absolute;
  inset-inline-end: -4px;
  bottom: -4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--glus-primary, #ff503b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 80, 59, 0.35);
  padding: 0;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.avatar-cam-btn:hover,
.avatar-cam-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 80, 59, 0.45);
}

.avatar-cam-btn:focus-visible {
  outline: 2px solid var(--glus-primary, #ff503b);
  outline-offset: 2px;
}

.user-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.user-card-actions .wide-action {
  width: 100%;
  justify-content: center;
}

/* --- address modal: full-viewport desktop dialog --- */
.address-modal-backdrop {
  z-index: 1200;
  padding: 32px 24px;
  align-items: center;
  justify-content: center;
}

.address-modal-backdrop.glus-motion .address-modal-card {
  animation: glusModalIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.address-modal-card {
  width: min(100%, 720px);
  max-width: 720px;
  max-height: min(900px, calc(100vh - 64px));
  padding: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  box-shadow:
    0 32px 80px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(226, 232, 240, 0.95);
}

.address-modal-card .modal-header-row {
  flex-shrink: 0;
  margin: 0;
  padding: 24px 28px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--glus-surface-border, #f0ebe6);
  border-radius: 24px 24px 0 0;
}

.address-modal-card .status-alert-box {
  flex-shrink: 0;
  margin: 14px 28px 0;
}

.address-modal-card .modal-address-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0;
  margin: 0;
}

.address-modal-card .address-form-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 28px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.address-modal-card .modal-actions-row {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 14px 28px 20px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--glus-surface-border, #f0ebe6);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.06);
}

.address-modal-card .modal-actions-row .modal-cancel-btn,
.address-modal-card .modal-actions-row .modal-submit-btn {
  min-width: 140px;
  min-height: 48px;
}

.address-modal-card .modal-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.address-modal-card .modal-form-grid {
  gap: 16px;
}

.address-modal-card .modal-form-grid input,
.address-modal-card .modal-form-grid select,
.address-modal-card .modal-form-grid textarea {
  min-height: 48px;
  background: #ffffff;
  border-color: #e7e0da;
  border-radius: 12px;
}

.address-modal-card .modal-form-grid input:hover,
.address-modal-card .modal-form-grid select:hover,
.address-modal-card .modal-form-grid textarea:hover {
  border-color: #d9d0c8;
}

.address-modal-card .modal-form-grid input:focus,
.address-modal-card .modal-form-grid select:focus,
.address-modal-card .modal-form-grid textarea:focus {
  border-color: var(--glus-primary, #ff503b);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 80, 59, 0.12);
}

.address-modal-card .label-chip {
  min-height: 40px;
  padding: 0 16px;
}

.address-modal-card .map-picker-trigger-row {
  padding: 14px 16px;
}

.address-modal-card .modal-default-toggle-card {
  background: var(--glus-soft-orange, #fff2ec);
  border-color: rgba(255, 80, 59, 0.18);
}

body.glus-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .address-modal-backdrop {
    padding: 12px;
    align-items: flex-end;
  }

  .address-modal-card {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .address-modal-card .modal-header-row {
    padding: 18px 16px 14px;
    border-radius: 20px 20px 0 0;
  }

  .address-modal-card .status-alert-box {
    margin: 12px 16px 0;
  }

  .address-modal-card .address-form-scroll {
    padding: 14px 16px 6px;
    gap: 14px;
  }

  .address-modal-card .modal-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .address-modal-card .modal-property-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .address-modal-card .modal-actions-row {
    padding: 12px 16px 16px;
    border-radius: 0 0 20px 20px;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .address-modal-card .modal-actions-row .modal-cancel-btn,
  .address-modal-card .modal-actions-row .modal-submit-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .address-modal-card {
    width: min(100%, 680px);
  }
}

/* ============================================================
   ACCOUNT VIEW & DASHBOARD FULL CONTAINMENT (RTL & LTR)
   ============================================================ */
[data-web="account-page"],
.account-welcome-hero,
.account-dashboard-shell,
.account-tabs-nav,
.account-tab-pane,
.profile-summary-grid,
.user-highlight-card,
.profile-edit-card,
.readonly-item-card,
.address-cards-grid,
.address-card,
.orders-history-list,
.order-history-card,
[data-web="account-auth-required"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.account-tabs-nav {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.account-tabs-nav::-webkit-scrollbar {
  display: none;
}

.address-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) !important;
  gap: 18px;
}

.readonly-item-card {
  min-width: 0 !important;
}

.item-content-box {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.item-content-box strong {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 900px) {
  .account-welcome-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 18px;
    border-radius: 20px;
  }

  .welcome-hero-left {
    width: 100%;
    min-width: 0;
  }

  .welcome-hero-stats {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .welcome-hero-stats .stat-chip {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 10px 12px;
  }

  .profile-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .account-dashboard-shell {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  [data-web="account-page"] {
    gap: 16px;
    padding-inline: 0;
    width: 100%;
  }

  /* Account Welcome Hero Card */
  .account-welcome-hero {
    padding: 16px 14px;
    border-radius: 18px;
    gap: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #fff7f5 100%);
    border: 1px solid var(--glus-card-border, #e2e8f0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .welcome-hero-left {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .welcome-avatar-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    flex-shrink: 0;
  }

  .welcome-avatar-wrap .avatar-photo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .welcome-avatar-wrap .avatar-cam-btn {
    width: 24px;
    height: 24px;
    inset-inline-end: -4px;
    bottom: -4px;
  }

  .welcome-avatar-wrap .avatar-cam-btn svg {
    width: 11px;
    height: 11px;
  }

  .welcome-text-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: start;
  }

  .welcome-eyebrow {
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
  }

  .welcome-text-wrap h1 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--glus-text-title, #0f172a);
    margin: 0;
    word-break: break-word;
  }

  .welcome-text-wrap p {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--glus-text-muted, #64748b);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Stats Chips on Mobile */
  .welcome-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .welcome-hero-stats .stat-chip {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--glus-card-border, #e2e8f0);
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .stat-chip-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .stat-chip-icon svg {
    width: 16px;
    height: 16px;
  }

  .stat-chip-info {
    min-width: 0;
    overflow: hidden;
  }

  .stat-chip-info strong {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
  }

  .stat-chip-info small {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--glus-text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  /* Segmented Tabs Navigation on Mobile */
  .account-tabs-nav {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 14px;
    gap: 4px;
    border-bottom: none;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0;
  }

  .account-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .account-tab-btn {
    flex: 1 1 0;
    min-width: fit-content;
    justify-content: center;
    padding: 9px 8px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    transition: all 0.2s ease;
    white-space: nowrap;
    gap: 5px;
    position: relative;
  }

  .account-tab-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .account-tab-btn.active {
    background: #ffffff;
    color: var(--glus-primary, #ff503b);
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .account-tab-btn.active::after {
    display: none;
  }

  .account-tab-btn .tab-count-pill {
    padding: 1px 5px;
    font-size: 9.5px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    line-height: 1.2;
  }

  .account-tab-btn.active .tab-count-pill {
    background: rgba(255, 80, 59, 0.12);
    color: var(--glus-primary, #ff503b);
  }

  /* Profile Tab Content */
  .user-highlight-card {
    padding: 20px 14px;
    border-radius: 16px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .user-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
  }

  .user-avatar-large .avatar-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
  }

  .user-avatar-large .avatar-cam-btn {
    width: 26px;
    height: 26px;
    inset-inline-end: -2px;
    bottom: -2px;
  }

  .user-avatar-large .avatar-cam-btn svg {
    width: 12px;
    height: 12px;
  }

  .user-highlight-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
  }

  .user-phone-badge {
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--glus-text-title, #0f172a);
    direction: ltr;
  }

  .user-verification-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .user-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--glus-surface-border, #f0ebe6);
  }

  .user-card-actions .secondary-action {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    font-size: 12.5px;
    border-radius: 10px;
    min-height: 40px;
  }

  /* Profile Edit & Readonly Cards */
  .profile-edit-card {
    padding: 18px 14px;
    border-radius: 16px;
    gap: 14px;
  }

  .profile-edit-card .panel-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .profile-edit-card .panel-header-row h4 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
  }

  .profile-edit-card .panel-header-row p {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--glus-text-muted, #64748b);
    margin: 0;
  }

  .profile-edit-card .edit-toggle-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    font-size: 12.5px;
    border-radius: 10px;
    min-height: 40px;
  }

  .profile-readonly-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .readonly-item-card {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
    background: #faf8f6;
    border: 1px solid var(--glus-surface-border, #f0ebe6);
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .item-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .item-icon-box svg {
    width: 15px;
    height: 15px;
  }

  .item-content-box {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .item-content-box small {
    font-size: 10px;
    font-weight: 700;
    color: var(--glus-text-muted, #64748b);
  }

  .item-content-box strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--glus-text-title, #0f172a);
    word-break: break-word;
  }

  .item-badge-verified {
    font-size: 9.5px;
    padding: 2px 7px;
    border-radius: 999px;
    flex-shrink: 0;
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-fields-form {
    gap: 12px;
  }

  .profile-fields-form .profile-input {
    min-height: 44px;
    border-radius: 10px;
    font-size: 13px;
    padding: 8px 12px;
  }

  .profile-form-buttons {
    flex-direction: column-reverse;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
  }

  .profile-form-buttons button {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    font-size: 13px;
  }

  /* Addresses Tab */
  .addresses-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .addresses-header-row h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
  }

  .addresses-header-row p {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--glus-text-muted, #64748b);
    margin: 0;
  }

  .add-address-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    min-height: 44px;
  }

  .address-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .address-card {
    padding: 14px 12px;
    border-radius: 14px;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
  }

  .address-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }

  .address-actions-inline {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .address-actions-inline button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .address-full-text {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .address-extra-details {
    font-size: 11.5px;
  }

  .address-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
    margin-top: auto;
  }

  .make-default-btn {
    width: 100%;
    justify-content: center;
    padding: 7px 10px;
    font-size: 11.5px;
    border-radius: 8px;
  }

  .is-default-badge {
    justify-content: center;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
  }

  .addr-phone-snippet {
    justify-content: center;
    font-size: 11.5px;
    direction: ltr;
  }

  .empty-address-card {
    padding: 28px 16px;
    border-radius: 16px;
    text-align: center;
    gap: 10px;
  }

  .empty-address-card h4 {
    font-size: 15px;
  }

  .empty-address-card p {
    font-size: 12px;
    max-width: 320px;
  }

  /* Orders History Tab */
  .orders-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .orders-header-row h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
  }

  .orders-header-row p {
    font-size: 11.5px;
    color: var(--glus-text-muted, #64748b);
    margin: 0;
  }

  .orders-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .order-history-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 14px;
    box-sizing: border-box;
    width: 100%;
  }

  .order-history-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .order-history-id {
    font-size: 13.5px;
  }

  .order-history-date {
    font-size: 11px;
  }

  .order-history-body {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--glus-surface-border, #f0ebe6);
    gap: 8px;
  }

  .order-total-value {
    font-size: 14.5px;
    font-weight: 900;
  }

  .order-view-btn {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
    border-radius: 8px !important;
  }

  /* Auth Required Gate Screen */
  [data-web="account-auth-required"] .panel.empty-state {
    padding: 32px 18px;
    border-radius: 18px;
    gap: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  [data-web="account-auth-required"] .empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  [data-web="account-auth-required"] h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
  }

  [data-web="account-auth-required"] p {
    font-size: 12.5px;
    line-height: 1.5;
    max-width: 320px;
    margin: 0;
  }

  [data-web="account-auth-required"] button.primary-action {
    min-height: 44px;
    padding: 10px 24px;
    font-size: 13.5px;
    border-radius: 12px;
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}

/* ============================================================
   GLOBAL RESPONSIVENESS FOR ALL PAGES & COMPONENTS
   ============================================================ */

/* 1. Products & Packages Catalog Pages */
@media (max-width: 960px) {
  .catalog-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .filter-panel.professional-sidebar {
    position: static !important;
    width: 100% !important;
    padding: 20px 18px !important;
    border-radius: 18px !important;
  }

  .sidebar-categories-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .sidebar-category-btn {
    width: auto !important;
    flex: 0 1 auto !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
  }

  .sidebar-price-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .price-chip-btn {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    text-align: center !important;
    padding: 8px 10px !important;
  }

  .catalog-results-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .catalog-sort-wrapper {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .catalog-sort-select {
    flex: 1 !important;
    min-width: 0 !important;
  }
}

/* 2. Product Detail Page */
@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .detail-gallery-column,
  .detail-info-column {
    width: 100% !important;
    min-width: 0 !important;
  }

  .detail-main-image-frame {
    width: 100% !important;
    max-height: 420px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 20px !important;
  }

  .detail-product-title {
    font-size: 22px !important;
    line-height: 1.35 !important;
  }

  .detail-purchase-actions {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .detail-purchase-actions .quantity-stepper {
    flex: 0 0 auto !important;
    min-height: 46px !important;
  }

  .detail-purchase-actions .add-cart-btn,
  .detail-purchase-actions .buy-now-btn {
    flex: 1 1 calc(50% - 6px) !important;
    min-width: 140px !important;
    min-height: 46px !important;
    justify-content: center !important;
  }

  .detail-tabs-header {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
  }

  .detail-tab-trigger {
    flex-shrink: 0 !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }

  .specs-table {
    width: 100% !important;
    font-size: 13px !important;
  }

  .specs-table th,
  .specs-table td {
    padding: 10px 12px !important;
  }
}

@media (max-width: 480px) {
  .detail-purchase-actions .add-cart-btn,
  .detail-purchase-actions .buy-now-btn {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .detail-purchase-actions .quantity-stepper {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 3. Package Booking Flow & Customizer */
@media (max-width: 960px) {
  .package-hero-banner,
  .package-detail-layout,
  .calc-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .package-booking-column,
  .calc-summary-card {
    position: static !important;
    width: 100% !important;
  }

  .booking-customizer-panel,
  .scope-panel {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  .services-segmented-nav {
    flex-wrap: wrap !important;
    border-radius: 16px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .segmented-nav-btn {
    flex: 1 1 auto !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    font-size: 12.5px !important;
  }

  .packages-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
    gap: 16px !important;
  }
}

/* 4. Furniture Flow & Calculator */
@media (max-width: 900px) {
  .furniture-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .furniture-step-indicator {
    padding: 10px 12px !important;
    gap: 6px !important;
  }

  .furniture-step-node {
    padding: 6px 8px !important;
    gap: 6px !important;
  }

  .node-circle {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }

  .node-text strong {
    font-size: 12px !important;
  }

  .step-connector-line {
    margin: 0 6px !important;
  }

  .furniture-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)) !important;
    gap: 14px !important;
  }

  .furniture-elements-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .element-card-modern {
    padding: 14px !important;
    border-radius: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .element-card-modern .element-main-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .element-card-modern .element-controls-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--glus-surface-border, #f0ebe6) !important;
  }

  .furniture-floating-bottom-bar {
    padding: 12px 16px !important;
    border-radius: 18px 18px 0 0 !important;
  }
}

/* 5. Cart & Checkout Responsive Overrides */
@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .cart-items-panel,
  .checkout-form,
  .order-summary {
    width: 100% !important;
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  .checkout-guest-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px 14px !important;
  }

  .guest-signin-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .map-picker-trigger-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .map-trigger-action-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .cart-item-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px 12px !important;
  }

  .cart-item-info-col {
    width: 100% !important;
  }

  .cart-item-actions-col {
    width: 100% !important;
    justify-content: space-between !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--glus-surface-border, #f0ebe6) !important;
  }
}

/* 6. Orders Center & Order Cards */
@media (max-width: 768px) {
  .orders-kpi-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .kpi-chip {
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }

  .kpi-num {
    font-size: 18px !important;
  }

  .kpi-label {
    font-size: 11px !important;
  }

  .order-master-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }

  .order-badges-col {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .order-action-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .order-action-buttons button,
  .order-action-buttons a {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 7. Legal & Policy Pages */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .legal-sidebar {
    position: static !important;
    width: 100% !important;
    padding: 16px !important;
  }

  .legal-sidebar-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .legal-nav-link {
    flex: 1 1 auto !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }

  .legal-content-panel {
    padding: 24px 16px !important;
    border-radius: 18px !important;
  }
}

/* 8. Modals & Popups on Mobile Devices */
@media (max-width: 600px) {
  .auth-modal-card,
  .map-picker-card,
  .order-details-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px !important;
    padding: 20px 16px !important;
    margin: 0 !important;
  }

  .modal-backdrop,
  .auth-modal-backdrop,
  .map-modal-backdrop,
  .order-details-modal-overlay {
    padding: 12px !important;
    align-items: flex-end !important;
  }
}

/* ============================================================
   9. FURNITURE MULTI-STEP FLOW & RESPONSIVENESS ON MOBILE
   ============================================================ */
.furniture-order-page {
  padding-bottom: 120px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.furniture-step-indicator-wrapper,
.furniture-step-indicator,
.furniture-step-section,
.furniture-elements-list,
.furniture-details-grid,
.furniture-review-layout {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.furniture-step-node {
  cursor: pointer !important;
}

.furniture-category-chips-row {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 6px !important;
  scrollbar-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.furniture-category-chips-row::-webkit-scrollbar {
  display: none !important;
}

.furniture-cat-chip {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.condition-chips-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)) !important;
  gap: 12px !important;
}

.condition-card {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .furniture-step-indicator {
    padding: 10px 12px !important;
    border-radius: 14px !important;
    gap: 4px !important;
  }

  .furniture-step-node {
    padding: 6px 8px !important;
    gap: 8px !important;
  }

  .node-circle {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
  }

  .node-text strong {
    font-size: 12px !important;
  }

  .node-text small {
    display: none !important;
  }

  .step-connector-line {
    margin: 0 4px !important;
    min-width: 8px !important;
  }

  .furniture-element-card:not([hidden]):not(.is-hidden) {
    display: grid !important;
    grid-template-columns: 80px 1fr !important;
    grid-template-areas:
      "thumb info"
      "actions actions" !important;
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .furniture-element-card[hidden],
  .furniture-element-card.is-hidden {
    display: none !important;
  }

  .element-card-thumb-link {
    grid-area: thumb !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 12px !important;
  }

  .element-card-info {
    grid-area: info !important;
    min-width: 0 !important;
  }

  .element-card-title-row h3 {
    font-size: 15px !important;
  }

  .element-card-desc {
    font-size: 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .element-card-actions {
    grid-area: actions !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-top: 10px !important;
    border-top: 1px dashed var(--glus-card-border, #eee5de) !important;
  }

  .furniture-sticky-bottom-bar {
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12) !important;
    z-index: 1000 !important;
  }

  .bottom-bar-inner {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .bar-info-col {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .bar-actions-col {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
  }

  .bar-actions-col button {
    flex: 1 1 auto !important;
    padding: 11px 14px !important;
    font-size: 13.5px !important;
    justify-content: center !important;
  }
}



