/*
Theme Name: CheapDisneyCards
Theme URI: https://cheapdisneycards.com
Author: CheapDisneyCards
Description: Custom storefront theme for CheapDisneyCards — a discount gift card marketplace. Twilight ticket-stub design system with product pages, filtering, and a mockup add-to-order/checkout flow. Not affiliated with or endorsed by The Walt Disney Company.
Version: 1.3
Requires PHP: 7.4
Text Domain: cheapdisneycards
*/

  :root{
    --bg-deep:#1B1340;
    --bg-plum:#241A54;
    --bg-plum-2:#2E2166;
    --gold:#F5B942;
    --gold-dim:#C9962F;
    --pink:#FF6F91;
    --cream:#FBF7EE;
    --ink:#241A54;
    --ink-soft:#4A3D82;
    --lavender:#B7A9E0;
    --lavender-dim:#8B7CC0;
    --line: rgba(247,244,255,0.14);
  }

  *{box-sizing:border-box; margin:0; padding:0;}

  html{scroll-behavior:smooth;}

  body{
    background:var(--bg-deep);
    color:#F7F4FF;
    font-family:'Inter', sans-serif;
    line-height:1.5;
    overflow-x:hidden;
  }

  body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
      radial-gradient(600px 400px at 85% -5%, rgba(255,111,145,0.16), transparent 60%),
      radial-gradient(700px 500px at -10% 15%, rgba(245,185,66,0.10), transparent 60%);
    pointer-events:none;
    z-index:0;
  }

  h1,h2,h3{
    font-family:'Fraunces', serif;
    font-weight:600;
    letter-spacing:-0.01em;
  }

  .mono{
    font-family:'JetBrains Mono', monospace;
    letter-spacing:0.04em;
  }

  a{ color:inherit; text-decoration:none; }

  .wrap{
    max-width:1180px;
    margin:0 auto;
    padding:0 32px;
    position:relative;
    z-index:1;
  }

  /* ---------- NAV ---------- */
  nav{
    position:sticky; top:0; z-index:50;
    background:rgba(27,19,64,0.82);
    backdrop-filter:blur(10px);
    border-bottom:1px dashed var(--line);
  }
  .nav-inner{
    display:flex; align-items:center; justify-content:space-between;
    padding:18px 32px;
    max-width:1180px; margin:0 auto;
  }
  .logo{
    display:flex; align-items:center; gap:11px;
    font-family:'Fraunces', serif;
    font-weight:700;
    font-size:1.32rem;
    letter-spacing:-0.01em;
  }
  .logo-mark{
    width:38px; height:38px;
    background:var(--gold);
    border-radius:9px 9px 9px 3px;
    position:relative;
    flex-shrink:0;
    transform:rotate(-6deg);
    color:var(--bg-deep);
    box-shadow:0 4px 14px -4px rgba(245,185,66,0.55);
  }
  .logo-mark svg{
    position:absolute; inset:0; margin:auto;
    width:24px; height:24px;
    transform:rotate(6deg);
  }
  .logo-word .lw-cheap{ color:var(--lavender); font-weight:600; }
  .logo-word .lw-disney{ color:var(--gold); font-style:italic; }
  .logo-word .lw-cards{ color:#fff; }
  .nav-links{
    display:flex; gap:34px; align-items:center;
    font-size:0.94rem; font-weight:500;
    color:var(--lavender);
  }
  .nav-links a:hover{ color:#fff; }
  .cdc-cart-link{
    position:relative;
    display:flex; align-items:center; justify-content:center;
    color:var(--lavender);
    width:38px; height:38px;
  }
  .cdc-cart-link:hover{ color:var(--gold); }
  .cdc-cart-link svg{ width:22px; height:22px; }
  .cdc-cart-link .cart-contents-count{
    position:absolute; top:-2px; right:-2px;
    background:var(--pink); color:#fff;
    font-size:0.68rem; font-weight:700;
    width:17px; height:17px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-family:'Inter', sans-serif;
  }
  .nav-cta{
    background:var(--gold);
    color:var(--bg-deep) !important;
    padding:10px 20px;
    border-radius:6px 6px 6px 2px;
    font-weight:600;
    font-size:0.92rem;
    transition:transform 0.15s ease, box-shadow 0.15s ease;
  }
  .nav-cta:hover{ transform:translateY(-2px); box-shadow:0 8px 20px -6px rgba(245,185,66,0.5); }
  .menu-btn{ display:none; background:none; border:none; color:#fff; font-size:1.5rem; cursor:pointer; }

  /* ---------- HERO ---------- */
  .hero{
    padding:88px 32px 60px;
    display:grid;
    grid-template-columns:1.05fr 0.95fr;
    gap:56px;
    align-items:center;
    max-width:1180px;
    margin:0 auto;
    position:relative;
    z-index:1;
  }
  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    color:var(--gold);
    font-size:0.82rem;
    font-weight:600;
    letter-spacing:0.08em;
    text-transform:uppercase;
    margin-bottom:20px;
  }
  .eyebrow::before{ content:none; }
  .hero h1{
    font-size:clamp(2.6rem, 5vw, 3.9rem);
    line-height:1.04;
    color:#fff;
    margin-bottom:22px;
  }
  .hero h1 em{
    font-style:italic;
    color:var(--gold);
  }
  .hero p{
    color:var(--lavender);
    font-size:1.12rem;
    max-width:480px;
    margin-bottom:34px;
  }
  .btn-row{ display:flex; gap:16px; flex-wrap:wrap; }
  .btn-primary{
    background:var(--gold);
    color:var(--bg-deep);
    padding:15px 26px;
    border-radius:8px 8px 8px 2px;
    font-weight:700;
    font-size:0.98rem;
    display:inline-block;
    transition:transform 0.15s ease, box-shadow 0.15s ease;
  }
  .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 24px -6px rgba(245,185,66,0.45); }
  .btn-secondary{
    border:1px solid var(--line);
    padding:15px 26px;
    border-radius:8px;
    font-weight:600;
    font-size:0.98rem;
    color:#fff;
    display:inline-block;
    transition:border-color 0.15s ease, background 0.15s ease;
  }
  .btn-secondary:hover{ border-color:var(--gold); background:rgba(245,185,66,0.06); }

  /* ---------- TICKET COMPONENT (signature element) ---------- */
  .ticket{
    background:var(--cream);
    color:var(--ink);
    border-radius:14px;
    position:relative;
    padding:30px 30px 26px;
    box-shadow:0 30px 70px -25px rgba(0,0,0,0.55);
    display:flex;
    gap:0;
  }
  .ticket::before, .ticket::after{
    content:"";
    position:absolute;
    width:26px; height:26px;
    background:var(--bg-deep);
    border-radius:50%;
    top:50%;
    transform:translateY(-50%);
    z-index:2;
  }
  .ticket::before{ left:-13px; }
  .ticket::after{ right:-13px; }
  .ticket-main{ flex:1; padding-right:20px; }
  .ticket-stub{
    width:120px;
    flex-shrink:0;
    border-left:2px dashed rgba(36,26,84,0.25);
    padding-left:20px;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    text-align:center;
  }
  .ticket-label{
    font-size:0.72rem;
    font-weight:700;
    letter-spacing:0.12em;
    text-transform:uppercase;
    color:var(--ink-soft);
    margin-bottom:6px;
  }
  .ticket-title{
    font-family:'Fraunces', serif;
    font-weight:600;
    font-size:1.3rem;
    margin-bottom:14px;
  }
  .price-row{ display:flex; align-items:baseline; gap:10px; margin-bottom:6px;}
  .price-old{
    color:var(--ink-soft);
    text-decoration:line-through;
    font-size:1rem;
  }
  .price-new{
    font-family:'Fraunces', serif;
    font-size:2.1rem;
    font-weight:700;
    color:var(--pink);
  }
  .ticket-code{
    font-size:0.72rem;
    color:var(--ink-soft);
    margin-top:8px;
  }
  .stub-percent{
    font-family:'Fraunces', serif;
    font-size:1.6rem;
    font-weight:700;
    color:var(--gold-dim);
    transform:rotate(-8deg);
    display:inline-block;
  }
  .stub-sub{
    font-size:0.66rem;
    font-weight:700;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--ink-soft);
    margin-top:2px;
  }

  /* ---------- SECTIONS ---------- */
  section{ padding:90px 0; position:relative; z-index:1; }
  .section-head{ max-width:560px; margin-bottom:56px; }
  .section-eyebrow{
    color:var(--pink);
    font-size:0.8rem;
    font-weight:700;
    letter-spacing:0.1em;
    text-transform:uppercase;
    margin-bottom:12px;
    display:block;
  }
  .section-head h2{
    font-size:clamp(1.9rem, 3.4vw, 2.6rem);
    color:#fff;
  }
  .section-head p{
    color:var(--lavender);
    margin-top:14px;
    font-size:1.02rem;
  }

  /* how it works */
  .steps{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:0;
    position:relative;
  }
  .steps::before{
    content:"";
    position:absolute;
    top:26px; left:60px; right:60px;
    height:1px;
    background:repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
    z-index:0;
  }
  .step{ padding:0 28px; position:relative; z-index:1; }
  .step:first-child{ padding-left:0; }
  .step-num{
    font-family:'JetBrains Mono', monospace;
    font-size:0.9rem;
    color:var(--bg-deep);
    background:var(--gold);
    width:52px; height:52px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-weight:600;
    margin-bottom:22px;
  }
  .step h3{ color:#fff; font-size:1.25rem; margin-bottom:10px; }
  .step p{ color:var(--lavender); font-size:0.96rem; }

  /* card grid */
  .card-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:52px 40px;
  }
  .card-grid .ticket{ transition:transform 0.2s ease, box-shadow 0.2s ease; }
  .card-grid .ticket:hover{ transform:translateY(-4px); box-shadow:0 36px 80px -25px rgba(0,0,0,0.6); }

  /* trust */
  .trust-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:32px;
  }
  .trust-card{
    background:var(--bg-plum);
    border:1px solid var(--line);
    border-radius:16px;
    padding:32px 28px;
  }
  .trust-icon{
    width:44px; height:44px;
    border-radius:10px;
    background:rgba(245,185,66,0.14);
    color:var(--gold);
    display:flex; align-items:center; justify-content:center;
    font-size:1.2rem;
    margin-bottom:20px;
  }
  .trust-card h3{ color:#fff; font-size:1.12rem; margin-bottom:10px; font-family:'Fraunces', serif; font-weight:600;}
  .trust-card p{ color:var(--lavender); font-size:0.94rem; }

  /* testimonial */
  .quote-band{
    background:var(--bg-plum-2);
    border-radius:24px;
    padding:56px;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:40px;
  }
  .quote{
    font-family:'Fraunces', serif;
    font-size:1.2rem;
    font-style:italic;
    color:#fff;
    line-height:1.5;
    margin-bottom:18px;
  }
  .quote-name{ color:var(--gold); font-weight:600; font-size:0.9rem; }
  .quote-role{ color:var(--lavender-dim); font-size:0.85rem; }

  /* footer CTA */
  .final-cta{
    text-align:center;
    padding:100px 32px;
  }
  .final-cta h2{
    font-size:clamp(2rem, 4vw, 3rem);
    color:#fff;
    margin-bottom:20px;
  }
  .final-cta p{ color:var(--lavender); margin-bottom:34px; font-size:1.05rem;}

  footer{
    border-top:1px dashed var(--line);
    padding:48px 32px 40px;
  }
  .foot-inner{
    max-width:1180px; margin:0 auto;
    display:flex; justify-content:space-between; align-items:flex-start;
    flex-wrap:wrap; gap:32px;
  }
  .foot-cols{ display:flex; gap:64px; flex-wrap:wrap; }
  .foot-col h4{ color:#fff; font-size:0.85rem; margin-bottom:14px; letter-spacing:0.04em; }
  .foot-col a{ display:block; color:var(--lavender); font-size:0.9rem; margin-bottom:9px; }
  .foot-col a:hover{ color:var(--gold); }
  .foot-bottom{
    max-width:1180px; margin:40px auto 0; padding-top:24px;
    border-top:1px solid var(--line);
    color:var(--lavender-dim); font-size:0.82rem;
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  }

  /* reveal animation */
  .reveal{ opacity:0; transform:translateY(18px); transition:opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in{ opacity:1; transform:translateY(0); }

  /* hero sparkle accents */
  .hero-visual{ position:relative; }
  .hero-visual .sparkle{
    position:absolute;
    color:var(--gold);
    font-size:1.3rem;
    animation:cdc-twinkle 2.6s ease-in-out infinite;
    pointer-events:none;
    z-index:2;
  }
  .hero-visual .s1{ top:-18px; right:36px; animation-delay:0s; }
  .hero-visual .s2{ bottom:-14px; left:-10px; font-size:1rem; animation-delay:0.6s; }
  .hero-visual .s3{ top:40%; right:-16px; font-size:0.85rem; animation-delay:1.2s; }
  @keyframes cdc-twinkle{
    0%, 100% { opacity:0.35; transform:scale(0.85); }
    50% { opacity:1; transform:scale(1.15); }
  }

  @media (prefers-reduced-motion: reduce){
    .reveal{ opacity:1; transform:none; transition:none; }
    .hero-visual .sparkle{ animation:none; opacity:0.85; }
    html{ scroll-behavior:auto; }
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 880px){
    .hero{ grid-template-columns:1fr; padding-top:120px; }
    .nav-links{ display:none; }
    .menu-btn{ display:block; }
    .steps{ grid-template-columns:1fr; gap:36px; }
    .steps::before{ display:none; }
    .step{ padding-left:0; }
    .card-grid{ grid-template-columns:1fr; }
    .trust-grid{ grid-template-columns:1fr; }
    .quote-band{ grid-template-columns:1fr; padding:36px; }
    .ticket{ flex-direction:column; }
    .ticket::before, .ticket::after{ top:auto; left:50%; transform:translateX(-50%); }
    .ticket::before{ top:-13px; }
    .ticket::after{ bottom:-13px; top:auto; }
    .ticket-stub{ width:100%; border-left:none; border-top:2px dashed rgba(36,26,84,0.25); padding-left:0; padding-top:16px; margin-top:16px; flex-direction:row; gap:16px; justify-content:space-between;}
  }

/* ---------- INTERIOR PAGE HERO ---------- */
.page-hero{
  padding:70px 32px 20px;
  max-width:1180px;
  margin:0 auto;
  position:relative;
  z-index:1;
}
.breadcrumb{
  font-size:0.85rem;
  color:var(--lavender-dim);
  margin-bottom:18px;
}
.breadcrumb a{ color:var(--lavender); }
.breadcrumb a:hover{ color:var(--gold); }
.page-hero h1{
  font-size:clamp(2.2rem, 4.2vw, 3.2rem);
  color:#fff;
  margin-bottom:16px;
  max-width:680px;
}
.page-hero p{
  color:var(--lavender);
  font-size:1.05rem;
  max-width:560px;
}

/* ---------- FILTER TABS (gift cards page) ---------- */
.filter-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:36px 0 44px;
}
.filter-btn{
  background:transparent;
  border:1px solid var(--line);
  color:var(--lavender);
  padding:9px 18px;
  border-radius:999px;
  font-size:0.88rem;
  font-weight:600;
  font-family:'Inter', sans-serif;
  cursor:pointer;
  transition:all 0.15s ease;
}
.filter-btn:hover{ border-color:var(--gold); color:#fff; }
.filter-btn.active{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--bg-deep);
}

/* ---------- FAQ ACCORDION ---------- */
.faq-list{
  max-width:760px;
  border-top:1px dashed var(--line);
}
.faq-item{
  border-bottom:1px dashed var(--line);
}
.faq-q{
  width:100%;
  background:none;
  border:none;
  color:#fff;
  text-align:left;
  padding:24px 4px;
  font-family:'Fraunces', serif;
  font-size:1.08rem;
  font-weight:600;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  gap:20px;
}
.faq-q .plus{
  color:var(--gold);
  font-size:1.3rem;
  flex-shrink:0;
  transition:transform 0.2s ease;
  font-family:'Inter', sans-serif;
}
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.25s ease;
  color:var(--lavender);
  font-size:0.96rem;
  line-height:1.6;
}
.faq-a-inner{ padding:0 4px 24px; max-width:640px; }
.faq-item.open .faq-a{ max-height:240px; }

/* ---------- CONTACT FORM ---------- */
.contact-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:start;
}
.contact-info-card{
  background:var(--bg-plum);
  border:1px solid var(--line);
  border-radius:16px;
  padding:32px;
}
.contact-info-card h3{ color:#fff; font-size:1.1rem; margin-bottom:8px; font-family:'Fraunces', serif; }
.contact-info-card p{ color:var(--lavender); font-size:0.94rem; margin-bottom:22px; }
.contact-info-row{ display:flex; gap:12px; margin-bottom:16px; align-items:flex-start; }
.contact-info-row .ic{ color:var(--gold); font-size:1.1rem; width:24px; flex-shrink:0; }
.contact-info-row div{ font-size:0.92rem; color:var(--lavender); }
.contact-info-row strong{ color:#fff; display:block; font-size:0.92rem; margin-bottom:2px; }

.field{ margin-bottom:20px; }
.field label{
  display:block;
  font-size:0.85rem;
  font-weight:600;
  color:var(--lavender);
  margin-bottom:8px;
}
.field input, .field textarea, .field select{
  width:100%;
  background:var(--bg-plum);
  border:1px solid var(--line);
  border-radius:8px;
  padding:13px 14px;
  color:#fff;
  font-family:'Inter', sans-serif;
  font-size:0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline:2px solid var(--gold);
  outline-offset:1px;
  border-color:transparent;
}
.field textarea{ resize:vertical; min-height:120px; }
.submit-note{ font-size:0.82rem; color:var(--lavender-dim); margin-top:14px; }
.form-success{
  display:none;
  background:rgba(245,185,66,0.12);
  border:1px solid var(--gold);
  color:#fff;
  padding:16px 18px;
  border-radius:10px;
  font-size:0.92rem;
  margin-bottom:20px;
}
.form-success.show{ display:block; }

/* ---------- LEGAL / PROSE ---------- */
.prose{ max-width:760px; }
.prose h2{
  font-size:1.4rem;
  color:#fff;
  margin:44px 0 14px;
}
.prose h2:first-child{ margin-top:0; }
.prose p{
  color:var(--lavender);
  font-size:0.98rem;
  margin-bottom:14px;
}
.prose ul{ color:var(--lavender); font-size:0.98rem; margin:0 0 14px 22px; }
.prose li{ margin-bottom:8px; }
.prose .updated{
  color:var(--lavender-dim);
  font-size:0.85rem;
  margin-bottom:40px;
  display:block;
}

/* ---------- CTA BAND (reused across interior pages) ---------- */
.cta-band{
  background:var(--bg-plum-2);
  border-radius:24px;
  padding:52px;
  text-align:center;
}
.cta-band h2{ color:#fff; font-size:1.8rem; margin-bottom:14px; }
.cta-band p{ color:var(--lavender); margin-bottom:26px; }

@media (max-width: 880px){
  .contact-layout{ grid-template-columns:1fr; }
}


/* ---------- PRODUCT PAGE ---------- */
.product-layout{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:60px;
  align-items:start;
}
.product-visual{ width:100%; min-width:0; }
.product-visual .ticket{ margin-bottom:20px; }
.product-info h1{ font-size:2rem; color:#fff; margin-bottom:10px; }
.product-info .desc{ color:var(--lavender); font-size:1rem; margin-bottom:28px; line-height:1.6; }

.denom-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:26px; }
.denom-btn{
  background:var(--bg-plum);
  border:1px solid var(--line);
  color:#fff;
  padding:14px 10px;
  border-radius:10px;
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:0.98rem;
  text-align:center;
  cursor:pointer;
  min-width:92px;
  transition:all 0.15s ease;
}
.denom-btn .d-face{ font-size:0.72rem; color:var(--lavender-dim); font-family:'Inter',sans-serif; font-weight:600; display:block; margin-bottom:4px; }
.denom-btn .d-price{ color:var(--pink); }
.denom-btn:hover{ border-color:var(--gold); }
.denom-btn.active{ border-color:var(--gold); background:rgba(245,185,66,0.1); }
.denom-btn.active .d-price{ color:var(--gold); }

.qty-row{ display:flex; align-items:center; gap:20px; margin-bottom:26px; }
.qty-stepper{
  display:flex; align-items:center; gap:0;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}
.qty-stepper button{
  background:var(--bg-plum);
  border:none;
  color:#fff;
  width:42px; height:42px;
  font-size:1.2rem;
  cursor:pointer;
}
.qty-stepper button:hover{ background:var(--bg-plum-2); }
.qty-stepper span{
  width:46px; text-align:center;
  font-family:'JetBrains Mono', monospace;
  font-size:1rem;
}
.delivery-note{
  display:flex; align-items:center; gap:8px;
  color:var(--lavender);
  font-size:0.88rem;
  margin-bottom:28px;
}
.delivery-note .ic{ color:var(--gold); }

.add-cart-btn{
  background:var(--gold);
  color:var(--bg-deep);
  border:none;
  padding:16px 28px;
  border-radius:8px 8px 8px 2px;
  font-weight:700;
  font-size:1rem;
  cursor:pointer;
  width:100%;
  margin-bottom:8px;
  transition:transform 0.15s ease, box-shadow 0.15s ease;
}
.add-cart-btn:hover{ transform:translateY(-2px); box-shadow:0 10px 24px -6px rgba(245,185,66,0.45); }

/* Order / cart panel */
.order-panel{
  background:var(--bg-plum);
  border:1px solid var(--line);
  border-radius:16px;
  padding:28px;
}
.order-panel h3{ color:#fff; font-family:'Fraunces', serif; font-size:1.15rem; margin-bottom:18px; }
.cart-empty{ color:var(--lavender-dim); font-size:0.92rem; }
.cart-line{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 0;
  border-bottom:1px dashed var(--line);
  font-size:0.92rem;
  color:#fff;
}
.cart-line .cl-name{ color:#fff; }
.cart-line .cl-sub{ color:var(--lavender-dim); font-size:0.8rem; }
.cart-line .cl-remove{ color:var(--pink); cursor:pointer; font-size:0.82rem; margin-left:10px; }
.cart-totals{ margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
.cart-totals .row{ display:flex; justify-content:space-between; font-size:0.92rem; color:var(--lavender); margin-bottom:8px; }
.cart-totals .row.total{ color:#fff; font-weight:700; font-size:1.1rem; font-family:'Fraunces', serif; }

/* Checkout section */
.checkout-section{ margin-top:70px; }
.checkout-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.checkout-grid .field.full{ grid-column:1 / -1; }

@media (max-width: 880px){
  .product-layout{ grid-template-columns:1fr; }
  .checkout-grid{ grid-template-columns:1fr; }
}


/* ---------- WOOCOMMERCE OVERRIDES ---------- */
/* Restyles WooCommerce's own default markup (gallery, price, variations,
   add-to-cart, reviews) to match the site's twilight/gold palette. */

.woocommerce div.product .cdc-product{ color:#F7F4FF; }

/* Gallery */
.product-visual .woocommerce-product-gallery{ position:relative; width:100%; }
.product-visual .woocommerce-product-gallery__wrapper{
  border-radius:16px; overflow:hidden; width:100% !important;
  box-shadow:0 30px 70px -25px rgba(0,0,0,0.55);
}
.product-visual .woocommerce-product-gallery__image{ width:100% !important; }
.product-visual img{
  border-radius:16px; display:block;
  width:100% !important; height:auto !important;
  max-width:100% !important; min-width:100%;
}
.product-visual .onsale{
  position:absolute; top:14px; left:14px; z-index:3;
  background:var(--gold); color:var(--bg-deep);
  font-family:'Fraunces', serif; font-weight:700; font-size:0.85rem;
  padding:6px 14px; border-radius:999px;
}
.woocommerce-product-gallery__trigger{ display:none; }

/* Title / price / excerpt */
.product-info .product_title{
  font-family:'Fraunces', serif; color:#fff; font-size:2rem; margin-bottom:10px;
}
.product-info p.price{
  font-family:'Fraunces', serif; font-size:1.6rem; color:var(--pink);
  margin-bottom:18px;
}
.product-info p.price del{ color:var(--lavender-dim); font-size:1.05rem; opacity:0.8; margin-right:8px; }
.product-info p.price ins{ text-decoration:none; color:var(--gold); }
.product-info .woocommerce-product-details__short-description{
  color:var(--lavender); font-size:1rem; line-height:1.6; margin-bottom:24px;
}
.product-info .woocommerce-product-details__short-description p{ margin-bottom:10px; }

/* Variations form */
.product-info table.variations{ width:100%; margin-bottom:20px; border:none; }
.product-info table.variations tr{ display:block; margin-bottom:14px; }
.product-info table.variations th.label{
  display:block; color:var(--lavender); font-size:0.85rem; font-weight:600; margin-bottom:8px;
}
.product-info table.variations td.value{ display:block; }
.product-info table.variations select{
  width:100%; max-width:320px;
  background:var(--bg-plum); border:1px solid var(--line); border-radius:8px;
  color:#fff; padding:12px 14px; font-family:'Inter', sans-serif; font-size:0.95rem;
}
.product-info .woocommerce-variation-price{ margin-bottom:14px; }
.product-info .woocommerce-variation-price .price{
  font-family:'Fraunces', serif; font-size:1.4rem; color:var(--gold);
}
.product-info .reset_variations{
  color:var(--lavender-dim); font-size:0.82rem; margin-left:10px;
}

/* Quantity + add to cart */
.product-info .quantity{ display:inline-block; margin-right:14px; vertical-align:middle; }
.product-info .quantity .qty{
  width:80px; background:var(--bg-plum); border:1px solid var(--line);
  border-radius:8px; color:#fff; padding:16px 10px; font-family:'JetBrains Mono', monospace;
  text-align:center; font-size:1.1rem;
}
.product-info .single_add_to_cart_button{
  background:var(--gold) !important;
  color:var(--bg-deep) !important;
  border:none !important;
  padding:19px 34px !important;
  border-radius:10px 10px 10px 3px !important;
  font-weight:700 !important;
  font-family:'Inter', sans-serif !important;
  font-size:1.15rem !important;
  cursor:pointer;
  transition:transform 0.15s ease, box-shadow 0.15s ease;
  display:inline-flex !important;
  align-items:center;
  gap:10px;
}
.product-info .single_add_to_cart_button::before{
  content:"🛒";
  font-size:1.1rem;
}
.product-info .single_add_to_cart_button:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px -6px rgba(245,185,66,0.45);
}
.product-info .woocommerce-variation-add-to-cart{ margin-top:10px; }

/* Meta (SKU, category) */
.product-info .product_meta{
  margin-top:22px; padding-top:18px; border-top:1px dashed var(--line);
  color:var(--lavender-dim); font-size:0.85rem;
}
.product-info .product_meta a{ color:var(--lavender); }
.product-info .product_meta a:hover{ color:var(--gold); }
.product-info .product_meta .sku_wrapper{ display:none; }

/* Stock / availability text */
.product-info p.stock{
  color:var(--gold); font-size:1.15rem; font-weight:700;
  margin-bottom:18px; font-family:'Fraunces', serif;
}
.product-info p.stock.out-of-stock{ color:var(--pink); }
.product-info .cdc-product-cats{
  margin-top:22px; padding-top:18px; border-top:1px dashed var(--line);
  color:var(--lavender-dim); font-size:0.85rem;
}
.product-info .cdc-product-cats a{ color:var(--lavender); }
.product-info .cdc-product-cats a:hover{ color:var(--gold); }

/* Related products + reviews section wrapper */
.cdc-product .related.products,
.cdc-product #reviews{
  margin-top:70px; padding-top:50px; border-top:1px dashed var(--line);
}
.cdc-product .related.products > h2,
.cdc-product #reviews h2{
  font-family:'Fraunces', serif; color:#fff; font-size:1.6rem; margin-bottom:24px;
}

/* WooCommerce product grids, site-wide (Shop archive page, Related
   products, upsells/cross-sells) — WooCommerce's own stylesheet used to
   provide the baseline list-style/grid rules for these; since it's
   fully dequeued (see functions.php), this theme provides them instead. */
ul.products{
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
  list-style:none; margin:0; padding:0;
}
ul.products li.product{
  background:var(--bg-plum); border:1px solid var(--line); border-radius:14px;
  padding:18px; list-style:none; position:relative;
}
ul.products li.product a{ text-decoration:none; display:block; }
ul.products li.product img{
  border-radius:10px; margin-bottom:12px; display:block;
  width:100%; aspect-ratio:1000/630; object-fit:cover;
}
ul.products li.product .woocommerce-loop-product__title{
  color:#fff; font-family:'Fraunces', serif; font-size:1.05rem; margin:0 0 8px;
}
ul.products li.product .price{ color:var(--gold); font-size:0.98rem; }
ul.products li.product .price del{ color:var(--lavender-dim); opacity:0.8; margin-right:6px; }
ul.products li.product .price ins{ text-decoration:none; }
ul.products li.product .button{
  display:inline-block; margin-top:12px;
  background:var(--gold); color:var(--bg-deep); border:none;
  border-radius:8px 8px 8px 2px; padding:10px 18px; font-weight:700;
  font-family:'Inter', sans-serif; font-size:0.88rem; cursor:pointer;
}
ul.products li.product .onsale{
  position:absolute; top:14px; left:14px; z-index:2;
  background:var(--gold); color:var(--bg-deep);
  font-family:'Fraunces', serif; font-weight:700; font-size:0.8rem;
  padding:5px 12px; border-radius:999px;
}

@media (max-width: 880px){
  ul.products{ grid-template-columns:repeat(2,1fr); }
}

/* ---------- STRAY WIDGET SAFETY NET ---------- */
/* In case any default widget list ends up rendering outside our own
   footer markup, this keeps it from looking like broken default WP
   styling against the dark theme. */
.widget{
  background:var(--bg-plum);
  border:1px solid var(--line);
  border-radius:14px;
  padding:22px 24px;
  margin:24px auto;
  max-width:1180px;
  color:var(--lavender);
}
.widget .widget-title, .widget h2{
  font-family:'Fraunces', serif; color:#fff; font-size:1.05rem; margin-bottom:12px;
}
.widget ul{ list-style:none; padding:0; margin:0; }
.widget li{ margin-bottom:8px; }
.widget a{ color:var(--lavender); }
.widget a:hover{ color:var(--gold); }

/* ---------- ADD TO CART / VARIATION FORM POLISH ---------- */
.product-info .single_add_to_cart_button.disabled,
.product-info .single_add_to_cart_button.wc-variation-selection-needed{
  background:var(--bg-plum) !important;
  color:var(--lavender-dim) !important;
  cursor:not-allowed;
  box-shadow:none !important;
}
.product-info .single_add_to_cart_button.disabled:hover,
.product-info .single_add_to_cart_button.wc-variation-selection-needed:hover{
  transform:none; box-shadow:none !important;
}
.product-info .variations{ margin-bottom:6px; }
.product-info .woocommerce-variation-add-to-cart{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:16px;
}
.product-info .woocommerce-variation-availability{ width:100%; order:3; }
.product-info .woocommerce-variation-availability .stock.out-of-stock{
  color:var(--pink); font-size:0.9rem; margin-top:8px; display:block;
}
.product-info .woocommerce-variation-availability .stock.in-stock{
  color:var(--gold); font-size:0.9rem; margin-top:8px; display:block;
}
.product-info .cdc-select-hint{
  color:var(--lavender-dim); font-size:0.82rem; margin:-8px 0 16px;
}

/* ---------- WOOCOMMERCE MY ACCOUNT ---------- */
.woocommerce-account .wrap{ padding:40px 32px 90px; }
.woocommerce-account .woocommerce{
  display:grid; grid-template-columns:220px 1fr; gap:40px; color:#F7F4FF;
}
.woocommerce-MyAccount-navigation ul{ list-style:none; padding:0; margin:0; }
.woocommerce-MyAccount-navigation li{ margin-bottom:4px; }
.woocommerce-MyAccount-navigation a{
  display:block; padding:10px 14px; border-radius:8px;
  color:var(--lavender); font-size:0.94rem; font-weight:500;
}
.woocommerce-MyAccount-navigation li.is-active a{
  background:var(--bg-plum); color:#fff;
}
.woocommerce-MyAccount-navigation a:hover{ color:var(--gold); }

.woocommerce-MyAccount-content{
  background:var(--bg-plum); border:1px solid var(--line); border-radius:16px; padding:32px;
}
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3{
  font-family:'Fraunces', serif; color:#fff; margin-bottom:16px;
}
.woocommerce-MyAccount-content table{
  width:100%; border-collapse:collapse; color:var(--lavender);
}
.woocommerce-MyAccount-content table th,
.woocommerce-MyAccount-content table td{
  padding:12px 10px; border-bottom:1px dashed var(--line); text-align:left; font-size:0.92rem;
}
.woocommerce-MyAccount-content .button, .woocommerce-account .button{
  background:var(--gold); color:var(--bg-deep); border:none; border-radius:8px 8px 8px 2px;
  padding:10px 18px; font-weight:700; font-family:'Inter',sans-serif; display:inline-block;
}
.woocommerce-account form .form-row label{ color:var(--lavender); font-size:0.88rem; margin-bottom:6px; display:block; }
.woocommerce-account form input.input-text,
.woocommerce-account form select{
  width:100%; background:#241A54; border:1px solid var(--line); border-radius:8px;
  color:#fff; padding:11px 13px; margin-bottom:14px;
}
.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit{
  background:var(--gold) !important; color:var(--bg-deep) !important; border:none !important;
  border-radius:8px 8px 8px 2px !important; padding:12px 22px !important; font-weight:700 !important;
}
.woocommerce-account .woocommerce-LostPassword a,
.woocommerce-account .u-column2 h2{ color:var(--lavender); }
.woocommerce-account mark{ background:none; color:var(--gold); font-weight:600; }
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-info{
  background:var(--bg-plum-2); border-left:3px solid var(--gold); color:#fff;
  padding:14px 18px; border-radius:8px; margin-bottom:20px; list-style:none;
}

@media (max-width: 880px){
  .woocommerce-account .woocommerce{ grid-template-columns:1fr; }
}

/* ---------- WOOCOMMERCE CART & CHECKOUT ---------- */
/* Needed now that WooCommerce's own stylesheet is fully dequeued
   (see functions.php) — these pages had zero styling without this. */

.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table{
  width:100%; border-collapse:collapse; margin-bottom:24px; color:#F7F4FF;
}
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td{
  padding:14px 10px; border-bottom:1px dashed var(--line); text-align:left; font-size:0.92rem;
}
.woocommerce-cart table.shop_table img{ border-radius:8px; max-width:64px; height:auto; }
.woocommerce-cart .product-remove a{ color:var(--pink); font-size:1.2rem; }
.woocommerce-cart td.actions .input-text,
.woocommerce-cart .quantity .qty{
  background:var(--bg-plum); border:1px solid var(--line); border-radius:8px;
  color:#fff; padding:10px; width:70px; text-align:center;
}
.woocommerce-cart td.actions .button,
.woocommerce-checkout .button,
.woocommerce-cart .coupon .button{
  background:var(--gold); color:var(--bg-deep); border:none; border-radius:8px 8px 8px 2px;
  padding:12px 20px; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer;
}
.woocommerce-cart .coupon .input-text{
  background:var(--bg-plum); border:1px solid var(--line); border-radius:8px;
  color:#fff; padding:11px 13px; margin-right:10px;
}

.cart_totals, .woocommerce-checkout-review-order{
  background:var(--bg-plum); border:1px solid var(--line); border-radius:16px;
  padding:26px; max-width:420px; margin-left:auto; color:#F7F4FF;
}
.cart_totals h2, .woocommerce-checkout-review-order h3{
  font-family:'Fraunces', serif; color:#fff; margin-bottom:16px;
}
.cart_totals table, .woocommerce-checkout-review-order-table{
  width:100%; border-collapse:collapse;
}
.cart_totals table th, .cart_totals table td,
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td{
  padding:10px 0; border-bottom:1px dashed var(--line); font-size:0.92rem;
}
.cart_totals .order-total .amount,
.woocommerce-checkout-review-order-table .order-total .amount{
  color:var(--gold); font-family:'Fraunces', serif; font-size:1.15rem; font-weight:700;
}
.wc-proceed-to-checkout .checkout-button,
#place_order{
  display:block; width:100%; text-align:center;
  background:var(--gold) !important; color:var(--bg-deep) !important;
  border:none !important; border-radius:8px 8px 8px 2px !important;
  padding:15px 22px !important; font-weight:700 !important; font-family:'Inter',sans-serif !important;
  cursor:pointer; margin-top:14px;
}

/* Checkout billing/shipping form */
.woocommerce-checkout .col2-set{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.woocommerce-checkout .form-row{ margin-bottom:16px; }
.woocommerce-checkout .form-row label{ display:block; color:var(--lavender); font-size:0.86rem; margin-bottom:6px; }
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout textarea{
  width:100%; background:var(--bg-plum); border:1px solid var(--line); border-radius:8px;
  color:#fff; padding:11px 13px;
}
.woocommerce-checkout .woocommerce-additional-fields{ margin-top:20px; }
.woocommerce-checkout #order_review{ margin-top:0; }
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-info{
  background:var(--bg-plum-2); border-left:3px solid var(--gold); color:#fff;
  padding:14px 18px; border-radius:8px; margin-bottom:20px; list-style:none;
}
.woocommerce-checkout .payment_methods{ list-style:none; padding:0; margin-top:20px; }
.woocommerce-checkout .payment_methods li{
  background:var(--bg-plum); border:1px solid var(--line); border-radius:10px;
  padding:14px 16px; margin-bottom:10px; color:#F7F4FF;
}
.woocommerce-checkout .payment_box{ margin-top:10px; font-size:0.88rem; color:var(--lavender); }

.woocommerce-message, .woocommerce-error, .woocommerce-info{
  background:var(--bg-plum-2); border-left:3px solid var(--gold); color:#fff;
  padding:14px 18px; border-radius:8px; margin-bottom:20px; list-style:none;
}

@media (max-width: 880px){
  .woocommerce-checkout .col2-set{ grid-template-columns:1fr; }
  .cart_totals, .woocommerce-checkout-review-order{ margin-left:0; max-width:100%; }
}
