
/* MOBILE DESIGN FIX - Journal Like Theme */

*{box-sizing:border-box}

@media (max-width: 1024px){
  .container{
    width:100% !important;
    max-width:100% !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }

  .jl-page{
    padding-top:12px !important;
  }

  .jl-home-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
  }

  .jl-side-cats{
    order:2;
  }

  .jl-side-promos{
    order:3;
  }

  .jl-hero{
    min-height:300px !important;
    border-radius:16px !important;
    overflow:hidden !important;
  }

  .jl-hero-content{
    padding:22px !important;
    max-width:100% !important;
  }

  .jl-hero h1{
    font-size:28px !important;
    line-height:1.15 !important;
  }

  .jl-hero p{
    font-size:14px !important;
    line-height:1.55 !important;
  }

  .jl-hero-actions{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:10px !important;
  }

  .jl-hero-actions .jl-btn,
  .jl-hero-actions .jl-btn-secondary{
    flex:1 1 auto !important;
    text-align:center !important;
  }

  .jl-feature-row{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .jl-promo{
    min-height:118px !important;
  }

  .jl-promo-img-wrap img,
  .jl-promo img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }

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

  .jl-section{
    margin-top:22px !important;
  }

  .jl-section-head{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    margin-bottom:12px !important;
  }

  .jl-section-head h2{
    font-size:20px !important;
    line-height:1.2 !important;
  }

  .jl-section-head a{
    white-space:nowrap !important;
    font-size:13px !important;
  }

  .jl-prod-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
  }

  .jl-prod{
    border-radius:14px !important;
    overflow:hidden !important;
    min-width:0 !important;
  }

  .jl-prod-image{
    height:auto !important;
    aspect-ratio:1/1 !important;
    display:block !important;
  }

  .jl-prod-image img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }

  .jl-prod-body{
    padding:10px !important;
  }

  .jl-prod-body h3{
    font-size:13px !important;
    line-height:1.35 !important;
    min-height:38px !important;
    max-height:38px !important;
    overflow:hidden !important;
    margin-bottom:6px !important;
  }

  .jl-prod-meta,
  .jl-price-note{
    display:none !important;
  }

  .jl-price{
    display:flex !important;
    flex-direction:column !important;
    gap:2px !important;
    margin:6px 0 !important;
  }

  .jl-price .new{
    font-size:16px !important;
    line-height:1.2 !important;
  }

  .jl-price .old{
    font-size:12px !important;
  }

  .jl-prod-actions form,
  .jl-prod-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:7px !important;
    width:100% !important;
  }

  .jl-prod-actions .jl-btn,
  .jl-prod-actions .jl-btn-secondary{
    width:100% !important;
    min-height:38px !important;
    padding:9px 8px !important;
    font-size:12px !important;
    text-align:center !important;
  }

  .jl-chip,
  .jl-status{
    font-size:10px !important;
    padding:5px 7px !important;
  }

  .jl-bundle-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
  }

  .jl-bundle-image img{
    height:auto !important;
    aspect-ratio:1/1 !important;
    object-fit:cover !important;
  }

  .jl-bundle-body{
    padding:10px !important;
  }

  .jl-bundle-body h3{
    font-size:13px !important;
    min-height:38px !important;
    max-height:38px !important;
    overflow:hidden !important;
  }

  .jl-bundle-desc{
    display:none !important;
  }

  .jl-bundle-price{
    font-size:16px !important;
  }

  .jl-brand-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  .jl-card{
    border-radius:16px !important;
  }

  .pd-wrap,
  .cart-wrap,
  .checkout-layout,
  .acc-layout{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }

  .pd-main img{
    height:auto !important;
    aspect-ratio:1/1 !important;
    object-fit:cover !important;
  }

  .pd-title{
    font-size:24px !important;
  }

  .pd-price-new{
    font-size:26px !important;
  }

  .pd-buy-row,
  .pd-actions,
  .pd-info-grid,
  .checkout-grid{
    grid-template-columns:1fr !important;
  }

  .pd-thumbs{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }

  .pd-thumb img{
    height:68px !important;
  }

  .cart-row{
    grid-template-columns:82px 1fr !important;
    gap:10px !important;
  }

  .cart-side{
    grid-column:1/-1 !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    align-items:end !important;
  }

  .cart-img img{
    height:82px !important;
  }

  .cart-title{
    font-size:14px !important;
  }

  .cart-buttons{
    display:grid !important;
    grid-template-columns:1fr !important;
  }

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

  .checkout-card{
    padding:16px !important;
    border-radius:16px !important;
  }

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

  .jl-footer-grid{
    grid-template-columns:1fr 1fr !important;
    gap:18px !important;
  }

  .jl-footer-bottom{
    flex-direction:column !important;
    align-items:flex-start !important;
  }
}

@media (max-width: 640px){
  body{
    overflow-x:hidden !important;
  }

  .container{
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .jl-hero{
    min-height:250px !important;
  }

  .jl-hero h1{
    font-size:22px !important;
  }

  .jl-hero-content{
    padding:18px !important;
  }

  .jl-btn,
  .jl-btn-secondary,
  .btn{
    min-height:40px !important;
    padding:10px 12px !important;
    font-size:13px !important;
    border-radius:12px !important;
  }

  .jl-prod-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  .jl-prod-body{
    padding:9px !important;
  }

  .jl-prod-body h3{
    font-size:12px !important;
    min-height:34px !important;
    max-height:34px !important;
  }

  .jl-price .new{
    font-size:14px !important;
  }

  .jl-prod-badges{
    gap:4px !important;
  }

  .jl-prod-overlay{
    display:none !important;
  }

  .jl-side-cats-head h3{
    font-size:16px !important;
  }

  .jl-cat-row{
    min-height:42px !important;
  }

  .jl-cat-title{
    font-size:14px !important;
  }

  .jl-cat-children a{
    font-size:13px !important;
    padding:8px 10px !important;
  }

  .jl-bundle-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .pd-gallery,
  .pd-buybox,
  .pd-box,
  .cart-card,
  .checkout-card{
    padding:12px !important;
    border-radius:14px !important;
  }

  .pd-title{
    font-size:21px !important;
  }

  .pd-price-new{
    font-size:22px !important;
  }

  .pd-short,
  .pd-desc{
    font-size:14px !important;
    line-height:1.65 !important;
  }

  .pd-related-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  .pd-related-card img{
    height:auto !important;
    aspect-ratio:1/1 !important;
  }

  .cart-row{
    grid-template-columns:74px 1fr !important;
    padding:10px !important;
  }

  .cart-img img{
    height:74px !important;
  }

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

  .checkout-card h2,
  .checkout-card h3{
    font-size:19px !important;
  }

  .checkout-input{
    padding:11px 12px !important;
  }

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

@media (max-width: 390px){
  .jl-prod-grid,
  .jl-bundle-grid,
  .pd-related-grid{
    grid-template-columns:1fr !important;
  }

  .jl-prod-image,
  .jl-bundle-image img{
    aspect-ratio:1.25/1 !important;
  }
}
