/*
Theme Name: XO Underwear
Theme URI: https://example.com/xo-underwear
Author: XO Underwear
Author URI: https://example.com
Description: قالب اختصاصی فروشگاهی برای ایکس‌او آندروير — طراحی مینیمال و لوکس برای فروش شورت و لباس زیر زنانه، الهام‌گرفته از چیدمان سایت اسکیمز و بومی‌سازی‌شده برای زبان فارسی و راست‌به‌چپ.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xo-underwear
*/

:root{
  --blush:#e5bab1;
  --cream:#fbf3ee;
  --card:#f2e2db;
  --card-deep:#ecd6cc;
  --espresso:#3f2b26;
  --taupe:#7d5953;
  --taupe-soft:#a17f77;
  --rose:#c68c7f;
  --line: rgba(63,43,38,0.14);
  --line-soft: rgba(63,43,38,0.08);
  --maxw: 1360px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--cream);
  color:var(--espresso);
  font-family:'Vazirmatn', Tahoma, sans-serif;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 40px;}
.display{font-family:'Vazirmatn', Tahoma, sans-serif;font-weight:600;}
.eyebrow-track{letter-spacing:0;}

/* ---------- Announcement bar ---------- */
.announce{
  background:var(--espresso);
  color:var(--cream);
  text-align:center;
  font-size:12.5px;
  letter-spacing:0;
  padding:9px 12px;
  overflow:hidden;
  position:relative;
  height:34px;
}
.announce-track{
  display:flex;
  gap:64px;
  position:absolute;
  inset-inline-start:0;
  animation: scrollAnnounce 22s linear infinite;
  white-space:nowrap;
}
@keyframes scrollAnnounce{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}
@media (prefers-reduced-motion: reduce){
  .announce-track{animation:none; position:static; justify-content:center; width:100%;}
}

