/* styles.css (Glaze.nz v3 - Clean Tech Aesthetic) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --bg:#faf8ff;
  --paper:#ffffff;
  --ink:#131218;
  --muted:#6b6b77;
  --purple:#f55e87;
  --purple-700:#e14972;
  --yellow:#ffbe3b;
  --shadow:0 12px 35px rgba(23,7,65,.15);
  --radius:22px;
  
  --brand-color: #f55e87;
  --brand-color-rgb: 245, 94, 135;
  
  --accent: var(--brand-color); 
  --accent-rgb: var(--brand-color-rgb); 
  
  --product-accent: var(--accent); 
  --product-accent-rgb: var(--accent-rgb); 
  --product-text-color: var(--ink); 

  --modal-bg: var(--paper);
  --modal-text: var(--ink);
  --modal-button-bg: var(--accent); 
  --modal-button-text: var(--paper);

  --border: rgba(0,0,0,0.08);
  --glass: rgba(255, 255, 255, 0.9);
  --glass-light: rgba(255, 255, 255, 0.95);
  --border-light: rgba(0,0,0,0.04);
  --shadow-flat: 0 8px 16px rgba(0,0,0,0.02), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-lg: 0 24px 48px -12px rgba(0,0,0,0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --font-main: 'Inter', -apple-system, sans-serif;
  
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base */
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body { 
  margin: 0; 
  background: var(--bg); 
  color: var(--ink); 
  font-family: var(--font-main); 
  line-height: 1.5; 
  transition: background 0.3s var(--ease-in-out); 
  padding-top: 72px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Layout */
.wrap { margin: 0 auto; }
.wrap-tight { margin: 0 auto !important; max-width: 1200px !important; padding-left: 20px !important; padding-right: 20px !important; }
.wrap #menu {
      max-width: 1200px;
}
.logo {
      width: 45px;
    height: 45px;
    background-image: url(images/dipped-small.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
}
.logo-small {
width: 80px;
    height: 80px;
    background-image: url(images/dipped-small.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
}

/* ========================================
   HEADER - REDESIGNED
   ======================================== */
.header { 
  height: 72px;
  position: fixed; 
  top: 0; 
  left: 0;
  right: 0;
  z-index: 100; 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px); 
  background: var(--glass);
  border-bottom: 1px solid var(--border); 
  transition: all 0.3s var(--ease-in-out);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Desktop Navigation */
.desktop-nav { 
  display: none;
  gap: 8px; 
  align-items: center; 
}

.desktop-nav a { 
  font-weight: 600; 
  font-size: 15px; 
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease-in-out);
  color: var(--ink);
}

.desktop-nav a:hover {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

/* Header Actions (Cart + Hamburger) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.2s ease;
  color: var(--ink);
}

.cart-icon-btn:hover {
  background: rgba(0,0,0,0.05);
}

.cart-icon-btn i {
  font-size: 24px;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--paper);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  padding: 80px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.close-menu:hover {
  background: rgba(0,0,0,0.05);
}

.close-menu i {
  font-size: 32px;
  color: var(--ink);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mobile-nav a:hover {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

/* Desktop Breakpoint */
@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }
  
  .hamburger {
    display: none;
  }
  
  .mobile-menu-overlay {
    display: none;
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  height: 48px; 
  padding: 0 24px; 
  background: var(--modal-button-bg); 
  color: var(--modal-button-text); 
  border-radius: var(--radius-pill); 
  font-weight: 700; 
  border: none; 
  transition: all 0.3s var(--ease-out-back);
}

.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 25px rgba(var(--product-accent-rgb), 0.4); 
}

.btn-main { 
  background-color: var(--accent); 
  color: white; 
}

.btn-ghost { 
  background: transparent; 
  color: var(--muted); 
  border: 1px solid var(--border); 
}

.btn-ghost:hover { 
  border-color: var(--accent); 
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05); 
}

