:root {
  --ink: #1e2528;
  --muted: #657075;
  --line: #dfe5e7;
  --surface: #ffffff;
  --page: #f4f7f7;
  --brand: #f28c28;
  --brand-dark: #c96f17;
  --green: #1f7a5a;
  --blue: #214f77;
  --danger: #c7382f;
  --shadow: 0 10px 28px rgba(30, 37, 40, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
}

body:has(.cart-drawer.open),
body:has(.product-modal.open) {
  overflow: hidden;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav a,
.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--brand-dark);
}

.cart-button,
.primary-button,
.secondary-button,
.checkout-button,
.text-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cart-button,
.primary-button,
.checkout-button {
  background: var(--brand);
  color: #1b160f;
  border-radius: 8px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cart-button {
  background: var(--ink);
  color: white;
  border-radius: 999px;
}

.cart-button span {
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #111;
  border-radius: 999px;
  padding: 2px 7px;
}

.primary-button:hover,
.checkout-button:hover {
  background: #ff9f3f;
  transform: translateY(-1px);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
}

.secondary-button:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.text-button {
  background: transparent;
  color: var(--blue);
  padding: 8px 0;
}

.text-button:hover {
  color: var(--brand-dark);
}

.hero {
  background:
    linear-gradient(90deg, rgba(18, 25, 28, 0.92), rgba(18, 25, 28, 0.62)),
    url("../images/kitchen-mixer-tap.png") center / cover;
  color: white;
}

.hero-inner {
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 680px;
  padding: 72px 0;
}

.eyebrow {
  display: inline-block;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffc47f;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  margin-bottom: 20px;
}

.hero p {
  color: #e9eeee;
  font-size: 18px;
  max-width: 590px;
  margin-bottom: 28px;
}

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

.store-highlights {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.highlight-item {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
}

.highlight-item:last-child {
  border-right: 0;
}

.highlight-item strong {
  display: block;
  font-size: 28px;
}

.highlight-item span {
  color: var(--muted);
}

.products-section,
.delivery-section,
.contact-section,
.checkout-page,
.product-page {
  padding: 72px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-heading h1,
.section-heading h2,
.delivery-layout h2 {
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-heading p,
.delivery-layout p,
.contact-box p {
  color: var(--muted);
}

.catalog-toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px 220px;
  gap: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.search-field,
.filter-field,
.form-row {
  display: grid;
  gap: 8px;
}

.search-field label,
.filter-field label,
.form-row label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.search-field input,
.filter-field select,
.contact-form input,
.contact-form textarea,
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 13px 14px;
}

.search-field input:focus,
.filter-field select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(242, 140, 40, 0.18);
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.catalog-meta p {
  color: var(--muted);
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 5px 18px rgba(30, 37, 40, 0.06);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eef2f2;
  display: block;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

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

.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

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

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-content h3 {
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.product-content h3 a,
.product-link {
  color: var(--ink);
  text-decoration: none;
}

.product-content h3 a:hover {
  color: var(--brand-dark);
}

.product-description {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
  flex: 1;
}

.product-price {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 14px;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 10px;
}

.add-to-cart {
  width: 100%;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  padding: 12px;
}

.add-to-cart:hover {
  background: #303b3f;
}

.empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  text-align: center;
}

.delivery-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.delivery-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.delivery-option,
.contact-box,
.checkout-form-panel,
.order-summary,
.confirmation-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 5px 18px rgba(30, 37, 40, 0.06);
}

.delivery-option h3 {
  margin-bottom: 8px;
}

.contact-box {
  max-width: 760px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form textarea,
.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-message {
  color: var(--green);
  font-weight: 700;
  min-height: 22px;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 430px;
  max-width: 94%;
  background: white;
  z-index: 50;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -14px 0 34px rgba(30, 37, 40, 0.18);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-header .eyebrow,
.order-summary .eyebrow {
  margin-bottom: 2px;
}

.close-cart {
  width: 38px;
  height: 38px;
  background: #eef2f2;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.close-cart:hover {
  background: var(--line);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.cart-item img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f2;
}

.cart-item h4 {
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--muted);
  margin-bottom: 10px;
}

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

.quantity-controls button {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--ink);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.quantity-controls span {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
}

.remove-button {
  margin-left: auto;
  background: var(--danger) !important;
}

.empty-cart {
  color: var(--muted);
  display: grid;
  gap: 8px;
  padding: 24px 0;
}

.empty-cart h3 {
  color: var(--ink);
}

.cart-footer {
  padding: 22px;
  border-top: 1px solid var(--line);
}

.cart-total,
.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cart-total {
  margin-bottom: 18px;
  font-size: 20px;
}

.cart-actions {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 10px;
}

.checkout-button {
  width: 100%;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 25, 28, 0.5);
  z-index: 40;
  display: none;
}

.overlay.show {
  display: block;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

.product-modal.open {
  display: flex;
}

.modal-panel {
  width: min(860px, 100%);
  max-height: min(780px, 92vh);
  overflow-y: auto;
  background: white;
  border-radius: 8px;
  position: relative;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.modal-product {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}

.modal-product img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-product h2 {
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 10px;
}

.modal-product p {
  color: var(--muted);
  margin-bottom: 18px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 12px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: start;
}

.product-detail-media,
.product-detail-content {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(30, 37, 40, 0.06);
}

.product-detail-media img {
  width: 100%;
  display: block;
}

.product-detail-content {
  padding: 34px;
}

.breadcrumb,
.details-link {
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 18px;
  text-decoration: none;
}

.breadcrumb:hover,
.details-link:hover {
  color: var(--brand-dark);
}

.product-detail-content h1 {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.product-detail-description {
  color: var(--muted);
  margin: 18px 0 24px;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.product-detail-actions .add-to-cart {
  width: auto;
  min-width: 170px;
}

.product-facts {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-fact {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.product-fact span {
  color: var(--muted);
}

.product-benefits {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.checkout-progress {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.checkout-progress span {
  flex: 1;
  background: #eef2f2;
  color: var(--muted);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  text-align: center;
}

.checkout-progress span.active {
  background: rgba(242, 140, 40, 0.18);
  color: var(--brand-dark);
}

.checkout-heading {
  margin-bottom: 26px;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

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

.place-order-button {
  width: 100%;
  margin-top: 4px;
}

.place-order-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.checkout-back-link {
  text-decoration: none;
}

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

.order-summary h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.checkout-items {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f2;
}

.checkout-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.checkout-item p {
  color: var(--muted);
  font-size: 14px;
}

.summary-row {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.summary-total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-size: 22px;
}

.empty-cart-link {
  margin-top: 12px;
}

.confirmation-panel {
  margin-top: 28px;
}

.confirmation-panel h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.confirmation-panel p {
  color: var(--muted);
  max-width: 720px;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.site-footer {
  background: var(--ink);
  color: white;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer a {
  color: white;
}

.admin-section {
  margin-top: 48px;
}

.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 5px 18px rgba(30, 37, 40, 0.06);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #eef2f2;
  font-size: 13px;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .catalog-toolbar,
  .checkout-layout,
  .delivery-layout,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

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

@media (max-width: 720px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    order: 3;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 2px;
  }

  .hero-inner {
    min-height: 430px;
  }

  .highlight-grid,
  .delivery-options,
  .form-grid,
  .modal-product {
    grid-template-columns: 1fr;
  }

  .highlight-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .highlight-item:last-child {
    border-bottom: 0;
  }

  .modal-product img {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .hero h1,
  .section-heading h1,
  .section-heading h2,
  .delivery-layout h2 {
    font-size: 34px;
  }

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

  .catalog-toolbar,
  .contact-box,
  .checkout-form-panel,
  .order-summary,
  .confirmation-panel,
  .delivery-option {
    padding: 20px;
  }

  .catalog-meta,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-card-actions,
  .cart-actions {
    grid-template-columns: 1fr;
  }

  .checkout-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .checkout-item strong {
    grid-column: 2;
  }

  .product-detail-content {
    padding: 24px 20px;
  }

  .product-detail-content h1 {
    font-size: 34px;
  }
}