/* ---------- Header ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(251,243,238,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-soft);
}
.nav-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
  gap:24px;
}
.nav-left, .nav-right{display:flex;align-items:center;gap:22px;}
.nav-left{flex:1;}
.nav-right{flex:1;justify-content:flex-end;}
.brand{
  display:flex;align-items:center;gap:10px;
  flex-shrink:0;
}
.brand img{height:30px;width:auto;}
.brand span{
  font-family:'Jost','Vazirmatn',sans-serif;
  font-size:15px;
  letter-spacing:0.22em;
  color:var(--espresso);
  font-weight:500;
  direction:ltr;
}
nav.main-links, ul.main-links{
  display:flex;gap:26px;
  list-style:none;margin:0;padding:0;
}
nav.main-links a, ul.main-links a{
  font-size:14px;
  letter-spacing:0;
  color:var(--espresso);
  padding:6px 2px;
  border-bottom:1px solid transparent;
  transition:border-color .2s ease, color .2s ease;
}
nav.main-links a:hover, nav.main-links a.active,
ul.main-links a:hover, ul.main-links li.current-menu-item > a{
  border-color:var(--espresso);
}
.icon-btn{
  width:34px;height:34px;display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  color:var(--espresso);
  background:transparent;
  border:none;
  transition:background .2s ease;
}
.icon-btn:hover{background:var(--card);}
.icon-btn svg{width:18px;height:18px;}
.menu-toggle{display:none;}

/* ---------- Hero ---------- */
.hero{
  background: var(--blush);
  padding: 70px 40px 84px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero-logo{
  max-width:560px;
  width:80%;
  margin:0 auto 30px;
}
.hero p.sub{
  font-size:16.5px;
  color:var(--espresso);
  max-width:460px;
  margin:0 auto 30px;
  line-height:1.9;
  font-weight:300;
}
.btn{
  display:inline-block;
  background:var(--espresso);
  color:var(--cream);
  padding:14px 34px;
  font-size:14px;
  letter-spacing:0;
  border-radius:999px;
  border:1px solid var(--espresso);
  transition:background .2s ease, color .2s ease;
}
.btn:hover{background:transparent;color:var(--espresso);}
.btn.ghost{
  background:transparent;color:var(--espresso);
}
.btn.ghost:hover{background:var(--espresso);color:var(--cream);}

/* ---------- Category rail ---------- */
.cat-rail-section{padding:52px 0 10px;}
.cat-rail-section h2{
  font-size:13.5px;
  letter-spacing:0;
  color:var(--taupe);
  font-weight:500;
  margin:0 0 20px;
  text-align:center;
}
.cat-rail{
  display:flex;
  gap:26px;
  overflow-x:auto;
  padding:4px 4px 18px;
  scrollbar-width:none;
}
.cat-rail::-webkit-scrollbar{display:none;}
.cat-item{
  flex:0 0 auto;
  text-align:center;
  width:104px;
}
.cat-circle{
  width:104px;height:104px;
  border-radius:50%;
  background:var(--card);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:10px;
  border:1px solid var(--line-soft);
  transition:transform .25s ease, background .25s ease;
}
.cat-item:hover .cat-circle{
  transform:translateY(-4px);
  background:var(--card-deep);
}
.cat-circle svg{width:46px;height:46px;color:var(--taupe);}
.cat-item span{font-size:13px;letter-spacing:0;}

/* ---------- Collection header / filter bar ---------- */
.collection-head{
  padding:56px 0 6px;
  text-align:center;
}
.collection-head h1{
  font-size:32px;
  font-weight:600;
  margin:0 0 10px;
  letter-spacing:0;
}
.collection-head p{
  font-size:15px;
  color:var(--taupe);
  max-width:520px;
  margin:0 auto;
  font-weight:300;
  line-height:1.8;
}
.filter-bar{
  display:flex;align-items:center;justify-content:space-between;
  padding:26px 0 18px;
  border-bottom:1px solid var(--line-soft);
  margin-bottom:34px;
  font-size:13.5px;
}
.filter-bar .fb-left, .filter-bar .fb-right{display:flex;align-items:center;gap:18px;}
.fb-btn{
  display:flex;align-items:center;gap:8px;
  background:none;border:none;color:var(--espresso);
  font-size:13.5px;letter-spacing:0;
  padding:6px 0;
}
.fb-btn svg{width:13px;height:13px;}
.fb-count{color:var(--taupe-soft);font-weight:300;}

/* ---------- Product grid ---------- */
.grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:30px 24px;
  padding-bottom:70px;
}
.product-card{
  display:flex;flex-direction:column;
}
.product-photo{
  position:relative;
  aspect-ratio:3/4;
  border-radius:18px;
  background:var(--card);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  margin-bottom:14px;
  transition:box-shadow .25s ease;
}
.product-card:hover .product-photo{box-shadow:0 14px 30px -14px rgba(63,43,38,0.28);}
.product-photo svg{width:52%;height:52%;color:var(--espresso);opacity:0.82;}
.tag-pill{
  position:absolute;top:12px;inset-inline-start:12px;
  background:var(--cream);
  color:var(--espresso);
  font-size:11px;letter-spacing:0;
  padding:5px 10px;border-radius:999px;
  border:1px solid var(--line-soft);
}
.fav-btn{
  position:absolute;top:10px;inset-inline-end:10px;
  width:30px;height:30px;border-radius:50%;
  background:rgba(251,243,238,0.85);
  display:flex;align-items:center;justify-content:center;
  border:none;color:var(--espresso);
}
.fav-btn svg{width:15px;height:15px;}
.swatches{display:flex;gap:6px;margin-bottom:10px;}
.swatch{
  width:15px;height:15px;border-radius:50%;
  border:1px solid rgba(63,43,38,0.25);
  cursor:pointer;
}
.swatch.more{
  display:flex;align-items:center;justify-content:center;
  font-size:9px;color:var(--taupe);
  border:none;
}
.p-name{font-size:14px;font-weight:500;margin:0 0 2px;letter-spacing:0;}
.p-style{font-size:13px;color:var(--taupe);font-weight:300;margin:0 0 6px;}
.p-price{font-size:13.5px;display:flex;gap:8px;align-items:baseline;}
.p-price .multi{color:var(--taupe-soft);font-weight:300;font-size:12.5px;}

.load-more-wrap{text-align:center;padding-bottom:80px;}

