/* =====================================================
   Nora Gems – Main Stylesheet
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #c9a96e; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ---- CSS Variables ---- */
:root {
  --gold: #c9a96e;
  --gold-dark: #a0813f;
  --dark: #1a1a1a;
  --gray: #555;
  --light-gray: #f5f5f0;
  --border: #e0dbd3;
  --red: #c0392b;
  --green: #27ae60;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --radius: 6px;
  --transition: .2s ease;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.25;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

/* ---- Layout ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-top {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  text-align: center;
  font-size: 12px;
  padding: 7px 20px;
  letter-spacing: .03em;
}
.header-top a { color: rgba(255,255,255,.75); text-decoration: underline; }
.header-main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.logo {
  flex-shrink: 0;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--dark);
}
.logo span { color: var(--gold); }
.search-form {
  flex: 1;
  display: flex;
  max-width: 480px;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
}
.search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 16px;
  font-size: 14px;
  background: var(--light-gray);
}
.search-form button {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 9px 18px;
  cursor: pointer;
  transition: background var(--transition);
}
.search-form button:hover { background: var(--gold); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.header-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--gray);
  transition: color var(--transition);
}
.header-actions a:hover { color: var(--gold); }
.header-actions .icon { font-size: 20px; line-height: 1; }
/* ---- Account dropdown ---- */
.acct-menu {
  position: relative;
}
.acct-menu-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--gray);
  transition: color var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.acct-menu-trigger:hover,
.acct-menu.open .acct-menu-trigger { color: var(--gold); }
.acct-menu-trigger .icon { font-size: 20px; line-height: 1; }
.acct-menu-trigger--active { color: var(--gold); }
.acct-menu-trigger--active:hover { opacity: .85; }
.acct-icon--active { position: relative; display: inline-block; }
.acct-online-dot {
  position: absolute;
  bottom: 1px;
  right: -2px;
  width: 7px;
  height: 7px;
  background: #2ecc71;
  border-radius: 50%;
  border: 1px solid var(--white);
}
.acct-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  z-index: 200;
  overflow: hidden;
}
.acct-menu.open .acct-dropdown { display: block; }
.acct-dropdown a,
.acct-dropdown button {
  display: block;
  width: 100%;
  padding: 11px 16px;
  font-size: 13px;
  color: var(--dark);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  box-sizing: border-box;
}
.acct-dropdown a:hover,
.acct-dropdown button:hover { background: var(--light-gray); color: var(--gold); }
.acct-dropdown .dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.acct-dropdown .dropdown-signout { color: var(--gray); }

.cart-badge {
  position: relative;
  display: inline-block;
}
.cart-badge .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---- Navigation ---- */
.site-nav {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.nav-list > li {
  position: relative;
}
.nav-list > li > a {
  display: block;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color var(--transition);
}
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--gold); }
.nav-list > li > a.active { border-bottom: 2px solid var(--gold); }

/* ---- Hero Banner ---- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
  display: none;
  height: 480px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
}
.hero-slide.active { display: flex; }
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
}
.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  opacity: .9;
}
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}
.hero-dot.active { background: var(--white); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-dark); color: var(--white); }
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: #333; color: var(--white); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--dark);
  color: var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-outline-gold {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }
.btn-lg { padding: 14px 36px; font-size: 15px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; }

/* ---- Section Titles ---- */
.section-title {
  text-align: center;
  margin-bottom: 36px;
}
.section-title h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.section-title p { color: var(--gray); }
.section-title .underline {
  display: inline-block;
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin-top: 10px;
}

