/* Tokoro Wear — shared styles (Island Street Culture) */

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.icon-fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

html { scroll-behavior: smooth; }

body {
  background-color: #131313;
  color: #e5e2e1;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #131313; }
::-webkit-scrollbar-thumb { background: #353534; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #544434; }

.nav-blur {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.hero-gradient {
  background: linear-gradient(to bottom, rgba(19, 19, 19, 0.2) 0%, rgba(19, 19, 19, 0.9) 100%);
}
.card-gradient {
  background: linear-gradient(to top, rgba(32, 31, 31, 0.95) 0%, rgba(32, 31, 31, 0) 100%);
}

.bg-leaf-watermark {
  background-image: url('data:image/svg+xml;utf8,<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><path d="M200,50 C250,150 350,150 350,250 C350,350 250,350 200,300 C150,350 50,350 50,250 C50,150 150,150 200,50 Z" fill="rgba(159, 222, 189, 0.03)"/></svg>');
  background-repeat: repeat;
}

/* Form controls */
.island-input,
select.island-input,
textarea.island-input,
input.island-input {
  width: 100%;
  background-color: #1c1b1b !important;
  border: 1px solid #544434 !important;
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  font-family: 'Hanken Grotesk', sans-serif;
  color: #f2f0ef !important;
  outline: none;
  transition: all 150ms ease-in-out;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  -webkit-text-fill-color: #f2f0ef;
}
.island-input::placeholder { color: #b6a794 !important; opacity: 1 !important; }
.island-input:focus {
  border-color: #ff9f1c !important;
  box-shadow: 0 0 0 1px #ff9f1c;
}
.island-input option { background-color: #1c1b1b; color: #f2f0ef; }
/* Autofill in Chrome forces its own white bg/text — force it back to theme colors */
.island-input:-webkit-autofill,
.island-input:-webkit-autofill:hover,
.island-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1c1b1b inset !important;
  -webkit-text-fill-color: #f2f0ef !important;
}
.island-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #dac2ae;
  margin-bottom: 0.5rem;
}
.island-checkbox {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #544434;
  border-radius: 0.25rem;
  background-color: #1c1b1b;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  flex-shrink: 0;
}
.island-checkbox:checked {
  background-color: #ff9f1c;
  border-color: #ff9f1c;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
}
.island-checkbox:focus { box-shadow: 0 0 0 3px rgba(255,159,28,0.3); }

a, button, input, select { transition: all 150ms ease-in-out; }

/* Toast notifications */
#toast-root {
  position: fixed;
  top: 88px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}
.toast {
  background: #201f1f;
  border: 1px solid #544434;
  color: #e5e2e1;
  padding: 14px 16px;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 200ms ease-out;
}
.toast.toast-error { border-color: #93000a; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cart drawer */
#cart-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity 200ms ease;
}
#cart-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
#cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px;
  background: #1c1b1b; z-index: 91; transform: translateX(100%);
  transition: transform 250ms ease; display: flex; flex-direction: column;
  border-left: 1px solid #544434;
}
#cart-drawer.open { transform: translateX(0); }

/* Mobile menu */
#mobile-menu {
  position: fixed; inset: 0; top: 80px; background: #131313; z-index: 60;
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 200ms ease;
}
#mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.skeleton {
  background: linear-gradient(90deg, #201f1f 25%, #2a2a2a 37%, #201f1f 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
