/* ==========================================================================
   ALVORX — Design tokens
   A dark-slate foundation with rose gold as the single "jewelry" accent.
   Parchment is used sparingly, only where content needs a light stage.
   ========================================================================== */
:root {
  --ink: #1A2030;
  /* Deep Slate — dominant background */
  --panel: #2C3440;
  /* Slate panel — cards / raised surfaces on dark */
  --slate-grey: #4A5568;
  /* body copy on light surfaces */
  --gold: #C4896A;
  /* Rose Gold — primary accent */
  --gold-light: #D9A882;
  /* Rose Gold, lighter — hover / secondary */
  --gold-deep: #A06B50;
  /* Rose Gold, deeper — pressed state */
  --parchment: #F2EDE4;
  /* Warm Parchment — light stage surface */
  --warm-grey: #C0B8AD;
  /* Warm Grey — hairlines on light surfaces */
  --hairline-dark: rgba(196, 137, 106, 0.28);
  /* gold hairline on dark surfaces */
  --success: #4a9d6f;
  --error: #d97b6c;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--parchment);
  background: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

/* Signature element: a thin gold hairline with a centered diamond mark,
   used under key headings site-wide as the recurring luxury detail. */
.gold-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 20px;
}

.gold-rule::before,
.gold-rule::after {
  content: '';
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-rule span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.gold-rule.left {
  justify-content: flex-start;
}

.gold-rule.left::after {
  flex-grow: 1;
}

.gold-rule.left::before {
  display: none;
}

/* ---------- header / footer ---------- */
.site-header {
  padding: 16px 20px;
  text-align: center;
  background: var(--ink);
  border-bottom: 1px solid var(--hairline-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-link {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--parchment);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-badge {
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.site-header .logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--parchment);
  text-transform: uppercase;
  display: inline-block;
}

.site-header .logo-img {
  height: 68px;
  width: auto;
}

.site-footer {
  text-align: center;
  padding: 34px 20px 30px;
  color: var(--warm-grey);
  font-size: 12.5px;
  letter-spacing: .3px;
  background: var(--ink);
  border-top: 1px solid var(--hairline-dark);
  margin-top: 0;
}

.site-footer p {
  margin: 4px 0;
}

/* ---------- home page ---------- */
.hero-strip {
  background:
    radial-gradient(ellipse at 50% -20%, rgba(196, 137, 106, 0.18), transparent 60%),
    var(--ink);
  color: var(--parchment);
  text-align: center;
  padding: 46px 20px 40px;
}

.hero-strip h1 {
  font-size: 34px;
  letter-spacing: .5px;
}

.hero-strip p {
  margin: 12px 0 0;
  color: var(--warm-grey);
  font-size: 14.5px;
  letter-spacing: .3px;
}

.product-grid-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 18px 40px;
  background: var(--ink);
}

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

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

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

.product-card {
  border: 1px solid var(--hairline-dark);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--parchment);
}

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

.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 4px 8px;
  border-radius: 3px;
}

.badge-discount.big {
  top: 16px;
  left: 16px;
  font-size: 12.5px;
  padding: 6px 12px;
}

.product-card-body {
  padding: 14px 14px 16px;
}

.product-category {
  font-size: 10.5px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 600;
}

.product-card-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  margin: 6px 0 10px;
  line-height: 1.35;
  color: var(--parchment);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 20px;
}

.price-row.big .price {
  font-size: 34px;
}

.old-price {
  color: var(--warm-grey);
  text-decoration: line-through;
  font-size: 13px;
}

.cta-mini {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--gold);
}

/* ---------- product landing page ---------- */
.product-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 20px;
  background: var(--ink);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--parchment);
}

.product-image-wrap img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.color-gallery {
  padding: 16px 20px 4px;
  border-top: 1px solid var(--hairline-dark);
}

.color-gallery-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--warm-grey);
  margin-bottom: 12px;
}

.color-gallery-label #selected-color-name {
  color: var(--gold-light);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  margin-left: 4px;
}

.color-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.color-scroll::-webkit-scrollbar {
  height: 5px;
}

.color-scroll::-webkit-scrollbar-thumb {
  background: var(--hairline-dark);
  border-radius: 4px;
}

.color-thumb {
  flex: 0 0 auto;
  width: var(--thumb-size, 88px);
  height: var(--thumb-size, 88px);
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--hairline-dark);
  background: var(--parchment);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .15s ease, transform .15s ease;
}

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