/* ---- Category Grid ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  padding: 40px 0;
}
.category-card {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.category-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.category-card .cat-icon { font-size: 2.2rem; margin-bottom: 10px; }
.category-card .cat-name { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ---- Product Grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  background: var(--white);
  border: 1px solid var(--border);
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.product-card-img {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f8f8f8;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-oos {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-card-info {
  padding: 14px 16px;
}
.product-card-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  text-transform: capitalize;
}
.product-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}
.product-card-price .orig { color: var(--gray); text-decoration: line-through; font-size: 12px; font-weight: 400; margin-left: 5px; }
.product-card-sku { font-size: 11px; color: #aaa; margin-top: 2px; }
.product-card-footer {
  padding: 10px 16px 14px;
}
.add-to-cart-btn {
  width: 100%;
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
  font-weight: 500;
}
.add-to-cart-btn:hover { background: var(--gold); }
.add-to-cart-btn:disabled { background: #ccc; cursor: not-allowed; }

/* ---- Shop Layout ---- */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
}
.shop-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 120px;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-subcats { border-bottom: 2px solid var(--gold); padding-bottom: 16px; }
.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.sidebar-cats a {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  color: var(--dark);
  border-bottom: 1px solid #f0ece6;
  transition: color var(--transition);
}
.sidebar-cats a:hover,
.sidebar-cats a.active { color: var(--gold); font-weight: 600; }
.shop-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.shop-count { color: var(--gray); font-size: 14px; }
.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--white);
  cursor: pointer;
}

/* ---- Product Detail ---- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0;
  align-items: start;
}
.product-gallery { position: sticky; top: 100px; }
.gallery-main {
  aspect-ratio: 3/4;
  max-width: 500px;
  background: #f8f8f8;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto 12px;
  border: 1px solid var(--border);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.gallery-thumb:hover,
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; background: #f8f8f8; }
.product-info .breadcrumb {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 16px;
}
.product-info .breadcrumb a:hover { color: var(--gold); }
.product-info h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.product-info .sku { font-size: 12px; color: #aaa; margin-bottom: 16px; }
.product-info .price-wrap {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.product-info .price-wrap .sale { color: var(--red); }
.product-info .price-wrap .original { font-size: 1rem; color: var(--gray); text-decoration: line-through; margin-left: 10px; }
.product-add-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-control button {
  width: 38px;
  height: 44px;
  background: var(--light-gray);
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition);
}
.qty-control button:hover:not(:disabled) { background: var(--border); }
.qty-control button:disabled { background: #ebebeb; color: #bbb; cursor: not-allowed; }
.qty-control input {
  width: 52px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
  outline: none;
}
.low-stock {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-top: 8px;
}
.product-info .oos-notice {
  background: #fef9f0;
  border: 1px solid #f0d8a0;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: #8a6d00;
  margin-bottom: 16px;
}
.product-meta-tabs { margin-top: 32px; }
.meta-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
}
.meta-tab-btn {
  padding: 10px 20px;
  font-size: 14px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--gray);
  transition: all var(--transition);
}
.meta-tab-btn.active {
  color: var(--dark);
  border-bottom-color: var(--gold);
  font-weight: 600;
}
.meta-tab-content { padding: 20px 0; font-size: 14px; line-height: 1.8; display: none; }
.meta-tab-content.active { display: block; }
.product-desc-list {
  list-style: disc;
  padding-left: 1.2em;
  line-height: 1.8;
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}
.product-desc-list li.desc-first { font-weight: 700; }

/* ---- Cart ---- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding: 40px 0;
  align-items: start;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 2px solid var(--border);
}
.cart-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-item-img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.cart-item-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.cart-item-sku { font-size: 11px; color: #aaa; }
.cart-qty-input {
  width: 64px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px;
  font-size: 14px;
}
.cart-remove { color: var(--gray); font-size: 18px; cursor: pointer; border: none; background: none; }
.cart-remove:hover { color: var(--red); }
.order-summary {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}
.order-summary h3 { font-size: 1rem; margin-bottom: 16px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-row.total {
  font-weight: 700;
  font-size: 16px;
  border-bottom: none;
  margin-top: 4px;
}
.free-ship-msg { font-size: 12px; color: var(--green); margin: 8px 0; }
.free-ship-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 6px 0 12px;
}
.free-ship-progress-bar {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width .3s;
}

/* ---- Checkout ---- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding: 40px 0;
  align-items: start;
}
.checkout-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.checkout-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-control:focus { border-color: var(--gold); }
.form-control.error { border-color: var(--red); }
select.form-control { cursor: pointer; }
.payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.payment-tab {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  background: var(--white);
}
.payment-tab.active { border-color: var(--gold); background: #fdf9f2; }
.payment-panel { display: none; }
.payment-panel.active { display: block; }
.authnet-fields .card-row { display: grid; grid-template-columns: 1fr 100px 80px; gap: 12px; }
.checkout-billing-note {
  font-size: 12px;
  color: var(--gray);
  background: #f9f7f3;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  margin-top: 12px;
}
.checkout-order-summary {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.checkout-items { margin-bottom: 16px; }
.checkout-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.checkout-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.checkout-item-name { flex: 1; font-weight: 500; line-height: 1.3; }
.checkout-item-qty { color: var(--gray); font-size: 12px; }
.checkout-item-price { font-weight: 600; flex-shrink: 0; }

/* ---- Forms (account) ---- */
.auth-box {
  max-width: 440px;
  margin: 60px auto;
  padding: 0 20px;
}
.auth-box h1 { text-align: center; margin-bottom: 8px; }
.auth-box .subtitle { text-align: center; color: var(--gray); margin-bottom: 32px; font-size: 14px; }
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.auth-links { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray); }
.auth-links a { color: var(--gold); }

