
/* =========================================================
   ARSHAD PERFUMES — COMPLETE MODERN LUXURY STYLESHEET
   Dark luxury theme + gold ornamental bestsellers
   Mobile-friendly, aligned product cards
   ========================================================= */

:root {
  --cream: #171513;
  --cream-light: #201c19;
  --cream-dark: #30251e;
  --brown: #0d0c0b;
  --brown-light: #49372b;
  --gold: #c49a60;
  --gold-light: #e0c08d;
  --ink: #f4ede4;
  --muted: #b5a99c;
  --white: #ffffff;
  --border: #493c30;
  --red: #ff514c;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: #11100f;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.section-container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

/* =========================================================
   ANNOUNCEMENT BAR
   ========================================================= */

.announcement-bar {
  min-height: 30px;
  padding: 5px 12px;
  text-align: center;
  background: var(--gold);
  color: #17110b;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.announcement-bar span {
  padding-inline: 5px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: relative;
  z-index: 20;
  background: linear-gradient(110deg, #211b16, #171310 55%, #0d0c0b);
  border-bottom: 1px solid rgba(196, 154, 96, 0.18);
}

.header-main {
  width: min(1240px, calc(100% - 48px));
  min-height: 76px;
  margin: auto;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 100px;
  align-items: center;
  gap: 28px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 78px;
  height: 66px;
  object-fit: contain;
}

.header-search {
  height: 42px;
  display: flex;
  align-items: center;
  background: #f4ede4;
  border: 1px solid #c49a60;
  border-radius: 30px;
  overflow: hidden;
}

.header-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: none;
  background: transparent;
  color: #211b16;
  font-size: 13px;
}

.header-search input::placeholder {
  color: #76695d;
}

.header-search button {
  width: 46px;
  height: 100%;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #211b16;
  display: grid;
  place-items: center;
}

.header-search svg,
.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--gold-light);
}

.cart-count {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 50px;
  background: var(--gold);
  color: #17110b;
  font-size: 10px;
  font-weight: 700;
}

.main-navigation {
  min-height: 40px;
  padding: 0 20px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  color: #f4ede4;
  font-size: 13px;
}

.main-navigation a {
  transition: color 0.2s ease;
}

.main-navigation a:hover {
  color: var(--gold-light);
}

.main-navigation > span {
  color: #80694f;
}

/* =========================================================
   MAIN HERO / SLIDER
   ========================================================= */

.main-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #11100f;
  line-height: 0;
}

.hero-slides {
  position: relative;
  width: 100%;
}

.hero-slide {
  display: none;
  width: 100%;
}

.hero-slide.active {
  display: block;
  animation: heroFade 0.55s ease;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: cover;
  object-position: center;
}

@keyframes heroFade {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(13, 12, 11, 0.78);
  color: #fff;
  font-size: 19px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-arrow:hover {
  background: var(--gold);
  color: #17110b;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.active {
  background: var(--gold-light);
  transform: scale(1.2);
}

/* =========================================================
   BESTSELLERS — GOLD SECTION
   ========================================================= */

.bestsellers-reference {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 44px max(24px, calc((100% - 1200px) / 2)) 48px;
  overflow: hidden;
  background-color: #d1c39b;
  background-image:
    linear-gradient(
      100deg,
      rgba(112, 91, 47, 0.66),
      rgba(231, 219, 181, 0.88) 48%,
      rgba(144, 121, 67, 0.70)
    ),
    url("assets/bestsellers-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #302619;
}

.bestsellers-reference::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 247, 221, 0.30),
    transparent 75%
  );
}

.bestsellers-reference .section-heading-row {
  margin-bottom: 22px;
}

.bestsellers-reference .eyebrow {
  color: #82612b;
}

.bestsellers-reference .section-title {
  color: #3b2a18;
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: 2px;
}

.bestsellers-reference .section-description {
  color: #65543d;
}

