@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Mulish:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #f7f1ef;
  --bg-soft: #fffaf8;
  --blush: #ead8d8;
  --dusty-rose: #d8b8b6;
  --beige: #e9dfd7;
  --taupe: #b79f92;
  --accent: #8d6e63;
  --text-main: #4e3f3a;
  --text-soft: #7f6b63;
  --line-soft: #e8ddd7;
  --shadow-soft: 0 8px 24px rgba(126, 99, 88, 0.1);
  --shadow-hover: 0 16px 32px rgba(126, 99, 88, 0.16);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

html, body {
  min-height: 100%;
}

body {
  font-family: 'Mulish', sans-serif;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(234, 216, 216, 0.55), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(233, 223, 215, 0.65), transparent 30%),
    var(--bg-main);
  letter-spacing: 0.01em;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6,
.brand-name,
.section-title,
.card-title,
.offcanvas-title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-main);
}

p, .text-body-secondary, small, .small {
  color: var(--text-soft) !important;
}

.site-header-wrap {
  background: rgba(255, 250, 248, 0.95);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}

.announce-bar {
  background: linear-gradient(130deg, #d7b6b5, #bca194);
  color: #fffaf8;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0.45rem 0;
}

.announce-text {
  font-size: 0.9rem;
}

.site-header-tools {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.55rem 0;
}

.header-search {
  min-width: 240px;
  max-width: 420px;
  width: 100%;
}

.site-logo-row {
  padding: 1rem 0 0.85rem;
  max-height: 180px;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease, opacity 0.28s ease;
}

.site-logo-link {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.site-logo-img {
  height: 120px;
  width: auto;
  object-fit: contain;
  max-width: min(92vw, 560px);
}

.site-logo-text,
.site-header .navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

body.is-scrolled .site-logo-row {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-top: 0;
}

.site-menu-row {
  border-top: 1px solid rgba(232, 221, 215, 0.8);
}

.site-menu-row .nav-link,
.site-header .nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-menu-row .nav-link:hover,
.site-header .nav-link:hover {
  color: var(--accent);
  background: rgba(216, 184, 182, 0.2);
}

.cart-trigger {
  border-radius: 999px;
  border: 1px solid var(--dusty-rose);
  background: var(--bg-soft);
  color: var(--accent);
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
}

.cart-trigger:hover {
  background: var(--blush);
  color: var(--accent);
}

.hero-bg {
  background:
    linear-gradient(120deg, rgba(233, 223, 215, 0.94), rgba(234, 216, 216, 0.9)),
    var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.hero-photo {
  position: relative;
  min-height: clamp(340px, 52vh, 580px);
  display: flex;
  align-items: center;
}

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

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(64, 45, 39, 0.2), rgba(239, 229, 225, 0.45));
}

.hero-photo .hero-content {
  position: relative;
  z-index: 1;
  background: rgba(255, 250, 248, 0.74);
  border: 1px solid rgba(255, 250, 248, 0.85);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-soft);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.section-kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.77rem;
  color: var(--taupe);
  margin-bottom: 0.4rem;
}