/* ---------- FAQ ---------- */
.faq-section{
  background:var(--card);
  padding:76px 0;
}
.faq-head{text-align:center;margin-bottom:40px;}
.faq-head h2{font-size:27px;font-weight:600;margin:0 0 8px;}
.faq-head p{color:var(--taupe);font-size:14.5px;font-weight:300;}
.faq-list{max-width:760px;margin:0 auto;}
details.faq-item{
  border-bottom:1px solid var(--line);
  padding:20px 4px;
}
details.faq-item summary{
  list-style:none;
  display:flex;align-items:center;justify-content:space-between;
  cursor:pointer;
  font-size:15.5px;
  font-weight:500;
  gap:16px;
}
details.faq-item summary::-webkit-details-marker{display:none;}
.faq-plus{
  width:20px;height:20px;flex-shrink:0;position:relative;
}
.faq-plus::before, .faq-plus::after{
  content:'';position:absolute;background:var(--espresso);
  top:50%;left:50%;transform:translate(-50%,-50%);
}
.faq-plus::before{width:12px;height:1.4px;}
.faq-plus::after{width:1.4px;height:12px;transition:transform .2s ease, opacity .2s ease;}
details[open] .faq-plus::after{transform:translate(-50%,-50%) rotate(90deg);opacity:0;}
.faq-answer{
  font-size:14.5px;font-weight:300;line-height:1.9;color:var(--taupe);
  padding-top:14px;max-width:640px;
}

/* ---------- Newsletter ---------- */
.newsletter{
  padding:80px 40px;
  text-align:center;
}
.newsletter h2{font-size:25px;font-weight:600;margin:0 0 10px;}
.newsletter p{color:var(--taupe);font-size:14.5px;font-weight:300;margin:0 0 26px;}
.nl-form{
  display:flex;justify-content:center;gap:10px;max-width:420px;margin:0 auto;
  flex-wrap:wrap;
}
.nl-form input{
  flex:1;min-width:220px;
  padding:13px 18px;border-radius:999px;
  border:1px solid var(--line);
  background:var(--card);
  font-family:inherit;font-size:14px;color:var(--espresso);
  text-align:center;
}
.nl-form input:focus{outline:2px solid var(--taupe);outline-offset:1px;}
.nl-note{font-size:12px;color:var(--taupe-soft);margin-top:14px;font-weight:300;line-height:1.8;}
.nl-success{font-size:14px;margin-top:14px;color:var(--espresso);display:none;}

/* ---------- Footer ---------- */
footer{
  background:var(--espresso);
  color:var(--cream);
  padding:64px 40px 28px;
}
.foot-grid{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:36px;
  padding-bottom:44px;
  border-bottom:1px solid rgba(251,243,238,0.16);
}
.foot-brand .brand span{color:var(--cream);}
.foot-brand p{
  font-size:13.5px;font-weight:300;line-height:1.9;
  color:rgba(251,243,238,0.7);
  margin:16px 0 20px;max-width:260px;
}
.foot-social{display:flex;gap:12px;}
.foot-social a{
  width:32px;height:32px;border-radius:50%;
  border:1px solid rgba(251,243,238,0.3);
  display:flex;align-items:center;justify-content:center;
}
.foot-social svg{width:14px;height:14px;}
.foot-col h3{
  font-size:12.5px;letter-spacing:0;
  color:rgba(251,243,238,0.55);
  margin:0 0 16px;font-weight:500;
}
.foot-col a{
  display:block;font-size:14px;font-weight:300;
  color:rgba(251,243,238,0.88);
  margin-bottom:12px;
}
.foot-bottom{
  display:flex;justify-content:space-between;align-items:center;
  padding-top:22px;font-size:12.5px;color:rgba(251,243,238,0.55);
  flex-wrap:wrap;gap:10px;
}
.foot-bottom-links{display:flex;gap:18px;flex-wrap:wrap;}

/* ---------- Mobile ---------- */
@media (max-width: 980px){
  .grid{grid-template-columns:repeat(3,1fr);}
  .foot-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width: 760px){
  .wrap{padding:0 20px;}
  nav.main-links, ul.main-links{display:none;}
  .menu-toggle{display:flex;}
  .grid{grid-template-columns:repeat(2,1fr);gap:20px 14px;}
  .hero{padding:50px 20px 60px;}
  .collection-head h1{font-size:25px;}
  .foot-grid{grid-template-columns:1fr;gap:30px;}
  .filter-bar{font-size:12.5px;}
}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
:focus-visible{outline:2px solid var(--espresso);outline-offset:2px;}
