/* ============================================================
   Joias Premium E-Commerce — CSS Completo
   Design: Luxo Claro/Gold (estilo Cartier)
   Fontes: Cormorant Garamond · Cinzel · Jost
   ============================================================ */

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #B8963E;
  --gold-light:  #D4AF5A;
  --gold-dark:   #8A6E2A;
  --gold-dim:    rgba(184,150,62,.5);
  --cream:       #FDFAF4;
  --cream2:      #F7F2E8;
  --cream3:      #EFE8D8;
  --white:       #FFFFFF;
  --text:        #1C1208;
  --text-2:      #3D2E10;
  --text-muted:  #8A7A60;
  --border:      rgba(184,150,62,.18);
  --border-light:#EDE8DE;
  --shadow-sm:   0 2px 12px rgba(60,40,10,.07);
  --shadow:      0 6px 32px rgba(60,40,10,.11);
  --shadow-lg:   0 16px 64px rgba(60,40,10,.15);
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   16px;
  --transition:  .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- Layout ----------------------------------------------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-bg { background: var(--cream); }
.section-bg2 { background: var(--cream2); }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-label {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  letter-spacing: .25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
}

.section-title span { color: var(--gold); font-style: italic; }

.section-subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin: .8rem auto 0;
  font-weight: 300;
  font-size: .95rem;
}

.divider-gold {
  width: 60px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.2rem auto;
}

/* ---- Grid ------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

/* ---- Botões ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 18px rgba(184,150,62,.3);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184,150,62,.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--text);
  color: #fff;
  border: none;
}
.btn-dark:hover { background: var(--text-2); transform: translateY(-1px); }

.btn-white {
  background: #fff;
  color: var(--gold);
  border: 1.5px solid #fff;
}
.btn-white:hover { background: var(--cream); }

.btn-sm  { padding: .5rem 1.2rem; font-size: .68rem; }
.btn-lg  { padding: 1rem 2.5rem; font-size: .82rem; }
.btn-full{ width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ---- Header ----------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.logo-diamond {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  transform: rotate(45deg);
  flex-shrink: 0;
}
.logo-text { font-family: 'Cinzel', serif; font-size: 1rem; letter-spacing: .14em; color: var(--text); line-height: 1.1; }
.logo-text small { display: block; font-size: .55rem; color: var(--gold); letter-spacing: .28em; }

.main-nav { display: flex; align-items: center; gap: .1rem; }
.main-nav a {
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: .5rem .9rem;
  border-radius: 4px;
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }

.header-icon {
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  color: var(--text-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}
.header-icon:hover { background: var(--cream); color: var(--gold); }

.cart-badge {
  position: absolute; top: 4px; right: 4px;
  width: 17px; height: 17px;
  background: var(--gold);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.btn-header-account {
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--text);
  border: 1px solid var(--border-light);
  background: #fff;
  padding: .45rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-header-account:hover { border-color: var(--gold); color: var(--gold); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .4rem;
  cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all .3s; border-radius: 2px; }

/* Mobile drawer */
.mob-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.35); z-index: 1100;
}
.mob-overlay.open { display: block; }

.mob-drawer {
  position: fixed; top: 0; right: -280px;
  width: 280px; height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  transition: right .3s ease;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.mob-drawer.open { right: 0; }

.mob-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.mob-close { background: none; border: none; font-size: 1.4rem; color: var(--text-muted); cursor: pointer; }

.mob-nav { padding: 1.2rem 0; flex: 1; }
.mob-nav a {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--text);
  padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition);
  text-transform: uppercase;
}
.mob-nav a:hover { color: var(--gold); }

