:root{
  --bg: #f6f7fb;
  --surface: #ffffff;

  --text: #1f2430;
  --muted: #6b7385;

  --border: rgba(31, 36, 48, 0.10);

  --accent: #ff3ba7;      /* magenta */
  --accent2: #00dcff;     /* teal */
  --accent3: #ffd400;     /* yellow */
  --accent-dark: #e02285;
  --accent-soft: #ffe5f5;

  --shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 18px 45px rgba(15, 23, 42, 0.16);

  /* easy tweaks */
  --logo-size: 132px;
  --logo-pop: 16px;
  --radius: 22px;
}

/* Base */
*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ margin: 0; padding: 0; }

body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 59, 167, 0.10), transparent 42%),
    radial-gradient(circle at 90% 10%, rgba(0, 220, 255, 0.10), transparent 42%),
    radial-gradient(circle at 40% 95%, rgba(255, 212, 0, 0.10), transparent 45%),
    var(--bg);
  min-height: 100vh;
}

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

/* ---------------------------
   Header (pop-art + neon)
---------------------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 14px 18px 14px 18px;
  background:
    linear-gradient(90deg,
      rgba(255, 59, 167, 0.11),
      rgba(0, 220, 255, 0.08),
      rgba(255, 212, 0, 0.10)
    ),
    rgba(255,255,255,0.90);

  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  overflow: visible;
}

.brand{
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;

  /* make room for the floating logo badge */
  padding-left: calc(var(--logo-size) + 14px);
  min-height: calc(var(--logo-size) - 8px);
}

.logo-badge{
  position: absolute;
  left: 0;
  top: calc(-1 * var(--logo-pop));
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 999px;

  background: #fff;
  border: 4px solid var(--accent-soft);
  box-shadow: var(--shadow-strong);
  overflow: hidden;

  /* no animation by default – JS toggles .logo-roll */
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.logo-badge::after{
  content:"";
  position:absolute;
  inset:-12px;
  border-radius: 999px;
  background: radial-gradient(circle,
    rgba(255, 59, 167, 0.20),
    rgba(0, 220, 255, 0.14),
    transparent 68%
  );
  filter: blur(10px);
  z-index: 0;
}

.logo-img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* animation (reliable) */
@keyframes logoRollIn {
  0%   { transform: translateX(-56px) rotate(-220deg) scale(0.72); opacity: 0; }
  70%  { transform: translateX(6px)   rotate(12deg)   scale(1.04); opacity: 1; }
  100% { transform: translateX(0px)   rotate(0deg)    scale(1);    opacity: 1; }
}
.logo-badge.logo-roll{
  animation: logoRollIn 920ms cubic-bezier(.2,.9,.2,1) 90ms both;
}
@media (prefers-reduced-motion: reduce){
  .logo-badge.logo-roll{ animation: none; }
}

.brand-text{
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-neon{
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.12rem;
  line-height: 1.08;
  color: #1f2430;

  /* neon vibe */
  text-shadow:
    0 0 10px rgba(255, 59, 167, 0.26),
    0 0 12px rgba(0, 220, 255, 0.22);
}

.brand-tagline{
  font-size: 0.90rem;
  color: var(--muted);
  line-height: 1.2;
}

.cart-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  border: 1px solid rgba(255, 59, 167, 0.55);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  box-shadow: 0 3px 10px rgba(148, 27, 91, 0.10);
  font-weight: 800;
  color: var(--accent-dark);
}

.cart-toggle:hover{ background: rgba(255, 59, 167, 0.08); }

.cart-badge{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 59, 167, 0.12);
  border: 1px solid rgba(255, 59, 167, 0.28);
  color: var(--accent-dark);
  font-weight: 900;
}

/* ---------------------------
   Layout
---------------------------- */

.page{
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 16px 44px;

  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
  gap: 24px;
}

/* Hero */
.hero{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 22px;
  margin-bottom: 18px;
}

.hero-top{ position: relative; z-index: 1; }

.hero-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  text-transform: uppercase;

  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255, 212, 0, 0.12);
  margin-bottom: 10px;
}

.hero-title{
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.05;
}

