
/* ============================================================
   SHOPELITE - Dynamic CSS Variables
   Generated from database settings
   ============================================================ */

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e6530d;
  --btn-bg: #e6530d;
  --btn-text: #ffffff;
  --footer-bg: #0f0f1a;
  --primary-rgb: 26,26,46;
  --accent-rgb: 230,83,13;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-py: 80px;
  --card-radius: 12px;
  --btn-radius: 6px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --shadow-accent: 0 4px 20px rgba(var(--accent-rgb), 0.3);
}

/* ============================================================
   GLOBAL RESETS & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-shop-primary {
  background: var(--btn-bg) !important;
  color: var(--btn-text) !important;
  border-color: var(--btn-bg) !important;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .3px;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn-primary:hover, .btn-shop-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.btn-outline-primary {
  color: var(--btn-bg) !important;
  border-color: var(--btn-bg) !important;
  border-radius: var(--btn-radius);
  font-weight: 600;
  transition: all .2s;
}
.btn-outline-primary:hover {
  background: var(--btn-bg) !important;
  color: var(--btn-text) !important;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-main {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--shadow-sm);
}
.navbar-main .navbar-brand img {
  height: 48px;
  object-fit: contain;
}
.navbar-main .nav-link {
  font-weight: 600;
  font-size: .93rem;
  color: #333 !important;
  padding: 1.25rem 1rem !important;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
}
.navbar-main .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  padding: .5rem 0;
  min-width: 200px;
  margin-top: 0;
}
.navbar-main .dropdown-item {
  font-size: .9rem;
  padding: .6rem 1.25rem;
  color: #444;
  transition: all .15s;
}
.navbar-main .dropdown-item:hover {
  background: rgba(var(--accent-rgb), .08);
  color: var(--accent);
  padding-left: 1.5rem;
}

/* Search bar */
.navbar-search {
  position: relative;
  max-width: 320px;
  width: 100%;
}
.navbar-search input {
  border-radius: 50px;
  border: 1.5px solid #e0e0e0;
  padding: .5rem 1rem .5rem 2.5rem;
  font-size: .9rem;
  transition: border-color .2s;
  width: 100%;
}
.navbar-search input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15);
}
.navbar-search .search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}
.search-dropdown {
  position: absolute;
  top: 110%;
  left: 0; right: 0;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
  max-height: 360px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}
.search-dropdown.active { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  padding: .75rem 1rem;
  gap: .75rem;
  border-bottom: 1px solid #f5f5f5;
  transition: background .15s;
}
.search-result-item:hover { background: #fafafa; }
.search-result-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }

/* Cart icon */
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  padding: .5rem;
  color: #333;
  font-size: 1.25rem;
  transition: color .2s;
}
.cart-icon:hover { color: var(--accent); }
.cart-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-family: var(--font-heading);
}
.hero-content p { font-size: 1.125rem; opacity: .9; }