/* =========================================================
   PRODUCT FILTERS
   ========================================================= */

.product-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 25px;
}

.product-tab {
  min-height: 34px;
  padding: 7px 17px;
  border: 1px solid rgba(88, 66, 35, 0.45);
  border-radius: 2px;
  background: rgba(255, 248, 229, 0.55);
  color: #493720;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-tab:hover,
.product-tab.active {
  background: #493720;
  border-color: #493720;
  color: #fff4db;
}

.product-status {
  text-align: center;
  color: #5f4a30;
  font-size: 12px;
}

.product-status:empty {
  display: none;
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */

.products-viewport {
  width: 100%;
  min-width: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

/* =========================================================
   PRODUCT CARDS
   Uses the actual markup created by script.js:
   .product-image-button, .product-details,
   .product-description, .product-name,
   .product-pricing, .add-to-cart
   ========================================================= */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #302619;
  box-shadow: none;
  text-align: center;
  transition: transform 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* Sale badges, if present */

.product-card .sale-badge,
.product-card .product-badge,
.product-card .discount-badge,
.product-card .sale-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: inline-block;
  padding: 3px 10px;
  background: #ed5149;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

/* Correct image wrapper generated by JavaScript */

#productsGrid .product-image-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 0.84;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(245, 235, 211, 0.40);
  line-height: 0;
  cursor: zoom-in;
}

#productsGrid .product-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.45s ease;
}

#productsGrid .product-image-button:hover img {
  transform: scale(1.035);
}

/* Compatibility with other image-wrapper class names */

.product-card .product-image,
.product-card .product-image-wrap,
.product-card .product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 0.84;
  overflow: hidden;
  background: rgba(245, 235, 211, 0.40);
}

.product-card .product-image img,
.product-card .product-image-wrap img,
.product-card .product-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.45s ease;
}

.product-card:hover .product-image img,
.product-card:hover .product-image-wrap img,
.product-card:hover .product-img-wrap img {
  transform: scale(1.035);
}

.product-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 0.84;
  object-fit: contain;
  object-position: center;
}

/* Product details fill the remaining card height */

#productsGrid .product-details,
.product-card .product-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 12px 4px 4px;
  box-sizing: border-box;
}

/* Description */

#productsGrid .product-description {
  min-height: 1.5em;
  margin: 0 0 4px;
  color: #76664f;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Product names align to a consistent two-line height */

#productsGrid .product-name,
.product-card .product-title {
  min-height: 3em;
  margin: 0 0 9px;
  color: #302619;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.product-card .product-brand {
  margin: 0 0 4px;
  color: #9b927d;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Ratings */

#productsGrid .product-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 1.5em;
  margin: 0 0 8px;
  color: #493720;
  font-size: 11px;
  line-height: 1.4;
}

#productsGrid .product-stars {
  color: #a7772e;
  letter-spacing: 1px;
}

#productsGrid .review-count {
  color: #76664f;
}

/* Prices: actual JavaScript markup uses .product-pricing */

#productsGrid .product-pricing {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 9px;
  width: 100%;
  min-height: 2em;
  margin: 0 0 12px;
}

.product-card .product-prices,
.product-card .product-price-row,
.product-card .price-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

#productsGrid .product-price,
.product-card .current-price,
.product-card .sale-price {
  color: #f0443e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

#productsGrid .product-old-price,
.product-card .old-price,
.product-card .original-price {
  color: #29251f;
  font-size: 12px;
  font-weight: 700;
  text-decoration: line-through;
  line-height: 1.4;
}

#productsGrid .product-discount {
  color: #267642;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

/* Stock information */

#productsGrid .stock-status {
  margin: 0 0 8px;
  color: #c33b32;
  font-size: 10px;
  font-weight: 700;
}

/* Add-to-cart stays at the bottom of each card */

