﻿:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1f2f22;
  --muted: #5f7063;
  --accent: #4f9b63;
  --accent-strong: #2f6d44;
  --border: #e9efe8;
  --shadow: rgba(34, 71, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  animation: pageFadeIn 220ms ease-out;
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  appearance: none;
}

main {
  display: block;
}

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

section,
.checkout-card,
.admin-sidebar,
.sidebar-card,
.admin-main,
.product-card,
.cart-panel,
.modal-content,
.auth-card {
  animation: fadeUpIn 240ms ease-out both;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 320px;
  min-width: 0;
}

.brand-text {
  min-width: 0;
}

.brand img,
.site-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
}

.brand-text h1,
#branding-name {
  margin: 0;
  max-width: 100%;
  font-size: 1.15rem;
  line-height: 1.05;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  color: #2d6a43;
  overflow-wrap: anywhere;
}

.company-subtitle,
#branding-subtitle {
  display: block;
  margin: 0.25rem 0 0.4rem;
  color: #d9572b;
  font-size: 0.8rem;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.brand-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 320px;
  min-width: 0;
}

.nav a,
.cart-btn,
.button,
.btn,
.product-card,
.checkout-card,
.sidebar-card,
.admin-form input,
.upload-form input[type="file"],
.admin-product-item {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.nav a,
.cart-btn {
  min-width: 0;
  white-space: nowrap;
}

.nav a,
.button-secondary,
.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.68rem 0.82rem;
  border-radius: 999px;
  background: #2d6a43;
  border: 1px solid rgba(45, 106, 67, 0.15);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 6px 18px rgba(45, 106, 67, 0.12);
}

.nav a:hover,
.button:hover,
.btn:hover,
.cart-btn:hover {
  transform: translateY(-1px);
  background: #245b39;
  box-shadow: 0 12px 24px rgba(45, 106, 67, 0.16);
}

.cart-btn {
  border-radius: 999px;
}

/* Hero slider */
.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

.slider {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #edf9ee 0%, #dfeee0 100%);
  box-shadow: 0 24px 70px rgba(19, 56, 32, 0.08);
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
}

.slide-image {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: none;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(17, 10, 16, 0.08);
}

.slider-nav:hover {
  background: var(--accent);
  color: #fff;
}

#prev {
  left: 1rem;
}

#next {
  right: 1rem;
}

/* Products */
.products-section,
.catalog-page {
  max-width: 1200px;
  margin: 0 auto;
}

.products-section {
  padding: 3rem 2rem 4rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.6rem);
}

.section-header select,
.product-toolbar input,
.product-toolbar select,
.checkout-form input,
.checkout-form textarea,
.admin-form input,
.upload-form input[type="file"] {
  width: 100%;
  max-width: 360px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  outline: none;
}

.products-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(106, 47, 96, 0.08);
  overflow: hidden;
  display: grid;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(106, 47, 96, 0.12);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-body,
.product-details,
.details-info {
  padding: 1.25rem;
}

.product-body h4,
.product-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.product-body p,
.product-card p,
.product-details p,
.about p {
  margin: 0;
  color: var(--muted);
}

.product-footer,
.product-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0 1.25rem 1.25rem;
}

.product-footer > div,
.product-bottom > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price,
.product-bottom .price {
  font-size: 1.05rem;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status.available {
  background: #eef7ef;
  color: #298250;
}

.status.out-of-stock {
  background: #ffe6ed;
  color: #d92448;
}

/* Admin UI moved to /css/admin.css (scoped). Keep admin-specific styles in that file only. */


.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 1rem;
}

/* Buttons */
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  background: #f4f4f4;
  color: var(--text);
  cursor: pointer;
}

.btn.primary,
.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn:hover,
.button:hover,
.nav a:hover,
.cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(17, 10, 16, 0.08);
}

.btn[disabled],
.button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Cart panel */
.cart-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 340px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(17, 10, 16, 0.12);
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cart-panel h3 {
  margin: 0;
}

.cart-close-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f5f7f4;
  color: #234c35;
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.cart-close-btn:hover {
  background: #edf5ee;
}

.cart-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.cart-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid #f0f0f0;
  padding: 0.85rem 0;
}

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

