/* css/base.css — Custom properties, reset, utility classes */

/* ── Custom Properties ─────────────────────────────────────────────────── */
:root {
  /* Colours */
  --c-black:       #0a0a0a;
  --c-dark:        #1c1c1c;
  --c-mid:         #4a4a4a;
  --c-light:       #9a9a9a;
  --c-border:      #2a2a2a;
  --c-border-lt:   #e0ddd8;
  --c-warm-white:  #faf9f6;
  --c-off-white:   #f5f4f0;
  --c-accent:      #c8a96e;  /* warm gold */
  --c-error:       #8b2020;
  --c-success:     #2a6a2a;
  --c-whatsapp:    #25D366;

  /* Typography */
  --f-ui:          'Inter', 'Helvetica Neue', Arial, sans-serif;
  --f-display:     'Cormorant Garamond', Georgia, serif;

  /* Type scale */
  --t-xs:   0.625rem;   /* 10px */
  --t-sm:   0.75rem;    /* 12px */
  --t-base: 1rem;       /* 16px */
  --t-md:   1.25rem;    /* 20px */
  --t-lg:   1.5rem;     /* 24px */
  --t-xl:   2rem;       /* 32px */
  --t-2xl:  3rem;       /* 48px */
  --t-3xl:  4.5rem;     /* 72px */

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  /* Layout */
  --gutter:   clamp(1rem, 5vw, 4rem);
  --header-h: 60px;

  /* Transitions */
  --ease-fast: 150ms ease;
  --ease-base: 280ms ease;
  --ease-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--c-dark);
  background: var(--c-warm-white);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

input, textarea {
  font-family: inherit;
}

/* ── Price display: original + pre-order ────────────────────────────────── */
.price-original {
  text-decoration: line-through;
  color: var(--c-light);
  font-weight: 300;
  margin-right: var(--s-2);
}

.price-preorder {
  color: var(--c-accent);
  font-weight: 500;
}

/* ── Utility: .btn ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--ease-base), color var(--ease-base), border-color var(--ease-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-black);
  color: var(--c-warm-white);
  border-color: var(--c-black);
}

.btn-primary:hover:not(:disabled) {
  background: var(--c-dark);
  border-color: var(--c-dark);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--c-black);
  border-color: var(--c-border-lt);
}

.btn-secondary:hover {
  border-color: var(--c-black);
}

.btn-whatsapp {
  background: var(--c-whatsapp);
  color: #fff;
  border-color: var(--c-whatsapp);
}

.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
}

.btn-full {
  width: 100%;
}

/* ── Utility: hidden ────────────────────────────────────────────────────── */
[hidden] {
  display: none !important;
}

/* ── View fade transition ──────────────────────────────────────────────── */
.view {
  animation: viewFadeIn 300ms ease both;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Image loading shimmer ─────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.img-loading {
  background: linear-gradient(90deg, var(--c-off-white) 25%, #eae8e4 50%, var(--c-off-white) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
