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

:root {
  --primary: #f5a623;
  --primary-2: #ff8c1a;
  --primary-dark: #d48a0f;
  --dark: #141a22;
  --dark-2: #1c2430;
  --dark-3: #26313f;
  --text: #333;
  --muted: #77808c;
  --light: #f6f7f9;
  --border: #e5e8ec;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(15, 23, 32, 0.07);
  --shadow-lg: 0 10px 28px rgba(15, 23, 32, 0.12);
  --grad: linear-gradient(135deg, var(--primary), var(--primary-2));
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--primary);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 18px;
  color: var(--dark-2);
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 58px;
  height: 4px;
  border-radius: 2px;
  background: var(--grad);
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 44px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 140, 26, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(255, 140, 26, 0.42);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-danger {
  background: #fdecec;
  color: #d63031;
  border: 1px solid #f6c9c9;
  padding: 7px 14px;
  font-size: 0.84rem;
}

.btn-danger:hover {
  background: #d63031;
  color: #fff;
  border-color: #d63031;
}

.btn-block {
  width: 100%;
}

/* ============ Header ============ */
.header {
  background: rgba(20, 26, 34, 0.97);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(245, 166, 35, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 2px;
  border: 2px solid var(--primary);
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.45);
}

.brand-name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: #d4dae1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.25s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.cart-link {
  position: relative;
}

.cart-badge {
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: top;
  margin-left: 5px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 96px 0 140px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 85% at 50% 115%, rgba(245, 166, 35, 0.3), transparent 65%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 55%, #2b3849 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.16), transparent 70%);
}

.hero::after {
  width: 280px;
  height: 280px;
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.12), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(245, 166, 35, 0.45);
  background: rgba(245, 166, 35, 0.1);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.12rem;
  color: #b9c2cd;
  max-width: 580px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Features ============ */
.features {
  position: relative;
  z-index: 5;
  margin-top: -64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 32, 0.13);
}

.feature svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 1rem;
  color: var(--dark-2);
  margin-bottom: 4px;
}

.feature p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============ Products ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 26px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-media {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image {
  transform: scale(1.06);
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 26, 34, 0.85);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark-2);
}

.product-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 6px 0 14px;
  flex: 1;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

/* ============ Page Banner ============ */
.page-banner {
  text-align: center;
  color: #fff;
  padding: 62px 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 130%, rgba(245, 166, 35, 0.28), transparent 65%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 60%, #2b3849 100%);
}

.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 800;
}

.page-banner p {
  color: #aeb8c4;
  margin-top: 6px;
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 56px;
}

.about-text h2 {
  color: var(--dark-2);
  font-size: 1.65rem;
  margin-bottom: 14px;
}

.about-text p {
  color: #55606d;
  margin-bottom: 12px;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.about-image--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-image--logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: none;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.stat {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 12px;
  box-shadow: var(--shadow);
}

.stat span {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.stat small {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-card svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 1.02rem;
  color: var(--dark-2);
  margin-bottom: 6px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ============ Legal (Terms / Privacy) ============ */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 42px 46px;
  box-shadow: var(--shadow);
}

.legal-content .lead {
  font-size: 1.02rem;
  color: var(--dark-2);
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  margin-bottom: 8px;
}

.legal-content h2 {
  color: var(--dark-2);
  font-size: 1.12rem;
  margin: 28px 0 8px;
}

.legal-content p {
  color: #55606d;
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 20px;
  margin: 8px 0;
}

.legal-content li {
  color: #55606d;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* ============ Cart ============ */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.cart-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cart-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cart-item-details {
  flex: 1;
  min-width: 140px;
}

.cart-item-name {
  font-weight: 700;
  color: var(--dark-2);
}

.cart-item-price {
  color: var(--muted);
  font-size: 0.88rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--dark-2);
  transition: background 0.15s, border-color 0.15s;
}

.quantity-controls button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.qty {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.cart-item-total {
  font-weight: 800;
  color: var(--primary-dark);
  min-width: 80px;
  text-align: right;
}

.cart-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  max-width: 380px;
  margin-left: auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-2);
}

.cart-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.empty-cart {
  text-align: center;
  padding: 70px 0;
  color: var(--muted);
}

.empty-cart h3 {
  font-size: 1.5rem;
  color: var(--dark-2);
  margin-bottom: 8px;
}

/* ============ Checkout ============ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}

.checkout-form,
.order-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.order-summary {
  position: sticky;
  top: 92px;
}

.checkout-form h3,
.order-summary h3 {
  color: var(--dark-2);
  margin: 20px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.checkout-form h3:first-child,
.order-summary h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fbfcfd;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
  background: #fff;
}

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

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.92rem;
  color: #55606d;
  border-bottom: 1px dashed var(--border);
}

.summary-item:last-child {
  border-bottom: none;
}

.order-summary .summary-row.total {
  margin-top: 14px;
}

/* ============ Footer ============ */
.footer {
  background: var(--dark);
  color: #8a94a3;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 52px 0 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: #8a94a3;
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.92rem;
  max-width: 300px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-2);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 166, 35, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, bottom 0.3s;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  bottom: 42px;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .features-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .features-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 70px 0 120px;
  }

  .nav {
    gap: 14px;
  }

  .nav-link {
    font-size: 0.88rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .legal-content {
    padding: 28px 22px;
  }

  .cart-item {
    flex-wrap: wrap;
  }
}