/* ---- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 68px;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--cream2) 0%, var(--cream) 60%, #fff 100%);
  z-index: 0;
}

.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--gold-dim) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .12;
  z-index: 0;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 600px;
  padding: 5rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Cinzel', serif;
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: .4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero h1 em { color: var(--gold); font-style: italic; }

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 440px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero-image {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  z-index: 1;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 40%);
  z-index: 1;
}

/* Hero slider */
.hero-slider { position: relative; min-height: 90vh; margin-top: 68px; overflow: hidden; }
.hs-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hs-slide.active { opacity: 1; z-index: 1; }
.hs-slide img { width: 100%; height: 100%; object-fit: cover; }
.hs-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(253,250,244,.92) 0%, rgba(253,250,244,.7) 45%, rgba(253,250,244,.2) 100%);
}
.hs-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
}
.hs-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.hs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-dim); border: 1.5px solid var(--gold); cursor: pointer; padding: 0; transition: all .3s; }
.hs-dot.on { background: var(--gold); width: 24px; border-radius: 4px; }
.hs-arr {
  position: absolute; top: 50%; z-index: 10; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: 1px solid var(--border-light);
  color: var(--gold); font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.hs-arr:hover { background: #fff; box-shadow: var(--shadow); }
.hs-arr-l { left: 20px; }
.hs-arr-r { right: 20px; }
.hs-prog-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(184,150,62,.15); z-index: 10; }
.hs-prog { height: 100%; background: var(--gold); width: 0; }

/* ---- Produto Card ----------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--gold-dim); }

.product-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--cream);
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dim); font-size: 3rem;
  background: var(--cream2);
}

.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 5px; }
.badge {
  font-family: 'Cinzel', serif;
  font-size: .58rem;
  letter-spacing: .08em;
  font-weight: 600;
  padding: .28rem .7rem;
  border-radius: 50px;
  text-transform: uppercase;
  line-height: 1;
}
.badge-promo  { background: var(--gold); color: #fff; }
.badge-novo   { background: var(--text); color: #fff; }
.badge-encom  { background: #6B4EFF; color: #fff; }
.badge-esgot  { background: #999; color: #fff; }

.product-actions-hover {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  display: flex; gap: .5rem;
  opacity: 0; transform: translateY(8px);
  transition: all .25s;
}
.product-card:hover .product-actions-hover { opacity: 1; transform: translateY(0); }

.product-info { padding: 1.1rem 1.2rem 1.3rem; }
.product-cat { font-family: 'Cinzel', serif; font-size: .6rem; letter-spacing: .15em; color: var(--gold); text-transform: uppercase; }
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text);
  margin: .35rem 0 .6rem;
  line-height: 1.3;
}
.product-name:hover { color: var(--gold); }
.product-price { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; flex-wrap: wrap; }
.price-current { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--gold); }
.price-original { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.product-add-btn {
  width: 100%;
  padding: .65rem 1rem;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
  display: block;
}
.product-add-btn:hover { background: var(--gold); color: #fff; }
.product-add-btn:disabled { opacity: .4; cursor: not-allowed; background: #bbb; }

/* ---- Category Grid ---------------------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: block;
  background: var(--cream2);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.category-card:hover img { transform: scale(1.04); }

.cat-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}

.category-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,18,8,.7) 0%, transparent 50%);
}

.category-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.1rem;
  z-index: 2;
}
.category-info h3 {
  font-family: 'Cinzel', serif;
  font-size: .8rem;
  letter-spacing: .12em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: .2rem;
}
.category-info span { font-size: .72rem; color: rgba(255,255,255,.65); }

/* ---- Forms ------------------------------------------------- */
.form-group { margin-bottom: 1.2rem; }

.form-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--text-2);
  margin-bottom: .45rem;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,62,.1); }
.form-control::placeholder { color: var(--text-muted); }

select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8963E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-check { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }

.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }

.input-group { position: relative; }
.input-group .form-control { padding-right: 3rem; }
.input-group-icon {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: .9rem; cursor: pointer;
}