.btn-sm { 
  height: 36px; 
  font-size: 14px; 
  padding: 0 16px; 
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero { 
  padding: 80px 0 60px; 
  text-align: center; 
}

.hero h1 { 
  font-size: clamp(40px, 8vw, 96px); 
  line-height: 0.9; 
  letter-spacing: -0.05em; 
  margin: 0 0 24px; 
  font-weight: 900; 
  background: linear-gradient(90deg, var(--accent), var(--accent)); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  background-clip: text; 
  color: var(--accent); 
  padding-bottom: 13px;
}

.hero p { 
  font-size: 20px; 
  color: var(--muted); 
  max-width: 500px; 
  margin: 0 auto 30px; 
}

/* ========================================
   PRODUCT GRID (Homepage Cards)
   ======================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  padding-bottom: 80px;
}

.card { 
  background: var(--paper); 
  border-radius: var(--radius-lg); 
  position: relative; 
  border: 1px solid var(--border); 
  cursor: pointer;
  transition: transform 0.5s var(--ease-out-back), box-shadow 0.5s var(--ease-out-back), border-color 0.5s var(--ease-out-back), background-color 0.4s ease, color 0.4s ease;
  overflow: hidden; 
  padding: 20px; 
  color: var(--ink);
}

.card:hover { 
  transform: translateY(-10px) scale(1.02); 
  box-shadow: 0 25px 60px rgba(var(--product-accent-rgb), 0.4); 
  border-color: rgba(var(--product-accent-rgb), 0.6); 
  z-index: 10;
  background-color: var(--product-accent);
  color: var(--product-text-color);
}

.card-image-wrapper {
  aspect-ratio: 1 / 1; 
  width: 100%; 
  margin: -10px auto 16px; 
  border-radius: var(--radius-md);
  overflow: hidden; 
  transition: all 0.5s var(--ease-out-back);
  transform: scale(0.95);
}

.card:hover .card-image-wrapper {
  transform: scale(1.02); 
}

.card-img {
  object-fit: cover;
  width: 100%; 
  height: 100%;
  transition: transform 0.4s var(--ease-out-back);
}

.card-title { 
  font-weight: 900; 
  font-size: 22px; 
  margin-bottom: 4px; 
  color: var(--ink); 
  transition: color 0.4s ease; 
}

.card-sub { 
  color: var(--muted); 
  font-size: 15px; 
  transition: color 0.4s ease; 
}

.card-price { 
  margin-top: 10px; 
  font-weight: 700; 
  font-size: 17px; 
  color: var(--product-accent);
  transition: color 0.4s ease;
}

.card:hover .card-title, 
.card:hover .card-sub, 
.card:hover .card-price { 
  color: inherit; 
}

.card-badge { 
  position: absolute; 
  top: 18px; 
  right: 18px; 
  background: var(--product-accent); 
  color: #fff; 
  padding: 6px 12px; 
  border-radius: var(--radius-pill); 
  font-size: 12px; 
  font-weight: 700; 
  box-shadow: var(--shadow-sm); 
  z-index: 5; 
}

/* ========================================
   SOLD OUT STYLES
   ======================================== */
.card.sold-out {
  cursor: default;
}

.card.sold-out .card-img {
  filter: grayscale(100%);
  opacity: 0.5;
}

.card.sold-out .card-body {
  opacity: 0.6;
}

.card.sold-out:hover {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.card.sold-out:hover .card-image-wrapper {
  transform: scale(1);
}

.sold-out-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.sold-out-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  transform: rotate(-8deg);
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay { 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.5); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px); 
  z-index: 200; 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.3s var(--ease-in-out); 
}

.modal-overlay.open { 
  opacity: 1; 
  pointer-events: auto; 
}

.modal { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%) scale(0.9); 
  width: min(90%, 900px);
  max-height: 90vh;
  border-radius: var(--radius-lg); 
  overflow: hidden; 
  display: grid; 
  grid-template-columns: 1.2fr 1.8fr; 
  opacity: 0;
  transition: transform 0.4s var(--ease-out-back), opacity 0.4s var(--ease-in-out);
  box-shadow: var(--shadow-lg);
  background: var(--modal-bg);
}

