/* ==========================================================================
   INSIYA ZAIDI - LUXURY COUTURE FASHION ECOMMERCE
   Responsive Stylesheet - Seamless Breakpoint Adaptation
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LARGE DESKTOPS & ULTRAWIDE (1440px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .hero-carousel {
    height: 840px;
  }
  .category-card {
    height: 600px;
  }
  .editorial-heading {
    font-size: 3.75rem;
  }
}

/* --------------------------------------------------------------------------
   2. LAPTOPS & STANDARD SCREENS (1025px - 1280px)
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .desktop-nav {
    gap: 1rem;
  }
  .nav-link-item {
    font-size: 0.71875rem;
    letter-spacing: 0.11em;
  }
  .hero-carousel {
    height: 680px;
  }
  .category-card {
    height: 520px;
  }
  .trending-item {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

@media (max-width: 1100px) {
  .desktop-nav-wrapper,
  .desktop-nav {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: block !important;
  }
}

/* --------------------------------------------------------------------------
   3. TABLETS & IPADS (769px - 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Navigation switch to Offcanvas/Mobile Drawer */
  .desktop-nav-wrapper,
  .desktop-nav {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: block !important;
  }

  .header-actions {
    gap: 0.85rem;
  }

  .hero-carousel {
    height: 600px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .category-card:last-child {
    grid-column: span 2;
    height: 420px;
  }

  .legacy-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .legacy-content-col {
    padding-left: 0;
  }

  .consultation-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .trending-item {
    flex: 0 0 calc(45% - 1rem);
  }

  .quickview-grid {
    grid-template-columns: 1fr;
  }

  .quickview-gallery {
    min-height: 400px;
  }
}

