:root {
  --bg: #f5efe6;
  --ink: #1e1b18;
  --accent: #d34f2f;
  --accent-dark: #ae3f24;
  --sand: #f0e1cf;
  --mint: #dbe6df;
  --shadow: 0 24px 50px rgba(18, 16, 12, 0.15);
  --theme-a: #fff7ec;
  --theme-b: #efe4d5;
  --theme-c: #e8dccb;
}

/* Loading Spinner */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--theme-a) 0%, var(--theme-b) 50%, var(--theme-c) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(211, 79, 47, 0.2);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  margin-bottom: 20px;
}

.loader-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, var(--theme-a), var(--theme-b) 35%, var(--theme-c) 70%);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/assets/logo.png') center 18% / 520px auto no-repeat;
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

button {
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw;
  position: sticky;
  top: 0;
  z-index: 10;
  background:
    linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
    var(--header-image, none),
    var(--header-bg, rgba(245, 239, 230, 0.9));
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 27, 24, 0.08);
}

.store-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 6vw;
}

.store-card {
  background: #fff9f1;
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  width: 100%;
}

.store-card h1 {
  font-family: "Georgia", "Times New Roman", serif;
}

.dashboard-body {
  background: radial-gradient(circle at top right, #fff7ec, #efe4d5 40%, #e8dccb 75%);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw;
  background: rgba(255, 249, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 27, 24, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.dashboard-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-brand small {
  color: rgba(30, 27, 24, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
}

.dashboard-body .studio-form,
.dashboard-body .studio-panel {
  border: 1px solid rgba(30, 27, 24, 0.08);
}

.dashboard-body .studio-form {
  background: #fffdf8;
}

.dashboard-body .studio-panel {
  background: #141210;
}

.hint {
  font-size: 12px;
  color: rgba(30, 27, 24, 0.6);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 24px;
  font-weight: 500;
}

.bag-button {
  background: var(--ink);
  color: #fffaf2;
  padding: 10px 18px;
  border-radius: 999px;
  display: flex;
  gap: 8px;
  align-items: center;
}

main {
  padding: 0 6vw 8vw;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  padding: 60px 0 40px;
  align-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
  border-radius: 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
}

.hero h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  margin: 16px 0;
}

.hero-copy {
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary {
  background: var(--accent);
  color: #fffaf2;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(30, 27, 24, 0.2);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
}

.hero-card {
  background: linear-gradient(135deg, #fdf8f1, #f2e2cf);
  padding: 30px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-tag {
  background: var(--ink);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 18px;
}

.hero-card h2 {
  font-family: "Georgia", "Times New Roman", serif;
  margin-bottom: 12px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 18px;
}

.hero-meta span {
  font-size: 24px;
  font-weight: 700;
}

.section {
  margin-top: 60px;
}

.section.alt {
  background: var(--essentials-bg, var(--sand));
  border-radius: 28px;
  padding: 40px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-header h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 40px);
}

.filters {
  margin: 20px 0 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid rgba(30, 27, 24, 0.2);
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff6ea;
  font-size: 14px;
}

.chip.active {
  background: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff9f1;
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 32px rgba(20, 17, 13, 0.12);
  animation: lift 0.5s ease;
}

.product-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  background: #fff9f1;
  padding: 30px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.product-detail img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 20px;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 20px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
}

.thumb {
  border: 1px solid rgba(30, 27, 24, 0.2);
  border-radius: 14px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

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

.thumb.active {
  outline: 2px solid var(--accent);
}

.rating {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.reviews {
  margin-top: 30px;
  background: #fff9f1;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.review {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(30, 27, 24, 0.1);
}

.media-strip {
  margin-top: 30px;
  background: #fff9f1;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.video-grid video {
  width: 100%;
  border-radius: 18px;
  background: #000;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

.product-card h4 {
  font-size: 18px;
}

.product-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.badge {
  background: var(--mint);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.price {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.price del {
  color: rgba(30, 27, 24, 0.5);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-actions button {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.essentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.sale-banner {
  margin-top: 24px;
  background: var(--sale-bg, linear-gradient(120deg, #1e1b18, #3a2f2b));
  color: var(--sale-text, #fffaf2);
  padding: 28px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.studio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.studio-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: #fff9f1;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.studio-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.studio-form input,
.studio-form select,
.studio-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 24, 0.2);
  background: #fff;
}

.full {
  grid-column: 1 / -1;
}

.studio-actions {
  display: flex;
  gap: 12px;
}

.studio-panel {
  background: #1e1b18;
  color: #fffaf2;
  padding: 24px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow);
}

.studio-auth {
  background: #fff9f1;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-auth h3 {
  font-family: "Georgia", "Times New Roman", serif;
}

.auth-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(30, 27, 24, 0.1);
  background: #fff;
}

.auth-block input {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 24, 0.2);
}

.auth-block small {
  color: rgba(30, 27, 24, 0.6);
}

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

.metric-grid span {
  font-size: 22px;
  font-weight: 700;
}

.payment-gateway {
  background: rgba(255, 250, 242, 0.08);
  padding: 16px;
  border-radius: 16px;
}

.bag {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(420px, 100%);
  background: #fffaf2;
  box-shadow: -10px 0 40px rgba(18, 16, 12, 0.2);
  transform: translateX(110%);
  transition: transform 0.3s ease;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 20;
}

.bag.open {
  transform: translateX(0);
}

.bag-items {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bag-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 10px;
  align-items: center;
}

.bag-item img {
  width: 70px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.bag-footer {
  border-top: 1px solid rgba(30, 27, 24, 0.1);
  padding-top: 12px;
}

.bag-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hidden {
  display: none;
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    font-size: 13px;
  }

  .section.alt {
    padding: 30px 20px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 40px;
  }

  .site-header {
    flex-direction: column;
    gap: 12px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.size-select {
  border-radius: 999px;
  border: 1px solid rgba(30, 27, 24, 0.2);
  padding: 8px 12px;
  background: #fff;
  font-size: 13px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bag-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bag-empty {
  padding: 12px;
  color: rgba(30, 27, 24, 0.6);
}

.size-qty {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.size-qty label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.size-qty select,
.size-qty input {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 24, 0.2);
  background: #fff;
}

.dashboard-main {
  padding: 0 6vw 6vw;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}

.dash-card {
  background: #fffdf8;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(30, 27, 24, 0.08);
  box-shadow: 0 12px 24px rgba(20, 17, 13, 0.08);
}

.dash-card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(30, 27, 24, 0.6);
  margin-bottom: 8px;
}

.dash-card p {
  font-size: 26px;
  font-weight: 700;
}

.inventory-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.inventory-toolbar input,
.inventory-toolbar select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 24, 0.2);
  background: #fff;
}

.inventory-table {
  background: #fffdf8;
  border-radius: 20px;
  border: 1px solid rgba(30, 27, 24, 0.08);
  box-shadow: 0 18px 32px rgba(20, 17, 13, 0.08);
  overflow: hidden;
}

.inventory-head,
.inventory-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.2fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
}

.inventory-head {
  background: #1e1b18;
  color: #fffaf2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.inventory-row {
  border-top: 1px solid rgba(30, 27, 24, 0.08);
}

.inventory-product {
  display: flex;
  gap: 12px;
  align-items: center;
}

.inventory-product img {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.inventory-product small {
  display: block;
  color: rgba(30, 27, 24, 0.5);
}

.inventory-pill {
  background: #f0e1cf;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.inventory-stock {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inventory-status {
  font-weight: 600;
}

.inventory-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .inventory-head,
  .inventory-row {
    grid-template-columns: 1.8fr 1fr 1fr;
    grid-auto-rows: auto;
    gap: 8px;
  }

  .inventory-head span:nth-child(n + 4),
  .inventory-row > :nth-child(n + 4) {
    display: none;
  }
}

.orders-table {
  background: #fffdf8;
  border-radius: 20px;
  border: 1px solid rgba(30, 27, 24, 0.08);
  box-shadow: 0 18px 32px rgba(20, 17, 13, 0.08);
  overflow: hidden;
}

.orders-head,
.orders-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
}

.orders-head {
  background: #1e1b18;
  color: #fffaf2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.orders-row {
  border-top: 1px solid rgba(30, 27, 24, 0.08);
}

.orders-row small {
  display: block;
  color: rgba(30, 27, 24, 0.5);
}

.order-status {
  text-transform: capitalize;
  font-weight: 600;
}

.order-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: #fff9f1;
  box-shadow: -10px 0 40px rgba(18, 16, 12, 0.2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 30;
}

.order-drawer.hidden {
  display: none;
}

.order-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(30, 27, 24, 0.1);
  padding-bottom: 12px;
}

.order-drawer-content {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-section {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(30, 27, 24, 0.1);
}

.drawer-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-item img {
  width: 48px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.drawer-item div {
  flex: 1;
  margin-left: 12px;
}

@media (max-width: 900px) {
  .orders-head,
  .orders-row {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .orders-head span:nth-child(n + 4),
  .orders-row > :nth-child(n + 4) {
    display: none;
  }
}

.panel {
  background: #fffdf8;
  border-radius: 24px;
  padding: 18px;
  border: 1px solid rgba(30, 27, 24, 0.08);
  box-shadow: 0 18px 32px rgba(20, 17, 13, 0.08);
}

.search input {
  width: min(320px, 100%);
}

.inventory-table,
.orders-table {
  background: transparent;
  border: none;
  box-shadow: none;
}

.inventory-head,
.orders-head {
  position: sticky;
  top: 0;
  z-index: 2;
}

.inventory-row {
  background: #fff;
  border-radius: 16px;
  margin: 10px 0;
  box-shadow: 0 10px 18px rgba(20, 17, 13, 0.06);
}

.orders-row {
  background: #fff;
  border-radius: 16px;
  margin: 10px 0;
  box-shadow: 0 10px 18px rgba(20, 17, 13, 0.06);
}

.inventory-head,
.orders-head {
  border-radius: 16px;
}

.inventory-status {
  font-weight: 600;
}

@media (max-width: 900px) {
  .inventory-row,
  .orders-row {
    padding: 12px;
  }
}

/* Dashboard polish */
.dashboard-body {
  background: radial-gradient(circle at top right, var(--theme-a), var(--theme-b) 45%, var(--theme-c) 80%);
}

.dashboard-header {
  background: rgba(255, 248, 239, 0.92);
  border-bottom: 1px solid rgba(30, 27, 24, 0.06);
  box-shadow: 0 10px 30px rgba(16, 14, 10, 0.08);
}

.dashboard-header .nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dashboard-main .section {
  margin-top: 40px;
}

.dashboard-main .section-header h2 {
  letter-spacing: 1px;
}

.panel {
  background: linear-gradient(160deg, #fffdf8, #fff6ee);
}

.studio-form input,
.studio-form select,
.studio-form textarea,
.inventory-toolbar input,
.inventory-toolbar select {
  background: #fff;
  border: 1px solid rgba(30, 27, 24, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.studio-form input:focus,
.studio-form select:focus,
.studio-form textarea:focus,
.inventory-toolbar input:focus,
.inventory-toolbar select:focus {
  outline: 2px solid rgba(211, 79, 47, 0.3);
  border-color: rgba(211, 79, 47, 0.6);
}

.orders-head,
.inventory-head {
  border-radius: 14px;
  background: linear-gradient(120deg, #1e1b18, #3a2f2b);
}

.orders-row,
.inventory-row {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.orders-row:hover,
.inventory-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(20, 17, 13, 0.12);
}

.inventory-actions .ghost,
.orders-row .ghost {
  border-color: rgba(30, 27, 24, 0.2);
}

.inventory-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inventory-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d34f2f;
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e1b18;
}

.dash-card {
  border: 1px solid rgba(30, 27, 24, 0.1);
  background: linear-gradient(160deg, #fffdf8, #f6e7d4);
}

.dash-card p {
  color: #1e1b18;
}

.order-drawer {
  background: linear-gradient(160deg, #fffdf8, #f7e6d1);
}

.checkout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 40px 6vw 6vw;
}

.checkout-panel {
  background: #fff9f1;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.checkout-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.checkout-form input {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 24, 0.2);
  background: #fff;
}

.checkout-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30, 27, 24, 0.08);
}

.checkout-item img {
  width: 70px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(30, 27, 24, 0.1);
  padding-top: 12px;
}

.checkout-summary .total {
  font-size: 18px;
  font-weight: 700;
}

.address-book {
  display: grid;
  gap: 10px;
}

.address-card {
  text-align: left;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(30, 27, 24, 0.1);
}

.address-card span {
  display: block;
  font-size: 12px;
  color: rgba(30, 27, 24, 0.6);
}

.discount-tag {
  background: #1e1b18;
  color: #fffaf2;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.drawer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.drawer-field label {
  font-size: 12px;
  font-weight: 600;
}

.drawer-field input,
.drawer-field select {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 24, 0.2);
  background: #fff;
}

.product-code {
  font-size: 12px;
  color: rgba(30, 27, 24, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: end;
}

.theme-picker label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.theme-picker input[type="color"] {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(30, 27, 24, 0.2);
  border-radius: 12px;
  background: #fff;
}

.panel textarea {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 24, 0.2);
  background: #fff;
}

.panel .full {
  grid-column: 1 / -1;
}

.panel textarea {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 24, 0.2);
  background: #fff;
}

.admin-dashboard .panel label.full {
  display: block;
  margin-top: 12px;
}

.panel-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

#dbBody input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(30, 27, 24, 0.2);
}

#dbHeader {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: #1e1b18;
  color: #fffaf2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#dbBody .orders-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid rgba(30, 27, 24, 0.08);
}

#sqlInput {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 24, 0.2);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

#sqlOutput {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 24, 0.1);
  max-height: 260px;
  overflow: auto;
}

.site-footer {
  padding: 24px 6vw 40px;
  text-align: center;
  color: rgba(30, 27, 24, 0.7);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.footer-brand,
.footer-contact {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(30, 27, 24, 0.08);
  padding: 16px;
  border-radius: 16px;
}

.footer-contact h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(30, 27, 24, 0.8);
  letter-spacing: 1px;
}

.footer-contact p,
.footer-brand p {
  margin: 6px 0;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.2px;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer Social Media */
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 27, 24, 0.05);
  color: rgba(30, 27, 24, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: rgba(30, 27, 24, 0.1);
  color: rgba(30, 27, 24, 0.9);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
}

.whatsapp-text {
  position: absolute;
  right: 70px;
  background: #fff;
  color: #25D366;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover .whatsapp-text {
  opacity: 1;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
  
  .whatsapp-float svg {
    width: 32px;
    height: 32px;
  }
  
  .whatsapp-text {
    display: none;
  }
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

.whatsapp-float {
  animation: whatsapp-pulse 2s infinite;
}
