﻿:root {
  --yellow: #f6c21a;
  --maroon: #690301;
  --red: #b71c1c;
  --gold: #c78a22;
  --green: #4f7d2a;
  --brown: #542c08;
  --cream: #f7f4ef;
  --ink: #23150d;
  --muted: #76665a;
  --line: rgba(105, 3, 1, 0.15);
  font-family: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
}

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(48px, 1fr) auto minmax(48px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px clamp(14px, 4vw, 42px);
  background: rgba(247, 244, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--maroon);
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--cream);
  background: var(--maroon);
  border: 3px solid var(--gold);
  font-size: 14px;
  overflow: hidden;
}

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

.icon-button,
.basket-button,
.category-bar button {
  border: 1px solid var(--line);
  background: #fffaf0;
  color: var(--maroon);
  cursor: pointer;
}

.icon-button {
  grid-column: 1;
  justify-self: start;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}


.basket-button {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 800;
}

.drawer {
  position: fixed;
  z-index: 30;
  top: 65px;
  left: 16px;
  display: none;
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(35, 21, 13, 0.2);
}

.drawer.open {
  display: grid;
}

.drawer a {
  padding: 12px;
  border-radius: 6px;
  font-weight: 800;
}

.drawer a:hover {
  background: #fff4ca;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(460px, 1.26fr);
  align-items: stretch;
  min-height: min(74vh, 720px);
  overflow: hidden;
  background: #fffaf0;
  border-bottom: 1px solid var(--line);
}

.hero img {
  position: relative;
  z-index: 0;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: min(74vh, 720px);
  object-fit: contain;
  object-position: center;
  padding: clamp(12px, 2vw, 30px);
  background: #fff;
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(105, 3, 1, 0.96) 0%, rgba(105, 3, 1, 0.9) 34%, rgba(105, 3, 1, 0.2) 48%, rgba(255, 250, 240, 0) 62%);
}

.hero-content {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: min(620px, 100%);
  padding: clamp(44px, 7vw, 88px);
  color: white;
}

.hero-content p,
.section-title p {
  margin: 0 0 10px;
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-points span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.primary-action {
  background: var(--yellow);
  color: var(--maroon);
}

.secondary-action {
  border: 1px solid var(--gold);
  background: #fffaf0;
  color: var(--maroon);
}

.full {
  width: 100%;
}

.search-band {
  display: grid;
  gap: 8px;
  padding: 18px clamp(16px, 5vw, 70px);
  background: white;
  border-bottom: 1px solid var(--line);
}

.search-band label {
  color: var(--maroon);
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fffdf8;
  color: var(--ink);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.category-bar {
  position: sticky;
  top: 65px;
  z-index: 15;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px clamp(16px, 5vw, 70px);
  background: var(--maroon);
}

.category-bar button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
}

.slider-section {
  padding: 28px clamp(16px, 5vw, 70px) 0;
}

.slider {
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  background: var(--green);
  color: white;
}

.slide {
  display: none;
  min-height: 210px;
  padding: clamp(24px, 5vw, 52px);
  align-content: center;
  background: linear-gradient(120deg, var(--green), var(--maroon));
}

.slide.active {
  display: grid;
  gap: 10px;
}

.slide span {
  color: var(--yellow);
  font-weight: 900;
}

.slide h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.04;
}

.slide a {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--maroon);
  font-weight: 900;
}

.section {
  padding: clamp(42px, 7vw, 84px) clamp(16px, 5vw, 70px);
}

.section-title {
  margin-bottom: 22px;
  text-align: center;
}

.section-title.left {
  text-align: left;
}

.section-title h2 {
  margin: 0;
  color: var(--maroon);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

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

.product-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 24px rgba(84, 44, 8, 0.08);
}

.product-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  color: white;
  background: radial-gradient(circle at 34% 28%, #f6c21a, #b71c1c 46%, #690301 78%);
  font-size: 46px;
}

.product-card h3 {
  margin: 0;
  color: var(--brown);
  font-size: 20px;
}

.tag-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff0bf;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 900;
}