.modal-overlay.open .modal { 
  opacity: 1; 
  transform: translate(-50%, -50%) scale(1); 
}

.modal-img-col {
  background: var(--product-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-img { 
  width: 80%; 
  height: auto; 
  object-fit: contain; 
  padding: 40px; 
  transform: scale(1.2);
max-width: 330px;
}

.modal-content { 
  padding: 40px; 
  color: var(--modal-text);
}

.modal-title { 
  font-size: 40px; 
  font-weight: 900; 
  line-height: 1.1; 
  margin-bottom: 10px;
}

.modal-short { 
  font-size: 18px; 
  color: var(--muted); 
  margin-bottom: 20px; 
  font-weight: 500;
}

.modal-price { 
  font-size: 32px; 
  font-weight: 800; 
  color: var(--accent); 
  margin-bottom: 30px; 
}

.modal-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 5px;
}

.modal-desc-title {
  font-weight: 700;
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-desc { 
  font-size: 16px; 
  line-height: 1.6; 
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  border-radius: var(--radius-pill);
  background: rgba(var(--product-accent-rgb), 0.1);
  color: var(--product-accent);
  font-size: 13px;
  font-weight: 600;
}

.tag-group {
  margin-top: 20px;
}

.tag-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.modal-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

/* ========================================
   CART PAGE
   ======================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 60px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table tr {
  border-bottom: 1px solid var(--border-light);
}

.cart-table td {
  padding: 20px 12px;
}

.item-name {
  width: 60%;
}

.item-name .title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.item-name .details {
  font-size: 14px;
  color: var(--muted);
}

.item-price {
  font-weight: 700;
  font-size: 16px;
  text-align: right;
}

.item-actions {
  text-align: right;
  width: 60px;
}

.btn-remove {
  background: none; 
  border: none; 
  color: var(--muted); 
  opacity: 0.6; 
  transition: opacity 0.2s, color 0.2s;
  padding: 8px;
}

.btn-remove:hover { 
  color: var(--purple-700); 
  opacity: 1; 
}

.btn-remove svg { 
  display: block; 
}

.cart-summary {
  position: sticky;
  top: 92px;
  padding: 30px;
  background: var(--glass-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.cart-summary h2 { 
  margin-top: 0; 
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 16px;
}

.summary-line.total {
  border-top: 2px solid var(--border);
  margin-top: 15px;
  padding-top: 15px;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.form-group { 
  margin-bottom: 15px; 
}

.form-group label {
  display: block; 
  font-weight: 600; 
  margin-bottom: 5px; 
  font-size: 14px; 
  color: var(--muted);
}

.input, select.input {
  width: 100%; 
  padding: 12px 15px; 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  font-size: 16px; 
  background: #f7f7f9; 
  transition: border-color 0.2s; 
  -webkit-appearance: none; 
  -moz-appearance: none; 
  appearance: none;
}

.input:focus, select.input:focus {
  outline: none; 
  border-color: var(--accent); 
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border-light);
  margin-top: 80px;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }
  
  .wrap { 
    padding: 0 0; 
  }
  
  .header-container {
    padding: 0 16px;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .card {
    padding: 15px;
    border-radius: 12px;
  }
  
  .card-image-wrapper { 
    margin: -5px auto 10px; 
  }
  
  .hero { 
    padding: 60px 20px 60px; 
  }
  
  .hero h1 { 
    font-size: 48px; 
  }
  
  .hero p { 
    font-size: 16px; 
  }
  
  .modal { 
    grid-template-columns: 1fr; 
    max-height: 90vh; 
    overflow-y: auto; 
  }
  
  .modal-img-col { 
    height: 300px; 
      padding-top: 40px;
  }
  
  .modal-img { 
    padding: 20px; 
    transform: scale(1.0); 
  }
  
  .modal-content { 
    padding: 24px; 
  }
  
  .modal-title { 
    font-size: 32px; 
  }
  .wrap #menu {
      padding: 20px;
  }
}