#productsGrid .add-to-cart,
.product-card .add-to-cart,
.product-card button.add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 35px;
  margin-top: auto;
  padding: 8px 12px;
  border: 1px solid #75562d;
  border-radius: 2px;
  background: #493720;
  color: #fff4db;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background 0.2s ease;
}

#productsGrid .add-to-cart:hover,
.product-card .add-to-cart:hover {
  background: #70552e;
}

#productsGrid .add-to-cart:disabled {
  background: #76664f;
  border-color: #76664f;
  color: #fff4db;
  opacity: 0.75;
}

.product-card .order-now,
.product-card .buy-now {
  color: #493720;
}

.empty-products {
  padding: 25px 10px;
  text-align: center;
  color: #493720;
}

/* =========================================================
   CATEGORIES
   ========================================================= */

.categories-section {
  padding-top: 75px;
  padding-bottom: 75px;
  background: #11100f;
  color: var(--ink);
}

.section-heading {
  margin-bottom: 35px;
}

.centered-heading {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 500;
  letter-spacing: 1.5px;
}

.section-description {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.category-card {
  min-width: 0;
  padding: 0 0 20px;
  border: 1px solid #302820;
  background: #191613;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.category-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.category-image {
  display: block;
  aspect-ratio: 0.95;
  overflow: hidden;
  background: #211b16;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.04);
}

.category-name {
  display: block;
  margin: 18px 0 5px;
  color: #f4ede4;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  letter-spacing: 2px;
}

.category-link {
  display: block;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 1px;
}

/* =========================================================
   THIRD HERO BANNER
   ========================================================= */

.third-hero {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #11100f;
  line-height: 0;
}

.third-hero-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.third-hero img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   GALLERY
   ========================================================= */

.gallery-section {
  padding-top: 75px;
  padding-bottom: 75px;
  background: #11100f;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  padding: 0;
  border: 1px solid #302820;
  overflow: hidden;
  aspect-ratio: 0.85;
  background: #211b16;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 15px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* =========================================================
   VIDEOS
   ========================================================= */

.videos-section {
  padding: 75px 0;
  background: #191613;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  overflow: hidden;
  aspect-ratio: 0.8;
  border: 1px solid #493c30;
  background: #211b16;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: #090807;
  color: #f4ede4;
  border-top: 1px solid #49372b;
}

.footer-main {
  padding-top: 55px;
  padding-bottom: 45px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr 1fr;
  gap: 35px;
}

.footer-brand img {
  width: 90px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand h2 {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
}

.footer-brand p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-brand .footer-tagline {
  margin-top: 15px;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 1.5px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-column h3 {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 1.2px;
}

.footer-column a,
.footer-column p {
  margin: 0;
  color: #c4b8ab;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.footer-column a:hover {
  color: var(--gold-light);
}

.footer-column .footer-small {
  margin-top: 5px;
  color: #8f8174;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 24px;
  border-top: 1px solid #302820;
  color: #9c8f82;
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

/* =========================================================
   GENERAL BUTTONS
   ========================================================= */

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 43px;
  padding: 12px 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  transition: background 0.2s ease, color 0.2s ease;
}

.primary-button {
  background: var(--gold);
  color: #15100b;
}

.primary-button:hover {
  background: var(--gold-light);
}

.secondary-button {
  background: transparent;
  color: var(--gold-light);
}

.secondary-button:hover {
  background: var(--gold);
  color: #15100b;
}

/* =========================================================
   CART DRAWER
   ========================================================= */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Supports both class names */

.drawer-backdrop.active,
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(430px, 100%);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #191613;
  color: #f4ede4;
  border-left: 1px solid #493c30;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid #493c30;
}

.cart-header .eyebrow {
  margin-bottom: 4px;
}

.cart-header h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.close-button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #493c30;
  background: transparent;
  color: #f4ede4;
  font-size: 25px;
  line-height: 1;
}

.cart-items {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
}

.cart-empty-message {
  padding: 35px 0;
  text-align: center;
  color: #b5a99c;
  font-size: 13px;
}

.cart-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #302820;
}

.cart-item-image img,
.cart-item img {
  width: 68px;
  height: 76px;
  object-fit: contain;
  background: #211b16;
}

.cart-item h3 {
  margin: 0 0 5px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.cart-item-price {
  color: var(--gold-light);
  font-size: 12px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
}

.quantity-button {
  width: 27px;
  height: 27px;
  border: 1px solid #493c30;
  background: #211b16;
  color: #f4ede4;
}

.remove-item {
  display: block;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e0c08d;
  font-size: 11px;
  text-decoration: underline;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #493c30;
}

.cart-subtotal,
.dialog-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.cart-subtotal strong,
.dialog-total strong {
  color: var(--gold-light);
}

.cart-note {
  margin: 8px 0 18px;
  color: #b5a99c;
  font-size: 11px;
}

.cart-footer .secondary-button {
  margin-top: 10px;
}

/* =========================================================
   CHECKOUT DIALOG
   ========================================================= */

.checkout-dialog {
  width: min(500px, calc(100% - 28px));
  max-height: 90vh;
  max-height: 90dvh;
  padding: 25px;
  overflow-y: auto;
  border: 1px solid #493c30;
  background: #191613;
  color: #f4ede4;
}

.checkout-dialog::backdrop,
.image-dialog::backdrop,
.gallery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(3px);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.dialog-header h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 23px;
  font-weight: 500;
}

.checkout-dialog form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.checkout-dialog label {
  margin-top: 5px;
  color: #e0c08d;
  font-size: 12px;
}

.checkout-dialog input,
.checkout-dialog textarea,
.checkout-dialog select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #493c30;
  border-radius: 2px;
  background: #211c18;
  color: #f4ede4;
}