.price {
  color: var(--red);
  font-weight: 900;
}

.stock {
  color: var(--green);
  font-weight: 900;
}

.stock.out {
  color: var(--red);
}

.card-actions button,
.mini-button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--maroon);
  font-weight: 900;
  cursor: pointer;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

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

.result-box,
.review-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.quote-list {
  display: grid;
  gap: 12px;
}

blockquote {
  margin: 0;
  padding: 18px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: white;
  font-weight: 700;
}

details {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

summary {
  cursor: pointer;
  color: var(--maroon);
  font-weight: 900;
}

.contact-section {
  background: var(--maroon);
  color: white;
}

.contact-section .section-title h2 {
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-grid > div {
  display: grid;
  gap: 8px;
  min-height: 100px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-grid strong {
  color: var(--yellow);
}

.contact-actions {
  grid-template-columns: 1fr 1fr;
}

.basket-panel {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  display: none;
  width: min(420px, 100vw);
  height: 100vh;
  padding: 18px;
  border: 0;
  background: white;
  box-shadow: -20px 0 60px rgba(35, 21, 13, 0.2);
}

.basket-panel.open {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-head h2 {
  margin: 0;
  color: var(--maroon);
}

.basket-items {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
}

.basket-line {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.basket-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--maroon);
  font-size: 20px;
}

dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(35, 21, 13, 0.25);
}

dialog::backdrop {
  background: rgba(35, 21, 13, 0.55);
}

.dialog-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
  background: var(--cream);
}

.close-dialog {
  position: absolute;
  top: 10px;
  right: 10px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 22px;
}

.detail-photo {
  display: grid;
  place-items: center;
  min-height: 300px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 24%, var(--yellow), var(--red) 48%, var(--maroon));
  color: white;
  font-size: 86px;
}

.option-row,
.qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.option-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 900;
}