.hero-slider .carousel-indicators button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: 2px solid rgba(255,255,255,.5);
}
.hero-slider .carousel-indicators .active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  border: none;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  background: #fff;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.product-card-image {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f8f8f8;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-card-image img {
  transform: scale(1.06);
}
.product-card-badges {
  position: absolute;
  top: .75rem; left: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.badge-sale { background: var(--accent); color: #fff; }
.badge-new { background: #22c55e; color: #fff; }
.badge-out { background: #64748b; color: #fff; }

.product-card-body { padding: 1rem; }
.product-card-title {
  font-size: .95rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: .35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}
.product-price-old {
  font-size: .85rem;
  color: #aaa;
  text-decoration: line-through;
  margin-left: .4rem;
}
.btn-add-cart {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  width: 100%;
  padding: .6rem;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  margin-top: .75rem;
}
.btn-add-cart:hover { opacity: .88; transform: translateY(-1px); }

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--accent);
  margin: .75rem auto 0;
  border-radius: 2px;
}

/* Category Cards */
.category-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.category-card:hover img { transform: scale(1.08); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.category-card-label {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

/* Promo Banners */
.promo-banner {
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/7;
  display: block;
}
.promo-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.promo-banner:hover img { transform: scale(1.04); }
.promo-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(to right, rgba(0,0,0,.6), transparent);
  color: #fff;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
  height: 100%;
}
.testimonial-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.star-rating { color: #f59e0b; font-size: .875rem; }

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: var(--section-py) 0;
}
.newsletter-section h2 { color: #fff; }
.newsletter-input-group {
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-input-group input {
  border: none;
  border-radius: 50px 0 0 50px;
  padding: .875rem 1.5rem;
  font-size: .95rem;
  flex: 1;
}
.newsletter-input-group button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 50px 50px 0;
  padding: .875rem 1.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.newsletter-input-group button:hover { opacity: .88; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-logo { height: 44px; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-heading {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-link {
  display: block;
  color: rgba(255,255,255,.65);
  padding: .25rem 0;
  font-size: .9rem;
  transition: color .2s, padding-left .2s;
}
.footer-link:hover { color: var(--accent); padding-left: .35rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  transition: all .2s;
  margin-right: .4rem;
}
.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  margin-top: 3rem;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   SIDEBAR FILTERS
   ============================================================ */
.filter-sidebar {
  position: sticky;
  top: 90px;
}
.filter-card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.filter-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #f0f0f0;
}
.filter-check { cursor: pointer; }
.filter-check input { accent-color: var(--accent); }

/* Price Slider */
.price-range-slider { accent-color: var(--accent); width: 100%; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-gallery-main {
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #f8f8f8;
  cursor: zoom-in;
}
.product-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-gallery-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.thumb-item {
  width: 72px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.thumb-item.active { border-color: var(--accent); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.size-selector { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.size-btn {
  padding: .4rem .9rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: .875rem;
  transition: all .2s;
}
.size-btn:hover { border-color: var(--accent); color: var(--accent); }
.size-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.size-btn.out-of-stock {
  opacity: .45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.quantity-input {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  background: none;
  border: none;
  padding: .6rem 1rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: #555;
  transition: background .15s;
}
.qty-btn:hover { background: #f5f5f5; }
.qty-input {
  border: none;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  padding: .6rem;
  text-align: center;
  width: 56px;
  font-weight: 600;
}

/* Tabs */
.product-tabs .nav-link {
  color: #666;
  font-weight: 600;
  border: none;
  padding: .875rem 1.25rem;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}
.product-tabs .nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: none;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   CART & CHECKOUT
   ============================================================ */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
  margin-bottom: .75rem;
}
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-name { font-weight: 600; font-size: .95rem; color: #1a1a1a; }
.cart-item-meta { font-size: .82rem; color: #888; margin-top: .2rem; }
.cart-item-price { font-weight: 700; color: var(--accent); }
.cart-remove { color: #ccc; cursor: pointer; font-size: .85rem; transition: color .2s; }
.cart-remove:hover { color: #ef4444; }

.order-summary {
  background: #f9f9f9;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .95rem; }
.summary-row.total { border-top: 2px solid #e5e5e5; margin-top: .5rem; padding-top: 1rem; font-size: 1.15rem; font-weight: 700; color: var(--primary); }

/* Coupon */
.coupon-input { display: flex; gap: .5rem; }
.coupon-input input { flex: 1; border: 1.5px solid #ddd; border-radius: 6px; padding: .65rem 1rem; }
.coupon-input input:focus { border-color: var(--accent); outline: none; }

/* ============================================================
   ADMIN PANEL BASE
   ============================================================ */
.admin-wrapper { min-height: 100vh; background: #f4f6fb; display: flex; }
.admin-sidebar {
  width: 260px;
  background: var(--primary);
  flex-shrink: 0;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform .3s;
}
.admin-sidebar-logo {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.admin-sidebar-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}
.admin-sidebar-logo .logo-sub { font-size: .7rem; color: rgba(255,255,255,.5); letter-spacing: 1px; }

.admin-nav { padding: 1rem 0; }
.admin-nav-section {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 1.25rem 1.25rem .5rem;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: all .15s;
  cursor: pointer;
}
.admin-nav-link i { width: 18px; text-align: center; font-size: .95rem; }
.admin-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-link.active { background: rgba(255,255,255,.12); color: #fff; border-left: 3px solid var(--accent); }
.admin-nav-link .badge { margin-left: auto; font-size: .7rem; }

.admin-content {
  margin-left: 260px;
  flex: 1;
  min-width: 0;
}
.admin-header {
  background: #fff;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e8ecf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.admin-page { padding: 1.5rem; }
.admin-page-header { margin-bottom: 1.5rem; }
.admin-page-title { font-size: 1.5rem; color: var(--primary); margin-bottom: .25rem; }

/* Admin Cards */
.stat-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f3f8;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: .8rem; color: #888; margin-top: .2rem; }

/* Admin Tables */
.admin-table { background: #fff; border-radius: var(--card-radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.admin-table table { margin: 0; }
.admin-table .table thead th { background: #f8fafc; font-size: .8rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #666; border-bottom: 1px solid #eef0f5; }
.admin-table .table tbody td { vertical-align: middle; padding: .875rem 1rem; font-size: .9rem; }

/* Admin Forms */
.admin-form-card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.admin-form-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #f0f0f0;
}
.image-upload-area {
  border: 2px dashed #d8dde8;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
  background: #fafbfd;
}
.image-upload-area:hover { border-color: var(--accent); }
.image-preview img { max-width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
.rec-size { font-size: .75rem; color: #aaa; margin-top: .35rem; }

/* Color Picker */
.color-picker-group { display: flex; align-items: center; gap: .75rem; }
.color-picker-group input[type=color] { width: 44px; height: 36px; padding: 2px; border-radius: 6px; border: 1.5px solid #ddd; cursor: pointer; }
.color-picker-group input[type=text] { flex: 1; }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .3px;
}
.status-active, .status-paid, .status-delivered, .status-published { background: #dcfce7; color: #166534; }
.status-draft, .status-pending { background: #fef9c3; color: #854d0e; }
.status-archived, .status-cancelled, .status-failed { background: #fee2e2; color: #991b1b; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #ede9fe; color: #6b21a8; }
.status-inactive { background: #f1f5f9; color: #64748b; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: none; }
  .admin-content { margin-left: 0; }
  .hero-slide { min-height: 380px; }
}

@media (max-width: 767px) {
  :root { --section-py: 50px; }
  .hero-slide { min-height: 280px; }
  .hero-content h1 { font-size: 1.75rem; }
  .section-title { font-size: 1.5rem; }
  .cart-item { flex-wrap: wrap; }
  .navbar-search { display: none; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.bg-accent { background: var(--accent) !important; }
.border-accent { border-color: var(--accent) !important; }
.section-pad { padding: var(--section-py) 0; }
.rounded-custom { border-radius: var(--card-radius) !important; }
.shadow-custom { box-shadow: var(--shadow-md) !important; }

/* Alert styling */
.alert { border-radius: 10px; border: none; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef9c3; color: #854d0e; }
.alert-info { background: #dbeafe; color: #1e40af; }

/* Loading Spinner */
.spinner-custom {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; }
.toast-custom {
  background: #1a1a2e;
  color: #fff;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: .5rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 280px;
  max-width: 380px;
}
.toast-custom.success { background: #166534; }
.toast-custom.error { background: #991b1b; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Sticky sort/filter bar */
.shop-toolbar {
  background: #fff;
  border-radius: var(--card-radius);
  padding: .875rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid #f0f0f0;
  flex-wrap: wrap;
}

/* Rating Stars Editable */
.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating-input input { display: none; }
.star-rating-input label { cursor: pointer; font-size: 1.5rem; color: #ddd; transition: color .1s; }
.star-rating-input label:hover, .star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label { color: #f59e0b; }

/* Account pages */
.account-card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}
.account-nav .nav-link {
  color: #555;
  padding: .7rem 1rem;
  border-radius: 8px;
  transition: all .15s;
}
.account-nav .nav-link.active { background: rgba(var(--accent-rgb), .1); color: var(--accent); font-weight: 600; }
.account-nav .nav-link:hover { background: #f8f8f8; }

/* Blog */
.blog-card {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.25rem; }
.blog-category-tag {
  display: inline-block;
  background: rgba(var(--accent-rgb), .1);
  color: var(--accent);
  padding: .2rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
