/* ===== Polish: accessibility + every screen size (phone, tablet, laptop, large monitor) ===== */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;}
body{overflow-x:clip;-webkit-tap-highlight-color:rgba(207,164,95,.18);text-rendering:optimizeLegibility;}
img,video{max-width:100%;}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.skip-link{position:fixed;left:12px;top:-60px;z-index:9999;background:#14110c;color:#fff;padding:10px 16px;border-radius:8px;font-weight:600;font-size:14px;transition:top .2s;}
.skip-link:focus{top:12px;}
:focus-visible{outline:3px solid var(--accent,#CFA45F);outline-offset:2px;border-radius:4px;}
a:focus:not(:focus-visible),button:focus:not(:focus-visible){outline:none;}

/* hero: the visible slide title is a div so the page keeps one fixed, keyword rich H1 */
.hero-content .hero-title{font-size:52px;line-height:1.1;max-width:640px;margin:0 0 16px;font-weight:600;letter-spacing:-.01em;opacity:0;animation:fadeUp .9s var(--ease) .45s forwards;}
@media (max-width:860px){.hero-content .hero-title{font-size:36px;}}
@media (max-width:640px){.hero-content .hero-title{font-size:28px;}}
@media (max-width:360px){.hero-content .hero-title{font-size:24px;}}

/* touch targets of at least 44px */
.icon-btn,.feat-btn,.hero-arrow,.mobile-close,.cd-x{min-width:44px;min-height:44px;}
.burger{min-height:44px;justify-content:center;align-items:center;}
.hero-dots button{position:relative;}
.hero-dots button::after{content:"";position:absolute;left:0;right:0;top:-14px;bottom:-14px;}
.side-toggle,.p-btn,.btn{min-height:44px;}

/* form fields: 16px stops the iPhone from zooming in while typing */
@media (max-width:860px){input,select,textarea{font-size:16px!important;}}

/* tablets and small laptops: keep the menu on one line */
@media (min-width:861px) and (max-width:1100px){
  nav.main-nav,nav.main-nav > ul{gap:20px;}
  nav.main-nav > ul > li > a{font-size:14px;}
  .container{padding:0 20px;}
}
/* very small phones */
@media (max-width:360px){
  .container{padding:0 14px;}
  .section{padding-top:40px;padding-bottom:40px;}
  .fcard{flex-basis:calc((100% - 12px) / 1.35);}
  .btn{padding-left:16px;padding-right:16px;}
}
/* phone turned sideways: hero must not swallow the whole screen */
@media (max-height:520px) and (orientation:landscape){
  .hero{height:auto;min-height:340px;}
  .hero-content{padding-bottom:36px;}
  .hero-content .hero-title{font-size:26px;}
}
/* big monitors */
@media (min-width:1600px){
  .container{max-width:1440px;}
  .hero{height:720px;}
}
@media (min-width:2200px){
  html{font-size:112%;}
  .container{max-width:1680px;}
}
/* notches and the home bar on phones */
.wa-widget{bottom:calc(20px + env(safe-area-inset-bottom,0px));right:calc(20px + env(safe-area-inset-right,0px));}
@media (max-width:480px){.wa-widget{bottom:calc(14px + env(safe-area-inset-bottom,0px));right:calc(14px + env(safe-area-inset-right,0px));}}
.site-header{padding-top:env(safe-area-inset-top,0px);}
/* tables / long words never push the page sideways */
h1,h2,h3,p,li,td{overflow-wrap:break-word;}
.seo-copy{background:#fff;}
.seo-copy .container{max-width:980px;}
.seo-copy h2{font-size:28px;line-height:1.25;margin-bottom:14px;}
.seo-copy p{color:var(--ink-soft);line-height:1.85;margin:0 0 14px;}
.seo-copy .seo-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.seo-copy .seo-links a{border:1.5px solid var(--line);border-radius:999px;padding:9px 18px;font-size:14px;font-weight:500;transition:all .25s var(--ease);}
.seo-copy .seo-links a:hover{background:var(--ink);border-color:var(--ink);color:#fff;}
@media (max-width:640px){.seo-copy h2{font-size:22px;}}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}
  .hero-content .tag,.hero-content .hero-title,.hero-content p,.hero-content .btn{opacity:1!important;}
}
@media print{.site-header,.wa-widget,.mobile-drawer,.hero-arrow,.hero-dots{display:none!important;}}

/* ===== Mobile experience (phones and small tablets) ===== */
a,button,.size-opt,.qty-control button{touch-action:manipulation;}
html{scroll-padding-top:76px;}
body.drawer-open{overflow:hidden;}

@media (max-width:860px){
  .header-inner{height:64px;gap:12px;}
  .logo img{height:42px;}
  .header-actions{gap:6px;}
  .burger{width:44px;height:44px;gap:5px;border-radius:50%;}
  .burger:active,.icon-btn:active{background:var(--bg-soft);}
  .burger span{width:22px;}
  .icon-btn{width:44px;height:44px;}
  .cart-count{top:3px;right:1px;}
  .mobile-drawer .panel{width:88%;max-width:360px;padding:18px 20px calc(28px + env(safe-area-inset-bottom,0px));}
  .mobile-drawer .panel a{padding:14px 4px;font-size:15.5px;min-height:48px;}
  .mobile-drawer .panel .sub-link{padding:11px 4px 11px 16px;min-height:44px;font-size:14.5px;}
  .mobile-close{width:44px;height:44px;font-size:26px;margin-left:auto;}
  .hero{height:min(78vh,540px);min-height:420px;}
  .section{padding:56px 0;}
}

@media (max-width:640px){
  .container{padding:0 16px;}
  .section{padding:44px 0;}
  h2{overflow-wrap:anywhere;}

  /* hero: swipe + dots instead of arrows, subtitle visible, button easy to tap */
  .hero{height:min(74vh,500px);min-height:400px;}
  .hero-arrow{display:none;}
  .hero-content{padding:0 16px 64px;}
  .hero-content p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14.5px;line-height:1.55;margin-bottom:20px;max-width:34ch;}
  .hero-content .btn{padding:13px 26px;}
  .hero-dots{bottom:22px;}

  /* featured slider */
  .feat-head{align-items:flex-start;margin-bottom:20px;}
  .feat-btn{width:40px;height:40px;min-width:40px;min-height:40px;}
  .fmeta h3{font-size:14.5px;}

  /* section headings with a button ("View All") stay on one tidy line */
  .section-head{margin-bottom:22px;align-items:center;}
  .section-head .btn{padding:9px 16px;font-size:13px;min-height:40px;}
  .cats-intro{padding-top:44px;}

  /* manufacturing process */
  .proc-head{margin-bottom:34px;}
  .proc-head p{font-size:14px;}
  .pstep p{font-size:12.5px;}
  .proc .btn{width:100%;max-width:320px;}

  /* factory page */
  .fx-body{padding:18px 18px 18px;}
  .fx-step .fx-img{min-height:210px;aspect-ratio:16/10;}
  .fx-badges{gap:12px 18px;font-size:13px;}
  .fx-cta{padding:48px 0;}

  /* product page: gallery thumbs scroll sideways, bigger size buttons, Add to Cart stays in reach */
  .product-detail{gap:24px;}
  .pd-title{font-size:24px;}
  .gallery-thumbs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:4px;}
  .gallery-thumbs::-webkit-scrollbar{display:none;}
  .gallery-thumbs img{flex:0 0 68px;width:68px;height:68px;}
  .size-opt{min-width:48px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;}
  body.has-sticky-cta{padding-bottom:84px;}
  body.has-sticky-cta .pd-actions{position:fixed;left:0;right:0;bottom:0;z-index:300;margin:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.97);backdrop-filter:blur(8px);border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(20,20,20,.08);}
  body.has-sticky-cta .wa-widget{bottom:calc(88px + env(safe-area-inset-bottom,0px));}

  /* cart + checkout */
  .co-section{padding:28px 0 52px;}
  .co-hero{padding:28px 0 22px;}
  .co-card{border-radius:12px;}

  /* footer */
  footer .footer-grid{gap:26px;}
  footer a{display:inline-block;padding:4px 0;}
}

