/* === LOAD LOCAL FONT === */
@font-face {
  font-family: "super joyful";
  src: url("fonts/Super Joyful.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* === THEME VARIABLES === */
:root {
  --bg: #0b0b0b;
  --panel: rgba(255,255,255,0.04);
  --text: #f5f5f5;
  --muted: #cfcfcf;
  --accent: #c9b58b;
  --accent-contrast: #000;
  --glass: rgba(255,255,255,0.03);
  --card-bg: #0f0f0f;
  --radius: 12px;
  --transition: 0.35s ease;
}

:root[data-theme='light'] {
  --bg: #ffffff;
  --panel: rgba(0,0,0,0.04);
  --text: #0b0b0b;
  --muted: #4a4a4a;
  --accent: #111111;
  --accent-contrast: #fff;
  --glass: rgba(0,0,0,0.02);
  --card-bg: #ffffff;
}

/* === BASE STYLES === */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "super joyful", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* === HEADER === */
header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1200;
  display: block;
  padding: 18px 0;
  transition: padding 0.35s ease;
  background: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  height: 120px;
  transition: transform .35s ease, opacity .35s ease;
}

/* === FORCE WHITE LOGO === */
.logo img {
  filter: brightness(0) invert(1) !important;
}
:root[data-theme='light'] .logo img { filter: invert(1); } 
:root:not([data-theme='light']) .logo img { filter: invert(1); }

header.shrink { padding: 10px 0; }
header.shrink .logo img { transform: scale(.86); opacity: .92; }

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  opacity: 0.95;
  font-weight: 500;
  letter-spacing: .4px;
  transition: opacity .25s;
}

.nav-links a:hover { opacity: .7; }

.icon-btn {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
}
.icon-btn:hover { background: var(--panel); }

.controls { display: flex; gap: 8px; align-items: center; }

/* === HERO === */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) saturate(0.9);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 20px;
}

/* === HERO TEXT === */
.hero h1 {
  font-family: "super joyful", sans-serif !important;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
  color: #fff;
  text-shadow: 2px 3px 10px rgba(0,0,0,0.4);
}

.hero p {
  margin-top: 16px;
  font-size: 18px;
  opacity: 0.9;
  color: #fff;
  font-family: "super joyful", sans-serif;
}

/* === NEWSLETTER BOX === */
.newsletter-box {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
  border-radius: 10px;
  align-items: center;
  max-width: 480px;
  margin: 24px auto 0;
}

.newsletter-box input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.newsletter-box button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #c9b58b;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.newsletter-box button:hover { opacity: 0.85; }

/* === SOCIAL ICONS === */
.social-links {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  z-index: 2;
}

.social-links a {
  color: #fff;
  font-size: 22px;
  transition: color 0.3s ease, transform 0.3s ease;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.social-links a:hover {
  color: #c9b58b;
  transform: translateY(-4px);
}

/* === FOOTER === */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
  letter-spacing: 0.4px;
  font-family: "super joyful", sans-serif;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* === PRODUCT GRID === */
.section { padding: 80px 0; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  padding: 14px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.35);
  transition: transform .35s, box-shadow .35s;
}

.card .img-wrap {
  border-radius: 10px;
  overflow: hidden;
  height: 320px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.card:hover { transform: translateY(-8px); box-shadow: 0 14px 40px rgba(0,0,0,0.45); }
.card:hover img { transform: scale(1.06); }

.card .meta { padding: 14px; }
.title { font-weight: 600; letter-spacing: .4px; }
.price { color: var(--muted); margin-top: 6px; }

.card .actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  transition: transform .18s;
}

.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}

/* === CART PANEL & OVERLAY === */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
  z-index: 1300;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background: var(--card-bg);
  box-shadow: -6px 0 25px rgba(0,0,0,0.4);
  transition: right .4s cubic-bezier(.4,0,.2,1);
  z-index: 1400;
  display: flex;
  flex-direction: column;
}

.cart-panel.open { right: 0; }
.cart-panel.open + .cart-overlay {
  opacity: 1;
  visibility: visible;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--panel);
}

.cart-header h3 {
  margin: 0;
  font-size: 20px;
}

.close-cart {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

#cartItems {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-item img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-footer {
  padding: 18px;
  border-top: 1px solid var(--panel);
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

/* === RESPONSIVE === */
@media(max-width: 1000px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 700px) {
  .products-grid { grid-template-columns: 1fr; }
  .logo img { height: 80px; }
  .hero h1 { font-size: 48px; }
  .cart-panel { width: 100%; }
}
.cart-item button.remove,
.cart-item button.decrease {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.cart-item button.decrease {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
}

.cart-item button.remove:hover,
.cart-item button.decrease:hover {
  opacity: 0.85;
}

body, button, a {
  cursor: url('assets/cursor.svg') 16 16, pointer;
}