.qty-row input {
  max-width: 90px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-grid textarea {
  grid-column: 1 / -1;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 24px;
  box-shadow: 0 12px 26px rgba(35, 21, 13, 0.22);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero img {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: auto;
    aspect-ratio: 3 / 2;
    padding: 10px;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    padding: 32px 24px 38px;
    background: var(--maroon);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .detail-layout,
  .contact-grid,
  .form-grid,
  .track-form {
    grid-template-columns: 1fr;
  }

  .basket-button {
    font-size: 13px;
    max-width: 150px;
  }

  .basket-button span:first-child {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-columns: 48px 44px minmax(88px, 1fr);
    gap: 8px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero img {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: auto;
    aspect-ratio: 3 / 2;
    padding: 10px;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    padding: 28px 18px 34px;
    background: var(--maroon);
  }

  .product-card {
    padding: 10px;
  }
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-photo.product-image {
  min-height: 300px;
  max-height: 420px;
}
.add-cart-button {
  background: var(--yellow) !important;
  border-color: var(--gold) !important;
  color: var(--maroon) !important;
}

/* Flexible product image framing: keeps every uploaded ratio visible. */
:root {
  --product-card-image-ratio: 1 / 1;
  --product-detail-image-ratio: 4 / 5;
}

.product-photo {
  aspect-ratio: var(--product-card-image-ratio);
  overflow: hidden;
  padding: 8px;
  background: #fffaf0;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 6px;
  background: #fffaf0;
}

.detail-photo {
  aspect-ratio: var(--product-detail-image-ratio);
  min-height: 0;
  overflow: hidden;
  padding: 10px;
  background: #fffaf0;
}

.detail-photo.product-image {
  min-height: 0;
  max-height: min(72vh, 560px);
  object-fit: contain;
}

/* Mobile-first responsive ordering polish. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

button,
a,
input,
textarea,
select {
  max-width: 100%;
}

button,
.primary-action,
.secondary-action,
.card-actions button,
.mini-button {
  touch-action: manipulation;
}

.mobile-cart-bar {
  display: none;
}

@media (min-width: 1025px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 1024px) {
  .site-header {
    grid-template-columns: 52px minmax(180px, 1fr) auto;
  }

  .brand {
    justify-self: center;
  }

  .hero {
    grid-template-columns: 0.9fr 1.1fr;
    min-height: min(62vh, 620px);
  }

  .hero img {
    min-height: min(62vh, 620px);
  }

  .product-grid,
  .contact-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding-inline: clamp(22px, 4vw, 44px);
  }

  .basket-panel {
    width: min(460px, 92vw);
  }
}

@media (max-width: 639px) {
  body:has(.mobile-cart-bar.has-items) {
    padding-bottom: 86px;
  }

  .site-header {
    grid-template-columns: 46px minmax(42px, 1fr) auto;
    gap: 8px;
    padding: 10px 12px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .brand {
    min-width: 0;
    justify-self: center;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .basket-button {
    min-height: 42px;
    max-width: 128px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .drawer {
    top: 64px;
    left: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 78px);
    overflow: auto;
  }

  .category-bar {
    top: 64px;
    gap: 8px;
    padding: 9px 12px;
    scrollbar-width: none;
  }

  .category-bar::-webkit-scrollbar {
    display: none;
  }

  .category-bar button {
    min-height: 42px;
    padding-inline: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero img {
    grid-column: 1;
    min-height: 0;
    height: auto;
    aspect-ratio: 3 / 2;
    padding: 10px;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    padding: 28px 18px 34px;
    background: var(--maroon);
  }

  .hero h1 {
    font-size: clamp(42px, 16vw, 64px);
  }

  .hero-points {
    gap: 8px;
  }

  .hero-points span {
    flex: 1 1 100%;
    text-align: center;
  }

  .search-band,
  .slider-section,
  .section {
    padding-inline: 14px;
  }

  .section {
    padding-block: 36px;
  }

  .section-title {
    margin-bottom: 16px;
  }

  .section-title h2,
  .slide h2 {
    font-size: clamp(27px, 11vw, 38px);
  }

  .product-grid,
  .split-section,
  .contact-grid,
  .form-grid,
  .track-form,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 14px;
  }

  .product-card {
    min-height: auto;
    padding: 12px;
  }

  .product-photo {
    aspect-ratio: 4 / 3;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .card-actions button,
  .primary-action,
  .secondary-action,
  .mini-button {
    min-height: 46px;
    padding-inline: 12px;
  }

  .add-cart-button {
    grid-column: 1 / -1;
  }

  .track-form .primary-action,
  .contact-actions,
  .dialog-actions {
    width: 100%;
  }

  .contact-actions,
  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-grid > div {
    min-height: auto;
  }

  .basket-panel {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    padding: 16px 14px 92px;
  }

  .basket-items {
    overscroll-behavior: contain;
  }

  .basket-line .card-actions {
    grid-template-columns: 1fr 1fr;
  }

  dialog {
    width: calc(100vw - 14px);
    max-width: calc(100vw - 14px);
    max-height: calc(100dvh - 14px);
    border-radius: 8px;
  }

  .dialog-card {
    max-height: calc(100dvh - 14px);
    overflow: auto;
    padding: 18px 14px;
  }

  .close-dialog {
    top: 8px;
    right: 8px;
  }

  .detail-photo {
    min-height: 0;
    max-height: 46vh;
  }

  .option-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .option-row label {
    min-height: 46px;
  }

  .qty-row {
    display: grid;
    grid-template-columns: 46px minmax(70px, 1fr) 46px;
  }

  .qty-row strong {
    grid-column: 1 / -1;
    color: var(--maroon);
  }

  .qty-row input {
    max-width: none;
    text-align: center;
  }

  input,
  textarea,
  select {
    min-height: 46px;
    font-size: 16px;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 18px;
    width: 50px;
    height: 50px;
  }

  body:has(.mobile-cart-bar.has-items) .floating-whatsapp {
    bottom: 92px;
  }

  .mobile-cart-bar.has-items {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid rgba(246, 194, 26, 0.55);
    border-radius: 8px;
    background: var(--maroon);
    color: #fffaf0;
    box-shadow: 0 16px 36px rgba(35, 21, 13, 0.28);
    font-weight: 900;
  }
}
