/* House of RadhaRani 3.5.0
   Mobile premium layer. Desktop layout intentionally unchanged.
*/

/* Cross-browser hardening that does not alter desktop geometry. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.rr-header,.rrh-cart-backdrop{-webkit-backdrop-filter:blur(18px)}
.rrh-cart-backdrop{-webkit-backdrop-filter:blur(2px)}
img{image-rendering:auto}
.rrh-cart-drawer{height:100vh;height:100dvh}

/* Mobile navigation is present in the markup but inert on desktop. */
.rr-mobile-menu-toggle,.rr-mobile-menu-backdrop,.rr-mobile-menu-panel{display:none}

@media (max-width:900px){
  :root{--rrh-mobile-gutter:16px}
  html,body{max-width:100%;overflow-x:hidden}
  body{min-width:320px}
  .container,.rrh-page-gutter{padding-left:var(--rrh-mobile-gutter)!important;padding-right:var(--rrh-mobile-gutter)!important}

  /* Premium compact mobile header */
  .rr-header{position:sticky!important;top:0!important;z-index:9990!important;background:rgba(251,246,236,.98)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
  .rr-nav{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand actions"!important;align-items:center!important;min-height:64px!important;padding:8px var(--rrh-mobile-gutter)!important;gap:10px!important}
  .rr-brand{grid-area:brand;min-width:0!important;max-width:100%;overflow:hidden}
  .rr-brand-badge{flex:0 0 auto}
  .rr-brand-copy{min-width:0}
  .rr-brand-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:19px!important}
  .rr-brand-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rr-nav-links{display:none!important}
  .rr-nav-actions{grid-area:actions;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;min-width:0}
  .rr-nav-actions .rr-icon-link{display:inline-grid!important;width:40px!important;height:40px!important;min-width:40px!important;border-radius:50%!important}
  .rr-nav-actions .rr-icon-link[aria-label="Search"],.rr-nav-actions .rr-icon-link[aria-label="Account"]{display:none!important}
  .rr-nav-actions .rr-btn-whatsapp{min-height:40px!important;padding:0 13px!important;font-size:9px!important;white-space:nowrap!important}
  .rr-mobile-menu-toggle{display:inline-flex;position:relative;width:42px;height:42px;min-width:42px;padding:0;border:1px solid #d9cfbf;border-radius:50%;background:#fff;align-items:center;justify-content:center;cursor:pointer;color:#073b3a}
  .rr-mobile-menu-toggle span,.rr-mobile-menu-toggle::before,.rr-mobile-menu-toggle::after{content:"";display:block;position:absolute;width:17px;height:2px;border-radius:3px;background:currentColor;transition:transform .25s ease,opacity .2s ease,top .25s ease}
  .rr-mobile-menu-toggle span{top:20px}.rr-mobile-menu-toggle::before{top:14px}.rr-mobile-menu-toggle::after{top:26px}
  .rr-mobile-menu-toggle[aria-expanded="true"] span{opacity:0}.rr-mobile-menu-toggle[aria-expanded="true"]::before{top:20px;transform:rotate(45deg)}.rr-mobile-menu-toggle[aria-expanded="true"]::after{top:20px;transform:rotate(-45deg)}
  .rr-mobile-menu-toggle:focus-visible{outline:3px solid rgba(183,138,67,.35);outline-offset:2px}

  .rr-mobile-menu-backdrop{display:block;position:fixed;inset:0;z-index:9991;background:rgba(4,31,30,.44);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
  .rr-mobile-menu-panel{display:flex;position:fixed;top:0;right:0;z-index:9992;width:min(88vw,380px);height:100vh;height:100dvh;background:#fbf6ec;transform:translateX(105%);transition:transform .3s cubic-bezier(.2,.7,.2,1);box-shadow:-20px 0 55px rgba(7,59,58,.22);flex-direction:column;overflow-y:auto;overscroll-behavior:contain}
  .rr-mobile-menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px 14px;border-bottom:1px solid #e5dac9;background:#fff}
  .rr-mobile-menu-head strong{font-family:'Cormorant Garamond',serif;font-size:25px;line-height:1;color:#073b3a}
  .rr-mobile-menu-close{width:42px;height:42px;border:1px solid #e5dac9;border-radius:50%;background:#fff;color:#073b3a;font-size:27px;line-height:1;cursor:pointer}
  .rr-mobile-menu-links{display:grid;padding:12px 18px}
  .rr-mobile-menu-links a{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 3px;border-bottom:1px solid #e5dac9;color:#222827;font-size:13px;font-weight:700;letter-spacing:.035em}
  .rr-mobile-menu-links a::after{content:"→";color:#b78a43;font-size:18px}
  .rr-mobile-menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:12px 18px 22px;margin-top:auto}
  .rr-mobile-menu-actions a{display:flex;align-items:center;justify-content:center;min-height:46px;border:1px solid #d8c9b3;background:#fff;color:#073b3a;font-size:11px;font-weight:800;text-align:center}
  .rr-mobile-menu-actions .whatsapp{grid-column:1/-1;background:#176b45;border-color:#176b45;color:#fff}
  html.rrh-mobile-menu-open,html.rrh-mobile-menu-open body{overflow:hidden!important}
  html.rrh-mobile-menu-open .rr-mobile-menu-backdrop{opacity:1;visibility:visible}
  html.rrh-mobile-menu-open .rr-mobile-menu-panel{transform:none}

  /* Prevent grids and long content from forcing horizontal scroll. */
  .rr-main,.sr-section,.rrh-shop-results,.rrh-content-card,.rrh-panel,.rr-buy-card-premium,.rr-purchase-panel,.rr-product-gallery-layout,.rr-product-main-image{min-width:0}
  .rrh-content-card,.rrh-panel,.rr-buy-card-premium,.rr-order-summary,.rrh-order-summary{overflow-wrap:anywhere;word-break:normal}
  iframe,video,svg,canvas{max-width:100%}
  table{max-width:100%}

  /* Homepage spacing and typography */
  .sr-section,.rrh-review-section,.rrh-story-shop{padding-left:var(--rrh-mobile-gutter)!important;padding-right:var(--rrh-mobile-gutter)!important}
  .sr-section-head,.rrh-story-shop-head{margin-bottom:22px!important}
  .sr-section-head h2,.rrh-price-intro h2,.rrh-review-section h2,.rrh-story-shop-head h2{font-size:clamp(34px,8vw,46px)!important;line-height:.98!important}
  .sr-section-head p,.rrh-price-intro p,.rrh-review-section p,.sr-story-copy p{line-height:1.7!important}
  .sr-head-row{gap:12px!important}

  /* Product cards: preserve the full saree/model composition on smaller screens. */
  .sr-product-card,.prod-card,.rr-related-card-premium{min-width:0!important}
  .sr-product-media,.prod-image-wrap,.rr-related-media{aspect-ratio:3/4!important;background:#fff!important}
  .sr-product-media img,.prod-image-wrap img,.rr-related-media img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center top!important;background:#fff!important}
  .sr-product-card:hover .sr-product-media img,.rr-related-card-premium:hover .rr-related-media img{transform:none!important}
  .sr-product-info,.prod-info,.rr-related-info{min-width:0!important}
  .sr-product-info h3,.prod-title,.rr-related-title{overflow-wrap:anywhere!important;word-break:normal!important;height:auto!important}
  .sr-quick,.rr-related-quick{display:none!important}

  /* Archive filters become compact cards instead of a long desktop sidebar. */
  .rrh-shop-shell{gap:18px!important}
  .rrh-shop-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:0!important;padding:0!important}
  .rrh-filter-title{grid-column:1/-1;padding:0 0 7px!important}
  .rrh-shop-filters details{border:1px solid #e5dac9!important;background:#fff;padding:0!important;border-radius:12px;min-width:0}
  .rrh-shop-filters summary{display:flex;align-items:center;min-height:44px;padding:0 12px;list-style:none;cursor:pointer}
  .rrh-shop-filters summary::-webkit-details-marker{display:none}
  .rrh-shop-filters summary::after{content:"+";margin-left:auto;color:#b78a43;font-size:18px}
  .rrh-shop-filters details[open] summary::after{content:"−"}
  .rrh-filter-links{padding:0 12px 12px!important}
  .rrh-filter-links a{display:block;padding:7px 0;border-top:1px solid #f0e8dc}
  .rrh-results-head{align-items:flex-start!important;gap:10px!important}

  /* Saree detail gallery: full-width stage first, swipeable thumbnail rail second. */
  .rr-saree-pdp-wrap{padding-left:var(--rrh-mobile-gutter)!important;padding-right:var(--rrh-mobile-gutter)!important;padding-bottom:42px!important}
  .rr-saree-pdp-shell{gap:16px!important}
  .rr-gallery-panel.rr-gallery-product-viewer{padding:8px!important;border-radius:16px!important;overflow:hidden!important}
  .rr-product-gallery-layout{display:flex!important;flex-direction:column!important;gap:9px!important}
  .rr-product-main-image{order:1!important;width:100%!important;min-height:0!important;height:auto!important;aspect-ratio:3/4!important;border-radius:12px!important;background:#fff!important}
  .rr-product-main-image>img{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:contain!important;object-position:center top!important;background:#fff!important}
  .rr-product-thumbs{order:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;width:100%!important;max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 2px 6px!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .rr-product-thumb{flex:0 0 64px!important;width:64px!important;min-width:64px!important;aspect-ratio:3/4!important;scroll-snap-align:start;border-radius:8px!important}
  .rr-product-thumb img{object-fit:cover!important;object-position:center top!important}
  .rr-product-image-open{right:10px!important;bottom:10px!important;width:40px!important;height:40px!important}
  .rr-gallery-hint{margin:7px 3px 2px!important;font-size:11px!important;line-height:1.45!important}
  .rr-gallery-video-stage,.rr-gallery-video-frame{width:100%!important;min-height:0!important;height:100%!important;aspect-ratio:3/4!important;border:0!important;background:#000!important}

  /* Purchase panel and controls */
  .rr-buy-card-premium{padding:16px!important;border-radius:17px!important}
  .rr-product-title,.rr-buy-top .rr-product-title{font-size:clamp(27px,7vw,34px)!important;line-height:1.04!important}
  .rr-price-row-premium{gap:8px!important;justify-content:center!important;flex-wrap:wrap!important}
  .rr-price-row-premium .rr-price{font-size:32px!important}
  .rr-section-block{padding-left:0!important;padding-right:0!important}
  .rr-key-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .rr-key-detail-card{padding:10px!important;border-radius:12px!important;min-width:0!important}
  .rr-key-detail-card strong{overflow-wrap:anywhere}
  .rr-blouse-size-pill{min-width:58px!important;min-height:44px!important;padding:10px 14px!important;font-size:14px!important}
  .rr-qty-cart{grid-template-columns:1fr 1fr!important;gap:9px!important}
  .rr-qty-box{grid-column:1/-1!important;height:50px!important}
  .rr-btn-primary,.rr-btn-secondary{height:50px!important;border-radius:14px!important;font-size:10px!important}
  .rr-trust-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;padding-left:0!important;padding-right:0!important}
  .rr-trust-card-premium{padding:9px 6px!important;border-radius:12px!important}.rr-trust-card-premium .ic{font-size:20px!important}.rr-trust-card-premium strong{font-size:11px!important}.rr-trust-card-premium span{font-size:9.5px!important}
  .rr-accordion-wrap{padding-left:0!important;padding-right:0!important}
  .rr-delivery-line{grid-template-columns:minmax(0,1fr) auto!important}.rr-delivery-line input{min-width:0!important}.rr-delivery-line button{min-height:48px!important}

  /* Reviews, footer, content pages */
  .rr-reviews-top,.rr-product-reviews-top{gap:18px!important}
  .rr-review-card,.rrh-home-reviews article{min-width:0}
  .rr-footer-cta{align-items:flex-start!important}
  .rr-footer-cta .rr-btn{min-height:44px!important}
  .rrh-content-card{padding:22px!important}
  .rrh-content-card h2{font-size:30px!important}
  .rrh-content-card p,.rrh-content-card li{font-size:14px!important;line-height:1.75!important}

  /* Forms, account, cart and checkout */
  input,select,textarea{max-width:100%}
  .rrh-panel input,.rrh-panel select,.rrh-checkout-form input,.rrh-checkout-form select,.rrh-checkout-form textarea,.rr-delivery-line input{font-size:16px!important}
  .rrh-auth-shell,.rrh-account-shell,.rrh-checkout-shell,.rrh-payment-shell,.rrh-auth-gate{padding-left:var(--rrh-mobile-gutter)!important;padding-right:var(--rrh-mobile-gutter)!important}
  .rrh-panel,.rrh-order-summary{padding:18px!important;border-radius:16px!important}
  .rrh-cart-drawer{width:min(94vw,520px)!important}
  .rrh-cart-head{padding:18px!important}.rrh-cart-head h2{font-size:32px!important}.rrh-cart-items{padding:4px 18px!important}.rrh-cart-summary{padding:18px!important}
  .rrh-cart-item{grid-template-columns:62px minmax(0,1fr)!important;gap:12px!important}.rrh-cart-item-image{width:62px!important;height:80px!important}.rrh-cart-item-copy{min-width:0}.rrh-cart-item-copy strong{overflow-wrap:anywhere}
  .rrh-cart-item-actions{grid-column:2!important;display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;gap:10px!important}
  .rrh-bank-grid{grid-template-columns:1fr!important}.rrh-bank-grid .wide{grid-column:auto!important}
}

@media (max-width:640px){
  :root{--rrh-mobile-gutter:14px}
  .rr-topbar-inner{padding:6px 14px!important;min-height:28px!important}
  .rr-topbar-left{min-width:0;width:100%;justify-content:center!important}.rr-topbar-left>span:first-child{display:block!important;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px!important}.rr-topbar-left>span+span{display:none!important}
  .rr-brand-copy strong{font-size:17px!important}.rr-brand-copy small{font-size:7.5px!important}
  .rr-nav-actions .rr-icon-link[aria-label="Cart"]{display:inline-grid!important}
  .rr-nav-actions .rr-btn-whatsapp{display:none!important}

  /* Home promotional hero stays readable without covering the saree. */
  .rrh-offer-track{min-height:500px!important}
  .rrh-offer-slide img{object-position:center top!important}
  .rrh-offer-quickbar{left:10px!important;right:10px!important;width:auto!important;grid-template-columns:minmax(0,1fr) auto!important;gap:0!important;overflow:hidden!important}
  .rrh-offer-quickprice{display:none!important}.rrh-offer-quicktitle{min-width:0!important}.rrh-offer-quicktitle strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rrh-offer-quickbar .rrh-offer-buy{min-width:112px!important}

  .sr-product-grid,.prod-grid,.rr-related-grid-premium,.rrh-shop-results .sr-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .sr-product-info{padding:10px 2px 3px!important}.prod-info,.rr-related-info{padding:10px!important}
  .sr-product-info h3,.prod-title,.rr-related-title{font-size:12.5px!important;line-height:1.4!important;min-height:0!important;margin-bottom:5px!important}
  .sr-product-meta,.rr-related-type{font-size:8px!important}.sr-price strong,.prod-price,.rr-related-new{font-size:15px!important}
  .sr-sale-badge,.sr-new-badge,.rr-related-badge{top:6px!important;left:6px!important;padding:4px 6px!important;font-size:7.5px!important}

  .rrh-home-category-grid,.rrh-price-grid,.rrh-directory-grid{gap:8px!important}
  .rrh-home-category-card{min-height:145px!important;padding:13px!important}.rrh-home-category-card h3{font-size:21px!important}.rrh-home-category-card small{top:12px!important;left:12px!important}
  .rrh-price-grid a{min-height:130px!important;padding:14px 11px!important}.rrh-price-grid strong{font-size:21px!important}
  .rrh-directory-card{min-height:96px!important;padding:12px!important}.rrh-directory-card span{font-size:19px!important}

  .rr-saree-pdp-hero.rr-saree-pdp-hero-compact{padding:12px 14px 10px!important}
  .rr-saree-eyebrow{font-size:8px!important;padding:6px 9px!important;margin-bottom:9px!important}
  .rr-product-hero-title{font-size:clamp(21px,6.4vw,28px)!important}
  .rr-saree-pdp-copy-center p{font-size:11.5px!important;line-height:1.5!important;margin-bottom:8px!important}
  .rr-saree-pdp-trends{display:none!important}
  .rr-saree-breadcrumb{font-size:10px!important;white-space:nowrap!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}

  .rr-key-details-grid{grid-template-columns:1fr!important}
  .rr-trust-row{grid-template-columns:1fr!important}.rr-trust-card-premium{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;column-gap:9px!important;text-align:left!important;align-items:center!important}.rr-trust-card-premium .ic{grid-row:1/3;margin:0!important}.rr-trust-card-premium strong,.rr-trust-card-premium span{grid-column:2!important}
  .rr-delivery-line{grid-template-columns:1fr!important}.rr-delivery-line button{min-height:46px!important}
  .rr-review-bar-row{grid-template-columns:62px minmax(0,1fr) 28px!important}

  .rrh-shop-filters{grid-template-columns:1fr 1fr!important}
  .rrh-results-head h2{font-size:27px!important}.rrh-results-head small{white-space:nowrap}
  .rrh-collection-strip{gap:18px!important;padding-left:14px!important;padding-right:14px!important;-webkit-overflow-scrolling:touch}

  .rr-footer-main{gap:20px!important}.rr-footer-main h4{font-size:20px!important}.rr-footer-main p,.rr-footer-list a{font-size:12px!important}
  .rrh-account-head h1,.rrh-auth-gate h1{font-size:38px!important}
}

@media (max-width:420px){
  .rr-nav{padding-left:12px!important;padding-right:12px!important}
  .rr-brand-badge{width:36px!important;height:36px!important;font-size:15px!important}.rr-brand-copy strong{font-size:15.5px!important}.rr-brand-copy small{display:none!important}
  .rr-mobile-menu-toggle,.rr-nav-actions .rr-icon-link{width:38px!important;height:38px!important;min-width:38px!important}
  .rrh-shop-filters{grid-template-columns:1fr!important}
  .rrh-home-category-grid,.rrh-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .sr-product-grid,.prod-grid,.rr-related-grid-premium,.rrh-shop-results .sr-product-grid{gap:8px!important}
  .sr-product-info h3,.prod-title,.rr-related-title{font-size:11.5px!important}
  .rr-product-thumb{flex-basis:58px!important;width:58px!important;min-width:58px!important}
  .rr-qty-cart{grid-template-columns:1fr!important}.rr-qty-box{grid-column:auto!important}.rr-btn-primary,.rr-btn-secondary{width:100%!important}
  .rrh-cart-drawer{width:100%!important}
}

@media (max-width:359px){
  .sr-product-grid,.prod-grid,.rr-related-grid-premium,.rrh-shop-results .sr-product-grid{grid-template-columns:1fr!important}
  .rrh-home-category-grid,.rrh-price-grid,.rrh-directory-grid{grid-template-columns:1fr!important}
  .rr-brand-copy strong{max-width:145px!important}
}

/* Respect reduced-motion preferences across browsers that support it. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
