/* ===== MASKOOLIN – Closer to original look ===== */
:root {
  --blue: #3b5bdb;
  --blue-hover: #2f4bc4;
  --black: #111111;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --border: #e5e5e5;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1180px;
  --header-h: 68px;
  --radius: 0;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-hover);
}
.btn-outline {
  border: 1.5px solid var(--black);
  color: var(--black);
  background: transparent;
}
.btn-outline:hover {
  background: var(--black);
  color: #fff;
}
.btn-sm { padding: 10px 20px; font-size: 12px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.18em;
  color: var(--black);
  flex-shrink: 0;
}
.logo-mark {
  font-size: 18px;
  line-height: 1;
}
.nav { display: none; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-item > a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
  color: var(--text);
  transition: color var(--transition);
}
.nav-item > a:hover,
.nav-item > a.active,
.sale-link { color: var(--blue); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition);
  z-index: 50;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.dropdown a:hover {
  color: var(--blue);
  background: var(--bg-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.btn-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  width: 36px;
  height: 36px;
  transition: color var(--transition);
}
.btn-icon:hover { color: var(--blue); }
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

@media (min-width: 1100px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}

/* Mobile nav */
@media (max-width: 1099px) {
  .nav {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: #fff;
    padding: 16px 20px 40px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    z-index: 999;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-item > a { display: block; padding: 14px 0; font-size: 13px; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 10px 12px;
    display: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: min(82vh, 720px);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a1a1a;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(20,20,20,0.42), rgba(20,20,20,0.38)),
    url('https://images.unsplash.com/photo-1617137968427-85924c800a22?w=1600&h=900&fit=crop') center/cover no-repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  max-width: 720px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  line-height: 1.12;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
  opacity: 0.92;
  line-height: 1.55;
}

/* ===== Section titles ===== */
.section-title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--black);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 44px;
}

/* ===== Category grid (home) ===== */
.categories { padding: 72px 0 56px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 600px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.category-card {
  text-align: center;
  background: #fff;
  transition: transform var(--transition);
}
.category-card:hover { transform: translateY(-3px); }
.category-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 14px;
}
.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.category-card:hover .category-img img { transform: scale(1.04); }
.category-card h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.shop-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.shop-link:hover { color: var(--blue); }

/* ===== Why Shop ===== */
.why-shop {
  padding: 72px 0;
  background: var(--bg-soft);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 44px;
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card { text-align: center; }
.feature-icon {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-card h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

/* ===== Media logos ===== */
.media {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.media-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 40px;
  margin-top: 28px;
}
.media-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #aaa;
  transition: color var(--transition);
}
.media-logo:hover { color: var(--text); }

/* ===== Content blocks ===== */
.content-section { padding: 72px 0; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 768px) {
  .content-grid { grid-template-columns: 1fr 1fr; gap: 40px 36px; }
}
.content-block h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}
.content-block p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: #0d0d0d;
  color: #bbb;
  padding: 56px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a2a2a;
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.1fr 2fr; }
}
.logo-footer { color: #fff; margin-bottom: 10px; }
.footer-tagline { font-size: 12px; color: #777; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (min-width: 640px) {
  .footer-links { grid-template-columns: repeat(4, 1fr); }
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 7px; }
.footer-col a {
  font-size: 13px;
  color: #999;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.social-links { display: flex; flex-direction: column; gap: 7px; }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: #555;
}

/* ===== Page header (inner pages) ===== */
.page-header {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.page-header h1 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text); }

/* ===== Product listing ===== */
.products-section { padding: 40px 0 64px; }
.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.products-count {
  font-size: 13px;
  color: var(--text-muted);
}
.products-sort select {
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.product-card {
  background: #fff;
  transition: transform var(--transition);
}
.product-card:hover { transform: translateY(-3px); }
.product-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 12px;
  position: relative;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img { transform: scale(1.04); }
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  text-transform: uppercase;
}
.product-info { text-align: center; padding: 0 4px 8px; }
.product-brand {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.product-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}
.product-price .old {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}
.product-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* ===== Product detail ===== */
.product-detail { padding: 40px 0 64px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 800px) {
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
}
.detail-gallery {
  background: var(--bg-soft);
  aspect-ratio: 1;
  overflow: hidden;
}
.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-info h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.detail-brand {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.detail-price {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.detail-price .old {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 10px;
}
.detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.detail-options { margin-bottom: 24px; }
.option-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-btn {
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}
.size-btn:hover,
.size-btn.active {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
}
.qty-control button {
  width: 40px;
  height: 40px;
  font-size: 16px;
  color: var(--text);
  transition: background var(--transition);
}
.qty-control button:hover { background: var(--bg-soft); }
.qty-control input {
  width: 48px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.detail-meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Cart page ===== */
.cart-section { padding: 40px 0 64px; }
.cart-empty {
  text-align: center;
  padding: 60px 20px;
}
.cart-empty p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 860px) {
  .cart-layout { grid-template-columns: 1.6fr 1fr; align-items: start; }
}
.cart-items { display: flex; flex-direction: column; gap: 0; }
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
@media (min-width: 500px) {
  .cart-item { grid-template-columns: 110px 1fr auto; gap: 20px; }
}
.cart-item-img {
  aspect-ratio: 1;
  background: var(--bg-soft);
  overflow: hidden;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.35;
}
.cart-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 600;
}
.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.cart-item-remove {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-item-remove:hover { color: #c0392b; }

.cart-summary {
  background: var(--bg-soft);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.cart-summary h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.summary-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.cart-summary .btn { margin-top: 20px; }
.cart-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black);
  color: #fff;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