/* --------------------------------------------------------------------------
   4. MEDIUM TABLETS & LARGE PHONES (577px - 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 75px;
    --header-height-sticky: 65px;
  }

  .brand-logo-img {
    height: 46px;
  }

  .main-header.scrolled .brand-logo-img {
    height: 40px;
  }

  .hero-carousel {
    height: 540px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-nav-arrow {
    display: none;
  }

  /* Product Grid: 2 columns on tablet & mobile */
  .products-grid-row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1.5rem;
  }

  .product-title {
    font-size: 1rem;
  }

  .product-price {
    font-size: 0.875rem;
  }

  .categories-grid {
    grid-template-columns: 1fr !important;
  }

  .category-card,
  .category-card:last-child {
    grid-column: span 1;
    height: 440px;
  }

  .category-card::before {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .legacy-floating-seal {
    width: 78px;
    height: 78px;
    bottom: -14px;
    right: 14px;
    border-width: 3px;
  }

  .seal-brand {
    font-size: 1.15rem;
  }

  .seal-name {
    font-size: 0.45rem;
  }

  .seal-est {
    font-size: 0.35rem;
  }

  .legacy-craft-badge {
    bottom: 14px;
    left: 14px;
    padding: 6px 12px;
    font-size: 0.58rem;
  }

  .legacy-img,
  .legacy-image {
    height: 420px;
  }

  .legacy-pillars {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .trending-item {
    flex: 0 0 75%;
  }

  .consultation-card {
    padding: 2rem 1.25rem;
  }

  .consultation-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .luxury-newsletter-section {
    padding: 3.5rem 0 2rem;
  }
  .newsletter-card-wrapper {
    padding: 2.25rem 1.25rem;
    border-radius: 12px;
  }
  .luxury-newsletter-bar {
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .luxury-newsletter-bar:focus-within {
    box-shadow: none;
    background: transparent;
  }
  .newsletter-input-group {
    width: 100%;
    background: rgba(25, 25, 25, 0.95);
    border: 1px solid rgba(201, 164, 92, 0.35);
    border-radius: 50px;
    padding: 4px 18px;
    margin-bottom: 10px;
  }
  .newsletter-pill-btn {
    width: 100%;
    padding: 14px 20px;
  }
  .newsletter-perk-dot {
    display: none;
  }
  .newsletter-perks {
    flex-direction: column;
    gap: 8px;
  }

  .newsletter-form {
    flex-direction: column;
    border: none;
    background: transparent;
  }

  .newsletter-input {
    background: var(--color-black-surface);
    border: 1px solid var(--color-gold-border);
    margin-bottom: 8px;
    border-radius: var(--radius-subtle);
  }

  .newsletter-btn,
  .newsletter-submit-btn {
    padding: 14px 20px;
    border-radius: var(--radius-subtle);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-policy-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------------------
   5. MOBILE PHONES (375px - 576px)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .announcement-bar {
    font-size: 0.6875rem;
  }

  .brand-logo-img {
    height: 40px;
  }

  .main-header.scrolled .brand-logo-img {
    height: 36px;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .currency-dropdown-wrapper .currency-select-btn {
    padding: 4px 6px;
    font-size: 0.6875rem;
  }

  .header-icon-btn {
    width: 30px;
    height: 30px;
    font-size: 1.05rem;
  }

  .hero-carousel {
    height: 480px;
  }

  .hero-content {
    padding-bottom: 2.5rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.15;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .btn-luxury {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.75rem;
  }

  .product-filter-tabs {
    gap: 0.75rem;
  }

  .filter-tab-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .cart-drawer {
    max-width: 100vw;
    width: 100vw;
  }

  .cart-drawer-header {
    padding: 16px 20px;
  }

  .cart-items-body {
    padding: 14px 18px;
  }

  .cart-drawer-footer {
    padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .cart-drawer-item {
    gap: 12px;
  }

  .cart-drawer-item-img-link {
    width: 66px;
    height: 86px;
  }

  .cart-drawer-item-title {
    font-size: 0.95rem;
  }

  .luxury-empty-state {
    padding: 2.25rem 1.25rem;
  }

  .search-overlay {
    padding: 2rem 1rem;
  }

  .search-container {
    padding-top: 20px;
  }

  .search-results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .search-tag {
    font-size: 0.6875rem;
    padding: 4px 10px;
  }
}

/* --------------------------------------------------------------------------
   6. SMALL MOBILE PHONES (<= 375px)
   -------------------------------------------------------------------------- */
@media (max-width: 375px) {
  .brand-logo-img {
    height: 34px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .product-quick-actions {
    top: 8px;
    right: 8px;
  }

  .product-action-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
   7. OFFCANVAS LUXURY MOBILE DRAWER
   -------------------------------------------------------------------------- */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1055;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background-color: var(--color-black-deep);
  z-index: 1060;
  border-right: 1px solid var(--color-gold-border);
  display: flex;
  flex-direction: column;
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 24px 20px;
}

.mobile-drawer.active {
  left: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201, 164, 92, 0.15);
}

.mobile-drawer-logo {
  height: 42px;
  width: auto;
}

.mobile-drawer-close {
  color: var(--color-white);
  font-size: 1.4rem;
}

.mobile-nav-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.mobile-nav-item {
  margin-bottom: 1.25rem;
}

.mobile-nav-link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ivory);
  display: block;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-gold-light);
  padding-left: 6px;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 164, 92, 0.15);
}

.mobile-concierge-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--color-gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE EXTENSIONS FOR STOREFRONT & COMMERCE
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .shop-sidebar {
    margin-bottom: 2.5rem;
  }

  .auth-img-col {
    min-height: 260px;
  }

  .order-timeline {
    flex-wrap: wrap;
    gap: 1.5rem 0;
  }

  .order-timeline::before {
    display: none;
  }

  .timeline-step {
    flex: 0 0 50%;
    margin-bottom: 1rem;
  }

  .account-sidebar {
    margin-bottom: 2.5rem;
  }

  .order-summary-card.sticky-summary {
    position: static;
    margin-top: 2rem;
  }

  .payment-tabs-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cart-table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .cart-table th,
  .cart-table td {
    white-space: nowrap;
  }

  .products-container.list-view .product-card {
    grid-template-columns: 1fr;
  }

  .products-container.list-view .product-img-wrapper {
    aspect-ratio: 4 / 5;
  }

  .social-login-grid {
    grid-template-columns: 1fr;
  }

  .timeline-step {
    flex: 0 0 100%;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    text-align: left;
  }

  .timeline-step .timeline-label {
    text-align: left;
  }

  .timeline-dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 576px) {
  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .otp-box-grid {
    gap: 6px;
  }

  .otp-box-input {
    width: 38px;
    height: 46px;
    font-size: 1.15rem;
  }

  .pull-quote {
    padding: 1rem 1.25rem;
  }

  .pull-quote-text {
    font-size: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   ABOUT US & MAISON LEGACY RESPONSIVE RULES
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .about-hero {
    min-height: 400px;
  }
  .about-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .about-stat-number {
    font-size: 2.2rem;
  }
  .about-craft-step-item {
    padding-left: 3.75rem;
  }
}

@media (max-width: 767px) {
  .about-hero {
    min-height: 340px;
  }
  .about-hero-content {
    padding: 3.5rem 1rem;
  }
  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .about-stat-box {
    border-bottom: 1px solid rgba(201, 164, 92, 0.15);
    padding-bottom: 1.25rem;
  }
  .about-stat-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .about-craft-step-item {
    padding-left: 3.25rem;
  }
  .about-craft-step-num {
    font-size: 2.25rem;
  }
  .about-founder-quote {
    padding-left: 1rem;
    font-size: 1.2rem;
  }
  .about-philosophy-card {
    padding: 2rem 1.5rem;
  }
}