.cart-item img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.cart-item > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.qty-input {
  width: 70px;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 10, 16, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal-panel {
  width: min(760px, 100%);
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #fff8fc 100%);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 30px 90px rgba(17, 10, 16, 0.16);
  border: 1px solid rgba(251, 138, 173, 0.2);
}

.modal-content {
  width: min(560px, 100%);
  max-height: calc(100vh - 3rem);
  min-width: 0;
  overflow-y: auto;
  background: linear-gradient(145deg, #ffffff 0%, #fff8fc 100%);
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: 0 30px 90px rgba(17, 10, 16, 0.16);
  border: 1px solid rgba(251, 138, 173, 0.2);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.modal-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.modal-subtitle {
  margin: 0 0 1rem;
  color: var(--muted);
}

.icon-btn {
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff4f8;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.checkout-form {
  display: grid;
  gap: 1rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--text);
}

.field-group span {
  font-size: 0.95rem;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(17, 10, 16, 0.03);
}

.checkout-form textarea {
  min-height: 110px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.receipt-modal-content {
  width: min(640px, 100%);
}

.receipt-modal-body {
  display: grid;
  gap: 1rem;
  padding-top: 0.25rem;
}

.receipt-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #ecfdf3;
  color: #1f7a45;
  font-weight: 700;
  font-size: 0.9rem;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.receipt-block {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
}

.receipt-label {
  margin: 0 0 0.35rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.receipt-value {
  margin: 0;
  overflow-wrap: anywhere;
}

.receipt-item > :first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.receipt-value,
.receipt-muted {
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.receipt-muted {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.receipt-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f5e8ef;
}

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

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(90deg, #fff4f8 0%, #fff 100%);
  font-size: 1.05rem;
}

/* About section */
.about {
  padding: 0;
  max-width: 100%;
  margin: 0;
}

.about h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
}

.about #companyProfile {
  font-family: 'Poppins', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #0f1720;
  text-align: center;
  width: 100vw;
  max-width: none;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 0;
  background-color: #dcebd9;
  border-radius: 0;
  box-shadow: none;
  border: none;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.company-profile-background {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}
.about #companyProfile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(24, 82, 48, 0.18), rgba(219, 239, 211, 0.2));
  z-index: 0;
}
.about #companyProfile::after {
  content: '';
  position: absolute;
  right: 7%;
  bottom: 8%;
  width: 110px;
  height: 52px;
  border-radius: 100% 0 100% 0;
  background: rgba(35, 104, 58, 0.3);
  transform: rotate(-24deg);
  box-shadow: -72px 42px 0 -8px rgba(71, 133, 70, 0.24), -118px 4px 0 -14px rgba(35, 104, 58, 0.2);
  z-index: 0;
  pointer-events: none;
}
.about #companyProfile > * {
  position: relative;
  z-index: 1;
}
.about #companyProfile p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  color: #000;
  position: relative;
  z-index: 1;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(255,255,255,0.85);
}
.company-meta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin: 1.25rem auto 0;
  color: #000;
  max-width: 640px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.company-meta li {
  margin: 0;
  font-weight: 700;
  color: #000;
  font-size: 1rem;
  text-align: center;
  list-style: disc inside;
  text-shadow: 0 1px 3px rgba(255,255,255,0.85);
}
.company-meta li strong {
  color: #000;
  font-weight: 700;
}
.company-profile-logo {
  display: block;
  margin: 2rem auto 0;
  width: 140px;
  height: auto;
  position: relative;
  z-index: 1;
}

/* Toasts / messages */
.checkout-message,
.auth-card-header p,
.product-body small {
  color: var(--accent-strong);
}

/* View index styles */
.catalog-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.page-header {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(17, 10, 16, 0.08);
}

.page-header.compact {
  padding: 2rem;
}

.page-header .brand {
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.page-header h1 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.page-header p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.product-toolbar {
  margin: 2rem 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-details {
  display: grid;
  gap: 0.75rem;
}

.details-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.details-card img {
  width: 100%;
  height: clamp(240px, 32vw, 360px);
  object-fit: cover;
  border-radius: 22px;
}

.details-info {
  min-width: 0;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-panel .product-footer {
  padding: 0;
  margin-top: 1rem;
}

.details-info h2 {
  margin: 0.5rem 0;
  overflow-wrap: anywhere;
}

.receipt-print-header {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body {
    background: #fff;
    color: #111;
  }

  body * {
    visibility: hidden;
  }

  #receiptModal,
  #receiptModal * {
    visibility: visible;
  }

  #receiptModal {
    position: static;
    display: block;
    padding: 0;
    background: #fff;
  }

  #receiptModal .receipt-modal-content {
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  #receiptModal .modal-header,
  #receiptModal .modal-actions,
  #receiptModal .receipt-badge {
    display: none;
  }

  #receiptModal .receipt-print-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid #2f6d44;
  }

  .receipt-print-header img {
    width: 58px;
    height: 58px;
    object-fit: contain;
  }

  .receipt-print-header h2,
  .receipt-print-header p {
    margin: 0;
  }

  .receipt-print-header h2 {
    font-size: 20pt;
    color: #1f2f22;
  }

  .receipt-print-header p {
    color: #5f7063;
    font-size: 10pt;
  }

  #receiptModal .receipt-block,
  #receiptModal .receipt-total {
    break-inside: avoid;
    border-color: #d9e3da;
    box-shadow: none;
  }

  #receiptModal .receipt-item {
    break-inside: avoid;
  }
}

.admin-login-page {
  min-height: 100vh;
  background-color: #f4f8f1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.admin-login-page .auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.12);
}

.admin-login-page .auth-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.checkout-page,
.admin-page,
.auth-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.checkout-grid,
.admin-grid {
  display: grid;
  gap: 1.5rem;
}