/* ---- Alerts & Toasts -------------------------------------- */
.alert {
  padding: .9rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 1rem;
  display: flex; align-items: flex-start; gap: .6rem;
  border-left: 3px solid;
}
.alert-success { background: #F0FBF0; border-color: #4CAF50; color: #2E7D32; }
.alert-error   { background: #FFF0F0; border-color: #E53935; color: #C62828; }
.alert-info    { background: #FFF8EC; border-color: var(--gold); color: var(--gold-dark); }
.alert-warn    { background: #FFF3E0; border-color: #FF9800; color: #E65100; }

.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .6rem; }
.toast {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: .9rem 1.4rem;
  font-size: .87rem;
  color: var(--text);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .7rem;
  max-width: 340px;
  animation: toastIn .3s ease;
  border-left: 3px solid var(--gold);
}
.toast.error { border-left-color: #E53935; }
.toast.success { border-left-color: #4CAF50; }
@keyframes toastIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

/* ---- Modal ------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(.96);
  transition: transform .25s;
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: none; border: none; font-size: 1.4rem;
  color: var(--text-muted); cursor: pointer;
}
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; color: var(--text); margin-bottom: 1.5rem; }

/* ---- Breadcrumb ------------------------------------------- */
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--gold-dim); }
.breadcrumb-current { color: var(--text); }

/* ---- Tabs -------------------------------------------------- */
.tabs { display: flex; gap: 0; border-bottom: 1.5px solid var(--border-light); margin-bottom: 2rem; }
.tab-btn {
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text-muted);
  background: none; border: none;
  padding: .9rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  text-transform: uppercase;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---- Table ------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-light); }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--cream);
  font-family: 'Cinzel', serif;
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--text-2);
  text-transform: uppercase;
  padding: .9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
tbody td { padding: .9rem 1rem; font-size: .88rem; color: var(--text); border-bottom: 1px solid var(--border-light); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--cream); }

/* ---- Status Badges ---------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: .08em;
  font-weight: 600;
  padding: .28rem .8rem;
  border-radius: 50px;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-aguardando  { background:#FFF8E1; color:#F59E0B; border:1px solid rgba(245,158,11,.3); }
.status-pago        { background:#E8F5E9; color:#16A34A; border:1px solid rgba(22,163,74,.3); }
.status-separacao   { background:#FFF3E0; color:#EA580C; border:1px solid rgba(234,88,12,.3); }
.status-enviado     { background:#EDE9FE; color:#7C3AED; border:1px solid rgba(124,58,237,.3); }
.status-entregue    { background:#DCFCE7; color:#15803D; border:1px solid rgba(21,128,61,.3); }
.status-cancelado   { background:#FEE2E2; color:#DC2626; border:1px solid rgba(220,38,38,.3); }

/* ---- Pagination ------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.page-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border-light);
  background: #fff; color: var(--text);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.page-btn.disabled { opacity: .35; pointer-events: none; }

/* ---- Carrinho mini ---------------------------------------- */
.cart-drawer {
  position: fixed; top: 68px; right: -380px;
  width: 360px; height: calc(100vh - 68px);
  background: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: right .3s ease;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border-light);
}
.cart-drawer.open { right: 0; }
.cart-drawer-head { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.cart-drawer-head h3 { font-family: 'Cinzel', serif; font-size: .85rem; letter-spacing: .12em; color: var(--text); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.5rem; }
.cart-drawer-foot { padding: 1.2rem 1.5rem; border-top: 1px solid var(--border-light); }
.cart-item { display: flex; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border-light); }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; background: var(--cream); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: .85rem; color: var(--text); margin-bottom: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--gold); font-weight: 600; }

/* ---- Checkout / Página ------------------------------------- */
.page-wrap { margin-top: 68px; min-height: calc(100vh - 68px); }
.page-hero { background: var(--cream); padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--border-light); }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 600; color: var(--text); }
.page-hero p { color: var(--text-muted); margin-top: .4rem; }

.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; padding: 3rem 0 5rem; }
.checkout-box { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem; }
.checkout-box h3 { font-family: 'Cinzel', serif; font-size: .82rem; letter-spacing: .12em; color: var(--text); text-transform: uppercase; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }

.order-summary { position: sticky; top: 88px; }
.order-summary .checkout-box { margin-bottom: 0; }
.summary-item { display: flex; justify-content: space-between; font-size: .88rem; color: var(--text); padding: .5rem 0; border-bottom: 1px solid var(--border-light); }
.summary-item:last-child { border-bottom: none; }
.summary-total { display: flex; justify-content: space-between; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--text); padding-top: 1rem; margin-top: .5rem; border-top: 1.5px solid var(--border-light); }
.summary-total-val { color: var(--gold); }