.color-thumb:hover {
  transform: translateY(-2px);
}

.color-thumb.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--gold);
}

.product-info {
  padding: 26px 20px 8px;
}

.product-info h1 {
  font-size: 30px;
  margin: 6px 0 10px;
  color: var(--parchment);
  line-height: 1.2;
}

.short-pitch {
  color: var(--warm-grey);
  font-size: 15.5px;
  margin: 0 0 16px;
  font-style: italic;
  font-family: var(--font-display);
}

.trust-badges {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-badges li {
  font-size: 13.5px;
  color: var(--parchment);
  font-weight: 500;
  padding-left: 20px;
  position: relative;
}

.trust-badges li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.btn-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: .3px;
  padding: 17px 22px;
  border-radius: 3px;
  margin-top: 18px;
  border: none;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 6px 16px rgba(196, 137, 106, 0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-cta.full-width {
  width: 100%;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(196, 137, 106, 0.35);
}

.btn-whatsapp {
  display: block;
  text-align: center;
  background: transparent;
  color: var(--parchment) !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 20px;
  border-radius: 3px;
  border: 1px solid #3d9d63;
  margin-top: 12px;
}

.btn-whatsapp:hover {
  background: rgba(61, 157, 99, 0.1);
}

.closer-look {
  padding: 6px 0 0;
  margin-top: 4px;
}

.closer-look-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.closer-look-scroll::-webkit-scrollbar {
  height: 6px;
}

.closer-look-scroll::-webkit-scrollbar-track {
  background: var(--panel);
  border-radius: 4px;
}

.closer-look-scroll::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

.closer-look-photo {
  flex: 0 0 calc((100% - 16px) / 3);
  aspect-ratio: 3 / 4;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--hairline-dark);
  background: var(--parchment);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .15s ease, transform .15s ease;
}

.closer-look-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closer-look-photo:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.product-details {
  padding: 30px 20px 26px;
  border-top: 1px solid var(--hairline-dark);
  margin-top: 20px;
}

.product-details h2 {
  font-size: 22px;
  color: var(--parchment);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.features-list li {
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--warm-grey);
  padding-left: 20px;
  position: relative;
}

.features-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.description {
  color: var(--warm-grey);
  font-size: 14.5px;
}

.order-section {
  background: var(--parchment);
  color: var(--ink);
  padding: 30px 20px 32px;
  margin: 0;
  scroll-margin-top: 20px;
}

.order-section h2 {
  font-size: 24px;
  color: var(--ink);
}

.order-subtext {
  color: var(--slate-grey);
  font-size: 14px;
  margin: 8px 0 20px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-form label {
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--slate-grey);
}

.order-form input,
.order-form select,
.order-form textarea {
  padding: 13px 14px;
  border: 1px solid var(--warm-grey);
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
  width: 100%;
  background: #fff;
  color: var(--ink);
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
}

.form-error {
  background: #fbeae6;
  color: #a8402c;
  border: 1px solid #e8b7ab;
  padding: 11px 14px;
  border-radius: 3px;
  font-size: 13.5px;
  margin-bottom: 10px;
}

.back-link {
  text-align: center;
  margin-top: 24px;
  padding: 0 20px;
}

.back-link a {
  color: var(--warm-grey);
  font-size: 13.5px;
  letter-spacing: .3px;
}

.cart-added-msg {
  background: rgba(74, 157, 111, 0.12);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 13.5px;
  margin-top: 14px;
}

.cart-added-msg a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.quick-actions .btn-cta {
  margin-top: 18px;
  width: 100%;
  font-size: 18px;
  padding: 19px 22px;
}

.add-to-cart-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-self: flex-start;
  align-items: center;
}

.add-to-cart-form select {
  padding: 0 8px;
  height: 34px;
  border-radius: 3px;
  border: 1px solid var(--hairline-dark);
  background: transparent;
  color: var(--warm-grey);
  font-size: 12.5px;
}

.btn-secondary {
  background: transparent;
  border: none;
  color: var(--warm-grey);
  font-weight: 600;
  font-size: 12.5px;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-secondary:hover {
  color: var(--gold-light);
}

/* ---------- cart page ---------- */
.cart-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 20px 40px;
}

.cart-page h1 {
  color: var(--parchment);
  font-size: 28px;
}

.cart-empty {
  color: var(--warm-grey);
  text-align: center;
  padding: 60px 20px;
}

