﻿:root {
  --brand-1: #ff7a00;
  --brand-2: #ffb26b;
  --brand-3: #22c55e;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body {
  background: radial-gradient(circle at 10% 10%, #ffffff 0%, #f4f6fb 40%, #eef2f7 100%);
  color: var(--ink);
  font-family: "Sora", sans-serif;
}

a { color: inherit; }

.container,
.container-fluid {
  position: relative;
}

/* Global cards */
.card,
.box,
.product-card,
.result-card,
.cart-card,
.flash-sale-card,
.cat-card {
  border-radius: 18px !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-soft);
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.box:hover,
.product-card:hover,
.result-card:hover,
.flash-sale-card:hover,
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn-primary,
.btn-success {
  border-radius: 999px;
  font-weight: 700;
  border: none;
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.25);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand-1), #ff8f2a);
}

.btn-primary:hover {
  background: linear-gradient(120deg, #ff8f2a, var(--brand-1));
}

.btn-success {
  background: linear-gradient(120deg, #16a34a, #22c55e);
}

.btn-outline-primary,
.btn-outline-dark {
  border-radius: 999px;
  font-weight: 700;
}

/* Section headings */
.section-head,
.d-flex > h1,
.category-hero h3 {
  letter-spacing: -0.02em;
}

.section-head {
  background: linear-gradient(120deg, rgba(255, 122, 0, 0.16), rgba(255, 178, 107, 0.2));
  border: 1px solid rgba(255, 122, 0, 0.2);
}

/* Product grid cards */
.product-card img,
.result-card img {
  border-bottom: 1px solid var(--border);
}

.detail-box {
  font-family: "Sora", sans-serif;
}

/* Category hero */
.category-hero {
  background: linear-gradient(120deg, #0f172a, #1e293b);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}

/* Search + filters */
.search-head,
.filter-card {
  border-radius: 20px !important;
}

/* Cart */
.cart-card {
  padding: 18px;
}

.qty-btn {
  border-radius: 12px !important;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
  border-color: rgba(255, 122, 0, 0.45);
}

/* Flash sale */
.flash-sale-head {
  background: linear-gradient(120deg, #ff4d1a, #ff7a00);
}

.flash-sale-badge {
  background: #111827;
  color: #ffb26b;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  border: 1px dashed rgba(22, 163, 74, 0.3);
  background: rgba(34, 197, 94, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #14532d;
}

.trust-strip i {
  margin-right: 6px;
}

.quality-check {
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.payment-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-badges span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
}

.review-photo {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}


/* Helpers */
.text-danger {
  color: #ef4444 !important;
}

.text-muted {
  color: var(--muted) !important;
}

@media (max-width: 768px) {
  .card,
  .box,
  .product-card,
  .result-card,
  .cart-card {
    border-radius: 16px !important;
  }
}
.home-hero {
  background: linear-gradient(120deg, rgba(255, 122, 0, 0.18), rgba(255, 178, 107, 0.18)),
              url("/static/images/hero.jpg") center/cover no-repeat;
  border-radius: 24px;
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.15));
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.home-hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.home-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 600;
}

.hero-stat span {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .home-hero { padding: 28px; }
}

/* Hero banners */
.hero-banner {
  border-radius: 24px;
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.3));
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 122, 0, 0.25), transparent 50%);
}
.hero-banner > * { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-title {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 800;
  margin-top: 10px;
}
.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
}

/* Animated product cards */
.product-grid-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: floatIn 0.6s ease both;
}
.product-grid-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow);
}
.product-grid-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

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

@media (max-width: 768px) {
  .hero-banner { padding: 22px; }
  .product-grid-card img { height: 170px; }
}