@media (max-width:380px){
  .cat-card h4{font-size:13.5px;}
  .hero-content .hero-title{font-size:23px;}
}
@media (max-height:520px) and (orientation:landscape){.hero{height:auto;min-height:320px;}}

/* grid children may shrink: stops the sideways thumbnail strip from widening the product page */
.product-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
.product-detail>div{min-width:0;}
@media (max-width:860px){.product-detail{grid-template-columns:minmax(0,1fr);}}
body.drawer-open .wa-widget,body.drawer-open.has-sticky-cta .pd-actions{display:none;}
/* pagination (category page) */
.pager{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:30px 0 10px}
.pager button{min-width:42px;height:42px;padding:0 14px;border:1px solid #E7E5E1;background:#fff;border-radius:8px;font:inherit;font-weight:600;cursor:pointer;color:#1A1A1A}
.pager button:hover:not(:disabled){border-color:#CFA45F;color:#A9803F}
.pager button.on{background:#1A1A1A;border-color:#1A1A1A;color:#fff}
.pager button:disabled{opacity:.4;cursor:not-allowed}
.pager .dots{padding:0 4px;color:#888}
@media(max-width:600px){.pager button{min-width:38px;height:38px;padding:0 10px}}


/* ===== Update: product cards = photo, centred title, View Details button ===== */
.product-info{align-items:center;text-align:center;}
.product-info h3{margin:2px 0 14px;text-align:center;min-height:2.8em;}
.product-info .p-btn{width:100%;}

/* ===== Update: phone hero = full-cover banner, still sharp =====
   The picture fills the whole hero (cover), is never scaled up with a transform (that is what blurs it),
   and a soft dark fade at the bottom keeps the text readable. */
@media (max-width:640px){
  .hero{height:clamp(500px,80svh,620px);min-height:0;background:#14110c;display:block;}
  #hero-slides{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;overflow:hidden;}
  .hero-slide{transform:none!important;transition:opacity .9s ease;}
  .hero-slide img{width:100%;height:100%;object-fit:cover;image-rendering:auto;-webkit-backface-visibility:hidden;}
  .hero-overlay{display:block;background:linear-gradient(180deg,rgba(10,8,5,.28) 0%,rgba(10,8,5,0) 30%,rgba(10,8,5,.55) 62%,rgba(10,8,5,.92) 100%);}
  .hero-content{position:absolute;left:0;right:0;bottom:0;padding:0 18px 58px;min-height:0;}
  .hero-content p{max-width:none;}
  .hero-dots{bottom:24px;top:auto;}
}

/* ===== Update: phone layout for "Featured Styles" and "Why Waheed Hanif" ===== */
@media (max-width:640px){
  /* featured heading centred */
  .feat-head{flex-direction:column;align-items:center;text-align:center;margin-bottom:22px;gap:14px;}
  .feat-head h2{text-align:center;}
  .feat-head .eyebrow{display:inline-block;padding:6px 14px;border-radius:999px;background:var(--accent-light);margin-bottom:12px;}
  .feat-nav{justify-content:center;}

  /* why section: centred heading + paragraph, then point cards */
  .why-copy{text-align:center;}
  .why-copy .eyebrow{display:inline-block;padding:6px 14px;border-radius:999px;background:var(--accent-light);}
  .why-copy h2{text-align:center;margin:4px auto 14px;max-width:22ch;}
  .why-copy h2::after{content:"";display:block;width:48px;height:3px;border-radius:3px;background:var(--accent);margin:14px auto 0;}
  .why-copy p{text-align:center;margin:0 auto 14px;font-size:14.5px;line-height:1.75;max-width:none;}
  .why-points{grid-template-columns:1fr;gap:12px;margin:24px 0 26px;text-align:left;counter-reset:wp;}
  .why-points li{counter-increment:wp;position:relative;padding:16px 16px 16px 66px;border:1px solid var(--line);border-left:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(26,26,26,.06);}
  .why-points li::before{content:counter(wp,decimal-leading-zero);position:absolute;left:16px;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#fff;font-size:13px;font-weight:600;letter-spacing:.02em;}
  .why-points b{font-size:15px;margin-bottom:4px;color:var(--ink);}
  .why-points span{display:block;font-size:13px;line-height:1.55;}
  .why-copy .btn{width:100%;text-align:center;justify-content:center;}
}

/* dark "Our Manufacturing Process" now sits right above the dark footer: thin divider between them */
.proc + #site-footer footer{border-top:1px solid rgba(255,255,255,.14);}