.cart-empty a {
  color: var(--gold-light);
  font-weight: 600;
}

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-dark);
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--parchment);
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-info h4 {
  font-size: 15px;
  color: var(--parchment);
  margin: 0 0 4px;
  font-weight: 600;
}

.cart-item-info .price {
  font-size: 14px;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-controls select {
  padding: 6px 8px;
  border-radius: 3px;
  border: 1px solid var(--warm-grey);
  background: var(--panel);
  color: var(--parchment);
  font-size: 13px;
}

.cart-item-controls button {
  background: none;
  border: none;
  color: var(--warm-grey);
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  font-family: var(--font-display);
  color: var(--parchment);
}

.cart-total-row .label {
  font-size: 16px;
}

.cart-total-row .amount {
  font-size: 26px;
  color: var(--gold-light);
  font-weight: 700;
}

.thank-you-page {
  max-width: 500px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  min-height: 70vh;
}

.checkmark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 26px;
  line-height: 58px;
  margin: 0 auto 20px;
  font-family: var(--font-display);
}

.thank-you-page h1 {
  color: var(--parchment);
  font-size: 28px;
}

.thank-you-page p {
  color: var(--warm-grey);
  font-size: 14.5px;
}

.order-summary {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--hairline-dark);
  padding: 20px 22px;
  border-radius: 4px;
  margin: 26px 0;
  font-size: 13.5px;
  color: var(--parchment);
}

.order-summary h3 {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.order-summary p {
  margin: 7px 0;
  color: var(--warm-grey);
}

.order-summary strong {
  color: var(--parchment);
  font-weight: 600;
}

/* ==========================================================================
   ADMIN — a calmer, high-contrast workspace theme, same brand DNA
   ========================================================================== */
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--ink);
}

.admin-login-form {
  background: var(--panel);
  border: 1px solid var(--hairline-dark);
  padding: 34px 30px;
  border-radius: 4px;
  width: 100%;
  max-width: 340px;
}

.admin-login-form h1 {
  color: var(--parchment);
  font-size: 24px;
  margin-bottom: 6px;
}

.admin-login-form label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--warm-grey);
}

.admin-login-form input {
  width: 100%;
  padding: 11px 12px;
  margin-top: 8px;
  border: 1px solid var(--warm-grey);
  border-radius: 3px;
  background: var(--parchment);
  color: var(--ink);
}

.admin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  background: var(--ink);
  min-height: 100vh;
}

.admin-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline-dark);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-nav .logo {
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 12px;
  color: var(--parchment);
  letter-spacing: 1px;
}

.admin-nav a {
  font-weight: 600;
  color: var(--warm-grey);
  font-size: 14px;
}

.admin-nav a:hover {
  color: var(--gold-light);
}

.admin-wrap h1 {
  color: var(--parchment);
  font-size: 26px;
  margin-bottom: 18px;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-header-row h1 {
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-bar a {
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--hairline-dark);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--warm-grey);
}

.filter-bar a.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline-dark);
  border-radius: 4px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--panel);
}

.orders-table th,
.orders-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline-dark);
  text-align: left;
  white-space: nowrap;
  color: var(--parchment);
}

.orders-table th {
  background: var(--ink);
  color: var(--gold-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

.orders-table a {
  color: var(--gold-light);
}

.empty-row {
  text-align: center;
  color: var(--warm-grey);
  padding: 30px !important;
}

.status-select {
  padding: 7px 10px;
  border-radius: 3px;
  border: 1px solid var(--warm-grey);
  font-weight: 600;
  background: var(--parchment);
  color: var(--ink);
}

.status-pending {
  color: #b58900;
}

.status-confirmed {
  color: #0969da;
}

.status-dispatched {
  color: #8250df;
}

.status-delivered {
  color: #1a8a4a;
}

.status-cancelled {
  color: #b3261e;
}

.admin-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 3px;
}

.actions-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}

.actions-cell a {
  color: var(--gold-light);
  font-weight: 600;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--warm-grey);
}

.link-btn.danger {
  color: #e08a7c;
}

.admin-product-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 560px;
}

.admin-product-form label {
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--warm-grey);
}

.admin-product-form input,
.admin-product-form textarea {
  padding: 11px 12px;
  border: 1px solid var(--warm-grey);
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  background: var(--parchment);
  color: var(--ink);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-top: 14px;
  color: var(--parchment);
  text-transform: none;
}

.checkbox-label input {
  width: auto;
}