/* ---- Password toggle ---- */
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 42px; }
.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--gray);
  display: flex;
  align-items: center;
  line-height: 1;
}
.pw-toggle:hover { color: var(--dark); }
.pw-toggle svg { width: 18px; height: 18px; }

/* ---- Delete account link ---- */
.delete-account-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--red);
  opacity: .7;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
}
.delete-account-link:hover { opacity: 1; }

/* ---- Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

/* ---- Alerts ---- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success { background: #e8f8ef; border: 1px solid #b0dfbe; color: #1a6832; }
.alert-error   { background: #fdecea; border: 1px solid #f5b9b5; color: #8c1e1a; }
.alert-info    { background: #e8f0fb; border: 1px solid #b3cef5; color: #1a3f8a; }

/* ---- Breadcrumb ---- */
.breadcrumb-nav {
  padding: 12px 0;
  font-size: 13px;
  color: var(--gray);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb-nav a:hover { color: var(--gold); }
.breadcrumb-nav span { color: #ccc; }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--dark);
  transition: all var(--transition);
}
.page-link:hover,
.page-link.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.page-link.disabled { opacity: .4; pointer-events: none; }

/* ---- Account ---- */
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 40px 0;
  align-items: start;
}
.account-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.account-sidebar a {
  display: block;
  padding: 13px 20px;
  font-size: 14px;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.account-sidebar a:hover,
.account-sidebar a.active {
  background: var(--light-gray);
  color: var(--gold);
  padding-left: 26px;
}
.account-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.account-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray);
  border-bottom: 2px solid var(--border);
}
.order-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.order-table tr:last-child td { border-bottom: none; }
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.status-PENDING    { background: #fff3cd; color: #7d5a00; }
.status-PROCESSING { background: #cce5ff; color: #004085; }
.status-SHIPPED    { background: #d4edda; color: #155724; }
.status-DELIVERED  { background: #d4edda; color: #155724; }
.status-CANCELLED  { background: #f8d7da; color: #721c24; }
.status-APPROVED   { background: #d4edda; color: #155724; }
.status-REJECTED   { background: #f8d7da; color: #721c24; }
.status-COMPLETED  { background: #d4edda; color: #155724; }

/* ---- Promo Bar ---- */
.promo-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  background: var(--light-gray);
  padding: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.promo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.promo-item .icon { font-size: 1.4rem; color: var(--gold); }

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ---- Sections ---- */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--light-gray); }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { margin-bottom: 8px; color: var(--dark); }
.empty-state p { margin-bottom: 20px; font-size: 14px; }

/* ---- Toast ---- */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  animation: slideIn .2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- Page Header ---- */
.page-hero {
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--gray); font-size: 15px; }

/* ---- Order Confirm ---- */
.order-confirm-box {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}
.confirm-icon { font-size: 4rem; margin-bottom: 20px; }
.confirm-details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 28px 0;
  text-align: left;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  .hero-slide { height: 320px; }
  .hero-content h1 { font-size: 1.8rem; }
  .header-main { padding: 10px 16px; gap: 12px; }
  .search-form { display: none; }
  .gallery-main { max-width: 100%; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .promo-bar { flex-direction: column; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .payment-tabs { grid-template-columns: 1fr; }
  .authnet-fields .card-row { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-list { overflow-x: auto; padding-bottom: 2px; }
  .nav-list > li > a { padding: 12px 12px; font-size: 12px; white-space: nowrap; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 14px; }
}