.hero-subtitle{
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-burst{
  position: absolute;
  inset: -40px -60px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;

  background:
    radial-gradient(circle at 35% 30%, rgba(255, 212, 0, 0.40), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(0, 220, 255, 0.34), transparent 55%),
    radial-gradient(circle at 35% 65%, rgba(255, 59, 167, 0.34), transparent 55%);
  filter: blur(2px);
  transform: rotate(18deg);
}

/* Buttons */
.primary-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  padding: 11px 16px;

  border: none;
  cursor: pointer;

  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;

  background: linear-gradient(45deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 20px rgba(255, 59, 167, 0.18);
  transition: transform .12s ease, filter .12s ease;
}

.primary-btn:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.primary-btn:active{ transform: translateY(1px); }

.primary-btn.secondary{
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid rgba(255, 59, 167, 0.55);
  box-shadow: none;
}

/* Products */
.products-section h2{ margin: 0 0 6px; font-size: 1.25rem; }
.section-intro{ margin: 0 0 16px; color: var(--muted); }

.products-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.product-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-image{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid rgba(31, 36, 48, 0.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 59, 167, 0.10), transparent 60%),
    radial-gradient(circle at 80% 60%, rgba(0, 220, 255, 0.10), transparent 60%),
    #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-fallback{
  font-weight: 900;
  color: rgba(31,36,48,0.70);
  text-align: center;
  padding: 14px;
}

.product-header{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.product-name{ font-weight: 900; }
.product-price{ font-weight: 900; color: var(--accent-dark); }

.product-description{ margin: 0; color: var(--muted); font-size: 0.92rem; }

.product-actions{
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.action-btn{
  flex: 1;
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 59, 167, 0.55);
  background: #fff;
  color: var(--accent-dark);
  font-weight: 900;
  cursor: pointer;
}

.action-btn.buy{
  border: none;
  color: #fff;
  background: linear-gradient(45deg, var(--accent), var(--accent2));
}

/* Cart panel */
.cart-panel{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  height: fit-content;

  position: sticky;
  top: 96px;
}

.cart-panel-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cart-panel h2{
  margin: 0;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cart-mini-link{
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 0.9rem;
}

.cart-items{
  border-radius: 16px;
  border: 1px dashed rgba(31,36,48,0.14);
  background: rgba(240, 245, 255, 0.45);
  padding: 10px;
  min-height: 88px;
}

.cart-empty{
  margin: 0;
  color: var(--muted);
}

/* Cart rows */
.cart-item-row{
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 2px;
  border-bottom: 1px dashed rgba(31,36,48,0.12);
}
.cart-item-row:last-child{ border-bottom: none; }

.cart-item-name{
  font-weight: 900;
  font-size: 0.95rem;
}

.cart-qty-controls{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(31,36,48,0.10);
  background: #fff;
}

.cart-qty-btn{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(31,36,48,0.16);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.cart-qty-btn:hover{
  border-color: rgba(255, 59, 167, 0.55);
  background: rgba(255, 59, 167, 0.08);
}

.cart-qty-value{
  min-width: 20px;
  text-align: center;
  font-weight: 900;
}

.cart-item-price{
  font-weight: 900;
  color: rgba(31,36,48,0.85);
}

.cart-remove-btn{
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
  color: rgba(31,36,48,0.45);
}
.cart-remove-btn:hover{ color: var(--accent-dark); }

/* Cart summary */
.cart-summary{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.cart-summary-big{
  margin-top: 16px;
}

.cart-total-line{
  margin: 0;
  font-weight: 900;
}

.cart-hint{
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Cart page */
.cart-page{
  max-width: 860px;
  margin: 28px auto 44px;
  padding: 0 16px;
}

.cart-page-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.cart-page-card h1{
  margin: 0 0 6px;
}

.cart-page-subtitle{
  margin: 0 0 14px;
  color: var(--muted);
}

.cart-page-note{
  margin: 14px 0 0;
}
.cart-page-note a{
  color: var(--accent-dark);
  font-weight: 900;
}

/* Simple pages */
.simple-page{
  background: var(--bg);
  min-height: 100vh;
}
.simple-wrapper{
  max-width: 560px;
  margin: 90px auto;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

/* Footer */
.site-footer{
  text-align: center;
  padding: 16px;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 44px;
}

/* Responsive */
@media (max-width: 980px){
  .page{ grid-template-columns: 1fr; }
  .cart-panel{ position: static; }
}

@media (max-width: 720px){
  :root{
    --logo-size: 96px;
    --logo-pop: 10px;
  }

  .site-header{
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .brand{
    padding-left: calc(var(--logo-size) + 12px);
    min-height: calc(var(--logo-size) + 10px);
  }

  .brand-neon{ font-size: 1.03rem; }
}
