/* =========================================================
   PARTNER JEANS & PANTS
   RESPONSIVE OVERRIDES — LAPTOP / TABLET / MOBILE
   Add this stylesheet AFTER all existing CSS files.
   Existing HTML, IDs, colors and JavaScript hooks are preserved.
========================================================= */

/* ---------- Global safety ---------- */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
}

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

img {
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

main,
section,
.container,
.page-container {
  min-width: 0;
}

/* ---------- Shared header: desktop / laptop ---------- */
body > header.pj-common-header {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: clamp(10px, 1.5vw, 22px) !important;
  padding: 12px clamp(16px, 3vw, 48px) !important;
  box-sizing: border-box !important;
}

body > header.pj-common-header .logo {
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

body > header.pj-common-header .logo img {
  display: block;
  width: clamp(88px, 9vw, 125px) !important;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}

body > header.pj-common-header nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(8px, 1.2vw, 18px);
  min-width: 0;
}

body > header.pj-common-header nav a {
  white-space: nowrap;
  font-size: clamp(11px, .9vw, 14px);
}

body > header.pj-common-header .header-right {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

body > header.pj-common-header .pj-common-search {
  flex: 0 1 175px;
  width: 175px;
  max-width: 18vw;
  min-width: 110px;
}

body > header.pj-common-header .pj-common-search input {
  min-width: 0;
  width: 100%;
}

body > header.pj-common-header .mobile-menu-toggle {
  display: none;
}

/* ---------- Homepage: hero / banners ---------- */
.hero,
.hero-slider {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-slide {
  box-sizing: border-box;
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: min(100%, 650px);
  min-width: 0;
}

.hero img,
.full-jeans-image img,
.category-card img,
.jeans-card img,
.find-next-card img,
.product-image img {
  max-width: 100%;
}

/* ---------- Homepage: jeans image cards ---------- */
.jeans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  width: 100%;
  min-width: 0;
}

.jeans-card {
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.jeans-card a,
.jeans-card img {
  display: block;
  width: 100%;
  height: 100%;
}

.jeans-card img {
  object-fit: cover;
  object-position: center;
}

/* ---------- Homepage: wide featured jeans banner ---------- */
.full-jeans-image {
  display: block;
  width: 100%;
  height: clamp(260px, 38vw, 520px);
  overflow: hidden;
}

.full-jeans-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Homepage: feature boxes ---------- */
.jeans-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}

.feature-box {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- Homepage / category product grids ---------- */
.products-grid,
.category-page .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 1240px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  gap: clamp(12px, 1.6vw, 22px);
}

.products-grid > *,
.category-page .products > *,
.product-card,
.home-product-card {
  min-width: 0;
  max-width: 100%;
}

.product-image,
.home-product-card .product-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  overflow: hidden;
}

.product-image img,
.home-product-card .product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-info,
.product-info h3,
.product-info p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-info h3 {
  line-height: 1.4;
}

/* ---------- Find your next pair / category cards ---------- */
.find-next-pair,
.find-next-card,
.category-page,
.category-container,
.category-card {
  min-width: 0;
  max-width: 100%;
}

.find-next-card {
  overflow: hidden;
}

.find-next-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.category-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 25px);
}