.boutique-block {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.product-grid .card {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.product-grid .card-img-top,
.product-image {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.product-grid .card-body {
  padding: 1rem 1.05rem 1.05rem;
}

.product-grid .card-title a {
  color: var(--text-main);
  text-decoration: none;
}

.product-grid .card-title a:hover {
  color: var(--accent);
}

.product-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.payment-option {
  margin: 0;
}

.payment-option .form-check-input {
  margin-top: 1rem;
  margin-left: 0.8rem;
}

.payment-option .payment-option-inner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem 0.75rem 2.2rem;
  background: rgba(255, 250, 248, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.payment-option .payment-option-inner small {
  font-size: 0.79rem;
}

.payment-option .form-check-input:checked + .payment-option-inner {
  border-color: var(--dusty-rose);
  background: rgba(234, 216, 216, 0.26);
  box-shadow: 0 0 0 0.12rem rgba(216, 184, 182, 0.2);
}

.btn,
.form-control,
.form-select,
textarea {
  border-radius: 999px;
}

.form-control,
.form-select,
textarea {
  border: 1px solid #dccdc6;
  background: #fffdfc;
  color: var(--text-main);
}

textarea.form-control {
  border-radius: var(--radius-sm);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--dusty-rose);
  box-shadow: 0 0 0 0.2rem rgba(216, 184, 182, 0.25);
}

.btn-primary {
  background: linear-gradient(130deg, var(--dusty-rose), var(--taupe));
  border-color: transparent;
  color: #fffaf8;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(130deg, #cfa8a6, #9f8478);
  color: #fffaf8;
}

.btn-outline-primary {
  border-color: var(--dusty-rose);
  color: var(--accent);
  background: transparent;
  font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(216, 184, 182, 0.18);
  border-color: var(--dusty-rose);
  color: var(--accent);
}

.btn-link {
  color: var(--accent);
  text-decoration: none;
}

.btn-link:hover {
  color: #6f554d;
}

.alert {
  border-radius: var(--radius-md);
  border-width: 1px;
}

.alert-success {
  background: #f6eeec;
  color: #6d534b;
  border-color: #e7d5cf;
}

.alert-danger {
  background: #f8eaea;
  color: #8c4d4d;
  border-color: #efcece;
}

.alert-info {
  background: #f4efed;
  color: #6f5a52;
  border-color: #e6d9d3;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: #f9f2ef;
  --bs-table-hover-bg: #f5ede9;
  color: var(--text-main);
}

.table thead.table-light th {
  background: #f0e4df;
  border-color: var(--line-soft);
  color: #6f5b53;
  font-weight: 700;
}

.table td,
.table th {
  border-color: var(--line-soft);
}

.offcanvas {
  background: #fffaf8;
  border-left: 1px solid var(--line-soft);
}

.offcanvas .list-group-item {
  border-color: var(--line-soft);
  background: transparent;
}

.boutique-card,
.card.shadow-sm,
.boutique-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft) !important;
  background: var(--bg-soft);
}

.product-carousel-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.alt-product-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.qty-input {
  max-width: 120px;
}

.qty-input-sm {
  width: 82px;
}

.qty-col {
  width: 140px;
}

.success-wrap {
  max-width: 640px;
}

.actions-col {
  width: 160px;
}

.actions-col-sm {
  width: 140px;
}

.field-col {
  max-width: 140px;
}

.note-field {
  width: 220px;
}

.status-field {
  width: 150px;
}

.thumb-box {
  width: 90px;
  height: 90px;
  overflow: hidden;
}

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

.thumb-remove {
  padding: 2px 6px;
}

.site-footer {
  background: #efe5e1;
  border-top: 1px solid #e4d5cf;
  color: #6f5b53;
}

.admin-header .navbar-brand {
  font-size: 1.85rem;
}

.admin-main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.admin-footer {
  background: #f1e8e4;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.drag-handle {
  cursor: grab;
}

.dash-card.is-hidden {
  display: none !important;
}

.site-footer-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--accent);
}

.site-footer a {
  color: #6f5b53;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.decor-line {
  width: 80px;
  height: 1px;
  background: var(--taupe);
  margin: 0.6rem auto 0;
}

@media (max-width: 991.98px) {
  .site-menu-row .navbar-collapse,
  .site-header .navbar-collapse {
    background: rgba(255, 250, 248, 0.98);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    margin-top: 0.7rem;
  }
}

@media (max-width: 767.98px) {
  .note-field,
  .status-field,
  .field-col {
    width: 100%;
    max-width: 100%;
  }

  .site-logo-text {
    font-size: 1.65rem;
  }

  .site-logo-row {
    padding: 0.65rem 0 0.5rem;
  }

  .site-logo-img {
    height: 82px;
  }

  .announce-text {
    font-size: 0.8rem;
  }

  .header-search {
    max-width: 100%;
  }
}
