:root{
  --bg:#0f1115;
  --panel:#161a22;
  --muted:#9fb0c3;
  --accent:#62d98a;
  --text:#e7eef7;
  --ink:#121417;
  --line:#242b33;
  --btn:#2a3242;
  --star:#f4c150;
  --danger:#ff6b6b;
  --radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,.25);
  --shadow-soft:0 6px 18px rgba(0,0,0,.18);
  --maxw:1200px;
  --gap:22px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

#product-subtitle {width:100% !important; margin: 0 !important; }
#breadcrumbs {width:100% !important; margin: 0 !important; }

.robux {
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 700;
  color: orange;

      font-size: 15px;
    margin-bottom: 10px;
    /*position: absolute;*/
    top: 13px;
    right: 20px;
}
*{ box-sizing:border-box }
html,body{ height:100% }
body{ margin:0; background:var(--bg); color:var(--text); font: 17px/1.55 var(--font) }
a{ color:var(--accent); text-decoration:none }
a:hover{ text-decoration:underline }

/* Header */
.site-head-wrap{ position:sticky; top:0; z-index:50; backdrop-filter: blur(6px); background: rgba(15,17,21,0.85); border-bottom:1px solid var(--line) }
.site-head{ max-width:var(--maxw); margin:0 auto; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px }
.logo-block{ display:flex; flex-direction:column; align-items:flex-start }
.logo{ font-weight:900; letter-spacing:2px; font-size:36px; color:var(--text) }
.logo:hover{ opacity:.85 }
.tagline{ font-size:20px; font-weight:600; color:#62d98a }
.header-actions{ display:flex; align-items:center; gap:25px }
.header-pill{
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border:1px solid var(--line); border-radius:999px; padding:10px 16px;
  font-size:16px; color:var(--text); text-decoration:none; font-weight:500;
  min-height:40px; line-height:1; background:#0c1016;
}
.checkout-link{ background:#fff; color:#333; border-color:#ddd }
.checkout-link.hidden{ display:none }
.cart-icon{ font-size:20px; line-height:1 }
.cart-badge{
  position:absolute; top:-8px; right:-8px; min-width:24px; height:24px; border-radius:999px;
  background:#e11d48; color:white; font-size:14px; font-weight:700; display:grid; place-items:center; padding:0 6px
}
.cart-badge.hidden{ display:none }

/* Layout */
.container{ max-width:var(--maxw); margin:0 auto; padding:20px; display:grid; gap:var(--gap); grid-template-columns: 1.2fr .8fr }
header.page-head{ grid-column:1/-1; display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between }
.title { font-size: clamp(20px, 2.0vw + 14px, 28px);
    line-height: 1.2;
    margin: 0; }
.muted{ color:var(--muted); font-size:14px }

/* Left column */
.left-col{ display:grid; gap: var(--gap); align-content:start }
.gallery{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-soft); padding:14px }
.gallery-main{ position:relative; aspect-ratio: 4/3; background:#0a0c10; border-radius:14px; overflow:hidden; display:grid; place-items:center }
.gallery-main img{ max-width:100%; max-height:100%; object-fit:contain; display:block }
.nav-btn{ position:absolute; top:50%; transform:translateY(-50%); border:none; background:rgba(255,255,255,.08); color:var(--text); width:44px; height:44px; border-radius:50%; cursor:pointer; display:grid; place-items:center; backdrop-filter: blur(4px) }
.nav-btn:hover{ background:rgba(255,255,255,.14) }
.nav-prev{ left:10px } 
.nav-next{ right:10px }
.thumbs{display:flex; gap:10px; overflow-x:auto; padding-top:12px; scrollbar-width:thin }
.thumb{ flex:0 0 90px; aspect-ratio: 1/1; border-radius:10px; overflow:hidden; cursor:pointer; border:2px solid transparent; background:#0b0e14; display:grid; place-items:center }
.thumb img{ width:100%; height:100%; object-fit:cover; display:block }
.thumb.active{ border-color:var(--accent) }

.section-title{ margin:0 0 8px }
.description{ background:var(--panel); box-shadow:var(--shadow-soft); padding:3px }
.tags{ margin-top:10px; display:flex; gap:8px; flex-wrap:wrap }
.tag{ background:#122; border:1px solid #244; color:#bcd; padding:6px 10px; border-radius:999px; font-size:13px }

.reviews{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-soft); padding:18px }
.review-head{ display:flex; align-items:center; gap:10px; margin-bottom:8px }
.stars{ color:var(--star); letter-spacing:1px; font-size:18px }
.review{ padding:14px 0; border-top:1px solid var(--line) }
.review:first-of-type{ border-top:none; padding-top:6px }
.review .author{ color:var(--muted); font-size:14px }

/* Purchase panel */
.purchase{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px; position:sticky; top:16px; align-self:start }
.price{ font-size: 35px; margin: 0; }
.price-sub{ margin:4px 0 6px; color:var(--muted); font-size:14px }
.price-row{ align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    color: white;
    font-size: 31px;
    border: 1px solid #444;
    padding: 6px;
    border-radius: 7px;
    /*width: min-content;*/ }

.form-row{ margin:12px 0; display:grid; gap:6px }
label{ font-weight:600 }

/* Inputs */
select, input[type="text"], input[type="number"], textarea{
  background:#0c1016; color:var(--text); border:1px solid var(--line); border-radius:12px;
  padding:12px 14px; font: inherit; outline:none;
}
select:focus, input:focus, textarea:focus{ border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.15) }

.inline-note{ font-size:14px; color:var(--muted) }
.hidden{ display:none !important }
.actions{ display:flex; gap:12px; margin-top:16px }

/* Buttons */
.btn{
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 500;
    cursor: pointer;
    background: #ff860e;
    color: #ffffff;
    font-size: 16px;
}
.btn.secondary{ background:var(--btn); color:var(--text); font-weight:500 }
.fine{ font-size:13px; color:var(--muted); margin-top:8px }

/* Invalid highlight */
.invalid{ border-color:#ef4444 !important; box-shadow:0 0 0 3px rgba(239,68,68,.15) !important }

/* Mobile CTA */
.mobile-cta{ display:none }
@media (max-width: 560px){
  .container{ grid-template-columns: 1fr }
  .purchase{ position:static }
  .price-row{ flex-wrap:wrap; gap:10px }
  .logo{ font-size:32px }
  .mobile-cta{
    display:block; position:fixed; left:0; right:0; bottom:0; z-index:60;
    background:rgba(15,17,21,.9); backdrop-filter: blur(6px); border-top:1px solid var(--line);
    padding:12px;
  }
  .mobile-add{
    width:100%; display:block; text-align:center;
    background:var(--accent); color:#0a1116; border:none; border-radius:14px;
    padding:16px 18px; font-size:18px; font-weight:500; cursor:pointer;
  }
  body{ padding-bottom:74px }
}

/* Footer */
footer.site-footer{ border-top:1px solid var(--line); background:#0d1015; margin-top:40px; }
.footer-inner{ max-width:var(--maxw); margin:0 auto; padding:24px 20px; display:grid; grid-template-columns: 1fr auto; gap:16px; align-items:center }
.footer-links{ display:flex; gap:18px; flex-wrap:wrap; font-size:15px }
.footer-links a{ color:var(--muted) }
.footer-meta{ color:var(--muted); font-size:14px; text-align:right }
@media (max-width:700px){
  .footer-inner{ grid-template-columns:1fr; text-align:center }
  .footer-meta{ text-align:center }
  .footer-links{ justify-content:center }
}
  

/* CSS (product.css) */
:root{
  --header-h: 22px; /* will be updated by JS to exact height */
}

/* Make the header always on top */
.site-head-wrap{
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 1000;            /* above everything */
  backdrop-filter: blur(6px);
  background: rgba(15,17,21,0.85);
  border-bottom: 1px solid var(--line);
  /* Respect iPhone safe area when used as a PWA/webapp */
  padding-top: max(env(safe-area-inset-top), 0px);
}

/* Push page content below the fixed header (no jump) */
body{
  padding-top: calc(var(--header-h) + max(env(safe-area-inset-top), 0px));
}

/* Product Title (H1) */
#product-title {
  font-size: 28px;            /* Bold, prominent heading */
  font-weight: 700;
  color: #fff;                 /* White, matches Loom dark theme */
  margin-top: 40px;
  white-space: nowrap;         /* Prevent line wrapping */
  overflow: hidden;            /* Hide overflow */
  text-overflow: ellipsis;     /* Show ... when cut off */
  display: block;
  max-width: 100%;             /* Ensure it fits its container */
}

/* Product Subtitle */
#product-subtitle {
  font-size: 16px;             /* Smaller, secondary text */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75); /* Softer contrast for subtitle */
  margin-top: 0px;             /* Space below title */
  line-height: 1.4;
  max-width: 100%;             /* Long lines allowed, wraps naturally */
  word-wrap: break-word;       /* Prevent overflow on very long words */
}


    /* Collapsible description block */
    .desc-wrap{
      margin-top:14px;
      border:1px solid var(--line, #242b33);
      border-radius:14px;
      background:var(--panel, #161a22);
      box-shadow:var(--shadow-soft, 0 6px 18px rgba(0,0,0,.18));
      overflow:hidden;
    }
    .desc-head{
      display:flex; align-items:center; justify-content:space-between;
      gap:12px; padding:12px 14px;
      cursor:pointer; user-select:none;
      border-bottom:1px solid var(--line, #242b33);
    }
    .desc-head .title{ margin:0; font-size:16px; font-weight:700 }
    .desc-head .chev{ width:36px; height:36px; display:grid; place-items:center;
      border:1px solid var(--line, #242b33); border-radius:12px; background:#0c1016; color:#e7eef7;
      transition: transform .18s ease;
    }
    .desc-body{
      position:relative;
      max-height:50px;  /* collapsed */
      overflow:hidden;
      transition:max-height .28s ease;
    }
    .desc-body .inner{ padding:12px 14px }
    /* fade gradient */
    .desc-body::after{
      content:"";
      position:absolute; left:0; right:0; bottom:0; height:48px;
      background: linear-gradient(to bottom, rgba(22,26,34,0), rgba(22,26,34,1));
      pointer-events:none;
      transition:opacity .18s ease;
    }
    /* expanded state */
    .desc-wrap.expanded .desc-body{ max-height:1200px; }
    .desc-wrap.expanded .desc-body::after{ opacity:0; }
    .desc-wrap.expanded .desc-head .chev{ transform:rotate(45deg); } /* + → × feel */

    /* small helper for inline notes near buttons */
    .fine.inline-note{ margin-top:6px; color:var(--muted, #9fb0c3); font-size:14px }

/* ancestors that are grid/flex columns */
.left-col, .content { min-width: 0; }

/* the "Purchased: <link>" line */
.review .item{
  display: flex;
  align-items: baseline;
  gap: 6px;
  color:#9fb0c3;
  font-size:14px;
  /* no fixed width needed; it will use parent's width */
}

.desc-body {
  font-size: 14px;
}

.this-item {
  border: 1px solid #3b3b3b !important;
  padding: 0px 6px;
  border-radius: 5px;
}

.review .item .prodlink{
  flex: 1;            /* take remaining space */
  min-width: 0;       /* allow shrinking in flex/grid */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;     /* or inline-block */
  color: lightslategray;
}

/* === Etsy-style layout for backend-emitted <section class="gallery"> === */
section.gallery{
  display:grid;
  grid-template-columns:112px 1fr;   /* left = thumbs, right = main */
  grid-template-areas:"thumbs main";
  gap:12px;
  align-items:start;
  min-width:0;                        /* prevent grid shrink issues */
}

/* Thumbnails rail (left column) */
section.gallery .thumbs{
  grid-area:thumbs;
  display:flex !important;            /* ensure never hidden */
  flex-direction:column;
  gap:8px;
  overflow:auto;                      /* scroll if many */
  max-height:100%;
  padding-right:4px;
  min-width:112px;                    /* keep column stable */
  padding-left: 8px;
}

/* Thumb sizing */
section.gallery .thumbs .thumb{
  width:100px; height:100px;
  padding:0;
  border:1px solid var(--line, #242b33);
  border-radius:10px;
  background:#0c1016;
  display:block;
  overflow:hidden;
  cursor:pointer;
}
section.gallery .thumbs .thumb img{
  width:100%; height:100%;
  object-fit:cover; display:block;
}

/* Main image pane (right column) */
section.gallery .gallery-main{
  grid-area:main;
  position:relative;
  width:100%;
  min-width:0;                         /* critical for grid */
  min-height:280px;                    /* stable box before load */
      height: 469px !important;
  border:1px solid var(--line, #242b33);
  border-radius:14px;
  background:#0c1016;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
section.gallery .gallery-main img{
  display:block !important;
  width:100%; height:auto;
  max-height:70vh;
  object-fit:contain;
}

/* Prev/Next buttons */
section.gallery .nav-btn{
  position:absolute;
  top:50%; transform:translateY(-50%);
  width:40px; height:40px;
  border-radius:10px;
  border:1px solid var(--line, #242b33);
  background:#0c1016; color:#e7eef7;
  display:grid; place-items:center;
  opacity:.9; cursor:pointer;
}
section.gallery .nav-prev{ left:10px; }
section.gallery .nav-next{ right:10px; }

/* Optional: highlight the active thumbnail if you toggle .active via JS */
section.gallery .thumbs .thumb.active{
  outline:2px solid var(--accent, #62d98a);
  outline-offset:2px;
}

/* === Mobile: stack thumbs ABOVE main image === */
@media (max-width: 720px){
  section.gallery{
    grid-template-columns:1fr;
    grid-template-areas:
      "thumbs"
      "main";
  }
  section.gallery .thumbs{
    flex-direction:row;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0 0 8px 0;
    min-width:0;
  }
  section.gallery .thumbs .thumb{
    width:84px; height:84px;
  }
  section.gallery .gallery-main{
    min-height:240px;
  }
}

/* Prev/Next buttons with blurred glass effect */
section.gallery .nav-btn {
position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgb(34 34 34 / 25%);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 20px;
    display: grid;
    place-items: center; 
    opacity: 0.85;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

section.gallery .nav-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

section.gallery .nav-prev { left: 12px; }
section.gallery .nav-next { right: 12px; }

.stealth-link {
  color: white;
  text-decoration: none;
  font-weight: bold
}

.price-sup {
  font-size: 0.6em;      /* Smaller than main price */
  vertical-align: top;    /* Shift upward */
  position: relative;
  top: -0.4em;            /* Fine-tune position */
}

/* Container for each character */
  .letter {
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
  }
  .letter.glow { color: #ffffff !important; text-shadow: 0 0 0.2rem rgba(255,255,255,0.8); }

  /* Collapsible rows — thinner header + hidden body by default */
  .desc-wrap.collapsible .desc-head {
    display: flex; 
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    cursor: pointer;
    user-select: none;
  }
  .desc-wrap.collapsible .title {
    margin: 0;
    font-size: 16px;
    line-height: 23px;
    font-weight: 300;
  }
  .desc-wrap.collapsible .chev { font-size:16px; opacity:.45; }
  .desc-wrap.collapsible .desc-body { display:none; }
  .desc-wrap.collapsible.expanded .desc-body { display:block; }

  /* Smaller description text */
  .desc-wrap.collapsible .description .inner { font-size:14px; line-height:1.45; color:#cdd6e0; padding:8px 10px 10px; }

  /* === Bestseller pill overlay === */
  .gallery { position: relative; } /* anchor overlay */
  .gallery .license_personal,
  .gallery .license_free,
  .gallery .license_commercial,
  .gallery .bestseller {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-block;
    padding: 1px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .3px;
    text-transform: uppercase;
    /* box-shadow: 0 6px 16px rgba(0, 0, 0, .25); */
    /* border: 1px solid rgba(0, 0, 0, .2); */
    pointer-events: none;
    z-index: 5;
  }

  .gallery .license_personal,
  .gallery .license_free,
  .gallery .license_commercial {
    background: white;
    color: #444;
  }