.category-card {
  height: auto;
  aspect-ratio: 4 / 5;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h3 {
  max-width: calc(100% - 36px);
  overflow-wrap: anywhere;
}

/* ---------- About page ---------- */
.about-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-image,
.about-content {
  min-width: 0;
}

.about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-container {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
body > footer.pj-footer,
.category-footer {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.pj-footer .pj-footer-inner,
.pj-footer .pj-footer-content,
.pj-footer .pj-footer-grid {
  min-width: 0;
  max-width: 100%;
}

.pj-footer img {
  max-width: 100%;
  height: auto;
}

/* ---------- Checkout / forms / orders ---------- */
.checkout-page,
.checkout-panel,
.order-detail-card,
.orders-page,
.tracking-panel {
  min-width: 0;
  max-width: 100%;
}

.checkout-page {
  width: min(1080px, calc(100% - 48px));
}

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

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

.field,
.field input,
.payment-methods,
.payment-methods select {
  min-width: 0;
  max-width: 100%;
}

.order-card,
.order-products-preview,
.summary-item {
  min-width: 0;
}

.order-card img,
.summary-item img {
  max-width: 100%;
}

.order-card-meta,
.order-status-grid,
.order-product-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.orders-page {
  width: min(1240px, calc(100% - 48px));
}

.checkout-actions,
.order-card-actions,
.confirmation-actions {
  min-width: 0;
  flex-wrap: wrap;
}

.checkout-actions > *,
.order-card-actions > *,
.confirmation-actions > * {
  min-width: 0;
}

/* =========================================================
   LAPTOP / SMALL DESKTOP — 1024px to 1200px
========================================================= */
@media (max-width: 1200px) {
  body > header.pj-common-header {
    gap: 10px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body > header.pj-common-header nav {
    gap: 9px;
  }

  body > header.pj-common-header nav a {
    font-size: 11px;
  }

  .products-grid,
  .category-page .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* =========================================================
   TABLET — 768px to 1023px
========================================================= */
@media (max-width: 1023px) {
  body > header.pj-common-header {
    flex-wrap: wrap !important;
    min-height: 0 !important;
    gap: 10px !important;
    padding: 12px 18px !important;
  }

  body > header.pj-common-header .mobile-menu-toggle {
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    order: 0;
    width: 42px;
    min-height: 42px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  body > header.pj-common-header .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #7f1023;
  }

  body > header.pj-common-header .logo {
    order: 1;
  }

  body > header.pj-common-header .header-right {
    order: 2;
    margin-left: auto;
  }

  body > header.pj-common-header nav {
    display: none !important;
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 0;
  }

  body > header.pj-common-header nav.is-open {
    display: flex !important;
  }

  body > header.pj-common-header nav a {
    display: block;
    width: 100%;
    padding: 12px 10px;
    white-space: normal;
    border-bottom: 1px solid #eee;
    font-size: 14px;
  }

  body > header.pj-common-header .pj-common-search {
    width: clamp(110px, 22vw, 180px);
    max-width: 25vw;
    min-width: 100px;
  }

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

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

  .feature-box:nth-child(2) {
    border-right: 0;
  }

  .feature-box:nth-child(-n + 2) {
    border-bottom: 1px solid #e5e5e5;
  }

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

  .category-card:last-child {
    grid-column: auto;
    max-width: none;
    width: 100%;
  }

  .about-section {
    gap: 30px;
    padding-left: 5%;
    padding-right: 5%;
  }

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

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

  .order-card-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* =========================================================
   MOBILE — 767px and below
========================================================= */
@media (max-width: 767px) {
  body > header.pj-common-header {
    padding: 10px 12px !important;
    gap: 7px !important;
  }

  body > header.pj-common-header .logo img {
    width: 100px !important;
  }

  body > header.pj-common-header .header-right {
    gap: 5px;
  }

  body > header.pj-common-header .pj-common-search {
    flex: 0 1 120px;
    width: 120px;
    max-width: 32vw;
    min-width: 85px;
  }

  body > header.pj-common-header .pj-common-search input {
    padding: 8px 5px;
    font-size: 12px;
  }

  body > header.pj-common-header .login,
  body > header.pj-common-header .register,
  body > header.pj-common-header .pj-header-cart,
  body > header.pj-common-header .customer-account-trigger {
    padding: 8px 7px;
    font-size: 11px;
  }

  body > header.pj-common-header .register {
    display: none !important;
  }

  .hero {
    height: clamp(350px, 95vw, 460px);
  }

  .hero-slide {
    padding: 24px 20px !important;
    background-position: center;
  }

  .hero h2 {
    font-size: clamp(27px, 7vw, 38px);
    line-height: 1.12;
  }

  .hero .features,
  .hero p {
    font-size: 14px;
    line-height: 1.6;
  }

  .full-jeans-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .full-jeans-image img {
    height: 100%;
    object-fit: cover;
  }

  .jeans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 10px;
  }

  .jeans-card {
    aspect-ratio: 3 / 4;
  }

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

  .feature-box {
    min-height: 125px;
    padding: 20px 12px;
  }

  .feature-box h3 {
    font-size: 16px;
  }

  .feature-box p {
    font-size: 12px;
  }

  .products-grid,
  .category-page .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-products-section,
  .categories-section,
  .find-next-pair {
    padding-left: 14px;
    padding-right: 14px;
  }

  .product-image,
  .home-product-card .product-image {
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .product-info {
    padding: 10px;
  }

  .product-info h3 {
    font-size: 13px;
    min-height: 0;
  }

  .category-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

  .category-card h3 {
    left: 12px;
    bottom: 12px;
    font-size: clamp(15px, 4vw, 20px);
  }

  .about-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    padding: 45px 18px;
  }

  .about-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .about-hero {
    padding: 48px 18px;
  }

  .about-hero h1 {
    font-size: clamp(27px, 7vw, 36px);
  }

  .mission-section,
  .why-section,
  .categories-section {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .why-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .why-card {
    padding: 20px 12px;
  }

  .checkout-page,
  .orders-page {
    width: calc(100% - 28px);
    margin: 24px auto 48px;
  }

  .checkout-panel,
  .order-detail-card,
  .tracking-panel {
    padding: 18px;
  }

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

  .field.full {
    grid-column: auto;
  }

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

  .order-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .order-card-actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-card-actions > * {
    min-width: 0;
    width: 100%;
  }

  .order-products-preview {
    flex-wrap: wrap;
  }

  .tracking-heading {
    flex-wrap: wrap;
  }

  .category-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .pj-footer .pj-footer-grid,
  .pj-footer .pj-footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

/* =========================================================
   SMALL MOBILE — 480px and below
========================================================= */
@media (max-width: 480px) {
  body > header.pj-common-header {
    padding: 9px 10px !important;
  }

  body > header.pj-common-header .logo img {
    width: 86px !important;
  }

  body > header.pj-common-header .mobile-menu-toggle {
    width: 36px;
    min-height: 38px;
    padding: 6px;
  }

  body > header.pj-common-header .pj-common-search {
    flex-basis: 105px;
    width: 105px;
    min-width: 78px;
  }

  body > header.pj-common-header .header-right {
    gap: 4px;
  }

  body > header.pj-common-header .login,
  body > header.pj-common-header .pj-header-cart,
  body > header.pj-common-header .customer-account-trigger {
    padding: 7px 6px;
    font-size: 10px;
  }

  .hero {
    height: 390px;
  }

  .hero-slide {
    padding: 20px 16px !important;
  }

  .hero h2 {
    font-size: clamp(25px, 8vw, 32px);
  }

  .hero .small-heading {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .hero .features,
  .hero p {
    font-size: 13px;
  }

  .products-grid,
  .category-page .products,
  .jeans-grid,
  .category-container {
    gap: 9px;
  }

  .product-info {
    padding: 8px;
  }

  .product-info h3 {
    font-size: 12px;
  }

  .product-info button,
  .product-info .button,
  .product-info a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .find-next-title h2,
  .why-section .section-title h2,
  .categories-section .section-title h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .feature-box {
    min-height: 115px;
    padding: 16px 8px;
  }

  .feature-box h3 {
    font-size: 14px;
  }

  .feature-box p {
    font-size: 11px;
  }

  .why-card {
    padding: 17px 9px;
  }

  .why-card h3 {
    font-size: 14px;
  }

  .why-card p {
    font-size: 12px;
  }

  .checkout-page,
  .orders-page {
    width: calc(100% - 22px);
  }

  .checkout-panel,
  .order-detail-card,
  .tracking-panel {
    padding: 14px;
  }

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

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

  .summary-item {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }

  .summary-item img {
    width: 54px;
    height: 64px;
  }

  .summary-item > strong {
    grid-column: 2;
    justify-self: start;
  }

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

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

  .pj-footer .pj-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ---------- Accessibility / reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   FIX: HOME MOBILE FULL BANNER VISIBILITY
   Original banner ratio: 2048 x 768 (8:3)
========================================================= */
@media (max-width: 700px) {
    .home-page .hero {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none;
        aspect-ratio: 8 / 3;
        overflow: hidden;
        background: #f3f3f3;
    }

    .home-page .hero-slider {
        width: 100%;
        height: 100%;
    }

    .home-page .hero-slide {
        width: 100%;
        height: 100%;
        padding: 0 !important;
    }

    .home-page .hero-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain !important;
        object-position: center;
    }
}

/* =========================================================
   PARTNER JEANS - COMPLETE HOME PAGE MOBILE RESPONSIVE FIX
   Scoped only to Home page. Desktop remains unchanged.
========================================================= */

@media (max-width: 767px) {

    /* Global mobile width safety */
    html:has(body.home-page),
    body.home-page {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: clip !important;
    }

    body.home-page,
    body.home-page * {
        box-sizing: border-box;
        min-width: 0;
    }

    body.home-page img,
    body.home-page video,
    body.home-page iframe {
        max-width: 100%;
    }

    body.home-page > section,
    body.home-page > footer,
    body.home-page > header {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* HOME HEADER */
    body.home-page > header:not(.pj-common-header) {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        width: 100% !important;
        padding: 8px 10px !important;
    }

    body.home-page > header:not(.pj-common-header) .mobile-menu-toggle {
        display: flex !important;
        flex: 0 0 32px !important;
        order: 1 !important;
        align-items: center;
        justify-content: center;
        padding: 5px !important;
    }

    body.home-page > header:not(.pj-common-header) .logo {
        order: 0 !important;
        flex: 0 0 auto !important;
    }

    body.home-page > header:not(.pj-common-header) .logo img {
        display: block;
        width: clamp(65px, 21vw, 95px) !important;
        max-width: 100%;
        height: auto !important;
        max-height: 42px !important;
        object-fit: contain;
    }

    body.home-page > header:not(.pj-common-header) .header-right {
        order: 2 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }

    body.home-page > header:not(.pj-common-header) .search {
        flex: 1 1 100px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 190px !important;
        height: 34px !important;
        margin: 0 !important;
    }

    body.home-page > header:not(.pj-common-header) .search input {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 12px !important;
    }

    body.home-page > header:not(.pj-common-header) .login,
    body.home-page > header:not(.pj-common-header) .register {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 7px 8px !important;
        font-size: 10px !important;
    }

    /* Hamburger navigation: existing JS uses is-open */
    body.home-page > header:not(.pj-common-header) #main-navigation {
        order: 3 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 6px 0 !important;
    }

    body.home-page > header:not(.pj-common-header) #main-navigation:not(.is-open) {
        display: none !important;
    }

    body.home-page > header:not(.pj-common-header) #main-navigation.is-open {
        display: flex !important;
    }

    body.home-page > header:not(.pj-common-header) #main-navigation a {
        display: block;
        width: 100%;
        padding: 11px 10px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        font-size: 12px !important;
    }

    /* HERO */
    body.home-page .hero {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 8 / 3;
        overflow: hidden !important;
    }

    body.home-page .hero-slider,
    body.home-page .hero-slide {
        width: 100% !important;
        height: 100% !important;
    }

    body.home-page .hero-slide img {
        display: block;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    /* SECTION HEADINGS */
    body.home-page section h1,
    body.home-page section h2 {
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    body.home-page section p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* CATEGORIES */
    body.home-page .categories-section {
        width: 100% !important;
        padding: 30px 12px 20px !important;
        overflow: hidden;
    }

    body.home-page .categories-section .categories-grid,
    body.home-page .categories-section .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 12px !important;
    }

    /* JEANS CATEGORY CARDS */
    body.home-page .jeans-section .jeans-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 10px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.home-page .jeans-section .jeans-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 4;
        overflow: hidden;
    }

    body.home-page .jeans-section .jeans-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* HOME PRODUCTS */
    body.home-page .home-products-section {
        width: 100% !important;
        padding: 30px 10px !important;
        overflow: hidden;
    }

    body.home-page .home-products-section .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 12px !important;
    }

    body.home-page .home-product-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.home-page .home-product-card .product-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 4;
        overflow: hidden;
    }

    body.home-page .home-product-card .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body.home-page .home-product-card h3,
    body.home-page .home-product-card p {
        overflow-wrap: anywhere;
        white-space: normal !important;
    }

    /* FULL JEANS IMAGE SECTION */
    body.home-page .products-section.jeans-section {
        width: 100% !important;
        padding: 25px 0 0 !important;
        overflow: hidden;
    }

    body.home-page .full-jeans-image {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: hidden;
    }

    body.home-page .full-jeans-image img {
        display: block;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    body.home-page .jeans-features {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* FIND YOUR NEXT PAIR */
    body.home-page .find-next-pair {
        width: 100% !important;
        padding: 30px 10px !important;
        overflow: hidden;
    }

    body.home-page .find-next-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 10px !important;
    }

    body.home-page .find-next-card {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-width: 0 !important;
        overflow: hidden;
    }

    body.home-page .find-next-card img {
        display: block;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    body.home-page .find-next-content h3,
    body.home-page .find-next-content p {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    /* SPECIAL OFFER */
    body.home-page .special-offer {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow: hidden;
    }

    body.home-page .special-offer img {
        max-width: 100% !important;
        height: auto;
    }

    /* VIDEO SECTION */
    body.home-page .jeans-video-section {
        width: 100% !important;
        padding: 30px 12px !important;
        overflow: hidden;
    }

    body.home-page .jeans-video-section .video-grid,
    body.home-page .jeans-video-section .videos-grid,
    body.home-page .jeans-video-section .jeans-video-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 10px !important;
    }

    body.home-page .jeans-video-section video,
    body.home-page .jeans-video-section iframe {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 9 / 16;
        object-fit: cover;
    }

    /* WHY PARTNER */
    body.home-page .why-section {
        width: 100% !important;
        padding: 30px 12px !important;
        overflow: hidden;
    }

    body.home-page .why-section .why-container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 12px !important;
    }

    body.home-page .why-section .why-container > * {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-wrap: anywhere;
    }

    /* REVIEWS */
    body.home-page .reviews-section {
        width: 100% !important;
        padding: 30px 12px !important;
        overflow: hidden;
    }

    body.home-page .reviews-section .reviews-container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        gap: 14px !important;
    }

    body.home-page .reviews-section .reviews-container > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* NEWSLETTER */
    body.home-page .home-newsletter {
        width: 100% !important;
        padding: 30px 14px !important;
        overflow: hidden;
    }

    body.home-page .home-newsletter form {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    body.home-page .home-newsletter input,
    body.home-page .home-newsletter button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* FOOTER */
    body.home-page > footer.premium-footer.pj-footer {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    body.home-page .pj-footer-main {
        width: 100% !important;
        padding: 30px 16px !important;
    }

    body.home-page .pj-footer-groups,
    body.home-page .pj-footer-grid,
    body.home-page .pj-footer-content {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
    }

    body.home-page .pj-footer-bottom {
        flex-wrap: wrap !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 10px !important;
    }

    body.home-page .pj-footer-bottom > * {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* SMALL PHONES: 450px and below */
@media (max-width: 450px) {

    body.home-page .categories-section .categories-grid,
    body.home-page .categories-section .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.home-page .jeans-section .jeans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    body.home-page .home-products-section .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.home-page .find-next-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.home-page .jeans-features {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.home-page .why-section .why-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.home-page .reviews-section .reviews-container {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.home-page .home-product-card h3 {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    body.home-page .home-product-card p {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    body.home-page .find-next-content h3 {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    body.home-page .find-next-content p {
        font-size: 10px !important;
        line-height: 1.35 !important;
    }
}



/* HOME MOBILE HEADER: FORCE SINGLE LINE */
@media (max-width: 600px) {
    body.home-page > header:not(.pj-common-header) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 4px !important;
        padding: 6px 7px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.home-page > header:not(.pj-common-header) .logo {
        order: 0 !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }

    body.home-page > header:not(.pj-common-header) .logo img {
        width: clamp(58px, 18vw, 72px) !important;
        max-width: 100% !important;
        max-height: 36px !important;
        height: auto !important;
    }

    body.home-page > header:not(.pj-common-header) .mobile-menu-toggle {
        order: 1 !important;
        flex: 0 0 26px !important;
        width: 26px !important;
        min-width: 26px !important;
        padding: 3px !important;
    }

    body.home-page > header:not(.pj-common-header) .header-right {
        order: 2 !important;
        display: flex !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
    }

    body.home-page > header:not(.pj-common-header) .search {
        flex: 1 1 55px !important;
        width: auto !important;
        min-width: 45px !important;
        max-width: 105px !important;
        margin: 0 !important;
    }

    body.home-page > header:not(.pj-common-header) .login,
    body.home-page > header:not(.pj-common-header) .register {
        flex: 0 0 auto !important;
        padding: 5px 4px !important;
        font-size: clamp(8px, 2.4vw, 10px) !important;
        white-space: nowrap !important;
    }

    body.home-page > header:not(.pj-common-header) #main-navigation {
        order: 3 !important;
        flex: 0 0 100% !important;
    }
}


/* PREMIUM HOME MOBILE NAVIGATION MENU */
@media (max-width: 600px) {

    body.home-page > header:not(.pj-common-header) #main-navigation {
        box-sizing: border-box !important;
        position: relative !important;
        width: 100% !important;
        margin: 9px 0 0 !important;
        padding: 12px !important;

        flex-direction: column !important;
        align-items: stretch !important;
        gap: 3px !important;

        background: linear-gradient(145deg, #111d30 0%, #192941 100%) !important;
        border: 1px solid rgba(216, 189, 145, 0.65) !important;
        border-radius: 5px 5px 16px 16px !important;

        box-shadow:
            0 12px 28px rgba(10, 20, 35, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;

        overflow: hidden !important;
    }

    body.home-page > header:not(.pj-common-header) #main-navigation:not(.is-open) {
        display: none !important;
    }

    body.home-page > header:not(.pj-common-header) #main-navigation.is-open {
        display: flex !important;
        animation: pjPremiumMenuReveal 260ms ease-out both;
    }

    body.home-page > header:not(.pj-common-header) #main-navigation::before {
        content: "EXPLORE PARTNER" !important;
        display: block !important;
        padding: 5px 12px 11px !important;
        margin-bottom: 4px !important;

        color: #d8bd91 !important;
        font-family: Georgia, serif !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        letter-spacing: 2.2px !important;

        border-bottom: 1px solid rgba(216, 189, 145, 0.28) !important;
    }

    body.home-page > header:not(.pj-common-header) #main-navigation a {
        box-sizing: border-box !important;
        position: relative !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 100% !important;
        min-height: 47px !important;
        padding: 12px 13px !important;
        margin: 0 !important;

        color: #f8f3e9 !important;
        background: transparent !important;

        font-family: Arial, sans-serif !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 1.05px !important;
        line-height: 1.5 !important;
        text-decoration: none !important;
        text-transform: uppercase !important;

        border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
        border-radius: 7px !important;

        transition:
            color 180ms ease,
            background 180ms ease,
            padding 180ms ease !important;
    }

    body.home-page > header:not(.pj-common-header) #main-navigation a::after {
        content: "›" !important;
        color: #d8bd91 !important;
        font-family: Arial, sans-serif !important;
        font-size: 22px !important;
        font-weight: 400 !important;
        line-height: 1 !important;
        margin-left: 12px !important;
    }

    body.home-page > header:not(.pj-common-header) #main-navigation a:last-child {
        color: #e5c99b !important;
        border-bottom: 0 !important;
        margin-top: 4px !important;
        background: rgba(216, 189, 145, 0.08) !important;
    }

    body.home-page > header:not(.pj-common-header) #main-navigation a:hover,
    body.home-page > header:not(.pj-common-header) #main-navigation a:focus-visible {
        color: #e5c99b !important;
        background: rgba(216, 189, 145, 0.12) !important;
        padding-left: 18px !important;
        outline: none !important;
    }

    @keyframes pjPremiumMenuReveal {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}


/* PJ HOME: KEEP TWO CARDS PER ROW ON MOBILE */
@media (max-width: 767px) {
    body.home-page .find-next-grid,
    body.home-page .jeans-video-section .jeans-video-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 10px !important;
    }

    body.home-page .find-next-card,
    body.home-page .jeans-video-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}


/* PJ HOME FIND NEXT PAIR: FOUR IMAGES IN ONE ROW */
@media (max-width: 767px) {
    body.home-page .find-next-pair .find-next-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
        width: 100% !important;
    }

    body.home-page .find-next-pair .find-next-card {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        aspect-ratio: 0.72 / 1 !important;
    }

    body.home-page .find-next-pair .find-next-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
}


/* PJ HOME VIDEOS: FOUR VIDEOS IN ONE ROW */
@media (max-width: 767px) {
    body.home-page .jeans-video-section .jeans-video-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
        width: 100% !important;
    }

    body.home-page .jeans-video-section .jeans-video-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}


/* PJ HOME: WHY CHOOSE 4-COLUMN + REVIEWS 3-COLUMN MOBILE ROW */
@media (max-width: 767px) {
    body.home-page .why-section .why-container {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
        width: 100% !important;
    }

    body.home-page .why-section .why-card {
        min-width: 0 !important;
        padding: 12px 3px !important;
        height: auto !important;
        overflow-wrap: anywhere !important;
    }

    body.home-page .why-section .why-icon {
        font-size: 20px !important;
        margin-bottom: 6px !important;
    }

    body.home-page .why-section .why-card h3 {
        font-size: clamp(8px, 2.5vw, 11px) !important;
        line-height: 1.2 !important;
    }

    body.home-page .why-section .why-card p {
        font-size: clamp(8px, 2.4vw, 10px) !important;
        line-height: 1.3 !important;
    }

    body.home-page .reviews-section .reviews-container {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
        width: 100% !important;
    }

    body.home-page .reviews-section .review-card {
        min-width: 0 !important;
        width: 100% !important;
        padding: 14px 5px !important;
        height: auto !important;
        overflow-wrap: anywhere !important;
    }

    body.home-page .reviews-section .review-stars {
        font-size: clamp(9px, 2.7vw, 12px) !important;
        white-space: nowrap !important;
    }

    body.home-page .reviews-section .review-text {
        font-size: clamp(8px, 2.5vw, 10px) !important;
        line-height: 1.35 !important;
    }

    body.home-page .reviews-section .review-card h3 {
        font-size: clamp(8px, 2.5vw, 11px) !important;
    }

    body.home-page .reviews-section .review-card span {
        font-size: clamp(7px, 2.2vw, 9px) !important;
    }
}


/* PJ HOME: FOUR TRUST FEATURES IN ONE MOBILE ROW */
@media (max-width: 767px) {
    body.home-page .jeans-features {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 3px !important;
        width: 100% !important;
    }

    body.home-page .jeans-features .feature-box {
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 12px 2px !important;
        border-bottom: 0 !important;
        border-right: 1px solid #e5e5e5 !important;
        text-align: center !important;
    }

    body.home-page .jeans-features .feature-box:last-child {
        border-right: 0 !important;
    }

    body.home-page .jeans-features .feature-box h3 {
        font-size: clamp(7px, 2.5vw, 11px) !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    body.home-page .jeans-features .feature-box p {
        font-size: clamp(6px, 2vw, 9px) !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
    }
}


/* PJ HOME: SHOP BY CATEGORY 4 X 2 MOBILE GRID */
@media (max-width: 767px) {
    body.home-page .jeans-section .jeans-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    body.home-page .jeans-section .jeans-card {
        width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 3 / 4 !important;
        height: auto !important;
    }

    body.home-page .jeans-section .jeans-card img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}


/* PJ HOME DESKTOP HEADER MATCH MEN V1 */
/* Desktop only: preserve Home HTML, voice search and mobile layout */
@media (min-width: 1051px) {
    body.home-page > header:not(.pj-common-header) {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-height: 82px !important;
        padding: 12px 3% !important;
        gap: 22px !important;
        background: #fff !important;
        border-bottom: 2px solid #d8bd91 !important;
        box-shadow: 0 3px 16px rgba(75,10,25,.08) !important;
        position: relative !important;
        z-index: 10000 !important;
    }

    body.home-page > header:not(.pj-common-header) .logo {
        flex: 0 0 125px !important;
        min-width: 125px !important;
    }

    body.home-page > header:not(.pj-common-header) .logo img {
        display: block !important;
        width: 125px !important;
        max-width: 100% !important;
        max-height: 62px !important;
        height: auto !important;
        object-fit: contain !important;
    }

    body.home-page > header:not(.pj-common-header) nav {
        display: flex !important;
        flex: 1 1 auto !important;
        align-items: center !important;
        justify-content: center !important;
        gap: clamp(8px, 1.2vw, 20px) !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }

    body.home-page > header:not(.pj-common-header) nav a {
        color: #5b0b19 !important;
        font-size: 11px !important;
        font-weight: 650 !important;
        letter-spacing: .2px !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }

    body.home-page > header:not(.pj-common-header) nav a:hover,
    body.home-page > header:not(.pj-common-header) nav a:focus-visible {
        color: #7f1023 !important;
        background: #fbf8f3 !important;
    }

    body.home-page > header:not(.pj-common-header) .header-right {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 9px !important;
        position: relative !important;
    }

    body.home-page > header:not(.pj-common-header) .search {
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        flex: 0 0 220px !important;
        height: 40px !important;
        padding: 0 !important;
        border: 1px solid #e5d7d9 !important;
        border-radius: 24px !important;
        background: #fff !important;
        overflow: hidden !important;
    }

    body.home-page > header:not(.pj-common-header) .search input {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        padding: 0 12px !important;
        border: 0 !important;
        outline: none !important;
        background: transparent !important;
        color: #34252a !important;
        font-size: 13px !important;
    }

    body.home-page > header:not(.pj-common-header) .search-mic-button {
        display: inline-flex !important;
        flex: 0 0 34px !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 100% !important;
        padding: 0 8px !important;
        border: 0 !important;
        background: transparent !important;
        color: #7f1023 !important;
        cursor: pointer !important;
    }

    body.home-page > header:not(.pj-common-header) .search-mic-button svg {
        width: 19px !important;
        height: 19px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    body.home-page > header:not(.pj-common-header) .login,
    body.home-page > header:not(.pj-common-header) .register {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        min-height: 38px !important;
        padding: 0 14px !important;
        border: 1px solid #7f1023 !important;
        border-radius: 5px !important;
        background: #7f1023 !important;
        color: #fff !important;
        font-size: 12px !important;
        font-weight: 650 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }

    body.home-page > header:not(.pj-common-header) .login:hover,
    body.home-page > header:not(.pj-common-header) .register:hover {
        background: #5b0b19 !important;
        border-color: #5b0b19 !important;
        color: #fff !important;
    }

    body.home-page > header:not(.pj-common-header) .mobile-menu-toggle {
        display: none !important;
    }
}


/* PJ HOME DESKTOP ACCOUNT HIDDEN FIX V1 */
@media (min-width: 1051px) {
    body.home-page > header:not(.pj-common-header) .header-right > .login[hidden],
    body.home-page > header:not(.pj-common-header) .header-right > .register[hidden] {
        display: none !important;
    }
}
