:root {
  --primary: #1b5cff;
  --primary-dark: #123fb3;
  --accent: #ffb703;
  --accent-soft: #fff4d6;
  --text: #171a1f;
  --text-light: #5b6473;
  --bg: #f7f8fb;
  --white: #ffffff;
  --border: #e7ebf3;
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(231, 235, 243, 0.9);
}

.topbar {
  background: #111827;
  color: var(--white);
  font-size: 0.82rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 16px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.82);
}

.navbar {
  padding: 18px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, #6a8dff 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  color: var(--text-light);
}

.main-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-box {
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f5f9;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text-light);
}

.search-box input {
  border: 0;
  outline: none;
  background: transparent;
  flex: 1;
  min-width: 0;
  color: var(--text);
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.btn-primary,
.btn-secondary,
.btn-light,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4781ff 100%);
  color: var(--white);
  padding: 14px 28px;
  box-shadow: 0 16px 30px rgba(27, 92, 255, 0.25);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover,
.btn-link:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 22px;
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 22px;
}

.page-hero {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 34px;
  min-height: 520px;
}

.hero-copy {
  animation: fadeUp 0.8s ease both;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent-soft);
  border-radius: 999px;
  color: #8d5f00;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1,
.page-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--text-light);
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--text);
}

.stat span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  animation: fadeUp 1s ease both;
}

.hero-box {
  position: relative;
  width: min(100%, 470px);
  background: linear-gradient(145deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid rgba(27, 92, 255, 0.08);
  border-radius: 30px;
  box-shadow: 0 24px 46px rgba(17, 24, 39, 0.12);
  overflow: hidden;
}

.hero-box img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 14px 16px;
}

.float-card.top {
  top: 28px;
  right: -18px;
}

.float-card.bottom {
  left: -18px;
  bottom: 26px;
}

.pill-title {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.section {
  padding: 90px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--text-light);
  max-width: 500px;
}

.category-grid,
.product-grid,
.review-grid,
.offer-grid,
.info-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.03);
}

.category-card:hover,
.product-card:hover,
.review-card:hover,
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 36px rgba(17, 24, 39, 0.08);
  border-color: rgba(27, 92, 255, 0.2);
}

.category-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: #edf4ff;
  color: var(--primary);
}

.category-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.96rem;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.04);
}

.product-card .product-image-wrap {
  position: relative;
  background: #f3f6fb;
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #ffefc7;
  color: #9a6200;
}

.product-content {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  flex: 1;
}

.product-tag {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card h3 {
  font-size: 1.18rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 0.94rem;
}

.rating {
  margin-bottom: 14px;
  color: #f6b400;
  font-size: 0.95rem;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.original-price {
  color: var(--text-light);
  text-decoration: line-through;
}

.discount-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.product-actions .btn-primary,
.product-actions .btn-secondary {
  flex: 1;
  padding: 12px 10px;
  font-size: 0.9rem;
}

.offer-wrap {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  border-radius: 32px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  overflow: hidden;
}

.offer-content h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

.offer-content p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 24px;
}

.offer-pills {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.offer-pills span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 600;
}

.offer-box {
  display: grid;
  gap: 14px;
  align-content: center;
}

.offer-box .mini-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 20px;
}

.offer-box .mini-card strong {
  display: block;
  font-size: 2rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.03);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #edf4ff 0%, #e8fdf8 100%);
  color: var(--primary);
  font-size: 1.7rem;
}

.feature-box h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.feature-box p {
  color: var(--text-light);
}

.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stars {
  color: #f6b400;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.review-card p {
  color: var(--text-light);
  margin-bottom: 18px;
}

.customer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.customer strong {
  display: block;
  font-size: 0.98rem;
}

.customer span {
  font-size: 0.82rem;
  color: var(--text-light);
}

.newsletter {
  background: linear-gradient(135deg, #edf4ff 0%, #fef5db 100%);
  border-radius: 32px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.newsletter h3 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 8px;
}

.newsletter p {
  color: var(--text-light);
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px 8px 18px;
  min-width: min(100%, 480px);
}

.newsletter-form input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  min-width: 0;
}

.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.78);
  padding: 76px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 28px;
  margin-bottom: 34px;
}

.footer-brand p,
.footer-links a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.6);
}

.page-header {
  padding: 54px 0 24px;
  background: linear-gradient(180deg, #f8faff 0%, var(--bg) 100%);
}

.page-head-inner {
  padding: 30px 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.page-title {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  margin: 0;
}

.breadcrumb {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 8px;
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--text-light);
  font-weight: 600;
}

.filter-pill.active {
  background: #edf4ff;
  color: var(--primary);
  border-color: rgba(27, 92, 255, 0.2);
}

.cart-wrap {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 28px;
  padding-bottom: 100px;
}

.cart-items {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.04);
}

.cart-header,
.cart-row {
  display: grid;
  grid-template-columns: 1.7fr 0.7fr 0.8fr 0.8fr 0.5fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.cart-header {
  background: #f9fafc;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cart-row {
  border-top: 1px solid var(--border);
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-product img {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
}

.cart-product h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-product span {
  color: var(--text-light);
  font-size: 0.82rem;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafc;
}

.qty-box button {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--text);
}

.qty-box span {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
}

.remove-btn {
  background: #fff1f2;
  border: 1px solid #ffd9dc;
  color: #c03949;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
}

.summary-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px 22px;
  height: fit-content;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.04);
}

.summary-box h3 {
  margin-bottom: 22px;
  font-size: 1.6rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: var(--text-light);
}

.summary-row.total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
}

.checkout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 16px 18px;
  font-size: 1rem;
}

.contact-grid {
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  padding-bottom: 100px;
}

.contact-card,
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px 24px;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.04);
}

.contact-card h3,
.contact-form h3 {
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #edf4ff;
  color: var(--primary);
  font-weight: 700;
}

.contact-form form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-control {
  display: grid;
  gap: 8px;
}

.form-control label {
  font-weight: 700;
  color: var(--text);
}

.form-control input,
.form-control textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f9fafc;
  color: var(--text);
  outline: none;
}

.form-control textarea {
  min-height: 150px;
  resize: vertical;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin-top: 26px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 18px;
  text-align: center;
}

.info-card h4 {
  margin: 12px 0 8px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero,
  .offer-wrap,
  .cart-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .product-grid,
  .why-grid,
  .footer-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-inner {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .search-box {
    flex: 1;
  }
}

@media (max-width: 680px) {
  .topbar .container {
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .hero {
    min-height: auto;
    text-align: center;
  }

  .hero-actions,
  .hero-stats,
  .section-heading,
  .product-toolbar,
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .category-grid,
  .product-grid,
  .why-grid,
  .info-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .product-actions {
    flex-direction: column;
  }

  .newsletter {
    padding: 26px 20px;
  }

  .newsletter-form {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 14px;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .cart-header {
    display: none;
  }

  .cart-row {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .cart-product {
    align-items: flex-start;
  }
}
