/* =============================================
   Minimalist Luxury – Black & White Theme
   Production-ready, mobile-first
   ============================================= */

:root {
  --black: #000000;
  --dark: #111111;
  --medium: #555555;
  --light: #e0e0e0;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.1), 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  --transition: 0.25s ease;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark);
  background: #fafafa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--black);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--medium);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Header ----- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-text {
  color: var(--black);
}

.logo img {
  max-height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover {
  background: var(--dark);
  color: var(--white);
}

/* ----- Main ----- */
.site-main {
  min-height: 60vh;
}

/* ----- Hero ----- */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.hero-content {
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  margin: 0 0 1.25rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  opacity: 0.92;
  font-weight: 500;
}

.hero .btn {
  margin-top: 0.5rem;
}

/* ----- Sections ----- */
.section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 2.25rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.section-cta {
  text-align: center;
  margin: 2rem 0 0;
}

/* ----- Content block (from DB / WYSIWYG) ----- */
.content-block {
  font-size: 1rem;
  line-height: 1.7;
}

.content-block h1,
.content-block h2,
.content-block h3 {
  font-family: var(--font-display);
  margin: 1.5rem 0 0.75rem;
}

.content-block p {
  margin: 0 0 1rem;
}

.content-block ul,
.content-block ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-outline {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-block {
  width: 100%;
}

/* ----- Category grid ----- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  color: inherit;
  box-shadow: var(--shadow);
}

.category-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: #d0d0d0;
}

.category-card-img {
  aspect-ratio: 4/3;
  background: var(--light);
  overflow: hidden;
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-card-img img {
  transform: scale(1.05);
}

.category-card-img.placeholder {
  background: var(--light);
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 1.15rem 1.25rem 0.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.category-card p {
  margin: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--medium);
}

/* ----- Product grid ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  box-shadow: var(--shadow);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: #d0d0d0;
}

.product-card-link {
  display: block;
  color: inherit;
}

.product-card-img {
  aspect-ratio: 1;
  background: var(--light);
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-img .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.9rem;
  color: var(--medium);
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.1rem 1.25rem 0.3rem;
  letter-spacing: 0.02em;
}

.product-card-category {
  margin: 0 1.25rem;
  font-size: 0.875rem;
  color: var(--medium);
  font-weight: 500;
}

.product-card-price {
  margin: 0.35rem 1.25rem 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.product-card .btn,
.product-card .add-to-cart-inline {
  margin: 0.5rem 1.25rem 1rem;
}

.add-to-cart-inline {
  display: inline-block;
}

.add-to-cart-inline .btn {
  margin: 0;
}

.nav-cart {
  position: relative;
}

.cart-count {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  margin-left: 0.25rem;
}

/* ----- Product detail ----- */
.product-detail-section {
  padding: 2.5rem 0 4rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.product-gallery .gallery-main {
  aspect-ratio: 1;
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 2px solid var(--light);
  box-shadow: var(--shadow);
}

.gallery-main img,
.gallery-main .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium);
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--light);
  transition: border-color var(--transition), opacity var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--black);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info .product-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.product-meta {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--medium);
}

.product-meta a {
  color: var(--medium);
}

.product-meta a:hover {
  color: var(--black);
}

.product-price {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.product-description {
  border-top: 2px solid var(--light);
  padding-top: 1.75rem;
}

.add-to-cart-form {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.add-to-cart-form label {
  font-size: 0.9rem;
  font-weight: 500;
}

.add-to-cart-form .qty-input {
  width: 4rem;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--light);
  border-radius: var(--radius-sm);
}

.related-products {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light);
}

.related-products h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

/* ----- Page header ----- */
.page-header {
  padding: 3rem 0;
  text-align: center;
  border-bottom: 2px solid var(--light);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.page-header .lead {
  margin: 0;
  color: var(--medium);
  font-size: 1.1rem;
  font-weight: 500;
}

.category-hero-img {
  max-width: 400px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.category-hero-img img {
  width: 100%;
  height: auto;
}

/* ----- Products toolbar (filters + search) ----- */
.products-toolbar {
  margin-bottom: 2rem;
}

.filters-form .search-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filters-form #search-input {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  border: 2px solid var(--light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow 0.2s ease;
}

.filters-form #search-input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid var(--light);
  background: var(--white);
  color: var(--dark);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.products-empty,
.products-loading {
  text-align: center;
  padding: 2rem;
  color: var(--medium);
}

/* ----- About preview ----- */
.about-preview {
  background: var(--white);
  border-top: 2px solid var(--light);
  border-bottom: 2px solid var(--light);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.04);
}

