/* ============================================================
   KOKO ACCESSORIES - ZARA-STYLE EDITORIAL STYLESHEET
   Clean, Minimalist, Luxury Automotive Catalog & Admin Panel
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Inter:wght@200;300;400;500;600;700&display=swap');

:root {
  --font-serif: 'Bodoni Moda', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg-white: #ffffff;
  --bg-subtle: #f8f8f8;
  --text-black: #000000;
  --text-muted: #666666;
  --border-subtle: #eaeaea;
  --border-strong: #000000;
  
  --ease-zara: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-black);
  -webkit-font-smoothing: antialiased;
}

body {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

/* Typography */
.font-editorial {
  font-family: var(--font-serif);
}

.tracking-zara {
  letter-spacing: 0.16em;
}

.tracking-zara-wide {
  letter-spacing: 0.22em;
}

.zara-wordmark {
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  transform: scaleY(1.06);
  display: inline-block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #222;
}

/* Ticker announcement */
.announcement-bar {
  background: #000000;
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header */
.zara-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Car Brand Card in the Selection Section */
.car-brand-card {
  position: relative;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-zara);
  text-transform: uppercase;
}

.car-brand-card:hover {
  border-color: #000000;
  transform: translateY(-2px);
}

.car-brand-card.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* Product Card - Clean, Tall, Portrait */
.accessory-card {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.accessory-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #f6f6f6;
  border: 1px solid #f0f0f0;
}

.accessory-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-zara);
}

.accessory-card:hover .accessory-img {
  transform: scale(1.05);
}

/* Category Pills */
.category-tab {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 16px;
  border: 1px solid #e0e0e0;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-tab:hover {
  border-color: #000;
  color: #000;
}

.category-tab.active {
  background: #000;
  color: #fff;
  border-color: #000;
  font-weight: 600;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-zara);
}

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

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s var(--ease-zara);
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

/* Buttons */
.btn-black {
  background-color: #000000;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  padding: 12px 22px;
  border: 1px solid #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-black:hover {
  background-color: #ffffff;
  color: #000000;
}

.btn-outline {
  background-color: transparent;
  color: #000000;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 500;
  padding: 11px 20px;
  border: 1px solid #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Admin Drag & Drop Zone */
.drag-drop-zone {
  border: 2px dashed #cccccc;
  background-color: #fafafa;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.drag-drop-zone.dragover {
  border-color: #000000;
  background-color: #f0f0f0;
}

.drag-drop-zone:hover {
  border-color: #666666;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #000000;
  color: #ffffff;
  padding: 10px 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 200;
  transition: transform 0.35s var(--ease-zara);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
}