/* Radio card (método pagamento / frete) */
.radio-card { display: none; }
.radio-label {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: .7rem;
}
.radio-card:checked + .radio-label { border-color: var(--gold); background: #FFFBF0; }
.radio-circle {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-light);
  flex-shrink: 0; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.radio-card:checked + .radio-label .radio-circle { border-color: var(--gold); background: var(--gold); }
.radio-card:checked + .radio-label .radio-circle::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* ---- Produto Página --------------------------------------- */
.product-page { margin-top: 68px; padding: 3rem 0 5rem; }
.product-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

.product-gallery .main-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--border-light); }
.product-thumbs { display: flex; gap: .7rem; margin-top: .7rem; flex-wrap: wrap; }
.product-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; background: var(--cream); transition: border-color var(--transition); }
.product-thumb.active, .product-thumb:hover { border-color: var(--gold); }

.product-detail-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 600; color: var(--text); line-height: 1.15; margin-bottom: .5rem; }
.product-detail-cat { font-family: 'Cinzel', serif; font-size: .65rem; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; margin-bottom: 1rem; }
.product-detail-price { margin: 1.2rem 0 1.5rem; }
.product-detail-price .price-main { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 600; color: var(--gold); }
.product-detail-price .price-old { font-size: .95rem; color: var(--text-muted); text-decoration: line-through; margin-left: .5rem; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); width: fit-content; margin-bottom: 1.5rem; overflow: hidden; }
.qty-btn { width: 40px; height: 40px; background: var(--cream); border: none; font-size: 1.1rem; color: var(--text); cursor: pointer; transition: background var(--transition); }
.qty-btn:hover { background: var(--cream2); }
.qty-val { width: 50px; height: 40px; text-align: center; border: none; border-left: 1px solid var(--border-light); border-right: 1px solid var(--border-light); font-size: .95rem; color: var(--text); background: #fff; }

/* ---- Minha Conta ------------------------------------------ */
.account-page { margin-top: 68px; min-height: calc(100vh - 68px); background: var(--cream); padding: 3rem 0 5rem; }
.account-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 480px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.account-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; color: var(--text); margin-bottom: 1.8rem; }

/* ---- Diferenciais ----------------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.5rem; }
.feature-item { text-align: center; padding: 2rem 1.5rem; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); transition: all var(--transition); }
.feature-item:hover { box-shadow: var(--shadow-sm); border-color: var(--gold-dim); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-title { font-family: 'Cinzel', serif; font-size: .72rem; letter-spacing: .12em; color: var(--text-2); text-transform: uppercase; margin-bottom: .5rem; }
.feature-desc { font-size: .84rem; color: var(--text-muted); line-height: 1.6; }

/* ---- CTA Section ------------------------------------------ */
.cta-section {
  background: var(--text);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5l3 8h8l-6 5 2 8-7-5-7 5 2-8-6-5h8z' fill='none' stroke='rgba(184,150,62,0.08)' stroke-width='1'/%3E%3C/svg%3E") repeat;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,5vw,3rem); color: #fff; font-weight: 600; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto 2rem; }

/* ---- Footer ----------------------------------------------- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.65);
  padding: 4rem 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: .85rem; line-height: 1.7; margin-top: 1rem; color: rgba(255,255,255,.5); max-width: 240px; }

.footer-title { font-family: 'Cinzel', serif; font-size: .68rem; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }

.footer-social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; text-decoration: none;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.2rem 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: rgba(255,255,255,.35);
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--gold); }

/* ---- Admin Layout ----------------------------------------- */
.admin-body { margin: 0; display: flex; min-height: 100vh; background: var(--cream); }

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 500;
  overflow-y: auto;
  transition: transform .3s;
}

