/* ==========================================================
   Foxtek Beauty & Fashion — Rose Gold Luxe extensions
   ========================================================== */

:root {
  --fx-rose-50:  #fbf1ea;
  --fx-rose-100: #f2ddcb;
  --fx-rose-200: #e6bfa1;
  --fx-rose-300: #d69a71;
  --fx-rose-400: #c67f52;
  --fx-rose-500: #b06a3e;       /* primary rose gold */
  --fx-rose-600: #935733;
  --fx-rose-700: #74442a;
  --fx-ink-900:  #0e0b09;       /* near black */
  --fx-ink-800:  #1a1512;
  --fx-ink-700:  #2a221d;
  --fx-cream:    #f8f1e8;
  --fx-line:     rgba(214, 154, 113, 0.28);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Hind Siliguri', system-ui, sans-serif;
  background: var(--fx-cream);
  color: var(--fx-ink-900);
  -webkit-font-smoothing: antialiased;
}

body[data-lang="bn"] { font-family: 'Tiro Bangla', 'Hind Siliguri', serif; }
body[data-lang="bn"] .fx-ui { font-family: 'Hind Siliguri', sans-serif; }

/* Serif display for hero + product titles */
.fx-display {
  font-family: 'Cormorant Garamond', 'Tiro Bangla', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Gold gradient text */
.fx-gold-text {
  background: linear-gradient(135deg, #c67f52 0%, #f2ddcb 45%, #b06a3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.fx-btn {
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.fx-btn-primary {
  background: linear-gradient(135deg, #b06a3e, #d69a71);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(176, 106, 62, .7);
}
.fx-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(176, 106, 62, .8); }
.fx-btn-dark {
  background: var(--fx-ink-900);
  color: var(--fx-rose-100);
  border: 1px solid var(--fx-rose-500);
}
.fx-btn-ghost {
  background: transparent;
  color: var(--fx-ink-900);
  border: 1px solid var(--fx-rose-500);
}
.fx-btn-ghost:hover { background: var(--fx-rose-500); color: #fff; }

/* Card */
.fx-card {
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.fx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -22px rgba(116, 68, 42, .4);
}

.fx-sale-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: linear-gradient(135deg, #b06a3e, #d69a71);
  color: #fff;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.4);
}

/* Section headings */
.fx-eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fx-rose-500);
  font-weight: 600;
}
.fx-h2 {
  font-family: 'Cormorant Garamond', 'Tiro Bangla', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--fx-ink-900);
}

/* Divider ornament */
.fx-ornament {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  color: var(--fx-rose-500);
}
.fx-ornament::before,
.fx-ornament::after {
  content:''; height: 1px; width: 60px;
  background: linear-gradient(90deg, transparent, var(--fx-rose-500), transparent);
}

/* Header */
.fx-header {
  background: rgba(14, 11, 9, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 154, 113, .3);
}
.fx-header a, .fx-header button { color: #f2ddcb; }

/* Marquee announcement bar */
.fx-marquee {
  overflow: hidden;
  background: linear-gradient(90deg, #0e0b09, #2a221d, #0e0b09);
  color: var(--fx-rose-200);
  border-bottom: 1px solid var(--fx-rose-700);
}
.fx-marquee-inner {
  display: inline-flex;
  gap: 48px;
  padding: 8px 0;
  animation: fx-scroll 32s linear infinite;
  white-space: nowrap;
}
@keyframes fx-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero */
.fx-hero {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(214,154,113,.25), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(176,106,62,.18), transparent 55%),
    linear-gradient(180deg, #12100e 0%, #1a1512 100%);
  color: var(--fx-cream);
  position: relative;
  overflow: hidden;
}
.fx-hero::after {
  content:''; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><defs><radialGradient id='g' cx='50%25' cy='50%25' r='50%25'><stop offset='0' stop-color='%23d69a71' stop-opacity='0.15'/><stop offset='1' stop-color='%23d69a71' stop-opacity='0'/></radialGradient></defs><circle cx='100' cy='100' r='2' fill='url(%23g)'/></svg>");
  opacity: .5; pointer-events: none;
}

/* Cart drawer */
.fx-drawer-backdrop { background: rgba(14,11,9,.55); backdrop-filter: blur(4px); }
.fx-drawer {
  background: #fff;
  border-left: 1px solid var(--fx-line);
  box-shadow: -30px 0 60px -30px rgba(0,0,0,.4);
}

/* Countdown pill */
.fx-countdown {
  display: inline-flex; gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0e0b09, #2a221d);
  color: var(--fx-rose-100);
  border: 1px solid var(--fx-rose-500);
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}
.fx-countdown .fx-time {
  min-width: 42px;
  padding: 4px 6px;
  background: rgba(214,154,113,.12);
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
}

/* Toast */
.fx-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--fx-ink-900); color: var(--fx-rose-100);
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--fx-rose-500);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.fx-toast.fx-show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* Category tile */
.fx-cat-tile {
  aspect-ratio: 3/4;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.fx-cat-tile img { width:100%; height:100%; object-fit: cover; transition: transform .5s ease; }
.fx-cat-tile:hover img { transform: scale(1.06); }
.fx-cat-tile::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,11,9,.85) 100%);
}
.fx-cat-tile .fx-cat-label {
  position: absolute; left:0; right:0; bottom:0;
  padding: 20px; color: #fff; z-index: 2;
}

