/* Shree Krishna Fashion Store - core design system. */
:root {
  --bg: #ffffff;
  --surface: #f8f6f1;
  --surface-strong: #efe7d8;
  --text: #161616;
  --muted: #6f6a62;
  --line: #e7dfd3;
  --black: #0b0b0b;
  --white: #ffffff;
  --gold: #b9892b;
  --gold-light: #e5c37a;
  --beige: #f3eadc;
  --danger: #b93636;
  --success: #2f7d4d;
  --shadow: 0 18px 48px rgba(20, 18, 15, 0.11);
  --soft-shadow: 0 8px 28px rgba(20, 18, 15, 0.08);
  --radius: 8px;
  --header-height: 78px;
  --container: min(1180px, calc(100% - 32px));
  --font-body: "Urbanist", "Poppins", system-ui, sans-serif;
  --font-display: "Montserrat", "Poppins", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #101010;
  --surface: #181715;
  --surface-strong: #252017;
  --text: #f6f0e8;
  --muted: #b9afa2;
  --line: #36302a;
  --black: #f8f2ea;
  --white: #101010;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --soft-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.cart-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(185, 137, 43, 0.45);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: var(--surface);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-header.center {
  display: block;
  margin-inline: auto;
  max-width: 680px;
  text-align: center;
}

.section-header h1,
.section-header h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.section-header p {
  color: var(--muted);
  margin: 10px 0 0;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 9999;
  background: var(--black);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 12px;
}

.top-strip {
  background: var(--black);
  color: var(--white);
  font-size: 0.88rem;
  text-align: center;
  padding: 9px 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: linear-gradient(135deg, var(--black), #4b3a18);
  color: #fff;
  border: 1px solid rgba(229, 195, 122, 0.45);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.brand span:last-child {
  max-width: 165px;
}

.main-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list > li > a,
.mega-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 6px;
  color: var(--text);
  font-weight: 700;
  background: transparent;
  border: 0;
}

.nav-list > li > a:hover,
.mega-trigger:hover {
  background: var(--surface);
  color: var(--gold);
}

.mega-item {
  position: relative;
}

.mega-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(14px);
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mega-item:hover .mega-menu,
.mega-item:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(8px);
}

.mega-feature {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.78)),
    url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=700&q=80") center/cover;
  border-radius: var(--radius);
}

.mega-feature strong {
  font-size: 1.25rem;
}

.mega-column h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.mega-column a {
  display: block;
  color: var(--muted);
  padding: 7px 0;
}

.mega-column a:hover {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.search-box {
  position: relative;
  width: min(260px, 24vw);
}

.search-box input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, 88vw);
  max-height: 370px;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.22s ease;
  z-index: 20;
}

.search-suggestions.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.suggestion {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.suggestion img {
  width: 54px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.suggestion strong,
.suggestion small {
  display: block;
}

.suggestion small,
.suggestion-empty {
  color: var(--muted);
}

.suggestion-empty {
  padding: 14px;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: var(--black);
  color: var(--white);
}

.badge {
  position: absolute;
  min-width: 18px;
  height: 18px;
  right: -6px;
  top: -7px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #7e5817);
  color: #fff;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 800;
}

.text-btn.danger {
  color: var(--danger);
}

.full-width {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: min(760px, calc(100vh - 110px));
  background: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.12));
  z-index: 1;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  color: #fff;
  margin-inline: auto;
  padding: 72px 0;
}

.hero-content h1 {
  max-width: 720px;
  margin: 10px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 6.7rem);
  line-height: 0.98;
}

.hero-content p {
  max-width: 560px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-controls {
  position: absolute;
  right: max(16px, calc((100% - 1180px) / 2));
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-controls .icon-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-dots {
  display: flex;
  gap: 7px;
}

.hero-dot {
  width: 24px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: var(--gold-light);
}

.service-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.service-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.service-item {
  padding: 18px 14px;
  text-align: center;
  border-inline: 1px solid var(--line);
}

.service-item strong {
  display: block;
  font-family: var(--font-display);
}

.service-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 280px;
  gap: 18px;
}

.collection-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  min-height: 280px;
  padding: 24px;
  color: #fff;
  border-radius: var(--radius);
}

.collection-tile.large {
  grid-row: span 2;
}

.collection-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.collection-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.collection-tile:hover img {
  transform: scale(1.08);
}

.collection-tile div {
  position: relative;
  z-index: 1;
}

.collection-tile h3 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card,
.skeleton-card,
.info-card,
.review-card,
.team-card,
.contact-card,
.auth-panel,
.summary-card {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.product-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.product-card .hover-img {
  opacity: 0;
}

.product-card:hover .primary-img {
  opacity: 0;
  transform: scale(1.05);
}

.product-card:hover .hover-img {
  opacity: 1;
  transform: scale(1.05);
}

.discount-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--black);
  color: var(--white);
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 900;
}

.wishlist-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}

.wishlist-btn.is-active,
.js-wishlist.is-active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.quick-view {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 6px;
  color: #111;
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.24s ease;
}

.product-card:hover .quick-view,
.product-card:focus-within .quick-view {
  opacity: 1;
  transform: translateY(0);
}

.product-card__body {
  padding: 16px;
}

.product-meta,
.price-row,
.cart-line__bottom,
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-meta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.rating {
  color: var(--gold);
}

.product-card h3 {
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: 1.03rem;
  line-height: 1.25;
}

.product-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.price-row {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.price-row strong,
.detail-price strong {
  font-size: 1.08rem;
}

.price-row s,
.detail-price s {
  color: var(--muted);
}

.banner-band {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.25)),
    url("https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=1800&q=80") center/cover fixed;
}

