@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');
:root{--bg:#0b0c0e;--panel:#121416;--panel2:#191b1e;--gold:#c9a45d;--gold2:#e1c27e;--text:#f4f0e8;--muted:#99958b;--line:#2b2b29}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:'Vazirmatn',Tahoma,sans-serif;line-height:1.8}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a{transition:.25s}a:hover{color:var(--gold2)}.site-header{height:88px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#0b0c0eed;position:sticky;top:0;z-index:10;backdrop-filter:blur(14px)}.logo{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:800;letter-spacing:1px;line-height:1.15}.logo b{color:var(--gold)}.logo small{display:block;font:9px Arial;letter-spacing:3px;color:var(--muted);margin-top:5px}.logo-mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--gold);color:var(--gold);font:700 25px Georgia;transform:rotate(45deg)}.logo-mark:first-letter{transform:rotate(-45deg)}nav,.header-actions{display:flex;align-items:center;gap:27px;font-size:13px;color:#c7c2b7}.header-actions{gap:18px}.header-actions sup{color:var(--gold)}.login-link{border:1px solid #665331;padding:8px 13px;border-radius:4px}.menu-toggle{display:none;background:none;color:var(--gold);border:0;font-size:24px}.hero{min-height:540px;padding:55px 9%;display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:30px;overflow:hidden;background:radial-gradient(ellipse at 75% 45%,#292115 0,transparent 48%)}.hero-copy{position:relative;z-index:1}.eyebrow{font:11px Arial;letter-spacing:3px;color:var(--gold);display:block;margin-bottom:15px}.hero h1{font-size:clamp(42px,6vw,76px);line-height:1.25;margin:0 0 18px;font-weight:800}.hero h1 em,h1 em,h2 em{color:var(--gold);font-style:normal}.hero p{color:#aaa69d;max-width:440px;margin-bottom:30px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:12px;padding:12px 23px;border:0;border-radius:3px;cursor:pointer;font-weight:700;font-size:13px}.gold{background:linear-gradient(110deg,#b58b43,#e0c17c);color:#17130b}.gold:hover{color:#090909;filter:brightness(1.1);transform:translateY(-2px)}.outline{border:1px solid #8c713e;color:var(--gold2);background:transparent}.hero-art{height:420px;position:relative;display:grid;place-items:center}.hero-art img{width:100%;max-width:610px;position:relative;z-index:1;filter:drop-shadow(0 25px 40px #000)}.glow{position:absolute;width:360px;height:360px;border-radius:50%;background:#c69b4b20;filter:blur(60px)}.hero-tag{position:absolute;right:0;bottom:20px;border:1px solid #b58b43;padding:12px 17px;font:10px Arial;letter-spacing:2px;color:var(--gold);z-index:2}.hero-tag b{font-size:17px}.trust-row{border-block:1px solid var(--line);display:flex;justify-content:space-around;gap:15px;padding:20px 5%;color:#b9b3a7;font-size:13px}.trust-row div:first-letter{color:var(--gold)}.section{padding:75px 7%;max-width:1500px;margin:auto}.section-head{display:flex;align-items:end;justify-content:space-between}.section h2,.section h1{font-size:34px;margin:0 0 24px}.muted{color:var(--muted);font-size:13px}.chips{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0 28px}.chip{border:1px solid var(--line);padding:6px 15px;border-radius:30px;color:#bcb7ac;font-size:12px}.chip:hover,.chip.active{border-color:var(--gold);color:var(--gold)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.product-card{background:var(--panel);border:1px solid #222426;min-width:0;transition:.3s}.product-card:hover{transform:translateY(-5px);border-color:#806538;box-shadow:0 16px 35px #0006}.product-image{height:215px;background:radial-gradient(circle at 50% 45%,#393020,#171819 68%);display:grid;place-items:center;position:relative;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:contain;transition:.4s}.product-card:hover .product-image img{transform:scale(1.06)}.product-badge{position:absolute;right:12px;top:12px;background:#c9a45d;color:#17130b;padding:3px 9px;font-size:10px;z-index:1}.product-info{padding:16px}.product-info small{color:var(--gold);font-size:11px}.product-info h3{font-size:15px;margin:5px 0 13px}.product-bottom{display:flex;justify-content:space-between;align-items:center;color:var(--gold2);font-size:13px}.icon-btn{border:1px solid #5e4a29;width:30px;height:30px;display:grid;place-items:center;border-radius:50%}.center{text-align:center;margin-top:35px}.promo{margin:20px 7% 80px;padding:42px 6%;background:linear-gradient(110deg,#292216,#171719);border:1px solid #5e4927;display:flex;justify-content:space-between;align-items:center;gap:20px}.promo h2{margin:0;font-size:28px}.promo p{color:var(--muted);margin-bottom:0}.footer{background:#101113;border-top:1px solid var(--line);padding:50px 7% 18px}.footer-main{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:35px}.footer-main>div{display:flex;flex-direction:column;gap:10px;color:var(--muted);font-size:13px}.footer-main b{color:#eee;margin-bottom:8px}.footer-main p{margin:5px 0}.copyright{text-align:center;border-top:1px solid var(--line);padding-top:16px;margin-top:35px;color:#777;font-size:11px}.page-banner{text-align:center;padding:65px 20px;background:radial-gradient(ellipse at center,#2b2418,#0b0c0e 70%)}.page-banner h1{font-size:42px;margin:0}.page-banner p{color:var(--muted)}.searchbar{display:flex;gap:10px;max-width:650px;margin:0 0 30px}.searchbar input{flex:1}.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}.detail-image{background:#171819;border:1px solid var(--line);min-height:390px;display:grid;place-items:center}.detail-image img{width:100%;max-height:480px;object-fit:contain}.detail-copy h1{font-size:38px;margin:0 0 10px}.detail-copy p{color:#aaa;line-height:2}.detail-price{font-size:25px;color:var(--gold2);font-weight:800;margin:20px 0}.stock{color:#a6c18b!important}.buy-row{display:flex;gap:10px;margin:20px 0}.buy-row input{width:75px}.auth-wrap{min-height:70vh;display:grid;place-items:center;padding:45px 15px;background:radial-gradient(ellipse at 50% 20%,#292216,#0b0c0e 65%)}.auth-card{width:min(100%,460px);background:#141618;border:1px solid #393126;padding:32px;display:flex;flex-direction:column;gap:10px}.auth-card h1{margin:0;font-size:30px}.auth-card p{color:var(--muted);font-size:13px;margin:0 0 12px}.auth-card label{font-size:12px;color:#c7c0b2;margin-top:8px}.auth-card small{color:var(--muted);text-align:center;margin-top:10px}.auth-card small a{color:var(--gold)}input,textarea,select{background:#0d0f10;border:1px solid #353638;color:#f4f0e8;padding:11px 13px;border-radius:3px;outline:none;width:100%}input:focus,textarea:focus,select:focus{border-color:var(--gold)}.full{width:100%;margin-top:15px}.notice{padding:10px 7%;background:#2d281b;color:#e4c67e;text-align:center;font-size:13px}.empty{padding:35px;text-align:center;background:var(--panel);color:var(--muted);border:1px dashed #50452f}.empty a{color:var(--gold)}.account-page h1{font-size:36px}.account-links{display:flex;gap:15px;margin:25px 0 45px;flex-wrap:wrap}.account-tile{width:150px;height:100px;background:var(--panel);border:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--gold);font-size:22px}.account-tile b{font-size:12px;color:#eee}.table-wrap{overflow-x:auto;border:1px solid var(--line)}table{width:100%;border-collapse:collapse;min-width:600px;font-size:13px}th,td{text-align:right;padding:14px;border-bottom:1px solid var(--line)}th{color:var(--gold);background:#171819}td{color:#ccc}.cart-product{display:flex;align-items:center;gap:12px}.cart-product img{width:65px;height:50px;object-fit:contain;background:#222}.cart-total{margin:25px 0 0 auto;max-width:350px;display:grid;grid-template-columns:1fr auto;gap:15px;align-items:center}.cart-total b{color:var(--gold);font-size:20px}.cart-total a{grid-column:1/-1}.text-btn{background:none;border:0;color:#d38c77;cursor:pointer}.checkout{display:flex;justify-content:center}.checkout .auth-card{width:min(100%,560px)}.admin-stats{display:flex;gap:15px;margin:25px 0}.admin-stats div{background:var(--panel);border:1px solid var(--line);padding:18px 30px;display:flex;flex-direction:column}.admin-stats b{font-size:25px;color:var(--gold)}.admin-stats span{font-size:12px;color:var(--muted)}.admin-grid{display:grid;grid-template-columns:1fr 1.5fr;gap:30px;margin:35px 0}.admin-grid h2,.admin h2{font-size:20px}.inline-form{display:flex;gap:5px;min-width:220px}.tiny{padding:6px 10px;font-size:11px}.error{color:#ff9b8d!important}.menu-open nav{display:flex}
@media(max-width:950px){nav{gap:12px}.header-actions{gap:10px}.product-grid{grid-template-columns:repeat(3,1fr)}.hero{padding-inline:6%}.admin-grid{grid-template-columns:1fr}}@media(max-width:700px){.site-header{height:70px;padding:0 4%}.site-header nav{display:none;position:absolute;top:70px;right:0;left:0;background:#111;padding:20px;flex-direction:column;align-items:flex-start;border-bottom:1px solid var(--line)}.header-actions{font-size:11px;gap:9px}.header-actions>a:first-child{display:none}.menu-toggle{display:block}body.menu-open nav{display:flex}.logo{font-size:16px}.logo-mark{width:34px;height:34px}.hero{grid-template-columns:1fr;padding:55px 7% 20px;text-align:center}.hero-copy p{margin-inline:auto}.hero-art{height:270px}.hero-art img{max-height:280px}.hero-tag{right:5%;bottom:5px}.trust-row{display:grid;grid-template-columns:1fr 1fr;text-align:center;font-size:11px}.section{padding:50px 5%}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-image{height:155px}.product-info{padding:11px}.product-info h3{font-size:13px}.product-info small{font-size:10px}.product-bottom{font-size:11px}.promo{margin:10px 5% 50px;padding:25px;flex-direction:column;align-items:flex-start}.footer-main{grid-template-columns:1fr 1fr}.product-detail{grid-template-columns:1fr;gap:25px}.detail-image{min-height:260px}.detail-copy h1{font-size:29px}.page-banner h1{font-size:34px}.section h2,.section h1{font-size:28px}.auth-card{padding:24px}.admin-stats{flex-wrap:wrap}.admin-stats div{flex:1;min-width:90px;padding:12px}.searchbar{flex-direction:column}}
/* Storefront layout inspired by modern Iranian ecommerce catalogs */
.top-strip{height:34px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;background:#08090a;color:#aaa397;font-size:10px;border-bottom:1px solid #242321}.top-strip a{color:var(--gold2)}.store-header{height:auto;min-height:82px;padding:12px 6%;display:grid;grid-template-columns:auto minmax(180px,1fr) auto;column-gap:35px;row-gap:12px;align-items:center}.header-search{display:flex;max-width:560px;width:100%;height:43px;border:1px solid #37332a;background:#111315}.header-search input{border:0;background:transparent;padding-inline:15px}.header-search button{width:52px;border:0;background:var(--gold);color:#17130b;font-size:25px;cursor:pointer}.store-header .header-actions{gap:18px;white-space:nowrap}.store-header .header-actions a{font-size:12px}.store-header .header-actions sup{font-size:10px}.store-nav{grid-column:1/-1;display:flex;align-items:center;gap:32px;padding:10px 0 0;border-top:1px solid #292824;color:#c9c2b4;font-size:12px}.store-nav a:first-child{color:var(--gold2)}.store-hero{background:radial-gradient(ellipse at 70% 30%,#382b18 0,transparent 43%),linear-gradient(110deg,#101112,#171511);border-bottom:1px solid #332a1b}.hero-main{max-width:1450px;margin:auto;min-height:440px;padding:35px 8%;display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:25px}.hero-copy h1{font-size:clamp(42px,5.4vw,68px);line-height:1.35;margin:0 0 15px;font-weight:900}.hero-copy h1 em{color:var(--gold2);font-style:normal}.hero-copy p{color:#b9b1a4;max-width:450px;margin:0 0 25px;font-size:14px}.hero-visual{height:355px;position:relative;display:grid;place-items:center}.hero-visual img{width:100%;max-width:570px;max-height:360px;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 25px 35px #0009)}.hero-orbit{position:absolute;width:310px;height:310px;border:1px solid #b58b4333;border-radius:50%;box-shadow:0 0 90px #c49a4a22}.hero-stamp{position:absolute;left:2%;bottom:15px;border:1px solid #a8864a;color:#d6b66e;padding:9px 13px;font:10px Arial;letter-spacing:2px;z-index:2}.hero-stamp b{font-size:14px}.hero-benefits{display:flex;justify-content:space-around;gap:15px;padding:15px 5%;border-top:1px solid #302a20;color:#c9c0b0;font-size:12px}.hero-benefits span:first-letter{color:var(--gold)}.store-section{max-width:1500px;margin:auto;padding:55px 7%}.store-section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:25px}.store-section-head h2{font-size:31px;margin:0}.store-section-head h2 em{color:var(--gold2);font-style:normal}.text-link{font-size:12px;color:var(--gold2)}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.category-tile{min-height:88px;display:flex;align-items:center;gap:15px;padding:16px;background:linear-gradient(110deg,#1b1b19,#121416);border:1px solid #34302a}.category-tile:hover{border-color:#a17b3d;transform:translateY(-2px)}.category-symbol{width:48px;height:48px;display:grid;place-items:center;border:1px solid #786039;color:var(--gold2);font-size:23px}.category-tile b,.category-tile small{display:block}.category-tile b{font-size:13px}.category-tile small{font-size:10px;color:var(--muted);margin-top:4px}.category-tile i{font-style:normal;color:var(--gold);margin-right:auto}.product-section{padding-top:25px}.store-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.store-product-card{background:#151719;border:1px solid #292a29;min-width:0;transition:.25s}.store-product-card:hover{border-color:#8e6c36;transform:translateY(-4px);box-shadow:0 12px 30px #0006}.store-product-image{height:210px;position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at center,#3a3020,#171819 72%)}.store-product-image img{width:100%;height:100%;object-fit:contain;padding:12px;transition:.3s}.store-product-card:hover .store-product-image img{transform:scale(1.05)}.store-label{position:absolute;top:10px;right:10px;z-index:1;background:#c9a45d;color:#17130b;font-size:9px;padding:4px 9px}.store-product-info{padding:14px}.store-product-info small{font-size:10px;color:var(--gold)}.store-product-info h3{font-size:13px;line-height:1.8;min-height:47px;margin:5px 0 12px}.store-product-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.store-product-foot b{font-size:13px;color:var(--gold2)}.store-product-foot a{font-size:10px;color:#c9c0b0}.store-product-foot a span{color:var(--gold)}.stock-note{font-size:10px;color:#8fa77a;border-top:1px solid #2a2a27;padding-top:8px;margin-top:10px}.wide-promo{margin:15px 7% 50px;padding:25px 6%;min-height:220px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(100deg,#292216,#141617);border:1px solid #5b4829;overflow:hidden}.wide-promo h2{font-size:28px;margin:0 0 8px}.wide-promo p{color:#aaa397;margin:0 0 18px;font-size:13px}.wide-promo img{width:34%;max-height:200px;object-fit:contain;filter:drop-shadow(0 15px 20px #0008)}
@media(max-width:950px){.store-header{column-gap:18px}.store-header .header-actions a span{display:none}.store-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-main{padding-inline:6%}}
@media(max-width:700px){.top-strip{padding:0 4%;font-size:9px}.top-strip span:nth-child(2){display:none}.store-header{grid-template-columns:1fr auto;gap:10px;padding:10px 4%}.store-header .logo{grid-column:1}.header-search{grid-column:1/-1;grid-row:2;max-width:none;height:39px}.store-header .header-actions{grid-column:2;grid-row:1;gap:12px}.store-header .header-actions a{font-size:17px}.store-header .header-actions a span{display:none}.store-header .login-link{font-size:10px!important;padding:5px 7px}.store-nav{grid-column:1/-1;grid-row:3;display:none;flex-direction:column;align-items:stretch;gap:0;padding:8px 0}.store-nav a{padding:9px 5px;border-bottom:1px solid #282722}.menu-toggle{display:block;position:absolute;left:4%;top:20px}.store-header nav{display:none}body.menu-open .store-nav{display:flex}.hero-main{grid-template-columns:1fr;text-align:center;padding:38px 6% 10px;gap:0}.hero-copy p{margin-inline:auto}.hero-visual{height:240px}.hero-visual img{max-height:240px}.hero-orbit{width:210px;height:210px}.hero-stamp{left:4%;bottom:0}.hero-benefits{display:grid;grid-template-columns:1fr 1fr;text-align:center;font-size:10px}.store-section{padding:38px 5%}.store-section-head h2{font-size:25px}.category-grid{grid-template-columns:1fr 1fr;gap:8px}.category-tile{padding:10px;gap:8px;min-height:75px}.category-symbol{width:38px;height:38px;font-size:18px}.category-tile b{font-size:11px}.store-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.store-product-image{height:155px}.store-product-info{padding:10px}.store-product-info h3{font-size:11px;min-height:43px}.store-product-foot b{font-size:11px}.store-product-foot a{font-size:9px}.wide-promo{margin:5px 5% 35px;padding:20px;min-height:170px}.wide-promo h2{font-size:20px}.wide-promo img{width:40%}}

/* Product discounts and richer product specifications */
.detail-price del,.product-bottom del,.store-product-foot del{display:inline-block;color:#99958b;font-size:.78em;font-weight:400;margin-inline-end:6px}
.discount-pill{display:inline-block;background:#7b2925;color:#fff;padding:3px 9px;border-radius:4px;font-size:12px;vertical-align:middle}
.product-short{color:#e1c27e!important;font-weight:600}
.product-specs{margin:22px 0;padding:16px;background:#141618;border:1px solid #393126;border-radius:8px}
.product-specs h3{margin:0 0 10px;color:var(--gold2);font-size:17px}
.product-specs>div{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:8px 0;border-bottom:1px solid #2b2b29;font-size:13px}
.product-specs>div:last-child{border-bottom:0}
.product-specs span{color:#aaa397}.product-specs b{color:#eee;font-weight:500}.product-specs .spec-extra{display:block}.product-specs .spec-extra b{display:block;margin-top:5px;line-height:2}
@media(max-width:560px){.product-specs>div{grid-template-columns:100px 1fr}.detail-price{font-size:21px}}

/* PAPCO Desk visual polish + product photo gallery */
:root{scroll-behavior:smooth}.btn,.admin-button,.store-product-card,.category-tile,.header-actions a,.store-nav a{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease}.btn{position:relative;overflow:hidden}.btn:active,.admin-button:active{transform:scale(.97)}.btn::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 25%,#ffffff28 48%,transparent 70%);transform:translateX(-120%);transition:transform .6s ease}.btn:hover::after{transform:translateX(120%)}.store-product-card{border-radius:14px;overflow:hidden}.store-product-card:hover{transform:translateY(-7px);box-shadow:0 18px 38px #0008,0 0 0 1px #a8864a55}.store-product-image img{transition:transform .55s cubic-bezier(.2,.7,.2,1),filter .3s}.store-product-card:hover .store-product-image img{transform:scale(1.075);filter:brightness(1.08)}.store-label{border-radius:20px;box-shadow:0 5px 15px #0004}.category-tile{border-radius:13px}.category-tile:hover{transform:translateY(-4px);box-shadow:0 12px 24px #0005}.product-gallery{min-width:0}.product-gallery .detail-image{position:relative;overflow:hidden;border-radius:18px;background:radial-gradient(ellipse at 50% 45%,#40331f,#141516 72%);border:1px solid #55452b;min-height:390px;display:grid;place-items:center}.product-gallery .detail-image img{width:100%;height:100%;max-height:520px;object-fit:contain;padding:24px;transition:opacity .2s,transform .4s}.product-gallery .detail-image img.switching{opacity:.35;transform:scale(.97)}.gallery-arrow{position:absolute;top:50%;z-index:3;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:1px solid #d2b16c88;background:#111c;color:#f0d18a;font-size:28px;cursor:pointer;backdrop-filter:blur(8px);transition:.2s}.gallery-arrow:hover{background:#d0ad65;color:#17130b}.gallery-prev{right:14px}.gallery-next{left:14px}.gallery-counter{position:absolute;bottom:14px;left:14px;padding:5px 11px;border-radius:20px;background:#090909bb;color:#f1d18a;font-size:11px}.gallery-thumbs{display:flex;gap:10px;overflow-x:auto;padding:12px 2px 4px}.gallery-thumb{flex:0 0 78px;height:68px;padding:3px;border:1px solid #49402f;background:#151515;border-radius:10px;cursor:pointer;opacity:.72;transition:.2s}.gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:7px}.gallery-thumb.active,.gallery-thumb:hover{opacity:1;border-color:#e0bd70;box-shadow:0 0 0 2px #d1ac5b33}.product-detail{align-items:start}.detail-copy{padding:12px 5px}.detail-copy h1{line-height:1.5}.buy-row .btn{box-shadow:0 8px 22px #b58b4330}.reveal{opacity:0;transform:translateY(18px);transition:opacity .65s ease,transform .65s ease}.reveal.is-visible{opacity:1;transform:none}.toast-pop{position:fixed;bottom:22px;left:22px;z-index:9999;background:#171713;border:1px solid #b89552;color:#f4e2b8;padding:12px 18px;border-radius:12px;box-shadow:0 12px 35px #0009;animation:toast-in .3s ease}@keyframes toast-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@media(max-width:700px){.product-gallery .detail-image{min-height:270px}.product-gallery .detail-image img{max-height:340px;padding:12px}.gallery-thumb{flex-basis:66px;height:58px}.gallery-arrow{width:34px;height:34px}}

/* Responsive refinement: PAPCO Desk */
html,body{max-width:100%;overflow-x:hidden}img,svg,video{max-width:100%}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}input,select,textarea{min-width:0;max-width:100%}.section,.store-section,.page-banner,.product-detail,.product-grid,.store-product-grid{min-width:0}.product-card,.store-product-card,.product-info,.store-product-info{min-width:0;overflow-wrap:anywhere}.store-header{min-width:0}.store-header .logo{min-width:0}.header-search{min-width:0}.header-search input{min-width:0}.store-nav{flex-wrap:wrap}.product-detail>*{min-width:0}.detail-copy{overflow-wrap:anywhere}.buy-row{flex-wrap:wrap}.buy-row .btn{flex:1 1 180px}.product-gallery{width:100%;max-width:100%}.gallery-thumbs{scrollbar-width:thin}.wide-promo>*{min-width:0}.footer-main>div{min-width:0}.category-tile{min-width:0}.category-tile b{overflow-wrap:anywhere}
@media(max-width:1100px){.store-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-main{padding-inline:5%}.store-section{padding-inline:5%}.store-header{padding-inline:4%}}
@media(max-width:760px){.store-header{grid-template-columns:minmax(0,1fr) auto;gap:10px}.store-header .logo{font-size:15px}.store-header .header-actions{min-width:0}.store-header .header-actions a{white-space:nowrap}.store-nav{width:100%}.hero-main{min-height:0;grid-template-columns:minmax(0,1fr);padding:34px 5% 15px}.hero-copy h1{font-size:clamp(32px,8vw,48px)}.hero-visual{width:100%;height:230px}.hero-visual img{max-height:225px}.hero-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.store-section{padding:34px 4%}.store-section-head{gap:12px;align-items:center}.store-section-head h2{font-size:24px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.store-product-image{height:clamp(130px,34vw,190px)}.store-product-info{padding:10px}.store-product-info h3{font-size:12px;min-height:0}.store-product-foot{flex-wrap:wrap}.wide-promo{margin-inline:4%;gap:10px}.wide-promo img{max-width:38%}.page-banner{padding:42px 15px}.page-banner h1{font-size:clamp(27px,7vw,38px)}.section{padding:38px 4%}.product-detail{grid-template-columns:minmax(0,1fr);gap:18px}.product-gallery .detail-image{min-height:260px}.detail-copy h1{font-size:27px}.footer{padding:35px 5% 15px}.footer-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}}
@media(max-width:420px){.top-strip{font-size:8px}.store-header{padding:9px 3%}.store-header .logo{font-size:13px;gap:7px}.store-header .logo-mark{width:30px;height:30px;font-size:18px}.store-header .header-actions{gap:8px}.store-header .login-link{padding:4px 6px}.menu-toggle{left:3%;top:17px}.category-grid{grid-template-columns:minmax(0,1fr)}.category-tile{min-height:66px}.store-product-grid{gap:8px}.store-product-image{height:128px}.store-product-info{padding:8px}.store-product-info h3{font-size:11px}.store-product-foot b{font-size:10px}.store-product-foot a{font-size:9px}.hero-main{padding-inline:4%}.hero-copy h1{font-size:31px}.hero-visual{height:190px}.hero-visual img{max-height:190px}.hero-benefits{font-size:9px}.wide-promo{padding:15px}.wide-promo h2{font-size:18px}.wide-promo p{font-size:11px}.footer-main{gap:16px}.gallery-arrow{width:32px;height:32px}.auth-card{padding:22px 17px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* PAPCO Desk — consistent gallery, aligned actions and adaptive layouts */
:root{--ease-out:cubic-bezier(.2,.75,.25,1)}
body{overflow-x:clip}
.site-header,.store-header{isolation:isolate}
.store-nav a{position:relative;padding:7px 0}
.store-nav a::after{content:"";position:absolute;right:0;bottom:0;width:0;height:2px;background:var(--gold);transition:width .25s var(--ease-out)}
.store-nav a:hover::after{width:100%}
.product-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(22px,4vw,58px);align-items:start}
.product-gallery{min-width:0;width:100%;max-width:100%;align-self:start}
.product-gallery .detail-image{width:100%;height:clamp(300px,40vw,510px);min-height:0;aspect-ratio:4/3;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:18px;background:radial-gradient(ellipse at center,#40331f 0,#171819 72%);border:1px solid #55452b;box-shadow:0 18px 45px #0005}
.product-gallery .detail-image img{display:block;width:100%;height:100%;max-height:none;min-width:0;object-fit:contain;padding:clamp(14px,3vw,30px);}
.gallery-thumbs{width:100%;max-width:100%;display:flex;flex-wrap:nowrap;align-items:center;gap:10px;overflow-x:auto;overflow-y:hidden;padding:13px 3px 8px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}
.gallery-thumb{display:block;flex:0 0 clamp(62px,8vw,82px);width:clamp(62px,8vw,82px);height:clamp(58px,7vw,76px);min-width:0;overflow:hidden;scroll-snap-align:start}
.gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.gallery-arrow{display:grid;place-items:center;line-height:1;box-shadow:0 5px 18px #0007}
.gallery-arrow:focus-visible,.gallery-thumb:focus-visible,.btn:focus-visible{outline:2px solid var(--gold2);outline-offset:3px}
.gallery-counter{pointer-events:none;direction:ltr}
.detail-copy{min-width:0;padding:8px 0;overflow-wrap:anywhere}
.detail-copy h1{font-size:clamp(25px,3vw,38px);line-height:1.55}
.product-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;margin-top:20px}
.product-actions form{margin:0;min-width:0}
.product-actions .buy-row{display:flex;align-items:center;flex:1 1 310px;min-width:0;gap:9px;margin:0;padding:9px;background:#151617;border:1px solid #302b22;border-radius:12px}
.product-actions .qty-label{font-size:12px;color:var(--muted);white-space:nowrap}
.product-actions .buy-row input[type=number]{width:66px;min-width:58px;padding:9px 7px;text-align:center;border-radius:8px}
.product-actions .buy-row .btn{flex:1 1 auto;min-width:0;white-space:nowrap;padding:11px 14px}
.product-actions .wishlist-action{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 15px;border-radius:10px;white-space:nowrap}
.product-actions .wishlist-action button{width:100%;height:100%}
.product-specs{border-radius:13px;overflow:hidden}
.product-specs>div{gap:14px}
.btn,.admin-button,.icon-btn,.category-tile,.product-card,.store-product-card{will-change:transform}
.btn{border-radius:9px;box-shadow:0 7px 20px #0002}
.btn:hover{box-shadow:0 10px 26px #0005}
.gold{box-shadow:0 7px 22px #c9a45d28}
.store-product-card,.product-card{border-radius:15px;overflow:hidden;transition:transform .3s var(--ease-out),box-shadow .3s,border-color .3s}
.store-product-image,.product-image{overflow:hidden}
.store-product-image img,.product-image img{transition:transform .55s var(--ease-out),filter .4s}
.store-product-card:hover .store-product-image img,.product-card:hover .product-image img{transform:scale(1.055)}
.category-tile,.wide-promo,.auth-card,.admin-box{transition:transform .28s var(--ease-out),border-color .28s,box-shadow .28s}
input,textarea,select{transition:border-color .2s,box-shadow .2s,background .2s}
input:focus,textarea:focus,select:focus{box-shadow:0 0 0 3px #c9a45d20}
.section-head,.store-section-head{flex-wrap:wrap;gap:12px}
.table-wrap,.admin-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
@media(max-width:900px){.product-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.product-gallery .detail-image{height:clamp(280px,43vw,420px)}}
@media(max-width:760px){.product-detail{grid-template-columns:minmax(0,1fr);gap:18px}.product-gallery{max-width:620px;margin-inline:auto}.product-gallery .detail-image{height:clamp(250px,72vw,410px);aspect-ratio:4/3}.product-gallery .detail-image img{padding:14px}.detail-copy{padding:5px 1px}.product-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}.product-actions .buy-row{width:100%;flex-wrap:nowrap}.product-actions .wishlist-action{width:100%}.product-actions .wishlist-action button{min-height:46px}.detail-copy h1{font-size:clamp(24px,6vw,31px)}}
@media(max-width:420px){.product-gallery .detail-image{height:clamp(225px,70vw,300px);border-radius:13px}.gallery-thumbs{gap:7px;padding-top:10px}.gallery-thumb{flex-basis:62px;width:62px;height:58px}.gallery-arrow{width:34px;height:34px}.product-actions .buy-row{gap:6px;padding:7px}.product-actions .buy-row input[type=number]{width:55px;min-width:52px}.product-actions .buy-row .btn{font-size:11px;padding:10px 8px}.product-actions .qty-label{font-size:11px}.section{padding-inline:4%}}
@media(max-width:350px){.product-actions .buy-row{flex-wrap:wrap}.product-actions .qty-label{display:none}.product-actions .buy-row input[type=number]{flex:0 0 58px}.product-actions .buy-row .btn{flex:1 1 150px}.store-product-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.product-card,.store-product-card,.category-tile,.btn,.gallery-thumb{transition:none!important}}

.product-actions .wishlist-action .btn{width:100%;min-height:46px}

/* Product gallery: show exactly one image at a time; navigation is via arrows/swipe. */
.product-gallery .gallery-thumbs{display:none!important}
.product-gallery .detail-image{height:clamp(300px,40vw,510px)!important;min-height:0!important;aspect-ratio:4/3;}
.product-gallery .detail-image img{width:100%;height:100%;max-height:none!important;object-fit:contain!important;padding:clamp(14px,3vw,30px);}
@media(max-width:760px){.product-gallery .detail-image{height:clamp(250px,72vw,410px)!important}}
@media(max-width:420px){.product-gallery .detail-image{height:clamp(225px,70vw,300px)!important}}

/* Final gallery layout: no thumbnail strip; one fixed frame and arrow navigation only. */
.product-gallery .gallery-thumbs,.product-gallery .gallery-thumb{display:none!important}
.product-gallery .detail-image{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:clamp(280px,40vw,500px);min-height:0;aspect-ratio:4/3;overflow:hidden}
.product-gallery .detail-image>img[data-gallery-main]{display:block;flex:0 0 100%;width:100%;height:100%;max-width:100%;max-height:none;object-fit:contain;padding:clamp(14px,3vw,30px);}
.product-gallery .gallery-arrow{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid #c9a45d;background:#101010d9;color:#f0d18d;border-radius:50%;font-size:30px;line-height:1;display:grid;place-items:center;cursor:pointer}
.product-gallery .gallery-prev{right:14px}.product-gallery .gallery-next{left:14px}
.product-gallery .gallery-arrow:hover{background:#c9a45d;color:#17130b}
.product-gallery .gallery-counter{position:absolute;z-index:2;bottom:13px;left:13px;padding:5px 11px;border-radius:30px;background:#090909d9;color:#f1d18a;font-size:12px;direction:ltr}
@media(max-width:760px){.product-gallery .detail-image{height:clamp(250px,72vw,410px)}}
@media(max-width:420px){.product-gallery .detail-image{height:clamp(225px,70vw,300px)}.product-gallery .gallery-arrow{width:36px;height:36px;font-size:25px}}

/* PAPCO Desk: tablet + phone layout pass */
@media (min-width:761px) and (max-width:1024px){
  .store-header{grid-template-columns:minmax(150px,auto) minmax(180px,1fr) auto;column-gap:16px;padding-inline:3%;}
  .store-header .logo{font-size:16px;gap:8px}
  .store-header .header-actions{gap:10px}
  .store-header .header-actions a{font-size:11px}
  .store-nav{gap:clamp(12px,2vw,24px);font-size:11px}
  .store-product-grid,.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .product-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
  .product-gallery .detail-image{height:clamp(290px,42vw,390px)!important}
  .detail-copy h1{font-size:clamp(24px,3vw,32px)}
  .product-actions{gap:8px}
  .product-actions .buy-row{flex-basis:100%}
  .product-actions .wishlist-action{flex:1 1 100%}
  .section,.store-section{padding-inline:4%}
  .footer-main{gap:22px}
}
@media (max-width:900px){
  .store-header{position:relative;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:10px;padding:10px 4%;}
  .store-header .logo{grid-column:1;grid-row:1;max-width:calc(100% - 45px)}
  .store-header .header-actions{grid-column:2;grid-row:1;gap:10px;padding-left:38px}
  .store-header .header-actions a span{display:none}
  .store-header .header-actions a{font-size:16px}
  .store-header .header-search{grid-column:1/-1;grid-row:2;max-width:none;height:40px}
  .store-header .menu-toggle{display:block;position:absolute;left:4%;top:15px;z-index:5;width:34px;height:34px}
  .store-header .store-nav{grid-column:1/-1;grid-row:3;display:none;flex-direction:column;align-items:stretch;gap:0;width:100%;padding:7px 0 0;border-top:1px solid var(--line)}
  body.menu-open .store-header .store-nav{display:flex}
  .store-header .store-nav a{padding:9px 7px;border-bottom:1px solid #282722}
  .store-header .store-nav a:last-child{border-bottom:0}
}
@media (max-width:760px){
  .top-strip{height:auto;min-height:27px;padding:5px 4%;gap:8px;flex-wrap:wrap}
  .top-strip span:nth-child(2){display:none}
  .top-strip span,.top-strip a{font-size:9px}
  .site-header.store-header{min-height:0;padding:10px 4%;}
  .store-header .logo{font-size:14px;line-height:1.35}
  .store-header .logo small{font-size:8px;letter-spacing:2px}
  .store-header .logo-mark{width:32px;height:32px;font-size:19px}
  .store-header .header-actions{gap:8px;padding-left:36px}
  .store-header .header-actions a{font-size:15px}
  .store-header .header-actions .login-link{font-size:10px!important;padding:5px 7px;white-space:nowrap}
  .store-header .header-search{height:38px}
  .store-header .header-search button{width:42px}
  .product-detail{grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
  .product-gallery{width:100%;max-width:620px;margin-inline:auto}
  .product-gallery .detail-image{width:100%;height:clamp(240px,68vw,390px)!important;min-height:0!important;aspect-ratio:4/3;border-radius:14px}
  .product-gallery .detail-image>img[data-gallery-main]{padding:12px;object-fit:contain}
  .product-gallery .gallery-arrow{width:38px;height:38px;font-size:25px}
  .product-gallery .gallery-prev{right:9px}.product-gallery .gallery-next{left:9px}
  .product-gallery .gallery-counter{bottom:9px;left:9px;font-size:10px;padding:4px 9px}
  .detail-copy{padding:0;min-width:0}
  .detail-copy h1{font-size:clamp(23px,6vw,30px);line-height:1.5}
  .detail-copy p{font-size:13px;line-height:2}
  .detail-price{font-size:21px;margin:13px 0}
  .product-specs{padding:12px;margin:16px 0}
  .product-specs>div{grid-template-columns:minmax(82px,30%) minmax(0,1fr);font-size:12px;gap:9px}
  .product-actions{display:flex;flex-direction:column;gap:9px;width:100%}
  .product-actions .buy-row{display:grid;grid-template-columns:auto 65px minmax(0,1fr);align-items:center;width:100%;flex:0 0 auto;gap:7px;padding:8px}
  .product-actions .buy-row input[type=number]{width:65px;min-width:0}
  .product-actions .buy-row .btn{width:100%;min-width:0;white-space:normal;font-size:12px;padding:10px 7px}
  .product-actions .wishlist-action,.product-actions .wishlist-action .btn{width:100%;min-height:44px}
  .searchbar{width:100%;max-width:none}
  .searchbar input{min-width:0}
  .admin-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .admin-stats div{padding:12px}
  .admin-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .inline-form{min-width:0;flex-wrap:wrap}
  .table-wrap,.admin-table-wrap{max-width:100%;overflow-x:auto}
  .table-wrap table,.admin-table-wrap table{min-width:620px}
  .auth-card{padding:22px 16px}
  .cart-total{width:100%;max-width:none}
}
@media (max-width:420px){
  .store-header .logo{font-size:12px;gap:6px}
  .store-header .logo-mark{width:29px;height:29px;font-size:17px}
  .store-header .header-actions{gap:6px;padding-left:33px}
  .store-header .header-actions a{font-size:14px}
  .store-header .header-actions .login-link{font-size:9px!important;padding:4px 5px}
  .store-header .menu-toggle{left:3%;top:13px}
  .product-gallery .detail-image{height:clamp(220px,67vw,290px)!important}
  .product-gallery .gallery-arrow{width:34px;height:34px;font-size:23px}
  .product-actions .buy-row{grid-template-columns:1fr 58px;}
  .product-actions .qty-label{grid-column:1/-1;font-size:11px}
  .product-actions .buy-row .btn{grid-column:1/-1;min-height:42px}
  .product-actions .buy-row input[type=number]{grid-column:1/-1;width:100%}
  .store-product-grid,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .store-product-image,.product-image{height:clamp(118px,36vw,150px)}
  .store-product-info h3,.product-info h3{font-size:11px}
  .section,.store-section{padding-inline:4%}
  .page-banner h1{font-size:26px}
  .footer-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}
@media (max-width:340px){
  .store-header .header-actions .login-link{display:none}
  .product-actions .buy-row{grid-template-columns:minmax(0,1fr)}
  .product-actions .buy-row input[type=number],.product-actions .buy-row .btn{grid-column:1}
  .store-product-grid,.product-grid,.category-grid{grid-template-columns:minmax(0,1fr)}
}

/* PAPCO responsive product media sizing — final override */
.product-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(18px,3vw,42px);align-items:start}
.product-gallery{width:100%;max-width:500px;margin-inline:auto;min-width:0}
.product-gallery .detail-image{width:100%;height:clamp(260px,31vw,390px)!important;min-height:0!important;aspect-ratio:4/3;overflow:hidden;border-radius:16px}
.product-gallery .detail-image>img[data-gallery-main]{width:84%;height:82%;max-width:84%;max-height:82%;padding:0!important;object-fit:contain!important;flex:0 1 auto}
.product-gallery .gallery-arrow{width:40px;height:40px;font-size:26px}
.product-gallery .gallery-counter{font-size:11px;padding:4px 9px}
.detail-copy h1{font-size:clamp(23px,2.3vw,34px)}
.detail-copy p{font-size:clamp(12px,1vw,14px)}
@media (min-width:761px) and (max-width:1024px){
 .product-detail{gap:18px}
 .product-gallery{max-width:420px}
 .product-gallery .detail-image{height:clamp(245px,30vw,315px)!important}
 .product-gallery .detail-image>img[data-gallery-main]{width:80%;height:78%;max-width:80%;max-height:78%}
 .product-gallery .gallery-arrow{width:36px;height:36px;font-size:24px}
 .detail-copy h1{font-size:clamp(22px,2.5vw,28px)}
 .detail-price{font-size:22px}
}
@media (max-width:760px){
 .product-detail{grid-template-columns:minmax(0,1fr);gap:14px}
 .product-gallery{width:min(100%,440px);max-width:440px;margin:0 auto}
 .product-gallery .detail-image{height:clamp(205px,55vw,290px)!important;min-height:0!important;aspect-ratio:4/3;border-radius:13px}
 .product-gallery .detail-image>img[data-gallery-main]{width:78%;height:78%;max-width:78%;max-height:78%;padding:0!important;object-fit:contain!important}
 .product-gallery .gallery-arrow{width:34px;height:34px;font-size:23px}
 .product-gallery .gallery-prev{right:8px}.product-gallery .gallery-next{left:8px}
 .product-gallery .gallery-counter{bottom:8px;left:8px;font-size:10px}
 .detail-copy h1{font-size:clamp(21px,5.5vw,28px)}
 .detail-copy p{font-size:12px;line-height:1.9}
 .detail-price{font-size:20px}
 .product-specs{font-size:12px}
}
@media (max-width:420px){
 .product-gallery{width:100%;max-width:360px}
 .product-gallery .detail-image{height:clamp(180px,54vw,225px)!important;border-radius:11px}
 .product-gallery .detail-image>img[data-gallery-main]{width:74%;height:74%;max-width:74%;max-height:74%}
 .product-gallery .gallery-arrow{width:30px;height:30px;font-size:21px}
 .product-gallery .gallery-counter{font-size:9px;padding:3px 7px}
 .detail-copy h1{font-size:21px}
 .detail-price{font-size:18px}
}
@media (max-width:340px){
 .product-gallery{max-width:300px}
 .product-gallery .detail-image{height:175px!important}
 .product-gallery .gallery-arrow{width:28px;height:28px}
}


/* PAPCO Desk — final device-width responsive correction (cache-busted) */
html{width:100%;max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%;}
body{width:100%;max-width:100%;min-width:0;overflow-x:clip;}
main{width:100%;max-width:100%;min-width:0;}
img{height:auto;}
.product-detail{width:100%;max-width:1440px;margin-inline:auto;}
.product-gallery{min-width:0;width:100%;}
.product-gallery .detail-image{width:100%;height:clamp(260px,34vw,430px)!important;min-height:0!important;aspect-ratio:4/3;}
.product-gallery .detail-image>img[data-gallery-main]{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain!important;padding:clamp(12px,2vw,24px)!important;}
.product-detail .detail-copy{min-width:0;max-width:100%;}

@media (min-width:761px) and (max-width:1024px){
 .product-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(14px,2.2vw,24px);padding-inline:4%;}
 .product-gallery{max-width:100%;}
 .product-gallery .detail-image{height:clamp(230px,31vw,320px)!important;}
 .product-gallery .detail-image>img[data-gallery-main]{padding:14px!important;}
 .detail-copy h1{font-size:clamp(21px,2.7vw,28px);}
 .detail-copy p{font-size:13px;}
 .product-actions .buy-row{flex-wrap:wrap;}
}
@media (max-width:760px){
 html,body{width:100%;min-width:0;overflow-x:hidden;}
 .top-strip{width:100%;padding:5px 12px;min-height:26px;}
 .store-header{width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:9px 12px;}
 .store-header .logo{grid-column:1;grid-row:1;max-width:100%;font-size:14px;}
 .store-header .header-actions{grid-column:2;grid-row:1;min-width:0;max-width:100%;gap:7px;padding:0 34px 0 0;}
 .store-header .header-actions a{font-size:14px;white-space:nowrap;}
 .store-header .header-actions .login-link{font-size:10px!important;padding:4px 6px;}
 .store-header .menu-toggle{display:block;position:absolute;left:8px;top:13px;width:30px;height:30px;font-size:21px;}
 .store-header .header-search{grid-column:1/-1;grid-row:2;width:100%;max-width:none;height:37px;}
 .store-header .store-nav{grid-column:1/-1;grid-row:3;width:100%;}
 .product-detail{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:13px;padding:20px 14px 32px;width:100%;}
 .product-gallery{width:min(100%,360px)!important;max-width:360px!important;margin:0 auto!important;}
 .product-gallery .detail-image{width:100%;height:clamp(175px,49vw,245px)!important;min-height:0!important;aspect-ratio:4/3;border-radius:12px;}
 .product-gallery .detail-image>img[data-gallery-main]{width:100%;height:100%;max-width:100%;max-height:100%;padding:12px!important;object-fit:contain!important;}
 .product-gallery .gallery-arrow{width:32px;height:32px;font-size:22px;}
 .product-gallery .gallery-prev{right:7px}.product-gallery .gallery-next{left:7px}
 .product-gallery .gallery-counter{bottom:7px;left:7px;font-size:9px;padding:3px 7px;}
 .detail-copy{width:100%;min-width:0;}
 .detail-copy h1{font-size:clamp(19px,5vw,25px);line-height:1.55;margin:0 0 7px;}
 .detail-copy p{font-size:12px;line-height:1.9;overflow-wrap:anywhere;}
 .detail-price{font-size:19px;margin:10px 0;}
 .product-actions{display:flex;flex-direction:column;gap:8px;width:100%;}
 .product-actions .buy-row{display:grid;grid-template-columns:auto 64px minmax(0,1fr);gap:7px;width:100%;margin:12px 0;}
 .product-actions .buy-row input[type=number]{width:64px;min-width:0;}
 .product-actions .buy-row .btn{width:100%;min-width:0;font-size:11px;padding:9px 5px;}
 .product-actions .wishlist-action,.product-actions .wishlist-action .btn{width:100%;}
 .section,.store-section{width:100%;max-width:100%;padding-inline:14px;}
 .store-product-grid,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
 .store-product-image,.product-image{height:clamp(105px,31vw,150px);}
 .store-product-info h3,.product-info h3{font-size:11px;line-height:1.7;}
 .footer-main{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:480px){
 .store-header .logo{font-size:12px;gap:6px;}
 .store-header .logo-mark{width:27px;height:27px;font-size:16px;}
 .store-header .header-actions{gap:5px;padding-right:31px;}
 .store-header .header-actions a{font-size:12px;}
 .store-header .header-actions .login-link{font-size:9px!important;padding:4px 5px;}
 .store-header .menu-toggle{left:5px;top:12px;width:27px;height:27px;font-size:19px;}
 .product-detail{padding:16px 12px 26px;gap:11px;}
 .product-gallery{width:min(100%,310px)!important;max-width:310px!important;}
 .product-gallery .detail-image{height:clamp(155px,48vw,205px)!important;border-radius:10px;}
 .product-gallery .detail-image>img[data-gallery-main]{padding:9px!important;}
 .product-gallery .gallery-arrow{width:29px;height:29px;font-size:20px;}
 .detail-copy h1{font-size:19px;}
 .detail-price{font-size:17px;}
 .product-actions .buy-row{grid-template-columns:1fr 58px;gap:6px;padding:0;}
 .product-actions .buy-row .qty-label{grid-column:1/-1;font-size:11px;}
 .product-actions .buy-row input[type=number]{grid-column:2;width:58px;}
 .product-actions .buy-row .btn{grid-column:1;grid-row:2;font-size:10px;}
 .store-product-image,.product-image{height:clamp(100px,30vw,132px);}
}
@media (max-width:350px){
 .store-header .header-actions .login-link{display:none;}
 .product-gallery{max-width:280px!important;}
 .product-gallery .detail-image{height:150px!important;}
 .product-actions .buy-row{grid-template-columns:minmax(0,1fr);}
 .product-actions .buy-row input[type=number],.product-actions .buy-row .btn{grid-column:1;}
 .store-product-grid,.product-grid,.category-grid{grid-template-columns:minmax(0,1fr);}
}

/* PAPCO final polish: edge-to-edge product slider + ergonomic mobile menu */
.product-gallery .detail-image{
  border:0!important;
  outline:0!important;
  padding:0!important;
  background:#111!important;
  box-shadow:none!important;
  border-radius:14px;
}
.product-gallery .detail-image>img[data-gallery-main]{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:inherit!important;
  object-fit:cover!important;
  object-position:center!important;
}
@media(max-width:760px){
  .top-strip{display:none!important}
  .store-header{
    direction:rtl!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) auto!important;
    grid-template-rows:auto auto auto;
    align-items:center!important;
    gap:9px 8px!important;
    height:auto!important;
    min-height:0!important;
    padding:9px 10px!important;
  }
  .store-header>.logo{grid-column:2!important;grid-row:1!important;justify-self:start;min-width:0;max-width:100%;}
  .store-header>.header-actions{grid-column:3!important;grid-row:1!important;justify-self:end;display:flex!important;align-items:center;gap:9px!important;padding:0!important;margin:0!important;min-width:0;}
  .store-header>.header-actions a{display:inline-flex;align-items:center;justify-content:center;gap:2px;font-size:19px!important;line-height:1;white-space:nowrap;padding:3px!important;}
  .store-header>.header-actions a span{display:none!important}
  .store-header>.header-actions .login-link{display:none!important}
  .store-header>.menu-toggle{
    display:grid!important;grid-column:1!important;grid-row:1!important;
    position:static!important;inset:auto!important;justify-self:start;align-self:center;
    place-items:center;width:36px!important;height:36px!important;min-width:36px;
    padding:0!important;margin:0!important;border:1px solid #806638!important;
    border-radius:9px!important;background:#171819!important;color:#e1c27e!important;
    font-size:22px!important;line-height:1;cursor:pointer;z-index:12;
  }
  .store-header>.header-search{grid-column:1/-1!important;grid-row:2!important;width:100%!important;max-width:none!important;margin:0!important;height:40px!important;}
  .store-header>.store-nav{
    display:none!important;grid-column:1/-1!important;grid-row:3!important;
    position:static!important;inset:auto!important;width:100%!important;
    flex-direction:column!important;align-items:stretch!important;gap:0!important;
    padding:7px!important;margin:0!important;background:#141516!important;
    border:1px solid #3a3327!important;border-radius:10px!important;
    box-shadow:0 12px 28px #0008!important;
  }
  body.menu-open .store-header>.store-nav{display:flex!important}
  .store-header>.store-nav a{display:block!important;width:100%;padding:10px 12px!important;border-bottom:1px solid #292725;font-size:13px!important;}
  .store-header>.store-nav a:last-child{border-bottom:0}
  .product-gallery .detail-image{border:0!important;border-radius:10px!important;}
  .product-gallery .detail-image>img[data-gallery-main]{object-fit:cover!important;padding:0!important;}
}
@media(max-width:480px){
  .store-header{grid-template-columns:36px minmax(0,1fr) auto!important;gap:8px 6px!important;padding:8px!important;}
  .store-header>.menu-toggle{width:34px!important;height:34px!important;min-width:34px;font-size:21px!important;}
  .store-header>.logo{font-size:12px!important;gap:6px!important;}
  .store-header>.logo .logo-mark{width:27px!important;height:27px!important;font-size:16px!important;}
  .store-header>.header-actions{gap:5px!important;}
  .store-header>.header-actions a{font-size:17px!important;}
  .store-header>.header-search{height:37px!important;}
}
@media(max-width:350px){
  .store-header{grid-template-columns:34px minmax(0,1fr) auto!important;}
  .store-header>.logo{font-size:11px!important;}
  .store-header>.header-actions{gap:2px!important;}
}


/* PAPCO gallery thumbnails + footer account links polish */
.product-gallery .gallery-thumbs{
  display:flex!important;align-items:center;gap:12px;padding:15px 3px 7px;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#92713d #1a1a1a;
}
.product-gallery .gallery-thumb{
  position:relative;display:block!important;flex:0 0 88px;width:88px;height:76px;
  padding:3px!important;overflow:hidden;border:1px solid #51452f!important;
  border-radius:13px!important;background:linear-gradient(145deg,#222,#101112)!important;
  opacity:.78;cursor:pointer;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,opacity .22s ease;
}
.product-gallery .gallery-thumb img{
  display:block;width:100%;height:100%;object-fit:cover;border-radius:9px;
}
.product-gallery .gallery-thumb:hover{opacity:1;transform:translateY(-3px);border-color:#c9a45d!important;box-shadow:0 8px 20px #0008;}
.product-gallery .gallery-thumb.active{opacity:1;border:2px solid #e1c27e!important;padding:2px!important;box-shadow:0 0 0 3px #c9a45d26,0 8px 22px #0008;}
.product-gallery .gallery-thumb.active:after{content:"";position:absolute;inset:0;border-radius:9px;box-shadow:inset 0 0 0 1px #fff2;pointer-events:none}
.footer-main>div:nth-child(3)>a[href="login.php"],.footer-main>div:nth-child(3)>a[href="register.php"]{
  display:inline-flex;align-items:center;width:max-content;max-width:100%;margin-top:5px;padding:4px 0;color:#d9c08e;
}
.footer-main>div:nth-child(3)>a[href="login.php"]:hover,.footer-main>div:nth-child(3)>a[href="register.php"]:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px){
 .product-gallery .gallery-thumbs{gap:9px;padding:12px 2px 7px}
 .product-gallery .gallery-thumb{flex-basis:70px;width:70px;height:64px;border-radius:11px!important}
}


/* PAPCO: show complete product photos regardless of source aspect ratio */
.product-gallery .detail-image{
  background:radial-gradient(ellipse at center,#242321 0%,#141414 68%,#101010 100%)!important;
  overflow:hidden!important;
}
.product-gallery .detail-image>img[data-gallery-main]{
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center center!important;
  padding:12px!important;margin:0!important;
}
.product-gallery .gallery-thumb{background:#151515!important}
.product-gallery .gallery-thumb img{object-fit:contain!important;background:#151515!important}
@media(max-width:480px){
  .product-gallery .detail-image>img[data-gallery-main]{padding:8px!important}
}


/* PAPCO mobile footer shortcuts: favorites + login/register */
.footer-mobile-shortcuts{display:none}
@media(max-width:700px){
 .footer-mobile-shortcuts{display:flex;align-items:center;justify-content:center;gap:0;flex-wrap:wrap;margin:22px 0 4px;padding:12px 8px;background:linear-gradient(110deg,#1a1916,#121314);border:1px solid #514329;border-radius:13px}
 .footer-mobile-shortcuts a{display:inline-flex;align-items:center;justify-content:center;padding:5px 13px;color:#e1c27e;font-size:12px;font-weight:700;white-space:nowrap}
 .footer-mobile-shortcuts a+a{border-right:1px solid #514329}
 .footer-mobile-shortcuts a:hover{color:#fff}
}


/* PAPCO mobile header account links + always-visible product cart action */
.mobile-auth-links{display:none}
.product-actions .buy-row{display:flex!important;align-items:center!important;gap:9px!important;min-width:0}
.product-actions .buy-row .add-cart-btn{display:inline-flex!important;visibility:visible!important;opacity:1!important;flex:1 1 auto;min-width:0;white-space:normal}
.product-actions .buy-row .add-cart-btn:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.35)}
@media(max-width:760px){
 .store-header>.header-actions .login-link{display:none!important}
 .store-header>.header-actions .mobile-auth-links{display:inline-flex!important;align-items:center;gap:5px!important;margin:0!important;padding:0!important}
 .store-header>.header-actions .mobile-auth-links a{display:inline-flex!important;align-items:center;justify-content:center;padding:6px 8px!important;border:1px solid #806638!important;border-radius:7px!important;color:#e1c27e!important;font-size:11px!important;font-weight:700;line-height:1.3!important;white-space:nowrap}
 .store-header>.header-actions .mobile-auth-links a span{display:inline!important}
 .product-actions .buy-row{display:grid!important;grid-template-columns:auto 62px minmax(0,1fr)!important;width:100%!important;gap:7px!important;padding:9px!important;border:1px solid #514329!important;border-radius:11px!important;background:#151617!important}
 .product-actions .buy-row .qty-label{display:inline!important;grid-column:auto!important}
 .product-actions .buy-row input[type=number]{grid-column:auto!important;width:62px!important;min-width:0!important}
 .product-actions .buy-row .add-cart-btn{grid-column:auto!important;grid-row:auto!important;width:100%!important;min-height:43px!important;font-size:12px!important;padding:9px 6px!important}
}
@media(max-width:480px){
 .store-header>.header-actions{gap:4px!important}
 .store-header>.header-actions .mobile-auth-links{gap:3px!important}
 .store-header>.header-actions .mobile-auth-links a{padding:5px 6px!important;font-size:10px!important}
 .product-actions .buy-row{grid-template-columns:1fr 56px!important;gap:6px!important}
 .product-actions .buy-row .qty-label{grid-column:1/-1!important;font-size:10px!important}
 .product-actions .buy-row input[type=number]{grid-column:2!important;width:56px!important}
 .product-actions .buy-row .add-cart-btn{grid-column:1!important;grid-row:2!important;font-size:11px!important}
}
@media(max-width:350px){
 .store-header>.header-actions .mobile-auth-links a{padding:4px 5px!important;font-size:9px!important}
 .product-actions .buy-row{grid-template-columns:minmax(0,1fr)!important}
 .product-actions .buy-row .qty-label{grid-column:1!important}
 .product-actions .buy-row input[type=number],.product-actions .buy-row .add-cart-btn{grid-column:1!important}
}

/* PAPCO Persian typography: consistent, bold and fluid across viewports */
html,body,button,input,select,textarea{font-family:'Vazirmatn',Tahoma,Arial,sans-serif!important}
body{font-size:clamp(14px,1vw + 10px,16px);font-weight:600;line-height:1.9}
h1,h2,h3,h4,.store-nav a,.btn,.admin-button,.store-product-info h3,.category-tile b,.header-actions a{font-weight:800}
p,label,small,.muted,.muted-small{font-weight:600}
