/* ===========================================================
   79 CUSTOMS — site styles
   Black & white, gothic / blackletter vibe to match the logo.
   =========================================================== */

:root {
  --black: #0a0a0a;
  --panel: #141414;
  --white: #f5f5f5;
  --grey: #9a9a9a;
  --line: #2a2a2a;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 50% 25%, #1b1b1b 0%, #0a0a0a 70%) fixed,
    var(--black);
  color: var(--white);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand-logo { height: 54px; width: auto; }
.brand-text {
  font-family: "Pirata One", "Oswald", serif;
  font-size: 34px;
  letter-spacing: 0.04em;
}
.nav { display: flex; gap: 34px; }
.nav a {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.2s;
}
.nav a:hover { color: var(--white); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: inherit;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--white);
  color: var(--black);
  padding: 18px 38px;
  font-size: 19px;
  border: 2px solid var(--white);
}
.btn-primary:hover { background: transparent; color: var(--white); transform: translateY(-2px); }
.btn-small {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 10px 22px;
  font-size: 15px;
}
.btn-small:hover { background: var(--white); color: var(--black); }

/* ===== HERO ===== */
.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.hero-logo {
  width: min(720px, 88vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.7))
          drop-shadow(0 0 14px rgba(255,255,255,0.35));
}
.hero-title {
  font-family: "Pirata One", "Oswald", serif;
  font-size: clamp(64px, 14vw, 170px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-shadow: 0 6px 30px rgba(0,0,0,0.8);
}
.hero-tagline {
  margin: 18px auto 30px;
  max-width: 620px;
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== SECTIONS ===== */
.section { padding: 110px 32px; max-width: 1500px; margin: 0 auto; }
.section-alt { background: var(--panel); max-width: none; }
.section-alt > * { max-width: 1500px; margin-left: auto; margin-right: auto; }
.section-title {
  font-family: "Pirata One", "Oswald", serif;
  font-size: clamp(48px, 7vw, 88px);
  text-align: center;
  letter-spacing: 0.03em;
}
.section-sub {
  text-align: center;
  color: var(--grey);
  max-width: 760px;
  margin: 18px auto 56px;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.05em;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 34px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-6px); border-color: var(--white); }
.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-logo { background: #1c1c1c; }
.card-img-logo img { object-fit: contain; padding: 28px; }
.card-img-plate { background: #1c1c1c; }
.card-img-plate img { object-fit: contain; padding: 22px; }
.plate-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(30px, 5vw, 46px) !important;
  z-index: 1;
  pointer-events: none;
}
.card-img-text {
  background: radial-gradient(circle at 50% 40%, #242424 0%, #131313 75%);
}
.design-text {
  font-family: "Pirata One", "Oswald", serif;
  font-size: clamp(40px, 7vw, 60px);
  line-height: 0.92;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--white);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7),
               0 0 14px rgba(255, 255, 255, 0.25);
}
.ph-label {
  display: none;
  color: var(--grey);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.card-img.img-placeholder .ph-label { display: block; }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-title {
  font-family: "Pirata One", "Oswald", serif;
  font-size: 32px;
  letter-spacing: 0.03em;
}
.card-desc { color: var(--grey); font-size: 17px; flex: 1; }

/* ===== FINISH PICKER ===== */
.finishes { margin-top: 4px; }
.finish-label {
  display: block;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: 8px;
}
.finish-options { display: flex; flex-wrap: wrap; gap: 8px; }
.finish {
  background: transparent;
  color: var(--grey);
  border: 1px solid var(--line);
  padding: 8px 15px;
  font-family: inherit;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.finish:hover { border-color: var(--white); color: var(--white); }
.finish.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  font-weight: 600;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.price { font-size: 26px; font-weight: 700; }

/* ===== ABOUT ===== */
.about-text {
  max-width: 860px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 21px;
  color: #d0d0d0;
}

/* ===== ORDER ===== */
.order-box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 52px 44px;
  text-align: center;
}
.order-step {
  text-align: left;
  font-size: 20px;
  margin-bottom: 18px;
  color: #d0d0d0;
}
.order-step span {
  display: inline-block;
  width: 26px;
  font-weight: 700;
  color: var(--white);
}
.btn-email { margin-top: 22px; }
.order-email {
  margin-top: 16px;
  color: var(--grey);
  font-size: 17px;
  letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 50px 24px;
  border-top: 1px solid var(--line);
  background: var(--black);
}
.footer-brand {
  font-family: "Pirata One", "Oswald", serif;
  font-size: 40px;
  letter-spacing: 0.04em;
}
.footer-small { color: var(--grey); font-size: 16px; margin-top: 6px; }

/* ===== PARTICLES ===== */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}
.hero, .section, .section-alt, .site-footer { position: relative; z-index: 1; }

/* Soft glow that follows the cursor */
.trail {
  position: fixed;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: radial-gradient(circle, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 55;
  opacity: 0.28;
  transition: transform 0.35s linear, opacity 0.35s linear;
}

/* Sparkle burst on button clicks */
.sparkle {
  position: fixed;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 60;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {

  /* Hero entrance on page load */
  .hero-logo { animation: heroPop 1s cubic-bezier(0.34, 1.6, 0.5, 1) both; }
  .hero-tagline { animation: slideUp 0.8s ease-out 0.45s both; }
  .hero .btn-primary { animation: slideUp 0.8s cubic-bezier(0.34, 1.6, 0.5, 1) 0.65s both; }

  /* Scroll-triggered reveals (JS adds .in when the element scrolls into view) */
  .reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.34, 1.65, 0.5, 1);
  }
  .reveal-up   { transform: translateY(80px); }
  .reveal-left { transform: translateX(-180px) translateY(40px) rotate(-3deg); }
  .reveal-right{ transform: translateX(180px) translateY(40px) rotate(3deg); }
  .reveal-zoom { transform: scale(0.75); }
  .reveal.in   { opacity: 1; transform: none; }
}

@keyframes heroPop {
  0%   { opacity: 0; transform: scale(0.45) translateY(-40px) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) translateY(0) rotate(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(45px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Beefier card hover */
.card:hover { transform: translateY(-10px) scale(1.02); }

/* ===== BAG (shopping cart) ===== */
.bag-toggle {
  position: relative;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  transition: transform 0.15s, color 0.2s;
}
.bag-toggle:hover { transform: translateY(-2px); }
.bag-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--white);
  color: var(--black);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.bag-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bag-overlay.open { opacity: 1; }

.bag-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100%;
  z-index: 100;
  background: var(--panel);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bag-panel.open { transform: translateX(0); }

.bag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.bag-title {
  font-family: "Pirata One", "Oswald", serif;
  font-size: 38px;
  letter-spacing: 0.03em;
}
.bag-close {
  background: transparent;
  border: none;
  color: var(--grey);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.bag-close:hover { color: var(--white); }

.bag-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.bag-empty { padding: 30px 24px; text-align: center; color: var(--grey); }

.bag-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.bag-item-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bag-item-name {
  font-family: "Pirata One", "Oswald", serif;
  font-size: 21px;
  letter-spacing: 0.02em;
}
.bag-item-finish {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey);
}
.bag-item-price { font-size: 14px; color: var(--grey); }

.bag-item-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.qty-btn:hover { border-color: var(--white); }
.qty-num { min-width: 18px; text-align: center; font-weight: 600; }
.bag-remove {
  background: transparent;
  border: none;
  color: var(--grey);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.bag-remove:hover { color: var(--white); }

.bag-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.bag-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.bag-checkout { width: 100%; text-align: center; }
.bag-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--grey); }

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .nav { gap: 16px; }
  .nav a { font-size: 13px; }
  .section { padding: 60px 18px; }
  .site-header { padding: 12px 16px; }
}
