@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800;900&family=Roboto:wght@400;500;700&display=swap");

:root {
  --red: #b91c1c;
  --red-dark: #7f1d1d;
  --red-soft: #fee2e2;
  --red-pale: #fff5f5;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --ink: #1f2937;
  --muted: #6b7280;
  --gold: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 42px rgba(127, 29, 29, 0.12);
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--gray-50);
  color: var(--ink);
  font-family: var(--font-body);
}

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

a {
  color: inherit;
}

.container {
  max-width: 1160px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary-soft {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn-primary-soft:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--red-dark);
}

.btn-admin-login {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  min-width: max-content;
}

.btn-admin-login:hover {
  background: var(--red-dark);
  color: var(--white);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--red-dark);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  background: #991b1b;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: none;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0;
}

.logo-text {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-left: auto;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--red);
  border-color: var(--red-soft);
}

.hero-section {
  position: relative;
  min-height: min(690px, calc(100vh - 74px));
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-section img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(69, 10, 10, 0.84), rgba(69, 10, 10, 0.36));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 82px;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-section .eyebrow {
  color: #fecaca;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.03;
}

.hero-content p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-section {
  padding-block: 76px;
}

.section-soft {
  background: var(--red-pale);
}

.section-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-head h2,
.about-layout h2,
.contact-hero-content h1,
.info-card h2,
.review-form h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
}

.section-head h2,
.about-layout h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
}

.section-head p,
.about-layout p,
.info-card p,
.contact-hero-content p {
  color: var(--muted);
  line-height: 1.8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card,
.info-card,
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
}

.product-card-image {
  position: relative;
}

.product-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--red-pale);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.product-card-body {
  padding: 18px;
}

.product-category {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
}

.product-card p {
  min-height: 78px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-stock {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.price {
  color: var(--red);
  font-weight: 900;
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  padding: 22px;
}

.review-stars {
  color: var(--gold);
  font-size: 18px;
}

.review-text {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.8;
}

.review-name {
  margin: 0;
  color: var(--red);
  font-weight: 900;
}

.review-form,
.contact-form {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 24px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 38px;
  align-items: center;
}

.about-layout img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 24px;
  list-style: none;
  color: var(--muted);
}

.about-list i {
  color: var(--red);
  margin-right: 8px;
}

.page-content {
  padding-block: 38px 72px;
}

.contact-hero {
  position: relative;
  min-height: 340px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-hero img,
.contact-hero-overlay {
  position: absolute;
  inset: 0;
}

.contact-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero-overlay {
  background: linear-gradient(90deg, rgba(69, 10, 10, 0.78), rgba(69, 10, 10, 0.26));
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 42px;
}

.contact-hero-content h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(32px, 5vw, 54px);
}

.contact-hero-content p {
  color: rgba(255, 255, 255, 0.88);
}

.contact-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-info i {
  width: 18px;
  color: var(--red);
}

.contact-note {
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--red-pale);
  color: var(--muted);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.form-control {
  min-height: 44px;
  padding: 10px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 0.18rem rgba(185, 28, 28, 0.14);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed #fecaca;
  border-radius: var(--radius);
}

.site-footer {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: rgba(255, 255, 255, 0.88);
}

.footer-simple {
  display: grid;
  gap: 8px;
  padding-block: 28px 22px;
}

.footer-brand {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
}

.footer-simple p {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

@media (max-width: 992px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .product-grid,
  .review-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-layout img {
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    justify-content: center;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .btn-admin-login {
    width: auto;
  }

  .main-nav {
    font-size: 13px;
  }

  .hero-section {
    min-height: 620px;
  }

  .product-grid,
  .review-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-section {
    padding-block: 56px;
  }

  .product-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-card-footer .btn,
  .review-form .btn,
  .contact-form .btn {
    width: 100%;
  }

  .contact-hero-content {
    padding: 28px;
  }

  .footer-simple { text-align: center; }

  .footer-simple p { margin-inline: auto; }

  .footer-contact {
    justify-content: center;
  }
}