.about-preview-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-preview-inner .btn {
  margin-top: 1rem;
}

/* ----- Content section ----- */
.content-section .content-block {
  max-width: 720px;
  margin: 0 auto;
}

.about-content {
  padding: 0 1rem;
}

/* ----- Contact ----- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--light);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.contact-info {
  padding: 2rem;
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ----- Cart ----- */
.cart-empty {
  text-align: center;
  padding: 2rem;
  color: var(--medium);
}

.cart-section .container {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.cart-table th,
.cart-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid var(--light);
}

.cart-table th {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--medium);
}

.cart-table tbody tr:hover td {
  background: #fafafa;
}

.qty-input {
  width: 4.5rem;
  padding: 0.5rem 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  border: 2px solid var(--light);
  border-radius: var(--radius-sm);
  text-align: center;
}

.qty-input:focus {
  outline: none;
  border-color: var(--black);
}

.btn-remove {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  background: transparent;
  color: var(--medium);
  border: 2px solid var(--light);
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition);
}

.btn-remove:hover {
  color: #b71c1c;
  border-color: #b71c1c;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--light);
}

.cart-total {
  margin: 0 0 0 auto;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ----- Checkout ----- */
/* ----- Checkout layout & cards ----- */
.checkout-section .container {
  max-width: 1000px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

.checkout-form {
  min-width: 0;
}

.checkout-card {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  padding: 2rem 2.25rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.checkout-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #d0d0d0;
}

.checkout-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: 0.03em;
  color: var(--black);
}

.checkout-form-intro {
  margin: 0 0 2rem;
  font-size: 1rem;
  color: var(--medium);
  line-height: 1.55;
  font-weight: 500;
}

/* Each form field block */
.checkout-field {
  margin-bottom: 2rem;
}

.checkout-field:last-of-type {
  margin-bottom: 2.25rem;
}

.checkout-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.checkout-label .required {
  color: #b71c1c;
  font-weight: 700;
  margin-left: 0.2rem;
}

.checkout-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--medium);
  margin-bottom: 0.6rem;
  line-height: 1.45;
  font-weight: 500;
}

/* Inputs – strong, clear design */
.checkout-input {
  display: block;
  width: 100%;
  padding: 1rem 1.35rem;
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.5;
  color: var(--black);
  background: #fafafa;
  border: 2px solid var(--light);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition), box-shadow 0.2s ease;
}

.checkout-input::placeholder {
  color: #888;
}

.checkout-input:hover {
  border-color: #bbb;
  background: var(--white);
}

.checkout-input:focus {
  outline: none;
  border-color: var(--black);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.checkout-textarea {
  resize: vertical;
  min-height: 130px;
  padding: 1.1rem 1.35rem;
}

.checkout-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

.checkout-form-actions .btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  min-width: 180px;
}

/* Order summary card (sticky on desktop) */
.checkout-order-summary-card {
  position: relative;
}

@media (min-width: 901px) {
  .checkout-order-summary-card {
    position: sticky;
    top: 6rem;
  }
}

.checkout-order-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.checkout-order-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 2px solid var(--light);
  font-size: 1rem;
  font-weight: 500;
}

.checkout-order-item:last-child {
  border-bottom: none;
}

.checkout-item-name {
  color: var(--black);
  font-weight: 600;
}

.checkout-item-qty {
  color: var(--medium);
  font-size: 0.95rem;
  font-weight: 500;
}

.checkout-item-price {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  font-size: 1.05rem;
}

.checkout-order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 3px solid var(--black);
  font-size: 1.25rem;
  font-weight: 600;
}

.checkout-order-total strong {
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.order-total {
  margin: 1rem 0 0;
  font-size: 1.2rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-order-summary-card {
    order: -1;
  }
}

/* ----- Alerts ----- */
.alert {
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-weight: 500;
  border: 2px solid transparent;
}

.alert-success {
  background: #e8f5e9;
  color: #1b5e20;
  border-color: #81c784;
}

.alert-error {
  background: #ffebee;
  color: #b71c1c;
  border-color: #e57373;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0;
  margin-top: 4rem;
  border-top: 3px solid var(--dark);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-about {
  font-size: 1rem;
  font-weight: 500;
}

.footer-about p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ----- Toasts ----- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  box-shadow: var(--shadow-hover);
  pointer-events: auto;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast--success {
  background: var(--black);
  color: var(--white);
}

.toast--error {
  background: #c62828;
  color: var(--white);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--light);
    padding: 5rem 1.5rem 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    padding: 0.85rem 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