/* Table (admin) */
.fx-table { width:100%; border-collapse: collapse; }
.fx-table th {
  text-align: left; padding: 14px 16px;
  background: var(--fx-ink-900); color: var(--fx-rose-100);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid var(--fx-rose-700);
}
.fx-table td { padding: 14px 16px; border-bottom: 1px solid var(--fx-line); vertical-align: middle; }
.fx-table tr:hover { background: var(--fx-rose-50); }

/* Status badges */
.fx-badge { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.fx-badge-pending   { background: #fff3d6; color: #7a5a00; }
.fx-badge-shipped   { background: #d6e6ff; color: #123b7a; }
.fx-badge-delivered { background: #d7f2df; color: #145a2f; }
.fx-badge-cancelled { background: #ffd6d6; color: #7a1414; }

/* New-order flash */
@keyframes fx-flash { 0% { background: #fff4d6; } 100% { background: transparent; } }
.fx-new-row { animation: fx-flash 3s ease; }

/* Utility */
.fx-hide { display: none !important; }
.fx-strike { text-decoration: line-through; color: #8a7a70; margin-right: 8px; font-weight: 400; }

/* Mobile bottom nav */
.fx-mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(14,11,9,.96);
  border-top: 1px solid var(--fx-rose-700);
  display: none; grid-template-columns: repeat(4, 1fr);
  padding: 8px 4px; z-index: 40;
}
.fx-mobile-nav a {
  color: var(--fx-rose-100);
  display:flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px; font-size: 11px;
}
@media (max-width: 640px) { .fx-mobile-nav { display: grid; } body { padding-bottom: 70px; } }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--fx-rose-300); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }


/* ==========================================================
   Stock UI (admin table + storefront cards) — added in v0.2
   ========================================================== */
.fx-stock-input {
  width: 4rem;
  text-align: center;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--fx-line);
  border-radius: 8px;
  font-weight: 700;
  outline: none;
  transition: border-color .2s, background .2s;
  -moz-appearance: textfield;
}
.fx-stock-input::-webkit-outer-spin-button,
.fx-stock-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fx-stock-input:focus { border-color: var(--fx-rose-500); }
.fx-stock-input.fx-stock-ok    { background:#ecfdf5; color:#065f46; border-color:#a7f3d0; }
.fx-stock-input.fx-stock-low   { background:#fffbeb; color:#92400e; border-color:#fcd34d; }
.fx-stock-input.fx-stock-empty { background:#fef2f2; color:#991b1b; border-color:#fecaca; }
.fx-stock-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--fx-line);
  background: #fff;
  font-weight: 700;
  line-height: 1;
  color: var(--fx-rose-600);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.fx-stock-btn:hover { background: var(--fx-rose-50); border-color: var(--fx-rose-500); }

/* Storefront stock chip on product cards */
.fx-stock-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.fx-stock-chip.ok    { background:#ecfdf5; color:#065f46; }
.fx-stock-chip.low   { background:#fffbeb; color:#92400e; }
.fx-stock-chip.empty { background:#fef2f2; color:#991b1b; }
.fx-stock-chip .dot  { width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.7; }

/* Sold-out overlay on cards */
.fx-soldout-overlay {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(14,11,9,0.55);
  color:#fff;
  font-family:'Cormorant Garamond','Tiro Bangla',serif;
  font-size: 1.5rem;
  letter-spacing:.06em;
  pointer-events:none;
}

/* Disabled add-to-cart when out of stock */
.fx-btn.fx-btn-disabled,
.fx-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: grayscale(.4);
}
