/* Secret SHOP — Visual audit v8
   Unified shell for secondary pages. Home, cart, checkout and product are excluded
   from this stylesheet by functions.php and keep their approved presentation. */

body.ss-theme:not(.home) .ss-subpage-hero {
  position:relative;
  overflow:hidden;
  border-bottom:1px solid #171717;
  background:
    radial-gradient(circle at 76% 18%, rgba(110,16,32,.30), transparent 31%),
    radial-gradient(circle at 92% 72%, rgba(255,51,68,.08), transparent 24%),
    #050505;
}
body.ss-theme:not(.home) .ss-subpage-hero::after {
  content:"";
  position:absolute;
  inset:auto -7% -70% auto;
  width:520px;
  aspect-ratio:1;
  border:1px solid rgba(255,51,68,.08);
  border-radius:50%;
  pointer-events:none;
}
body.ss-theme:not(.home) .ss-subpage-hero__copy { position:relative; z-index:2; }

body.ss-theme:not(.home) .ss-subpage-hero__inner {
  position:relative;
  z-index:2;
  min-height:286px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:50px;
  align-items:center;
  padding-top:42px;
  padding-bottom:42px;
}
body.ss-theme:not(.home) .ss-subpage-breadcrumb {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:0 0 25px;
  color:#777;
  font:500 11px/1.4 var(--ss-sans);
}
body.ss-theme:not(.home) .ss-subpage-breadcrumb a { color:#858585; }
body.ss-theme:not(.home) .ss-subpage-breadcrumb a:hover { color:var(--ss-white); }
body.ss-theme:not(.home) .ss-subpage-breadcrumb span[aria-hidden="true"] { color:#3d3d3d; }
body.ss-theme:not(.home) .ss-subpage-hero .ss-page-eyebrow { margin-bottom:11px; }
body.ss-theme:not(.home) .ss-subpage-hero h1 {
  max-width:900px;
  margin:0;
  color:var(--ss-white);
  font-family:var(--ss-serif);
  font-size:clamp(48px,5.6vw,82px);
  font-weight:500;
  line-height:.98;
  letter-spacing:-.045em;
  overflow-wrap:normal;
}
body.ss-theme:not(.home) .ss-subpage-hero__intro {
  max-width:720px;
  margin:17px 0 0;
  color:#a9a9a9;
  font:400 15px/1.7 var(--ss-sans);
}
body.ss-theme:not(.home) .ss-subpage-hero__art {
  position:relative;
  min-height:170px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  color:#8c8c8c;
  text-transform:uppercase;
  letter-spacing:.24em;
  font:600 10px/1.75 var(--ss-sans);
}
body.ss-theme:not(.home) .ss-subpage-hero__line {
  width:42px;
  height:1px;
  flex:0 0 auto;
  background:var(--ss-neon);
}
body.ss-theme:not(.home) .ss-subpage-hero__monogram {
  position:absolute;
  right:-14px;
  top:50%;
  width:238px;
  max-width:none;
  height:auto;
  transform:translateY(-50%);
  opacity:.10;
  filter:saturate(.78) brightness(.82);
  pointer-events:none;
  user-select:none;
  z-index:0;
}
body.ss-theme:not(.home) .ss-subpage-hero__art-copy { position:relative; z-index:1; }
body.ss-theme:not(.home) .ss-subpage-hero--offer {
  background:
    radial-gradient(circle at 76% 18%, rgba(155,18,45,.40), transparent 32%),
    radial-gradient(circle at 92% 72%, rgba(255,51,68,.12), transparent 24%),
    #050505;
}

/* Content rhythm shared by listings and information pages. */
body.ss-theme:not(.home) :is(.ss-listing-page,.ss-info-page,.ss-search-page,.ss-catalog-page,.ss-generic-page,.ss-account-page) {
  padding-top:54px;
  padding-bottom:94px;
}
body.ss-theme:not(.home) .ss-page-section-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:30px;
}
body.ss-theme:not(.home) .ss-page-section-head h2 {
  margin:0;
  font:600 clamp(25px,3vw,36px)/1.15 var(--ss-sans);
  letter-spacing:-.025em;
}
body.ss-theme:not(.home) .ss-page-section-head p {
  max-width:560px;
  margin:0;
  color:var(--ss-muted);
  font-size:13px;
  line-height:1.7;
}

/* Catalog/listing pages inherit the product language of Home. */
body.ss-theme:not(.home) :is(.ss-listing-page,.ss-search-page,.ss-catalog-page) .ss-catalog-toolbar {
  margin-top:0;
  margin-bottom:34px;
  padding:16px 0;
}
body.ss-theme:not(.home) :is(.ss-listing-page,.ss-search-page,.ss-catalog-page) ul.products {
  gap:44px 20px;
}
body.ss-theme:not(.home) .ss-editorial-banner {
  min-height:260px;
  margin-bottom:46px;
  border-color:#252525;
  border-radius:10px;
  background:linear-gradient(110deg,#090909,#121212 55%,#24080e);
}
body.ss-theme:not(.home) .ss-editorial-banner h2 {
  font-family:var(--ss-serif);
  font-weight:500;
  letter-spacing:-.025em;
}
body.ss-theme:not(.home) .ss-editorial-banner--offer {
  background:linear-gradient(110deg,#090909,#17080b 55%,#330a13);
}
body.ss-theme:not(.home) .ss-editorial-banner p { font-size:13px; }

/* Search */
body.ss-theme:not(.home) .ss-search-page__form {
  max-width:900px;
  height:60px;
  margin:0 0 42px;
  border:0;
  border-radius:14px;
  overflow:hidden;
  background:#111;
  box-shadow:0 12px 34px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035);
}
body.ss-theme:not(.home) .ss-search-page__form:focus-within { border-color:transparent; }
body.ss-theme:not(.home) .ss-search-page__form input[type=search],
body.ss-theme:not(.home) .ss-search-page__form input[type=search]:focus,
body.ss-theme:not(.home) .ss-search-page__form input[type=search]:focus-visible {
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}
body.ss-theme:not(.home) .ss-search-page__form button {
  width:48px;
  height:48px;
  margin:6px;
  border-radius:10px;
  background:#1a1a1a;
  color:#f1f1ef;
  transition:background-color .18s ease,color .18s ease;
}
body.ss-theme:not(.home) .ss-search-page__form button:hover { background:#242424; color:var(--ss-neon); }

/* Information pages */
body.ss-theme:not(.home) .ss-info-grid {
  gap:16px;
  margin-bottom:48px;
}
body.ss-theme:not(.home) .ss-info-grid article {
  position:relative;
  min-height:154px;
  padding:27px 25px;
  border-radius:9px;
  background:linear-gradient(145deg,#121212,#0c0c0c);
}
body.ss-theme:not(.home) .ss-info-grid article::before {
  content:"";
  display:block;
  width:28px;
  height:2px;
  margin-bottom:18px;
  background:var(--ss-wine);
}
body.ss-theme:not(.home) .ss-info-grid h3 { font-size:15px; }
body.ss-theme:not(.home) .ss-info-grid p { font-size:12.5px; line-height:1.7; }
body.ss-theme:not(.home) .ss-contact-hero {
  min-height:245px;
  margin-bottom:48px;
  border-radius:10px;
  padding:42px 46px;
  background:linear-gradient(112deg,#090909,#15080a 58%,#300a12);
}
body.ss-theme:not(.home) .ss-contact-hero h2 {
  margin:0 0 11px;
  font-family:var(--ss-serif);
  font-size:clamp(30px,3.3vw,43px);
  font-weight:500;
  letter-spacing:-.025em;
}
body.ss-theme:not(.home) .ss-faq {
  border:1px solid #252525;
  border-radius:10px;
  overflow:hidden;
  background:#0b0b0b;
}
body.ss-theme:not(.home) .ss-faq details { border-bottom:1px solid #242424; }
body.ss-theme:not(.home) .ss-faq details:last-child { border-bottom:0; }
body.ss-theme:not(.home) .ss-faq summary {
  padding:22px 24px;
  font-size:14px;
  font-weight:600;
}
body.ss-theme:not(.home) .ss-faq__answer { padding:0 24px 22px; color:#aaa; font-size:13px; }

/* Favorites */
body.ss-theme:not(.home) .ss-favorites-page .ss-empty-state {
  margin-top:0;
  border-radius:10px;
  background:linear-gradient(145deg,#111,#0b0b0b);
}

/* Policies */
body.ss-theme:not(.home) .ss-policy-grid { gap:18px; }
body.ss-theme:not(.home) .ss-policy-card {
  min-height:240px;
  border-radius:9px;
  background:linear-gradient(145deg,#121212,#0c0c0c);
}
body.ss-theme:not(.home) .ss-policy-card h2 {
  font-family:var(--ss-serif);
  font-size:26px;
  font-weight:500;
  letter-spacing:-.025em;
}

/* Generic/legal pages: prevents Privacy Policy, refunds, terms, etc. from falling
   back to an unstyled WordPress article. */
body.ss-theme:not(.home) .ss-prose-shell {
  max-width:980px;
  margin:0 auto;
}
body.ss-theme:not(.home) .ss-prose-card {
  padding:clamp(28px,5vw,58px);
  border:1px solid #292929;
  border-radius:10px;
  background:linear-gradient(145deg,#111,#0b0b0b);
  color:#c1c1c1;
  font-size:14px;
  line-height:1.85;
}
body.ss-theme:not(.home) .ss-prose-card > :first-child { margin-top:0; }
body.ss-theme:not(.home) .ss-prose-card > :last-child { margin-bottom:0; }
body.ss-theme:not(.home) .ss-prose-card :is(h2,h3,h4) {
  color:var(--ss-white);
  letter-spacing:-.02em;
  line-height:1.25;
}
body.ss-theme:not(.home) .ss-prose-card h2 {
  margin:42px 0 16px;
  padding-top:4px;
  font-family:var(--ss-serif);
  font-size:30px;
  font-weight:500;
}
body.ss-theme:not(.home) .ss-prose-card h3 { margin:32px 0 13px; font-size:19px; }
body.ss-theme:not(.home) .ss-prose-card p { margin:0 0 18px; }
body.ss-theme:not(.home) .ss-prose-card :is(ul,ol) { padding-left:22px; margin:0 0 20px; }
body.ss-theme:not(.home) .ss-prose-card li { margin:7px 0; }
body.ss-theme:not(.home) .ss-prose-card a { color:#f1c6ce; text-decoration:underline; text-underline-offset:3px; }
body.ss-theme:not(.home) .ss-prose-card blockquote {
  margin:26px 0;
  padding:18px 22px;
  border-left:2px solid var(--ss-wine);
  background:#151112;
}
body.ss-theme:not(.home) .ss-prose-card table { width:100%; border-collapse:collapse; display:block; overflow-x:auto; }
body.ss-theme:not(.home) .ss-prose-card :is(th,td) { padding:11px 13px; border:1px solid #303030; }

/* My account receives the same branded entry point while native Woo content remains untouched. */
body.woocommerce-account .ss-account-page { padding-top:52px; }
body.woocommerce-account .ss-account-shell > .woocommerce {
  width:100%;
  margin:0;
  padding:0;
}
body.woocommerce-account .ss-account-shell .woocommerce-MyAccount-navigation a {
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}

/* 404 and utility actions */
body.ss-theme:not(.home) .ss-utility-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:26px;
}
body.ss-theme:not(.home) .ss-utility-actions .ss-primary-btn,
body.ss-theme:not(.home) .ss-utility-actions .ss-secondary-btn { justify-content:center; }

@media(max-width:980px) {
  body.ss-theme:not(.home) .ss-subpage-hero__inner { grid-template-columns:1fr 180px; min-height:250px; gap:28px; }
  body.ss-theme:not(.home) .ss-subpage-hero__monogram { width:188px; right:-12px; }
  body.ss-theme:not(.home) .ss-page-section-head { align-items:flex-start; flex-direction:column; gap:10px; }
}
@media(max-width:700px) {
  body.ss-theme:not(.home) .ss-subpage-hero__inner { grid-template-columns:1fr; min-height:0; padding-top:34px; padding-bottom:38px; }
  body.ss-theme:not(.home) .ss-subpage-hero__art { display:none; }
  body.ss-theme:not(.home) .ss-subpage-breadcrumb { margin-bottom:20px; }
  body.ss-theme:not(.home) .ss-subpage-hero h1 { font-size:clamp(43px,13vw,61px); }
  body.ss-theme:not(.home) .ss-subpage-hero__intro { font-size:14px; }
  body.ss-theme:not(.home) :is(.ss-listing-page,.ss-info-page,.ss-search-page,.ss-catalog-page,.ss-generic-page,.ss-account-page) { padding-top:38px; padding-bottom:68px; }
  body.ss-theme:not(.home) .ss-editorial-banner { min-height:270px; border-radius:8px; margin-bottom:36px; }
  body.ss-theme:not(.home) .ss-contact-hero { padding:32px 24px; border-radius:8px; }
  body.ss-theme:not(.home) .ss-policy-grid { gap:12px; }
  body.ss-theme:not(.home) .ss-prose-card { border-radius:8px; }
}

/* Secondary pages already include deliberate bottom rhythm; avoid a second 80px gap. */
body.ss-theme:not(.home) .ss-footer { margin-top:0; }
