/*
 * Reyhoon Shop Premium v21.5.54
 * Single Product mobile + tablet UX refinement.
 * IMPORTANT: desktop is untouched; every rule is scoped to <=900px.
 */
@media (max-width:900px){
  body.single-product{
    --rh-p-bg:#f7f5ef;
    --rh-p-card:#ffffff;
    --rh-p-green:#173f35;
    --rh-p-gold:#b18a4e;
    --rh-p-muted:#6f7872;
    --rh-p-line:#e5e8e3;
  }

  body.single-product .rh-main{
    background:linear-gradient(180deg,#fbfaf6 0%,#f5f3ed 48%,#fff 100%)!important;
    overflow-x:clip!important;
  }
  body.single-product .rh-single-product{
    width:min(100% - 24px,1180px)!important;
    margin-inline:auto!important;
    padding:12px 0 calc(92px + env(safe-area-inset-bottom))!important;
  }
  body.single-product .rh-product-breadcrumb{
    margin:0 2px 10px!important;
    font-size:10px!important;
    line-height:1.8!important;
    white-space:nowrap!important;
    overflow-x:auto!important;
    scrollbar-width:none!important;
  }
  body.single-product .rh-product-breadcrumb::-webkit-scrollbar{display:none!important;}

  /* Tablet: real two-column product layout, not a squeezed desktop. */
  body.single-product .rh-product-hero{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:20px!important;
    align-items:start!important;
    padding:16px!important;
    border-radius:24px!important;
    border:1px solid var(--rh-p-line)!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 16px 42px rgba(31,54,45,.07)!important;
  }
  body.single-product .rh-product-gallery{min-width:0!important;}
  body.single-product .rh-product-main-image{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:1/1!important;
    border-radius:20px!important;
    background:radial-gradient(circle at 50% 35%,#fffdf9 0%,#f5f0e5 72%,#ece6d9 100%)!important;
    overflow:hidden!important;
  }
  body.single-product .rh-product-main-image img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    mix-blend-mode:multiply!important;
    transform:none!important;
  }
  body.single-product .rh-product-main-image:hover img{transform:none!important;}
  body.single-product .rh-product-badges{right:12px!important;top:12px!important;gap:6px!important;}
  body.single-product .rh-product-badges span{padding:7px 9px!important;font-size:9px!important;border-radius:999px!important;}
  body.single-product .rh-gallery-fullscreen{left:12px!important;top:12px!important;width:38px!important;height:38px!important;border-radius:12px!important;}
  body.single-product .rh-product-thumbs{
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    padding:8px 1px 2px!important;
    margin-top:0!important;
    scrollbar-width:none!important;
    scroll-snap-type:x proximity!important;
  }
  body.single-product .rh-product-thumbs::-webkit-scrollbar{display:none!important;}
  body.single-product .rh-product-thumb{
    width:68px!important;height:68px!important;flex:0 0 68px!important;
    padding:3px!important;border-radius:12px!important;
    scroll-snap-align:start!important;
  }
  body.single-product .rh-gallery-caption{font-size:8px!important;padding:5px 2px 0!important;}

  body.single-product .rh-product-summary{
    padding:5px 4px 0!important;
    min-width:0!important;
  }
  body.single-product .rh-product-category{font-size:10px!important;line-height:1.8!important;}
  body.single-product .rh-product-summary h1{
    margin:7px 0 10px!important;
    font-size:clamp(25px,3.2vw,32px)!important;
    line-height:1.45!important;
    letter-spacing:-.25px!important;
  }
  body.single-product .rh-product-meta-row{
    gap:7px!important;
    font-size:10px!important;
    line-height:1.8!important;
  }
  body.single-product .rh-product-rating-row{margin:9px 0 0!important;}
  body.single-product .rh-product-short-desc{
    margin:13px 0!important;
    font-size:12px!important;
    line-height:2!important;
  }
  body.single-product .rh-product-purchase-card{
    padding:15px!important;
    border-radius:18px!important;
    box-shadow:0 12px 28px rgba(67,54,33,.06)!important;
  }
  body.single-product .rh-purchase-card-top{padding-bottom:10px!important;gap:10px!important;}
  body.single-product .rh-product-price .price{font-size:22px!important;}
  body.single-product .rh-product-trust{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    margin-top:11px!important;
  }
  body.single-product .rh-product-trust>div{padding:10px 8px!important;border-radius:12px!important;min-width:0!important;}
  body.single-product .rh-product-trust b{font-size:9px!important;line-height:1.6!important;}
  body.single-product .rh-product-trust span{font-size:8px!important;line-height:1.65!important;}

  /* Purchase controls: clear hierarchy and stable touch sizes. */
  body.single-product .rh-product-purchase{padding:12px 0 0!important;margin:0!important;}
  body.single-product .rh-purchase-kicker{margin-bottom:8px!important;gap:8px!important;}
  body.single-product .rh-purchase-kicker span{font-size:10px!important;}
  body.single-product .rh-purchase-kicker small{font-size:8px!important;}
  body.single-product .rh-product-purchase form.cart{width:100%!important;}
  body.single-product .rh-product-purchase form.cart .single_add_to_cart_button{min-height:52px!important;border-radius:14px!important;font-size:11px!important;}
  body.single-product .rh-product-purchase form.cart .quantity{height:52px!important;border-radius:14px!important;}
  body.single-product .rh-product-purchase form.cart .quantity .rh-qty-btn{height:40px!important;}
  body.single-product .rh-product-purchase form.cart .quantity .qty{height:40px!important;}
  body.single-product .rh-purchase-note{font-size:8px!important;line-height:1.8!important;margin-top:8px!important;}

  /* Content sections use consistent vertical rhythm. */
  body.single-product .rh-product-quick-section,
  body.single-product .rh-product-specs-section,
  body.single-product .rh-product-details-tabs,
  body.single-product .rh-product-related-section{
    margin-top:14px!important;
    padding:18px!important;
    border-radius:20px!important;
    border:1px solid var(--rh-p-line)!important;
    box-shadow:0 10px 28px rgba(31,54,45,.045)!important;
  }
  body.single-product .rh-section-heading span{font-size:9px!important;}
  body.single-product .rh-section-heading h2{margin:4px 0 14px!important;font-size:20px!important;line-height:1.5!important;}
  body.single-product .rh-product-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  body.single-product .rh-quick-card{min-height:76px!important;padding:11px!important;border-radius:13px!important;gap:9px!important;}
  body.single-product .rh-quick-icon{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:10px!important;font-size:14px!important;}
  body.single-product .rh-quick-card small{font-size:8px!important;}
  body.single-product .rh-quick-card strong{font-size:10px!important;line-height:1.65!important;}
  body.single-product .rh-product-spec-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  body.single-product .rh-spec-card{min-height:68px!important;padding:11px!important;border-radius:12px!important;}
  body.single-product .rh-spec-card span{font-size:8px!important;}
  body.single-product .rh-spec-card strong{font-size:10px!important;line-height:1.7!important;overflow-wrap:anywhere!important;}
  body.single-product .rh-product-notes{padding:13px!important;border-radius:13px!important;}
  body.single-product .rh-product-notes h3{font-size:10px!important;}
  body.single-product .rh-product-notes p{font-size:9px!important;line-height:1.9!important;}

  body.single-product .rh-product-details-tabs{padding:0!important;overflow:hidden!important;}
  body.single-product .rh-tab-head{padding:18px 18px 4px!important;}
  body.single-product .rh-tab-nav{padding:0 12px!important;gap:2px!important;scrollbar-width:none!important;}
  body.single-product .rh-tab-nav::-webkit-scrollbar{display:none!important;}
  body.single-product .rh-tab-nav button{min-height:46px!important;padding:0 14px!important;font-size:10px!important;}
  body.single-product .rh-tab-panel{padding:18px!important;font-size:10px!important;line-height:2!important;overflow-wrap:anywhere!important;}
  body.single-product .rh-tab-panel table{display:block!important;width:100%!important;overflow-x:auto!important;white-space:nowrap!important;}
  body.single-product .rh-tab-panel table th,
  body.single-product .rh-tab-panel table td{padding:9px!important;font-size:9px!important;}

  body.single-product .rh-product-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  body.single-product .rh-related-card{border-radius:14px!important;min-width:0!important;}
  body.single-product .rh-related-image{height:auto!important;aspect-ratio:1/1!important;}
  body.single-product .rh-related-body{padding:10px!important;}
  body.single-product .rh-related-body>span{font-size:7px!important;line-height:1.5!important;}
  body.single-product .rh-related-body h3{font-size:10px!important;line-height:1.65!important;margin:4px 0!important;}
  body.single-product .rh-related-price{font-size:9px!important;min-height:18px!important;}
  body.single-product .rh-related-btn{min-height:38px!important;margin-top:7px!important;font-size:8px!important;border-radius:10px!important;}

  body.single-product .rh-mobile-buybar{
    right:10px!important;left:10px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;
    min-height:60px!important;padding:8px!important;gap:8px!important;border-radius:16px!important;
    border:1px solid rgba(179,138,72,.24)!important;background:rgba(255,255,255,.94)!important;
    box-shadow:0 14px 34px rgba(31,54,45,.17)!important;
  }
  body.single-product .rh-mobile-buybar strong{font-size:9px!important;line-height:1.5!important;}
  body.single-product .rh-mobile-buybar span{font-size:9px!important;}
  body.single-product .rh-mobile-buybar button{min-height:44px!important;padding:0 15px!important;border-radius:12px!important;font-size:9px!important;}
}

@media (min-width:601px) and (max-width:900px){
  body.single-product .rh-single-product{width:min(100% - 32px,900px)!important;}
  body.single-product .rh-product-main-image{min-height:0!important;}
  body.single-product .rh-product-summary h1{font-size:30px!important;}
  body.single-product .rh-product-short-desc{font-size:12px!important;}
  body.single-product .rh-product-purchase form.cart{grid-template-columns:104px minmax(0,1fr)!important;gap:8px!important;}
  body.single-product .rh-product-purchase form.cart .quantity{width:104px!important;}
  body.single-product .rh-product-purchase form.cart .quantity .rh-qty-btn{width:32px!important;flex-basis:32px!important;}
  body.single-product .rh-product-purchase form.cart .quantity .qty{width:27px!important;min-width:27px!important;}
  body.single-product .rh-mobile-buybar{display:none!important;}
}

@media (max-width:600px){
  body.single-product .rh-single-product{width:calc(100% - 14px)!important;padding-top:9px!important;padding-bottom:88px!important;}
  body.single-product .rh-product-hero{display:block!important;padding:10px!important;border-radius:20px!important;}
  body.single-product .rh-product-main-image{aspect-ratio:1/1!important;border-radius:16px!important;}
  body.single-product .rh-product-thumb{width:60px!important;height:60px!important;flex-basis:60px!important;}
  body.single-product .rh-gallery-caption{font-size:7px!important;}
  body.single-product .rh-product-summary{padding:12px 2px 0!important;}
  body.single-product .rh-product-summary h1{font-size:23px!important;line-height:1.5!important;}
  body.single-product .rh-product-short-desc{font-size:11px!important;line-height:2!important;}
  body.single-product .rh-product-purchase-card{padding:13px!important;border-radius:16px!important;}
  body.single-product .rh-product-price .price{font-size:20px!important;}
  body.single-product .rh-product-trust{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body.single-product .rh-product-trust>div{padding:9px 6px!important;}
  body.single-product .rh-product-trust b{font-size:8px!important;}
  body.single-product .rh-product-trust span{font-size:7px!important;}
  body.single-product .rh-product-quick-section,
  body.single-product .rh-product-specs-section,
  body.single-product .rh-product-details-tabs,
  body.single-product .rh-product-related-section{padding:15px!important;border-radius:18px!important;}
  body.single-product .rh-product-quick-grid{grid-template-columns:1fr 1fr!important;}
  body.single-product .rh-product-spec-grid{grid-template-columns:1fr 1fr!important;}
  body.single-product .rh-section-heading h2{font-size:18px!important;}
  body.single-product .rh-quick-card{min-height:72px!important;padding:9px!important;}
  body.single-product .rh-quick-icon{width:30px!important;height:30px!important;flex-basis:30px!important;font-size:13px!important;}
  body.single-product .rh-quick-card strong{font-size:9px!important;}
  body.single-product .rh-spec-card{min-height:64px!important;padding:9px!important;}
  body.single-product .rh-spec-card strong{font-size:9px!important;}
  body.single-product .rh-related-body{padding:9px!important;}
  body.single-product .rh-related-body h3{font-size:9px!important;}
  body.single-product .rh-related-btn{min-height:36px!important;}
  body.single-product .rh-tab-head{padding:16px 15px 3px!important;}
  body.single-product .rh-tab-panel{padding:15px!important;font-size:10px!important;}
  body.single-product .rh-mobile-buybar{display:flex!important;}
}

@media (max-width:380px){
  body.single-product .rh-product-summary h1{font-size:21px!important;}
  body.single-product .rh-product-trust b{font-size:7.5px!important;}
  body.single-product .rh-product-trust span{font-size:6.5px!important;}
  body.single-product .rh-product-quick-grid,
  body.single-product .rh-product-spec-grid{grid-template-columns:1fr!important;}
  body.single-product .rh-product-purchase form.cart{grid-template-columns:96px minmax(0,1fr)!important;gap:7px!important;}
  body.single-product .rh-product-purchase form.cart .quantity{width:96px!important;}
  body.single-product .rh-product-purchase form.cart .quantity .rh-qty-btn{width:30px!important;flex-basis:30px!important;}
  body.single-product .rh-product-purchase form.cart .quantity .qty{width:25px!important;min-width:25px!important;}
  body.single-product .rh-mobile-buybar button{padding:0 12px!important;}
}

@media (prefers-reduced-motion:reduce){
  body.single-product .rh-product-thumb,
  body.single-product .rh-related-card,
  body.single-product .rh-mobile-buybar,
  body.single-product .rh-product-main-image img{transition:none!important;}
}