.checkout-dialog input::placeholder,
.checkout-dialog textarea::placeholder {
  color: #a99b8d;
}

.checkout-dialog textarea {
  resize: vertical;
}

.dialog-total {
  margin: 12px 0;
  padding: 15px 0;
  border-top: 1px solid #493c30;
  border-bottom: 1px solid #493c30;
}

.form-note {
  margin: 5px 0 0;
  color: #b5a99c;
  font-size: 11px;
}

/* =========================================================
   PRODUCT IMAGE VIEWER
   ========================================================= */

.image-dialog,
.gallery-dialog {
  position: fixed;
  width: min(900px, 95vw);
  max-width: 95vw;
  max-height: 92vh;
  max-height: 92dvh;
  padding: 45px 20px 25px;
  overflow: hidden;
  border: 1px solid #493c30;
  background: #11100f;
  color: #f4ede4;
}

.image-dialog-content {
  width: 100%;
  max-height: 75vh;
  max-height: 75dvh;
  overflow: auto;
  text-align: center;
}

.image-dialog-content img {
  max-width: 100%;
  max-height: 75vh;
  max-height: 75dvh;
  margin: auto;
  object-fit: contain;
  transform-origin: center;
}

.image-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  width: 35px;
  height: 35px;
  border: 1px solid #493c30;
  background: #211b16;
  color: #fff;
  font-size: 25px;
}

.image-zoom-button {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 5;
  width: 35px;
  height: 35px;
  border: 1px solid #493c30;
  background: #211b16;
  color: #fff;
  font-size: 21px;
}

#zoomInButton {
  left: 55px;
}

.image-dialog-hint {
  margin: 12px 0 0;
  color: #b5a99c;
  text-align: center;
  font-size: 11px;
}

.gallery-dialog img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  max-height: 78dvh;
  margin: auto;
  object-fit: contain;
}

/* =========================================================
   TOAST MESSAGE
   ========================================================= */