.banner-band h2 {
  max-width: 680px;
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.03;
}

.banner-band p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.reviews-grid,
.info-grid,
.team-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card,
.info-card,
.team-card,
.contact-card {
  padding: 22px;
}

.review-card p,
.info-card p,
.team-card p,
.contact-card p {
  color: var(--muted);
}

.review-card strong,
.team-card strong,
.contact-card strong {
  display: block;
  margin-top: 12px;
}

.newsletter {
  background: var(--black);
  color: var(--white);
  padding: 58px 0;
}

.newsletter .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 28px;
}

.newsletter h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.newsletter p {
  margin: 0;
  color: color-mix(in srgb, var(--white) 76%, transparent);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter-form input,
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.form-field textarea {
  min-height: 140px;
  padding-block: 12px;
  resize: vertical;
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 360px;
  align-items: end;
  padding: 88px 0 54px;
  color: #fff;
  background: #111;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.14));
  z-index: 1;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 1;
}

.page-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
}

.shop-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters h2 {
  margin: 0 0 18px;
  font-size: 1.15rem;
}

.filter-group {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.filter-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.filter-group label,
.selector-group label,
.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.filter-chip {
  width: 100%;
  display: block;
  margin-bottom: 8px;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
  font-weight: 800;
}

.filter-chip.is-active,
.option-btn.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.shop-search {
  flex: 1;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--bg);
}

.shop-toolbar select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--bg);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 46px;
  align-items: start;
}

.main-product-image {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border-radius: var(--radius);
}

.main-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.thumb {
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  aspect-ratio: 1;
}

.thumb.is-active {
  border-color: var(--gold);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
}

.product-rating,
.detail-price,
.detail-actions,
.option-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.product-rating {
  color: var(--gold);
  font-weight: 900;
}

.product-rating a {
  color: var(--muted);
  text-decoration: underline;
}

.detail-price {
  margin: 22px 0;
}

.detail-price strong {
  font-size: 1.9rem;
}

.detail-price span {
  color: var(--success);
  font-weight: 900;
}

.selector-group {
  margin: 22px 0;
}

.option-btn {
  min-width: 48px;
  min-height: 42px;
  padding: 0 13px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 900;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 36px 48px 36px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.qty-control.large {
  grid-template-columns: 46px 58px 46px;
  height: 46px;
}

.qty-control button,
.qty-control input {
  border: 0;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}

.qty-control button {
  font-weight: 900;
}

.detail-list {
  margin: 24px 0 0;
  padding: 18px 0 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 14px;
}

.summary-card {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  padding: 20px;
}

.cart-line {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-line img {
  width: 112px;
  height: 138px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-line h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.cart-line p {
  margin: 4px 0 0;
  color: var(--muted);
}

.cart-line__content {
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.cart-line__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row.total {
  border-bottom: 0;
  font-size: 1.2rem;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-open .cart-drawer {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.cart-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(460px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  transform: translateX(102%);
  transition: transform 0.34s ease;
  box-shadow: var(--shadow);
}

.cart-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__header,
.cart-drawer__footer {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__header h2 {
  margin: 0;
  font-family: var(--font-display);
}

.cart-drawer__items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px;
}

.cart-drawer__footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
}

.cart-drawer__footer .btn + .btn,
.summary-card .btn + .btn {
  margin-top: 10px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 26px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state.wide {
  grid-column: 1 / -1;
}

.empty-state span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

.empty-state h2,
.empty-state h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
}

.empty-state p {
  color: var(--muted);
}

.quick-view-modal {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.quick-view-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.quick-view__content {
  position: relative;
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 22px;
  padding: 18px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-view__content img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
}

.quick-view__close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
}

.quick-view__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 420;
  min-width: 240px;
  max-width: calc(100% - 28px);
  padding: 13px 16px;
  background: var(--black);
  color: var(--white);
  border-radius: 6px;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.about-story {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.about-story img,
.team-card img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-story img {
  height: 520px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.stat {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.team-card img {
  height: 260px;
  margin-bottom: 14px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.contact-form,
.auth-card {
  display: grid;
  gap: 16px;
}

.contact-map {
  overflow: hidden;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(185, 137, 43, 0.55)),
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1200&q=80") center/cover;
  border-radius: var(--radius);
}

.auth-wrap {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 58px 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 84%, transparent), color-mix(in srgb, var(--surface) 86%, transparent)),
    url("https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.auth-shell {
  width: min(980px, var(--container));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.auth-aside {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.78)),
    url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=900&q=80") center/cover;
}

.auth-panel {
  border: 0;
  box-shadow: none;
  padding: 34px;
}

.auth-panel h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 2.4rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 24px 0;
  padding: 6px;
  background: var(--surface);
  border-radius: var(--radius);
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-weight: 900;
}

.auth-shell[data-mode="login"] [data-auth-mode="login"],
.auth-shell[data-mode="register"] [data-auth-mode="register"] {
  background: var(--black);
  color: var(--white);
}

.register-only {
  display: none;
}

.auth-shell[data-mode="register"] .register-only {
  display: block;
}

.auth-shell[data-mode="register"] .login-title,
.auth-shell[data-mode="login"] .register-title {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.form-helper label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer {
  background: #0d0d0d;
  color: #f7f1e8;
  padding: 64px 0 92px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}

.site-footer p,
.site-footer a {
  color: rgba(247, 241, 232, 0.74);
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 9px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.mobile-bottom-nav a,
.mobile-bottom-nav button {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.mobile-bottom-nav strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
