/*
Theme Name: Sekeh Sarmayeh
Theme URI: https://example.com/
Author: ShnTi
Description: قالب لوکس، فارسی و RTL برای برند سکه سرمایه؛ بدون نیاز به Page Builder.
Version: 1.0.0
Text Domain: sekeh-sarmayeh
*/
:root{
 --brown:#2B1712;--brown2:#5A3425;--gold:#C9A45C;--cream:#F5EFE6;
 --ink:#211712;--muted:#76685f;--white:#fff;--line:rgba(43,23,18,.12);
 --shadow:0 18px 55px rgba(43,23,18,.10);--radius:24px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:Tahoma,"Segoe UI",Arial,sans-serif;line-height:1.9;overflow-x:hidden}
a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}.container{width:min(1180px,calc(100% - 32px));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(43,23,18,.96);color:#fff;border-bottom:1px solid rgba(201,164,92,.18);backdrop-filter:blur(14px)}
.nav{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{display:flex;align-items:center;gap:12px;font-weight:900;font-size:20px}.brand-mark{width:42px;height:42px;border-radius:50%;border:1px solid var(--gold);display:grid;place-items:center;color:var(--gold);font-size:18px}
.menu{display:flex;gap:24px;align-items:center;font-size:14px}.menu a{opacity:.9}.menu a:hover{color:var(--gold)}.nav-cta,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 19px;border-radius:999px;font-weight:700;border:1px solid transparent;transition:.25s}.nav-cta,.btn-primary{background:var(--gold);color:var(--brown)}.btn-secondary{border-color:rgba(201,164,92,.5);color:var(--gold)}.btn:hover{transform:translateY(-2px)}
.menu-toggle{display:none;background:none;border:0;color:#fff;font-size:28px}
.hero{position:relative;background:linear-gradient(135deg,#2B1712 0%,#3b2118 55%,#5A3425 100%);color:#fff;overflow:hidden}.hero:after{content:"";position:absolute;width:520px;height:520px;border-radius:50%;right:-180px;top:-180px;background:radial-gradient(circle,rgba(201,164,92,.25),transparent 65%);pointer-events:none}
.hero-grid{min-height:640px;display:grid;grid-template-columns:1.05fr .95fr;gap:55px;align-items:center;position:relative;z-index:1}.eyebrow{color:var(--gold);font-weight:800;letter-spacing:.5px}.hero h1{font-size:clamp(38px,5vw,70px);line-height:1.2;margin:12px 0 20px}.hero p{color:#eadfd3;max-width:650px;font-size:18px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.hero-media{min-height:420px;border:1px solid rgba(201,164,92,.28);border-radius:38px;overflow:hidden;background:rgba(255,255,255,.04);box-shadow:0 25px 80px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center}.hero-media img{width:100%;height:100%;object-fit:cover}.gold-orb{width:220px;height:220px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f7df9c,#c9a45c 40%,#765329 75%,#3a2616);box-shadow:0 0 100px rgba(201,164,92,.22)}
.section{padding:88px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:32px}.section-title{font-size:clamp(28px,4vw,44px);line-height:1.3;margin:0}.section-sub{color:var(--muted);margin:8px 0 0}.grid{display:grid;gap:20px}.products-grid{grid-template-columns:repeat(3,1fr)}.price-grid{grid-template-columns:repeat(3,1fr)}.benefit-grid{grid-template-columns:repeat(3,1fr)}.blog-grid{grid-template-columns:repeat(3,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.product-image{aspect-ratio:1/1;background:#eadfce;display:grid;place-items:center}.product-image img{width:100%;height:100%;object-fit:cover}.card-body{padding:22px}.product-meta{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;color:var(--muted);font-size:13px}.pill{padding:5px 10px;border-radius:99px;background:#f5eee5}.price{color:var(--brown2);font-size:20px;font-weight:900}.price-card{padding:24px;position:relative}.price-card:before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,var(--gold),transparent)}.price-value{font-size:27px;font-weight:900;margin:10px 0;color:var(--brown)}.updated{font-size:12px;color:var(--muted)}
.story{background:var(--brown);color:#fff}.story-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:50px;align-items:center}.story-media{min-height:420px;border-radius:30px;overflow:hidden;border:1px solid rgba(201,164,92,.3)}.story-media img{width:100%;height:100%;object-fit:cover}.story p{color:#e9ded3}.feature-list{display:grid;gap:12px;margin:22px 0;padding:0;list-style:none}.feature-list li:before{content:"✦";color:var(--gold);margin-left:10px}
.benefit{padding:26px}.icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#f3e7d7;color:var(--gold);font-size:21px}.benefit h3{margin:16px 0 7px}.benefit p{margin:0;color:var(--muted)}
.blog-card img{aspect-ratio:16/10;object-fit:cover}.blog-card .card-body{padding:20px}.blog-meta{color:var(--muted);font-size:12px}.blog-card h3{margin:8px 0}.read-more{color:var(--brown2);font-weight:800}
.site-footer{background:#1c100d;color:#eee;padding:65px 0 20px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:35px}.site-footer h3{color:var(--gold);margin-top:0}.site-footer p,.site-footer a{color:#cbbeb3;font-size:14px}.footer-bottom{border-top:1px solid rgba(255,255,255,.09);margin-top:40px;padding-top:18px;text-align:center;color:#9e9087;font-size:12px}
.page-hero{background:var(--brown);color:#fff;padding:65px 0}.page-hero h1{margin:0;font-size:44px}.content-wrap{padding:60px 0}.single-content{max-width:850px;margin:auto;background:#fff;padding:clamp(25px,5vw,55px);border-radius:28px;box-shadow:var(--shadow)}.single-content h1{line-height:1.35}.single-content img{border-radius:20px;margin:25px 0}.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-field{display:grid;gap:7px}.form-field.full{grid-column:1/-1}.form-field input,.form-field textarea,.form-field select{width:100%;padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:#fff;font:inherit}.form-field textarea{min-height:150px;resize:vertical}.notice{padding:14px 16px;border-radius:14px;background:#f1e5d6;margin-bottom:18px}
@media(max-width:980px){.menu{gap:13px}.nav-cta{display:none}.hero-grid,.story-grid{grid-template-columns:1fr}.hero-grid{padding:70px 0}.products-grid,.price-grid,.benefit-grid,.blog-grid,.archive-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.nav{min-height:66px}.menu-toggle{display:block}.menu{position:absolute;top:66px;right:16px;left:16px;background:var(--brown);border:1px solid rgba(201,164,92,.25);border-radius:18px;padding:12px;display:none;flex-direction:column;align-items:stretch;box-shadow:0 20px 50px #0005}.menu.open{display:flex}.menu a{padding:11px 10px}.hero-grid{min-height:auto;padding:65px 0}.hero h1{font-size:39px}.hero-media{min-height:300px}.section{padding:62px 0}.section-head{display:block}.products-grid,.price-grid,.benefit-grid,.blog-grid,.archive-grid,.footer-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-field.full{grid-column:auto}.story-media{min-height:300px}}
@media(max-width:380px){.container{width:min(100% - 22px,1180px)}.hero h1{font-size:32px}.btn{width:100%}.actions{display:grid}}

.brand-section{position:relative;isolation:isolate;background:#21130f url("assets/images/luxury-card-bg.jpg") center/cover;color:#fff;overflow:hidden}
.brand-section:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(20,10,7,.94),rgba(31,17,13,.82) 45%,rgba(19,35,39,.90));z-index:-1}
.brand-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.brand-card{min-height:570px;background:linear-gradient(180deg,rgba(42,22,15,.88),rgba(20,12,9,.97));border:1px solid rgba(201,164,92,.58);border-radius:26px;overflow:hidden;box-shadow:0 22px 65px rgba(0,0,0,.34);transition:.3s;display:flex;flex-direction:column}
.brand-card:hover{transform:translateY(-7px);border-color:var(--gold)}
.brand-card-image{aspect-ratio:3/4;padding:22px;display:grid;place-items:center}
.brand-card-image img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 16px 20px rgba(0,0,0,.4))}
.brand-card-body{text-align:center;padding:4px 25px 28px;display:flex;flex-direction:column;flex:1}
.brand-card h3{font-size:25px;margin:8px 0 10px;color:#f7ead7}.brand-card p{color:#d9c8b9;font-size:13px;margin:0 auto 18px}
.brand-divider{width:70px;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);margin:0 auto 18px}
.brand-btn{margin-top:auto;align-self:center;border:1px solid var(--gold);color:#f4d99b;padding:10px 22px;border-radius:999px}
.brand-btn:hover{background:var(--gold);color:var(--brown)}
.brand-hero{background:linear-gradient(135deg,#24140f,#3b2017 60%,#122b32);color:#fff;padding:70px 0}
@media(max-width:980px){.brand-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.brand-grid{grid-template-columns:1fr}.brand-card{min-height:520px}}

.own-brand-section{background:linear-gradient(135deg,#f5efe6,#eadbc7);position:relative;overflow:hidden}
.own-brand-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.own-brand-card{position:relative;min-height:420px;border-radius:26px;overflow:hidden;border:1px solid rgba(201,164,92,.58);background:#2b1712;color:#fff;box-shadow:0 20px 55px rgba(43,23,18,.18);display:flex;align-items:flex-end;transition:transform .3s ease,box-shadow .3s ease}
.own-brand-card:hover{transform:translateY(-6px);box-shadow:0 28px 65px rgba(43,23,18,.27)}
.own-brand-card-image{position:absolute;inset:0}.own-brand-card-image img{width:100%;height:100%;object-fit:cover}
.own-brand-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,10,7,.02) 25%,rgba(20,10,7,.92) 100%);z-index:1}
.own-brand-placeholder{width:100%;height:100%;display:grid;place-items:center;background:radial-gradient(circle at 50% 25%,rgba(201,164,92,.38),transparent 36%),linear-gradient(135deg,#2b1712,#5a3425)}
.own-brand-card-body{position:relative;z-index:2;padding:26px;width:100%}.own-brand-card h3{margin:0 0 8px;font-size:24px;color:#fff}.own-brand-card p{margin:0 0 18px;color:#eadfd3;font-size:13px}
@media(max-width:980px){.own-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.own-brand-grid{grid-template-columns:1fr}.own-brand-card{min-height:360px}}

/* SSM v4 - editable market rate board */
.market-board-section{background:linear-gradient(180deg,#f6f0e7 0%,#efe2d1 100%)}
.market-board{border:1px solid rgba(201,164,92,.48);border-radius:28px;overflow:hidden;background:linear-gradient(145deg,#24130f,#3b2119);box-shadow:0 25px 70px rgba(43,23,18,.18);color:#fff}
.market-board-head{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:30px 30px 24px;border-bottom:1px solid rgba(255,255,255,.08)}
.market-board-head h2{margin:4px 0 8px;font-size:30px;color:#fff}.market-board-head p{margin:0;color:#d7c8bb;font-size:13px}
.market-source-badge{min-width:190px;padding:14px 16px;border:1px solid rgba(201,164,92,.5);border-radius:16px;background:rgba(201,164,92,.08);text-align:center}.market-source-badge strong{display:block;color:#d9b96f;font-size:18px}.market-source-badge span{display:block;margin-top:4px;color:#eadfd3;font-size:11px}
.market-table-wrap{padding:0 18px}.market-table-head,.market-row{display:grid;grid-template-columns:2.2fr 1fr 1fr .75fr;gap:12px;align-items:center}.market-table-head{padding:14px 12px;color:#bda995;font-size:11px;border-bottom:1px solid rgba(255,255,255,.08)}
.market-row{padding:15px 12px;border-bottom:1px solid rgba(255,255,255,.07)}.market-row:last-child{border-bottom:0}.market-name{display:flex;align-items:center;gap:12px;min-width:0}.market-name strong{display:block;font-size:14px}.market-name small{display:block;color:#9f9185;font-size:10px;margin-top:3px}.market-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(201,164,92,.55);background:radial-gradient(circle,#d5b875 0,#6b4b26 60%,#2b1712 100%);flex:0 0 auto}.market-icon img{width:100%;height:100%;object-fit:cover}.market-icon span{color:#2b1712;font-weight:800}.market-num{font-weight:700;font-size:14px;white-space:nowrap}.market-change{display:flex;justify-content:flex-start;align-items:center;gap:5px;color:#9bd69b;font-size:12px}.market-change.down{color:#ef8585}.market-change.up{color:#8bd08b}.trend-arrow{font-size:18px;font-weight:900}.market-board-foot{display:flex;justify-content:space-between;gap:16px;padding:17px 30px;color:#a9998d;font-size:10px;border-top:1px solid rgba(255,255,255,.08)}
@media(max-width:700px){.market-board-head{flex-direction:column;align-items:stretch}.market-source-badge{min-width:0}.market-table-wrap{padding:0 8px}.market-table-head{display:none}.market-row{grid-template-columns:1.8fr .9fr .9fr;gap:8px;padding:13px 8px}.market-change{grid-column:1/-1;padding-right:54px}.market-board-foot{flex-direction:column;padding:15px 20px}.market-num{font-size:12px}}

/* =========================================================
   SSM v5 — Premium Mobile Responsive + Compact Live Market
   ========================================================= */
html,body{max-width:100%;overflow-x:hidden}
img{max-width:100%;height:auto}
.container{width:min(1180px,calc(100% - 32px));margin-inline:auto}

@media (max-width:720px){
  .container{width:calc(100% - 24px)}
  .section{padding:54px 0}
  .section-head{gap:12px;margin-bottom:22px}
  .section-title{font-size:25px;line-height:1.45}
  .section-sub{font-size:13px;line-height:2}

  /* Header / navigation */
  header.site-header,.site-header{padding:10px 0}
  .header-inner{min-height:58px}
  .site-logo img{max-height:42px;width:auto}
  .menu-toggle{width:44px;height:44px;border-radius:14px}
  .main-navigation ul{gap:4px}
  .main-navigation a{padding:11px 13px;font-size:14px}

  /* Hero */
  .hero{min-height:auto;padding:44px 0 38px}
  .hero h1{font-size:31px;line-height:1.35}
  .hero p{font-size:14px;line-height:2}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .hero-actions .btn{width:100%;justify-content:center}

  /* Three brand cards */
  .own-brand-section{padding:42px 0}
  .own-brand-grid{grid-template-columns:1fr;gap:14px}
  .own-brand-card{min-height:260px;border-radius:20px}
  .own-brand-card-body{padding:18px}
  .own-brand-card h3{font-size:20px}
  .own-brand-card p{font-size:12px;line-height:1.9;margin-bottom:12px}

  /* General cards/grids */
  .cards-grid,.products-grid,.features-grid,.blog-grid{grid-template-columns:1fr!important;gap:14px}
  .card{border-radius:18px}
  .btn{min-height:44px;border-radius:13px;font-size:13px}

  /* Compact live market */
  .live-market,.market-section,.market-panel,.price-board{
    border-radius:18px!important;
  }
  .live-market{padding:14px!important}
  .live-market .market-header,
  .market-panel .market-header,
  .price-board .market-header{
    padding:4px 2px 10px!important;
    margin-bottom:8px!important;
  }
  .live-market .market-header h2,
  .market-panel .market-header h2,
  .price-board .market-header h2{
    font-size:19px!important;
    line-height:1.4!important;
  }
  .live-market .market-header p,
  .market-panel .market-header p,
  .price-board .market-header p{
    font-size:11px!important;
    line-height:1.7!important;
  }
  .market-grid,.live-market .market-grid,.price-grid{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  .market-item,.price-item,.market-row{
    min-height:0!important;
    padding:9px 10px!important;
    border-radius:12px!important;
    display:grid!important;
    grid-template-columns:32px minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
  }
  .market-item img,.price-item img,.market-row img{
    width:30px!important;height:30px!important;
    object-fit:contain!important;
  }
  .market-item h3,.price-item h3,.market-row h3{
    font-size:12px!important;
    margin:0!important;
    line-height:1.5!important;
  }
  .market-item .buy,.market-item .sell,
  .price-item .buy,.price-item .sell,
  .market-row .buy,.market-row .sell{
    font-size:11px!important;
    line-height:1.5!important;
    white-space:nowrap;
  }
  .market-item .meta,.price-item .meta,.market-row .meta{
    font-size:9px!important;
    opacity:.72;
  }
  .market-item .change,.price-item .change,.market-row .change{
    font-size:10px!important;
    padding:2px 5px!important;
    border-radius:7px!important;
  }

  /* Forms */
  .form-grid{grid-template-columns:1fr!important;gap:12px}
  .form-field.full{grid-column:auto!important}
  input,textarea,select{font-size:14px!important}

  /* Footer */
  footer.site-footer,.site-footer{padding-top:40px}
  .footer-grid{grid-template-columns:1fr!important;gap:22px}
  .footer-bottom{text-align:center;font-size:11px;line-height:1.8}
}

/* Very small phones */
@media(max-width:380px){
  .container{width:calc(100% - 18px)}
  .section{padding:44px 0}
  .section-title{font-size:22px}
  .hero h1{font-size:27px}
  .own-brand-card{min-height:235px}
  .market-item,.price-item,.market-row{
    grid-template-columns:28px minmax(0,1fr) auto!important;
    padding:8px!important;
  }
  .market-item img,.price-item img,.market-row img{width:26px!important;height:26px!important}
}

/* Compact live market on all screens */
.live-market .market-grid,.market-panel .market-grid,.price-board .price-grid{
  gap:10px;
}
.live-market .market-item,.market-panel .market-item,.price-board .price-item{
  padding:12px 14px;
}
@media(min-width:721px){
  .live-market .market-grid,.market-panel .market-grid,.price-board .price-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .live-market .market-item,.market-panel .market-item,.price-board .price-item{
    min-height:72px;
  }
}

/* =========================================================
   SSM v6 — Connected navigation / Products / About team
   ========================================================= */
.archive-brand-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
}
.product-brand-card{
  display:flex;
  flex-direction:column;
  min-height:370px;
  overflow:hidden;
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(201,164,92,.28);
  box-shadow:0 18px 50px rgba(43,23,18,.10);
  transition:.28s ease;
}
.product-brand-card:hover{transform:translateY(-6px);box-shadow:0 26px 65px rgba(43,23,18,.16)}
.product-brand-image{
  min-height:210px;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#2b1712,#5a3425);
  overflow:hidden;
}
.product-brand-image img{width:100%;height:210px;object-fit:cover}
.product-brand-body{padding:20px}
.product-brand-body h2{font-size:22px;margin:7px 0 8px;color:var(--brown)}
.product-brand-body p{font-size:13px;line-height:2;color:#6d5c53;min-height:48px}
.products-overview{background:#f8f3ec}
.about-intro-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:28px;
  align-items:stretch;
}
.about-store-image{
  min-height:440px;
  border-radius:28px;
  overflow:hidden;
  background:linear-gradient(145deg,#2b1712,#5a3425);
  border:1px solid rgba(201,164,92,.35);
  box-shadow:0 20px 55px rgba(43,23,18,.14);
}
.about-store-image img{width:100%;height:100%;object-fit:cover}
.about-placeholder{height:100%;min-height:440px;display:grid;place-items:center;color:#e8d3a8;font-size:36px;font-weight:800}
.about-copy{margin:0;max-width:none}
.about-copy h2{margin-top:0}
.about-role{color:#9b7845;font-weight:700}
.seller-info-list{display:grid;gap:10px;margin-top:25px}
.seller-info-list div{
  padding:14px 16px;
  border-radius:14px;
  background:#f8f3ec;
  border:1px solid rgba(201,164,92,.22);
}
.seller-info-list strong{display:block;margin-bottom:5px;color:var(--brown)}
.seller-info-list span{font-size:13px;color:#6d5c53;line-height:1.9}
.staff-section{background:#f8f3ec}
.staff-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.staff-card{
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(201,164,92,.22);
  border-radius:22px;
  box-shadow:0 15px 40px rgba(43,23,18,.08);
}
.staff-photo{height:280px;background:linear-gradient(145deg,#2b1712,#5a3425);overflow:hidden}
.staff-photo img{width:100%;height:100%;object-fit:cover}
.staff-placeholder{height:100%;display:grid;place-items:center;font-size:80px;font-weight:800;color:#c9a45c}
.staff-body{padding:20px}
.staff-body h3{margin:0 0 6px;color:var(--brown)}
.staff-role{font-size:13px;color:#a17c43;font-weight:700;margin-bottom:12px}
.staff-bio{font-size:13px;color:#6d5c53;line-height:2}
.staff-line{font-size:12px;color:#705f56;margin-top:8px}
.empty-staff{padding:30px}

@media(max-width:1100px){
  .archive-brand-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:820px){
  .archive-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .about-intro-grid{grid-template-columns:1fr}
  .about-store-image,.about-placeholder{min-height:330px}
  .staff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .archive-brand-grid{grid-template-columns:1fr}
  .product-brand-card{min-height:330px}
  .product-brand-image{min-height:185px}
  .product-brand-image img{height:185px}
  .about-store-image,.about-placeholder{min-height:250px}
  .about-placeholder{font-size:27px}
  .staff-grid{grid-template-columns:1fr}
  .staff-photo{height:250px}
}

/* =========================================================
   SSM v7 — Full Responsive System
   Mobile / Small Mobile / Tablet / Laptop / Desktop / Wide
   ========================================================= */
:root{
  --container-max:1180px;
  --page-gutter:clamp(12px,3vw,32px);
}

*,*::before,*::after{box-sizing:border-box}
html{width:100%;max-width:100%;overflow-x:hidden}
body{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
main,header,footer,section,article,aside,nav,div{min-width:0}
img,video,iframe,svg{max-width:100%}
img{height:auto}
iframe{border:0}
table{max-width:100%;display:block;overflow-x:auto}
pre,code{max-width:100%;overflow-x:auto}
.container,
.site-container,
.content-area{
  width:min(var(--container-max),calc(100% - (var(--page-gutter) * 2)));
  max-width:100%;
  margin-inline:auto;
}

/* Grids: prevent cards from forcing overflow */
.grid,
.cards-grid,
.products-grid,
.features-grid,
.blog-grid,
.archive-grid,
.archive-brand-grid,
.staff-grid{
  width:100%;
  max-width:100%;
  min-width:0;
}
.grid > *,
.cards-grid > *,
.products-grid > *,
.features-grid > *,
.blog-grid > *,
.archive-grid > *,
.archive-brand-grid > *,
.staff-grid > *{
  min-width:0;
  max-width:100%;
}

/* Header */
.site-header,.header-inner,.site-header .container{
  max-width:100%;
}
.site-header{position:relative;z-index:1000}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-width:0;
}
.site-logo{min-width:0;flex:0 1 auto}
.site-logo a{display:flex;align-items:center;min-width:0}
.site-logo img{display:block;max-width:min(190px,42vw);width:auto;height:auto}
.menu-toggle{flex:0 0 auto}
.main-navigation,.main-navigation ul,.menu{
  min-width:0;
  max-width:100%;
}

/* Hero / typography */
.hero,.page-hero,.section{width:100%;max-width:100%}
.hero > *, .page-hero > *{max-width:100%}
.hero h1,.page-hero h1,.section-title{
  overflow-wrap:anywhere;
  word-break:normal;
}
.hero p,.section-sub,.single-content,.card-body{
  overflow-wrap:anywhere;
}

/* Cards / media */
.card,.product-brand-card,.staff-card,.market-item,.price-item,.market-row{
  min-width:0;
  max-width:100%;
}
.product-image,.product-brand-image,.staff-photo{
  max-width:100%;
  overflow:hidden;
}
.product-image img,.product-brand-image img,.staff-photo img{
  display:block;
  max-width:100%;
  width:100%;
  object-fit:cover;
}

/* Forms */
input,textarea,select,button{
  max-width:100%;
  font:inherit;
}
textarea{resize:vertical}
.form-grid > *{min-width:0}

/* ---------- Wide desktop ---------- */
@media (min-width:1400px){
  :root{--container-max:1280px}
  .container,.site-container,.content-area{
    width:min(var(--container-max),calc(100% - 64px));
  }
}

/* ---------- Laptop / medium desktop ---------- */
@media (max-width:1199px){
  .container,.site-container,.content-area{
    width:calc(100% - 40px);
  }
  .archive-brand-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .staff-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ---------- Tablet landscape ---------- */
@media (max-width:991px){
  .container,.site-container,.content-area{
    width:calc(100% - 32px);
  }
  .archive-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .staff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .about-intro-grid{grid-template-columns:1fr}
  .about-store-image{min-height:360px}
  .about-placeholder{min-height:360px}

  /* Make nav usable at tablet widths */
  .main-navigation ul{
    flex-wrap:wrap;
  }
}

/* ---------- Tablet portrait / large phones ---------- */
@media (max-width:767px){
  :root{--page-gutter:16px}
  .container,.site-container,.content-area{
    width:calc(100% - 32px);
  }

  .section{padding-block:46px}
  .section-head{margin-bottom:20px}
  .section-title{font-size:clamp(22px,6vw,29px);line-height:1.45}
  .section-sub{font-size:13px;line-height:2}

  .header-inner{
    min-height:58px;
    gap:10px;
  }
  .site-logo img{max-width:150px;max-height:45px}
  .menu-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;height:44px;
    padding:0;
  }

  /* Mobile menu: full-width panel, no clipped links */
  .main-navigation{
    width:100%;
  }
  .main-navigation .menu,
  .main-navigation ul{
    width:100%;
  }
  .main-navigation ul{
    flex-direction:column;
    align-items:stretch;
    gap:4px;
  }
  .main-navigation li{
    width:100%;
    min-width:0;
  }
  .main-navigation a{
    display:flex;
    width:100%;
    align-items:center;
    justify-content:space-between;
    min-height:44px;
    padding:10px 13px;
    white-space:normal;
  }

  /* Hero */
  .hero{
    padding-block:42px 34px;
  }
  .hero h1{
    font-size:clamp(27px,8vw,38px);
    line-height:1.38;
    margin-bottom:12px;
  }
  .hero p{
    font-size:14px;
    line-height:2;
  }
  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
    gap:10px;
  }
  .hero-actions .btn,.hero-actions a{
    width:100%;
    min-height:46px;
    justify-content:center;
  }

  /* All major grids become one column on phones */
  .cards-grid,.products-grid,.features-grid,.blog-grid,
  .archive-grid,.archive-brand-grid,.staff-grid{
    grid-template-columns:1fr !important;
    gap:14px;
  }

  .product-brand-card{
    min-height:0;
    width:100%;
  }
  .product-brand-image{
    min-height:190px;
    aspect-ratio:16/9;
  }
  .product-brand-image img{height:100%}
  .product-brand-body{padding:17px}
  .product-brand-body h2{font-size:20px}

  .about-intro-grid{gap:18px}
  .about-store-image,.about-placeholder{
    min-height:260px;
    height:auto;
  }
  .about-store-image img{
    width:100%;
    height:auto;
    min-height:260px;
    object-fit:cover;
  }

  .staff-photo{height:250px}

  /* Compact live market */
  .live-market,.market-section,.market-panel,.price-board{
    width:100%;
    max-width:100%;
    overflow:hidden;
    border-radius:18px !important;
  }
  .live-market .market-header,
  .market-panel .market-header,
  .price-board .market-header{
    padding:4px 2px 9px !important;
    margin-bottom:7px !important;
  }
  .live-market .market-header h2,
  .market-panel .market-header h2,
  .price-board .market-header h2{
    font-size:18px !important;
    line-height:1.45 !important;
  }
  .live-market .market-header p,
  .market-panel .market-header p,
  .price-board .market-header p{
    font-size:10px !important;
    line-height:1.7 !important;
  }
  .market-grid,.live-market .market-grid,
  .market-panel .market-grid,.price-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:6px !important;
    width:100%;
  }
  .market-item,.price-item,.market-row{
    width:100%;
    min-width:0;
    min-height:0 !important;
    padding:8px 9px !important;
    border-radius:11px !important;
    display:grid !important;
    grid-template-columns:28px minmax(0,1fr) auto !important;
    align-items:center;
    gap:7px !important;
  }
  .market-item img,.price-item img,.market-row img{
    width:26px !important;height:26px !important;
    object-fit:contain !important;
  }
  .market-item h3,.price-item h3,.market-row h3{
    min-width:0;
    margin:0 !important;
    font-size:11px !important;
    line-height:1.55 !important;
    overflow-wrap:anywhere;
  }
  .market-item .buy,.market-item .sell,
  .price-item .buy,.price-item .sell,
  .market-row .buy,.market-row .sell{
    min-width:0;
    font-size:10px !important;
    line-height:1.45 !important;
    white-space:nowrap;
  }
  .market-item .meta,.price-item .meta,.market-row .meta{
    font-size:8px !important;
  }

  /* Buttons / cards */
  .btn{
    min-height:44px;
    padding:10px 14px;
    border-radius:12px;
    font-size:13px;
  }

  /* Footer */
  .footer-grid{
    grid-template-columns:1fr !important;
    gap:22px;
  }
  .footer-bottom{
    text-align:center;
    font-size:11px;
    line-height:1.9;
  }
}

/* ---------- Small phones ---------- */
@media (max-width:480px){
  :root{--page-gutter:12px}
  .container,.site-container,.content-area{
    width:calc(100% - 24px);
  }
  .section{padding-block:38px}
  .section-title{font-size:22px}
  .section-sub{font-size:12px}

  .site-logo img{max-width:130px;max-height:40px}
  .menu-toggle{width:42px;height:42px;border-radius:12px}

  .hero{padding-block:34px 28px}
  .hero h1{font-size:27px}
  .hero p{font-size:13px}

  .own-brand-card{min-height:220px}
  .product-brand-image{min-height:165px}
  .product-brand-body{padding:15px}
  .product-brand-body h2{font-size:18px}
  .product-brand-body p{font-size:12px}

  .about-store-image,.about-placeholder{
    min-height:220px;
  }
  .about-store-image img{min-height:220px}
  .staff-photo{height:220px}

  /* Even tighter market rows */
  .live-market,.market-section,.market-panel,.price-board{
    padding:10px !important;
  }
  .market-item,.price-item,.market-row{
    grid-template-columns:25px minmax(0,1fr) auto !important;
    padding:7px 8px !important;
    gap:6px !important;
  }
  .market-item img,.price-item img,.market-row img{
    width:23px !important;height:23px !important;
  }
  .market-item h3,.price-item h3,.market-row h3{font-size:10px !important}
  .market-item .buy,.market-item .sell,
  .price-item .buy,.price-item .sell,
  .market-row .buy,.market-row .sell{font-size:9px !important}
}

/* ---------- Very small phones ---------- */
@media (max-width:360px){
  .container,.site-container,.content-area{
    width:calc(100% - 20px);
  }
  .hero h1{font-size:24px}
  .section-title{font-size:20px}
  .menu-toggle{width:40px;height:40px}
  .site-logo img{max-width:116px}

  .market-item,.price-item,.market-row{
    grid-template-columns:22px minmax(0,1fr) auto !important;
    padding:6px !important;
  }
  .market-item img,.price-item img,.market-row img{
    width:21px !important;height:21px !important;
  }
}

/* ---------- Landscape phones ---------- */
@media (max-width:767px) and (orientation:landscape){
  .hero{padding-block:28px}
  .hero h1{font-size:28px}
  .staff-grid,.archive-brand-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* Kill accidental horizontal overflow from long URLs/text */
p,a,h1,h2,h3,h4,h5,h6,span,li{
  overflow-wrap:anywhere;
}

/* v8: luxury background inspired by the brand card */
html,body{background:#2b1712}
body{
 background-color:#2b1712;
 background-image:linear-gradient(rgba(43,23,18,.78),rgba(43,23,18,.86)),url("../assets/site-luxury-bg.svg");
 background-size:cover;background-position:center top;background-attachment:fixed;background-repeat:no-repeat;
}
.site-main,.site-content,main{background:transparent}
.site-header{background:rgba(30,15,11,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.site-footer{background:rgba(18,9,7,.94)}
.card,.product-brand-card,.staff-card,.market-panel,.price-board,.about-box,.contact-card{
 background:linear-gradient(145deg,rgba(73,40,29,.92),rgba(34,18,14,.94));
 border-color:rgba(201,164,92,.22);box-shadow:0 18px 50px rgba(0,0,0,.20)
}
@media(max-width:767px){
 body{background-attachment:scroll;background-size:auto 760px;background-position:center top;background-image:linear-gradient(rgba(43,23,18,.80),rgba(43,23,18,.90)),url("../assets/site-luxury-bg.svg")}
 .site-header{background:rgba(27,14,10,.94)}
 .main-navigation{background:rgba(27,14,10,.98);border-top:1px solid rgba(201,164,92,.16)}
 .main-navigation a{border-bottom:1px solid rgba(201,164,92,.08)}
}
@media(max-width:480px){body{background-size:auto 610px}}
@media(max-width:360px){body{background-size:auto 540px}}