.toast-message {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 120;
  max-width: calc(100% - 40px);
  padding: 13px 18px;
  background: var(--gold);
  color: #15100b;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-message.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: #218b55;
  color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

.floating-whatsapp:hover {
  transform: scale(1.07);
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (min-width: 1500px) {
  .products-grid {
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .header-main {
    grid-template-columns: 75px minmax(0, 1fr) 80px;
    gap: 15px;
  }

  .brand-logo img {
    width: 68px;
  }

  .main-navigation {
    gap: 8px;
    font-size: 12px;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .category-cards {
    gap: 16px;
  }

  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .section-container {
    width: calc(100% - 28px);
  }

  .announcement-bar {
    min-height: 28px;
    font-size: 10px;
  }

  /* Header */

  .header-main {
    width: calc(100% - 24px);
    min-height: 64px;
    grid-template-columns: 54px minmax(0, 1fr) 66px;
    gap: 9px;
  }

  .brand-logo img {
    width: 52px;
    height: 52px;
  }

  .header-search {
    height: 37px;
  }

  .header-search input {
    padding-inline: 11px;
    font-size: 11px;
  }

  .header-search button {
    width: 34px;
  }

  .header-search svg {
    width: 18px;
    height: 18px;
  }

  .header-actions {
    gap: 4px;
  }

  .icon-button {
    width: 30px;
    height: 34px;
  }

  .icon-button svg {
    width: 18px;
    height: 18px;
  }

  .main-navigation {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 12px 12px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    font-size: 11px;
  }

  .main-navigation::-webkit-scrollbar {
    display: none;
  }

  /* Hero */

  .hero-slide img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
  }

  .hero-arrow {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .hero-prev {
    left: 9px;
  }

  .hero-next {
    right: 9px;
  }

  .hero-dots {
    bottom: 8px;
  }

  /* Bestsellers */

  .bestsellers-reference {
    padding: 32px 14px 36px;
    background-position: center;
  }

  .bestsellers-reference .section-heading-row {
    margin-bottom: 16px;
  }

  .bestsellers-reference .section-title {
    font-size: 25px;
    letter-spacing: 1px;
  }

  .bestsellers-reference .section-description {
    font-size: 12px;
  }

  /* Product filters */

  .product-tabs {
    gap: 6px;
    margin-bottom: 18px;
  }

  .product-tab {
    min-height: 31px;
    padding: 6px 12px;
    font-size: 10px;
  }

  /* Two equal-width products per row */

  #productsGrid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px 12px;
  }

  #productsGrid .product-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: 100%;
    text-align: center;
  }

  /* Same image-box dimensions */

  #productsGrid .product-image-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
  }

  #productsGrid .product-image-button img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
    object-position: center;
  }

  /* Consistent card content */

  #productsGrid .product-details {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 9px 3px 3px;
  }

  #productsGrid .product-description {
    min-height: 1.4em;
    margin: 0 0 5px;
    font-size: 10px;
    line-height: 1.4;
  }

  #productsGrid .product-name {
    min-height: 3em;
    margin: 0 0 7px;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  #productsGrid .product-rating {
    min-height: 1.5em;
    margin: 0 0 7px;
    font-size: 10px;
  }

  #productsGrid .product-stars {
    letter-spacing: 0;
  }

  /* Correct price selector */

  #productsGrid .product-pricing {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    width: 100%;
    min-height: 3em;
    margin: 0 0 9px;
  }

  #productsGrid .product-price {
    font-size: 12px;
  }

  #productsGrid .product-old-price {
    font-size: 10px;
  }

  #productsGrid .product-discount {
    font-size: 9px;
  }

  #productsGrid .stock-status {
    margin-bottom: 7px;
    font-size: 9px;
  }

  /* Buttons align to card bottoms */

  #productsGrid .add-to-cart {
    width: 100%;
    min-height: 36px;
    margin-top: auto;
    padding: 7px 4px;
    font-size: 9px;
    letter-spacing: 0.3px;
  }

  /* Compatibility for other product-card markup */

  .product-card .product-image,
  .product-card .product-image-wrap,
  .product-card .product-img-wrap,
  .product-card > img {
    aspect-ratio: 1 / 1;
  }

  .product-card .product-info {
    padding: 9px 3px 3px;
  }

  .product-card .product-brand {
    font-size: 9px;
  }

  .product-card .product-title {
    min-height: 3em;
    margin-bottom: 7px;
    font-size: 11px;
  }

  .product-card .product-prices,
  .product-card .product-price-row,
  .product-card .price-row {
    gap: 5px;
    margin-bottom: 9px;
  }

  .product-card .product-old-price,
  .product-card .old-price,
  .product-card .original-price {
    font-size: 10px;
  }

  .product-card .current-price,
  .product-card .sale-price {
    font-size: 11px;
  }

  .product-card .sale-badge,
  .product-card .product-badge,
  .product-card .discount-badge,
  .product-card .sale-label {
    padding: 3px 7px;
    font-size: 10px;
  }

  .product-card .add-to-cart,
  .product-card button.add-to-cart {
    width: 100%;
    min-height: 36px;
    padding: 7px 4px;
    font-size: 9px;
  }

  /* Other sections */

  .categories-section,
  .gallery-section,
  .videos-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-heading {
    margin-bottom: 25px;
  }

  .section-title {
    font-size: 25px;
  }

  .category-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }

  .category-name {
    font-size: 17px;
  }

  .category-link {
    font-size: 9px;
  }

  .third-hero img {
    width: 100%;
    height: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-overlay {
    opacity: 1;
    padding: 10px 4px;
    font-size: 9px;
  }

  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* Footer */

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
    padding-top: 38px;
    padding-bottom: 30px;
  }

  .footer-brand h2 {
    font-size: 17px;
  }

  .footer-column h3 {
    font-size: 11px;
  }

  .footer-column a,
  .footer-column p {
    font-size: 11px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 16px 14px;
    font-size: 10px;
  }

  /* Cart and dialogs */

  .cart-drawer {
    width: min(390px, 100%);
  }

  .cart-header {
    padding: 18px;
  }

  .cart-items {
    padding: 14px;
  }

  .cart-item {
    grid-template-columns: 55px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .cart-item-image img,
  .cart-item img {
    width: 55px;
    height: 65px;
  }

  .cart-footer {
    padding: 16px;
  }

  .checkout-dialog {
    padding: 18px;
  }

  .image-dialog,
  .gallery-dialog {
    padding: 45px 10px 18px;
  }

  .floating-whatsapp {
    right: 13px;
    bottom: 13px;
    width: 47px;
    height: 47px;
  }

  .toast-message {
    right: 12px;
    bottom: 70px;
    max-width: calc(100% - 24px);
  }
}

/* =========================================================
   RESPONSIVE — VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {
  .header-main {
    grid-template-columns: 43px minmax(0, 1fr) 58px;
    gap: 6px;
  }

  .brand-logo img {
    width: 43px;
    height: 43px;
  }

  .header-search input {
    padding-inline: 8px;
    font-size: 10px;
  }

  .header-search button {
    width: 30px;
  }

  #productsGrid,
  .products-grid {
    gap: 18px 9px;
  }

  #productsGrid .product-details {
    padding: 8px 2px 2px;
  }

  #productsGrid .product-name {
    font-size: 10px;
  }

  #productsGrid .product-price {
    font-size: 10px;
  }

  #productsGrid .product-old-price {
    font-size: 9px;
  }

  #productsGrid .product-discount {
    font-size: 8px;
  }

  #productsGrid .add-to-cart {
    min-height: 33px;
    padding-inline: 2px;
    font-size: 8px;
  }

  .product-card .product-old-price,
  .product-card .old-price,
  .product-card .original-price {
    font-size: 9px;
  }

  .product-card .current-price,
  .product-card .sale-price {
    font-size: 10px;
  }
}

/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