.checkout-grid {
  grid-template-columns: 1.2fr 0.9fr;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-card {
  padding: 1.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px rgba(17, 10, 16, 0.1);
}

.sidebar-title h2 {
  margin: 0.5rem 0 0;
  font-size: 1.3rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.sidebar-nav .button {
  justify-content: flex-start;
  width: 100%;
}

.sidebar-nav .button-secondary {
  background: rgba(255, 255, 255, 0.95);
}

.admin-main {
  display: grid;
  gap: 1.5rem;
}

.checkout-card,
.admin-modal-content,
.auth-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(17, 10, 16, 0.1);
}

.checkout-card {
  padding: 1.5rem;
}

.auth-card {
  width: min(520px, 100%);
  padding: 2rem;
}

.auth-card-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.auth-card-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.auth-card-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

..admin-form,
.upload-form {
  display: grid;
  gap: 1rem;
}

.admin-form label,
.upload-form label {
  display: grid;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text);
}

.branding-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.branding-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.35rem;
}

.admin-form input,
.upload-form input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  outline: none;
}

.admin-form button,
.upload-form button {
  width: fit-content;
}

.admin-product-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-product-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.admin-order-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #f2e8ef;
}

.admin-order-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.admin-order-items li {
  padding: 1rem;
  background: #fff7fb;
  border: 1px solid #f2d7e2;
  border-radius: 18px;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .products-section,
  .catalog-page,
  .checkout-page,
  .admin-page,
  .about {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .slider {
    height: 360px;
  }

  .products-grid,
  .product-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .page-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .slider {
    height: 320px;
  }

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

  .details-card {
    grid-template-columns: 1fr;
  }

  .details-card img {
    min-height: 220px;
  }

  .modal-panel {
    padding: 1rem;
  }
}

@media (max-width: 760px) {
  .details-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .details-card img {
    height: min(58vw, 280px);
    min-height: 0;
  }

  .details-info {
    padding: 0.25rem 0.25rem 0;
  }

  .site-header {
    padding: 0.9rem 1rem;
    justify-content: space-between;
  }

  .brand,
  .nav {
    flex: 1 1 100%;
  }

  .nav {
    justify-content: space-between;
    align-items: center;
  }

  .cart-btn {
    border-radius: 18px;
  }

  .hero {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .slider {
    height: 300px;
  }

  .site-header,
  main,
  .hero,
  .products-section,
  .catalog-page,
  .checkout-page,
  .admin-page,
  .auth-page,
  .about {
    width: 100%;
    margin: 0;
  }

  .nav,
  .page-actions {
    justify-content: center;
  }

  .slider {
    height: 280px;
  }

  .products-section,
  .about,
  .catalog-page,
  .checkout-page,
  .admin-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .products-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .product-card {
    border-radius: 18px;
  }

  .product-card img {
    height: 150px;
  }

  .product-body,
  .product-details,
  .details-info {
    padding: 0.9rem;
  }

  .product-footer,
  .product-bottom {
    gap: 0.6rem;
    padding: 0 0.9rem 0.9rem;
  }

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

  .admin-sidebar,
  .admin-main {
    width: 100%;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
  }

  .admin-header-actions > * {
    flex: 1 1 100%;
  }

  .admin-header-actions .admin-badge {
    margin-bottom: 0.5rem;
  }

  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-panel {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    max-width: calc(100% - 2rem);
    max-height: calc(100vh - 2rem);
  }

  .cart-panel {
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 0.75rem;
  }

  .modal-content {
    max-height: calc(100vh - 1.5rem);
    padding: 1rem;
    border-radius: 20px;
  }

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

  .site-header {
    padding: 1rem 0.75rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand-text h1 {
    font-size: 1.05rem;
  }

  .company-subtitle,
  #branding-subtitle {
    font-size: 0.74rem;
  }

  .brand-text p {
    font-size: 0.78rem;
  }

  .nav {
    gap: 0.4rem;
  }

  .nav a,
  .cart-btn {
    padding: 0.58rem 0.68rem;
    font-size: 0.82rem;
  }

  .product-card img {
    height: 128px;
  }

  .product-body,
  .product-details,
  .details-info {
    padding: 0.75rem;
  }

  .product-body h4,
  .product-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }

  .product-footer,
  .product-bottom {
    padding: 0 0.75rem 0.75rem;
  }

  .hero {
    padding: 1.25rem 0.75rem 0;
  }

  .slider {
    height: 240px;
  }

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

  .sidebar-card {
    padding: 1.25rem;
  }

  .sidebar-nav {
    gap: 0.65rem;
  }

  .sidebar-nav .button,
  .sidebar-nav .button-secondary {
    width: 100%;
  }

  .admin-header-actions > * {
    flex: 1 1 100%;
  }

  .admin-page {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 420px) {
  .slider {
    height: 220px;
  }

  .page-header {
    padding: 1.5rem;
  }

  .cart-btn,
  .nav a,
  .button,
  .btn {
    font-size: 0.78rem;
  }

  .products-grid,
  .product-grid {
    gap: 0.65rem;
  }

  .product-card img {
    height: 108px;
  }

  .product-body,
  .product-details,
  .details-info {
    padding: 0.65rem;
  }

  .product-body h4,
  .product-card h3 {
    font-size: 0.92rem;
  }

  .product-footer,
  .product-bottom {
    padding: 0 0.65rem 0.65rem;
  }
}
