/* Shared small-screen layout; horizontal galleries retain native scrolling. */
@media(max-width:767px){
 html{scroll-padding-top:76px;-webkit-text-size-adjust:100%}
 body{overflow-wrap:break-word}
 body :is(main,#content,.site-main,.elementor-widget-container,.pf-product-sections,.pf-section-body,.pf-library,.pf-rewards,.pf-wallet){min-width:0}
 body :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=search],select,textarea){font-size:16px!important;max-width:100%;box-sizing:border-box}
 body :is(.woocommerce-message,.woocommerce-error,.woocommerce-info){padding:16px!important;line-height:1.9;font-size:13px;overflow-wrap:anywhere}
 body :is(.pf-product-prose,.pf-news-article,.pf-article-body,.pf-person-glass) :is(img,video,iframe){max-width:100%;height:auto}
 body :is(.pf-product-prose,.pf-news-article,.pf-article-body) iframe{width:100%;aspect-ratio:16/9}
 body :is(pre,.pf-license-key){max-width:100%;overflow-x:auto}
 body :is(.pf-notification-panel,.pf-account-menu,#pf-support-panel){max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 150px);overflow-y:auto;overscroll-behavior:contain}
 body .pf-account-menu a{min-height:44px;display:flex;align-items:center;padding:10px 14px}
 body .pf-header-sweep::before{animation:none!important}
 body .pf-catalog{padding-inline:16px;margin-top:24px}
 body .pf-catalog-heading h1{font-size:27px}
 body .pf-catalog-grid{gap:24px 14px}
 html[data-pf-theme] body .pf-catalog-filters select{font-size:14px!important;min-width:0!important;padding-inline-start:95px!important}
 body .pf-shelf-cart{min-width:44px!important;min-height:44px!important}
 body .pf-shelf-caption{bottom:66px}
 #pf-cinematic-slider{height:max(700px,100svh);max-height:900px}
 #pf-cinematic-slider .pf-cinema-directions{bottom:17%;left:3%;right:3%;gap:12px}
 #pf-cinematic-slider .pf-cinema-directions button{width:47%;max-width:47%;min-width:0;min-height:62px;gap:7px;padding:10px 8px}
 #pf-cinematic-slider .pf-cinema-directions button>span:has(small){min-width:0;max-width:100%;overflow:visible}
 #pf-cinematic-slider .pf-cinema-directions b{white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.5}
 #pf-cinematic-slider .pf-cinema-cta{min-height:46px}
 #pf-cinematic-slider .pf-cinema-copy{bottom:29%;inset-inline-end:5%;inset-inline-start:22%}
 body .marquee-track>.e-con{width:190px!important;flex-basis:190px!important;max-width:190px!important;padding:8px!important}
 body .marquee-track>.e-con>.elementor-widget-image{height:110px!important}
 body .marquee-track>.e-con>.elementor-widget-heading:has(h2){height:54px!important}
 body .marquee-track>.e-con .elementor-button{min-height:44px!important;display:inline-flex;align-items:center;justify-content:center}
 body .pf-product-layout{padding-inline:12px;gap:16px}
 body .pf-product-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;gap:8px}
 body .pf-product-nav a{min-width:0;min-height:44px;font-size:12px;padding:9px 8px!important}
 body .pf-product-section{padding:18px 14px;scroll-margin-top:82px}
 body .pf-section-header h2{font-size:18px;line-height:1.7}
 body .pf-install-lock{padding:18px 14px}
 body .pf-install-lock strong{font-size:16px}
 body .pf-install-locked{min-height:290px}
 body .pf-product-layout #review_form_wrapper :is(.comment-form-author,.comment-form-email){width:100%;float:none;margin-inline:0}
 body .pf-product-layout .stars a{min-width:40px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 /* Keep all account sections available without a nine-row wall of buttons. */
 body.pf-account-page .elementor-element-257dee4 ul{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
 body.pf-account-page .elementor-element-257dee4 .elementor-icon-list-item{margin:0!important;min-width:0}
 body.pf-account-page:is(#pf-account-design,.pf-account-page) .elementor-1620 .elementor-widget-icon-list a{width:100%;min-height:48px;gap:7px;padding:10px!important;font-size:12px!important;line-height:1.7}
 body.pf-account-page .elementor-icon-list-text{min-width:0;white-space:normal}
 body.pf-account-page .pf-account-nav-icon{flex:0 0 22px}
 body.pf-account-page .elementor-element-b3151c4{padding:16px 12px!important}
 body .pf-library-overview{margin-bottom:24px}
 body .pf-library-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
 body .pf-library-cover h3{font-size:11px!important;padding:35px 8px 10px}
 body .pf-library-action{min-height:44px;font-size:11px;line-height:1.6;padding:8px 6px}
 body .pf-library header p{font-size:12px;line-height:1.9}
 body .pf-library h2{font-size:21px}
 body .pf-reward-stats{grid-template-columns:minmax(0,1fr)}
 body .pf-reward-activities{grid-template-columns:minmax(0,1fr)}
 body .pf-reward-help summary{padding:14px;font-size:13px}
 body .pf-reward-help details p{padding:14px;font-size:13px}
 body .pf-wallet-card{width:100%;max-width:100%;min-height:220px;padding:22px!important}
 body .pf-wallet-layout{grid-template-columns:minmax(0,1fr)!important}
 body :is(.pf-license-product,.pf-receipt-panel,.pf-receipt-overview){padding:16px!important;min-width:0;max-width:100%;box-sizing:border-box}
 body .pf-license-key-control{display:flex;flex-wrap:wrap;gap:10px;min-width:0}
 body .pf-license-key-control input{min-width:0;width:100%}
 body.woocommerce-cart .coupon{display:flex;flex-wrap:wrap;gap:10px;width:100%}
 body.woocommerce-cart .coupon :is(input,.button){width:100%!important;margin:0!important;min-height:46px}
 body.woocommerce-cart :is(.cart_totals,.e-cart-totals){width:100%;min-width:0}
 body.woocommerce-checkout :is(.form-row-first,.form-row-last){width:100%!important;float:none!important;grid-column:1/-1}
 body.woocommerce-checkout .select2-container{max-width:100%;width:100%!important}
 body.woocommerce-checkout .select2-selection{min-height:46px}
 body.woocommerce-checkout #payment .wc_payment_method label{display:inline-block;min-height:44px;line-height:2.1}
 body .pf-footer-shell{padding-inline:18px!important;padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
 body .pf-footer-grid{grid-template-columns:minmax(0,1fr)!important;gap:26px}
 body .pf-footer-links{gap:8px 16px;flex-wrap:wrap}
 body .pf-footer-links a{min-height:44px;display:inline-flex;align-items:center}
 body .pf-footer-social a{min-width:44px;min-height:44px}
 body #pf-mobile-nav{bottom:calc(10px + env(safe-area-inset-bottom));max-width:calc(100vw - 20px)}
 body .pf-auth-panel{width:calc(100% - 24px);max-width:440px;margin-inline:auto;padding:22px 18px!important;box-sizing:border-box}
 body :is(.pf-news-article,.pf-person-glass){padding:20px 16px}
}
@media(max-width:359px){
 body .pf-catalog{padding-inline:12px}
 body .pf-catalog-grid{gap:20px 10px}
 body .pf-catalog-card .pf-shelf-name-fa,body .pf-catalog-card .pf-shelf-name-en{font-size:10px}
 body .pf-catalog-card .pf-shelf-cart{min-width:40px!important;min-height:40px!important}
 body .pf-library-action{font-size:10px}
 body .pf-library-filters select{max-width:100%!important}
}

@media(max-width:767px){
 body.woocommerce-cart .woocommerce-cart-form tr.cart_item{grid-template-columns:64px minmax(0,1fr)!important;gap:0 12px!important}
 html[data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme] body.woocommerce-cart .woocommerce-cart-form tr.cart_item .product-remove{grid-column:1/-1!important;grid-row:1!important;justify-self:end;padding:0!important}
 html[data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme] body.woocommerce-cart .woocommerce-cart-form tr.cart_item .product-thumbnail{grid-column:1!important;grid-row:2!important;align-self:start}
 html[data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme] body.woocommerce-cart .woocommerce-cart-form tr.cart_item .product-name{grid-column:2!important;grid-row:2!important;font-size:13px!important;line-height:1.9!important}
 body.woocommerce-cart a.remove{width:44px;height:44px}
 body.woocommerce-cart .elementor-173{margin-top:28px!important}
 body.pf-login{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
}

@media(max-width:767px){
 body .marquee-wrapper>.e-con-inner{display:flex!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100%;scroll-snap-type:x proximity;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y;direction:rtl}
 body .marquee-wrapper .marquee-track{animation:none!important;transform:none!important;width:max-content!important;min-width:max-content!important;flex:none!important;gap:10px!important}
 body .marquee-wrapper .marquee-track~.marquee-track{display:none!important}
 body .marquee-wrapper .marquee-track>.e-con{scroll-snap-align:start}
}
