/* ================================================
   MAISONKS - Responsive CSS
   ================================================ */

/* -----------------------------------------------
   XL — 1200px and below
   ----------------------------------------------- */
@media (max-width: 1200px) {
  .custom-container {
    padding: 0 30px;
  }

  .navbar-inner {
    padding: 0 30px;
  }

  .hero-content {
    padding: 0 30px;
    padding-top: var(--navbar-height);
  }

  .dark-banner-content,
  .shirts-banner-content,
  .trousers-banner-content {
    padding: 60px 30px;
  }

  .product-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .accessories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid>div:last-child {
    grid-column: 1 / -1;
  }
}

/* -----------------------------------------------
   LG — 991px and below  →  OFFCANVAS MENU TRIGGERS
   ----------------------------------------------- */
@media (max-width: 991px) {

  /* Hide desktop nav links */
  .nav-links-left {
    display: none;
  }

  /* Move logo to LEFT side on responsive view */
  .navbar-logo {
    position: static;
    left: auto;
    transform: none;
  }

  .navbar-logo img {
    height: 32px;
  }

  /* Show toggle / hamburger bar icon on responsive view */
  .hamburger {
    display: flex !important;
  }

  /* Right icons (Search, Cart, User, Toggle) aligned on right */
  .nav-icons-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .hero-title {
    font-size: clamp(34px, 7vw, 62px);
  }

  .hero-subtitle {
    font-size: 11px;
  }

  /* Categories 2x2 */
  .categories-grid,
  .suits-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Italy section stack */
  .italy-top {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }

  /* Products 2 cols */
  .product-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Accessories 2 cols */
  .accessories-grid,
  .shirts-asymmetric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer 2 cols */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-grid>div:nth-child(1) {
    grid-column: 1 / -1;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .section-pad {
    padding: 65px 0;
  }

  .section-pad-sm {
    padding: 45px 0;
  }

  .shirts-section,
  .trousers-section {
    padding: 50px 0 70px;
  }

  .fabric-strip {
    height: 240px;
  }

  .newsletter-section {
    padding: 65px 0;
  }
}

/* -----------------------------------------------
   MD — 768px and below
   ----------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --navbar-height: 60px;
  }

  .custom-container {
    padding: 0 20px;
  }

  .navbar-inner {
    padding: 0 20px;
  }

  .hero-content {
    padding: 0 20px;
    padding-top: var(--navbar-height);
  }

  .hero-title {
    font-size: clamp(30px, 8vw, 52px);
    max-width: 100%;
  }

  .hero-subtitle {
    display: none;
  }

  .btn-hero {
    padding: 12px 24px;
    font-size: 9px;
  }

  /* Category 2 cols on mobile */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

  .category-card {
    aspect-ratio: 3/3.8;
  }

  /* Products 2 cols */
  .product-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Accessories 2 cols */
  .accessories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }

  /* Banners */
  .shirts-banner {
    min-height: 380px;
  }

  .trousers-banner {
    min-height: 360px;
  }

  .shirts-banner-content,
  .trousers-banner-content {
    padding: 50px 20px;
  }

  .shirts-banner-content .section-heading,
  .trousers-banner-content .section-heading {
    font-size: 30px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid>div:nth-child(1) {
    grid-column: auto;
  }

  .footer-brand-desc {
    max-width: 100%;
  }

  .section-pad {
    padding: 55px 0;
  }

  .section-pad-sm {
    padding: 38px 0;
  }

  .section-heading {
    font-size: clamp(24px, 6vw, 38px);
  }

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

  .newsletter-form input {
    border-bottom: 1px solid var(--color-primary);
    margin-bottom: 16px;
  }

  .newsletter-form button {
    border: 1px solid var(--color-gold);
    padding: 12px 24px;
    color: var(--color-gold);
  }

  .fabric-strip {
    height: 200px;
  }

  .fabric-strip-content .section-heading {
    font-size: 26px;
  }
}

/* -----------------------------------------------
   SM — 576px and below
   ----------------------------------------------- */
@media (max-width: 576px) {
  .hero-section {
    min-height: 520px;
    height: 90vh;
  }

  .hero-title {
    font-size: clamp(28px, 9vw, 42px);
  }

  .hero-label {
    font-size: 9px;
    letter-spacing: 3px;
  }

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

  .category-card {
    aspect-ratio: 2/2.8;
  }

  .product-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .product-grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .suits-card-grid,
  .shirts-asymmetric-grid {
    grid-template-columns: 1fr;
  }

  .product-card-name {
    font-size: 13px;
  }

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

  .suits-card-grid .overlay-product-card {
    aspect-ratio: 4/3;
  }


  .section-heading {
    font-size: clamp(22px, 7vw, 34px);
  }

  .section-eyebrow {
    font-size: 9px;
    letter-spacing: 3px;
  }

  .italy-section {
    padding: 55px 0;
  }

  .accessories-dark {
    padding: 65px 0;
  }

  .shirts-banner {
    min-height: 320px;
  }

  .trousers-banner {
    min-height: 300px;
  }

  /* Offcanvas narrower on small screen */
  .offcanvas-panel {
    width: 280px;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}

/* -----------------------------------------------
   XS — 420px and below
   ----------------------------------------------- */
@media (max-width: 420px) {
  .hero-title {
    font-size: 28px;
  }

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

  .product-grid-4 {
    grid-template-columns: 1fr;
  }

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

  .custom-container {
    padding: 0 16px;
  }

  .navbar-inner {
    padding: 0 16px;
  }

  .nav-icons-right {
    gap: 12px;
  }

  .nav-icon-btn {
    font-size: 14px;
  }
}

/* -----------------------------------------------
   Footer responsive
   ----------------------------------------------- */
@media (max-width: 1100px) {
  .footer-grid-6 {
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    gap: 24px;
  }

  .footer-grid-6 .footer-col:nth-child(5),
  .footer-grid-6 .footer-col:nth-child(6) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    padding: 48px 24px 0;
  }

  .footer-grid-6 {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-brand-desc {
    max-width: 100%;
  }

  .footer-grid-6 .footer-col:nth-child(5),
  .footer-grid-6 .footer-col:nth-child(6) {
    grid-column: span 1;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid-6 {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-social-icons {
    flex-wrap: wrap;
  }
}

/* -----------------------------------------------
   Suits Page Responsive Grid
   ----------------------------------------------- */
@media (max-width: 992px) {
  .suits-product-grid.grid-4-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .suits-product-grid.grid-4-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .suits-product-grid.grid-4-cols,
  .suits-product-grid.grid-2-cols {
    grid-template-columns: 1fr;
  }
}