.admin-sidebar-brand {
  display: flex; align-items: center; gap: .8rem;
  padding: 1.4rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.admin-sidebar-brand .logo-text { color: #fff; font-size: .85rem; }
.admin-sidebar-brand .logo-text small { color: var(--gold); }

.sidebar-nav { padding: .8rem 0; flex: 1; }
.sidebar-section { font-family: 'Cinzel', serif; font-size: .55rem; letter-spacing: .2em; color: rgba(255,255,255,.25); text-transform: uppercase; padding: 1.2rem 1.2rem .4rem; }

.sidebar-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1.2rem;
  color: rgba(255,255,255,.55);
  font-size: .83rem;
  text-decoration: none;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.sidebar-item .icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-item:hover { color: #fff; background: rgba(255,255,255,.04); }
.sidebar-item.active { color: var(--gold); border-left-color: var(--gold); background: rgba(184,150,62,.08); }

.badge-count {
  margin-left: auto;
  background: var(--gold);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 50px;
  min-width: 20px;
  text-align: center;
}

.admin-main { margin-left: 240px; flex: 1; min-height: 100vh; display: flex; flex-direction: column; }

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 0 1.5rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 200;
  flex-shrink: 0;
}
.admin-topbar h1 { font-family: 'Cinzel', serif; font-size: .9rem; letter-spacing: .12em; color: var(--text); text-transform: uppercase; }
.admin-topbar-actions { display: flex; align-items: center; gap: .7rem; }

.admin-content { padding: 2rem 1.5rem; flex: 1; }

/* KPI Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.kpi-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.4rem; transition: all var(--transition); }
.kpi-card:hover { box-shadow: var(--shadow-sm); }
.kpi-label { font-family: 'Cinzel', serif; font-size: .62rem; letter-spacing: .12em; color: var(--text-muted); text-transform: uppercase; margin-bottom: .7rem; }
.kpi-value { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 600; color: var(--text); line-height: 1; }
.kpi-sub { font-size: .75rem; color: var(--text-muted); margin-top: .4rem; }
.kpi-icon { font-size: 1.5rem; margin-bottom: .6rem; }

/* Admin cards */
.admin-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); margin-bottom: 1.5rem; overflow: hidden; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border-light); }
.admin-card-head h3 { font-family: 'Cinzel', serif; font-size: .78rem; letter-spacing: .12em; color: var(--text); text-transform: uppercase; }
.admin-card-body { padding: 1.5rem; }

/* Admin form */
.admin-form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: .8rem; }
.toggle { position: relative; width: 42px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border-light); border-radius: 50px; cursor: pointer; transition: .3s; }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .3s; }
.toggle input:checked + .toggle-slider { background: var(--gold); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-label { font-size: .85rem; color: var(--text-2); }

/* Image upload */
.upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--cream);
}
.upload-area:hover, .upload-area.drag { border-color: var(--gold); background: #FFFBF0; }
.upload-area p { font-size: .85rem; color: var(--text-muted); margin-top: .5rem; }
.upload-preview { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.upload-preview-item { position: relative; width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-light); }
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-item .remove { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; background: rgba(0,0,0,.5); color: #fff; border: none; border-radius: 50%; font-size: .7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Config tabs */
.config-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.config-tab-btn {
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  letter-spacing: .1em;
  padding: .5rem 1rem;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.config-tab-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.config-tab-btn:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

/* Sidebar mobile toggle */
.sidebar-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.4rem; color: var(--text);
  cursor: pointer; padding: .4rem;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .admin-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .product-page-grid { grid-template-columns: 1fr; gap: 2rem; }
  .main-nav, .header-actions .btn-header-account { display: none; }
  .hamburger { display: flex; }
  .hero-image { display: none; }
  .hero-content { max-width: 100%; }
}

@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: none; }
  .admin-main { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .categories-grid { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .admin-topbar h1 { font-size: .75rem; }
  .hs-arr { display: none; }
}

/* ---- Utilitários ------------------------------------------ */
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.fw-600 { font-weight: 600; }
.font-serif { font-family: 'Cormorant Garamond', serif; }
.font-cinzel { font-family: 'Cinzel', serif; }
.w-full { width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Seleção de texto */
::selection { background: var(--gold-dim); color: var(--text); }
