:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --text: #07111f;
  --muted: #667085;
  --border: #e6e1d8;
  --accent: #006747;
  --accent-dark: #00583d;
  --accent-text: #ffffff;
  --danger: #b00020;
  --radius: 22px;
  --shadow: 0 18px 44px rgba(8, 17, 31, 0.06);
  --shadow-hover: 0 26px 65px rgba(8, 17, 31, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  width: min(1500px, calc(100% - 56px));
  margin: 0 auto;
}

/* ===== BUTTONS ===== */

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  background: transparent;
  min-height: 46px;
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

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

.btn.secondary {
  color: var(--accent);
  background: #ffffff;
  border-color: var(--accent);
}

.btn.danger,
.danger {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.btn.full {
  width: 100%;
}

.small-btn {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 14px;
}

/* ===== HEADER ===== */

.site-header {
  height: 110px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e7e3dc;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  overflow: visible;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.site-header.header-hidden {
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
  border-color: transparent;
}

.header-inner {
  height: 110px;
  min-height: 110px;
  display: grid;
  grid-template-columns: 360px 1fr 260px;
  align-items: center;
  gap: 20px;
}

.logo-image-link {
  height: 110px;
  max-height: 110px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  text-decoration: none;
}

.logo-image-link::before,
.logo::before {
  display: none;
  content: none;
}

.site-logo-img {
  height: 96px;
  max-height: 96px;
  width: auto;
  max-width: 360px;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.main-nav a:hover {
  color: var(--accent);
}

.header-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}

.header-icon-btn,
.header-cart-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  position: relative;
}

.header-icon-btn:hover,
.header-cart-btn:hover {
  color: var(--accent);
}

.header-cart-btn span {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

/* Korpa je gore desno, zato sakrivamo staro floating dugme */
.floating-cart {
  display: none;
}

/* ===== HERO ===== */

.home-hero {
  padding: 0 0 10px;
  background: #ffffff;
}

.hero-grid {
  width: min(100%, 1500px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: stretch;
  min-height: 390px;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.hero-content {
  padding: 54px 64px 42px 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
}

.hero-content h1 {
  margin: 0;
  max-width: 600px;
  font-size: clamp(34px, 3.5vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: var(--text);
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-text {
  margin: 22px 0 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-width: 170px;
  min-height: 46px;
  border-radius: 10px;
}

.hero-image {
  position: relative;
  height: 100%;
  min-height: 390px;
  background: linear-gradient(135deg, #efe7db, #ffffff);
  overflow: hidden;
  display: block;
}

.hero-image::before {
  content: "";
  position: absolute;
  left: -240px;
  top: -90px;
  width: 380px;
  height: calc(100% + 180px);
  background: #ffffff;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

.hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== CATEGORIES ===== */

.category-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 26px;
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(8, 17, 31, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(8, 17, 31, 0.08);
  border-color: #d9d3c7;
}

.category-thumb {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 14px;
  background: #f5f4ef;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.category-text h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}

.category-text p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* ===== PRODUCT SECTION ===== */

.section {
  padding: 32px 0 42px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title-row h2 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.view-all {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

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

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

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

.product-image {
  display: grid;
  place-items: center;
  height: 230px;
  background: #f4f3ef;
  text-decoration: none;
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  box-sizing: border-box;
  transition: transform 0.22s ease;
}

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

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-body h3 {
  margin: 0;
  min-height: 46px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.product-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.product-desc {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  margin-top: auto;
}

.price {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 26px;
  font-weight: 950;
}

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

/* ===== BOTTOM BENEFITS ===== */

.bottom-benefits {
  margin-top: 30px;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.benefit-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 30px;
  border-right: 1px solid #ece8df;
}

.benefit-card:last-child {
  border-right: 0;
}

.benefit-card span {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 999px;
  background: #f4f8f6;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.benefit-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.benefit-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ===== PRODUCT DETAIL PAGE ===== */

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  text-decoration: none;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.product-gallery,
.product-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.product-detail-card {
  max-width: 620px;
}

.main-product-image {
  aspect-ratio: 1 / 1;
  max-height: 520px;
  background: #f4f3ef;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
}

.main-product-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumbnail-btn {
  width: 82px;
  height: 82px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: #eeeeee;
  cursor: pointer;
  flex: 0 0 auto;
}

.thumbnail-btn.active {
  border-color: var(--accent);
}

.thumbnail-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-card h1 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  word-break: break-word;
  margin-bottom: 18px;
}

.product-description.large {
  font-size: 16px;
  line-height: 1.6;
}

.feature-list {
  padding-left: 20px;
}

.detail-price {
  font-size: 32px;
  margin-top: 22px;
}

.detail-add {
  width: 100%;
  margin-top: 14px;
}

/* ===== CART DRAWER ===== */

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: min(460px, 100%);
  height: 100%;
  background: var(--card);
  z-index: 2000;
  box-shadow: -12px 0 40px rgba(0,0,0,.12);
  transition: right .25s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header,
.cart-footer {
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header button {
  border: 0;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
}

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

.cart-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.cart-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  margin-bottom: 14px;
}

.checkout-fields {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.checkout-fields input,
.checkout-fields textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #ffffff;
}

.checkout-fields textarea,
.admin-form textarea {
  min-height: 80px;
  resize: vertical;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ===== ADMIN ===== */

.admin-card,
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-card {
  padding: 24px;
}

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

.admin-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}

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

.admin-table img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  background: #eeeeee;
}

.small-muted {
  color: var(--muted);
  font-size: 13px;
}

.error {
  color: var(--danger);
  font-weight: 700;
}

.legal-page {
  padding: 52px 0;
  max-width: 860px;
}

/* ===== ADMIN IMAGES ===== */

.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 220px));
  gap: 16px;
  margin-top: 14px;
}

.admin-image-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: #ffffff;
  max-width: 220px;
}

.admin-image-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.admin-image-item span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.admin-image-item form {
  margin-top: 8px;
}

.admin-image-item .btn.danger {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
}

/* ===== FOOTER ===== */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.footer-modern {
  display: grid;
  grid-template-columns: 280px 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo {
  height: 66px;
  width: auto;
  max-width: 290px;
  display: block;
  object-fit: contain;
}

.footer-nav,
.footer-legal {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

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

.footer-nav a,
.footer-legal a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--text);
  color: #ffffff;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.footer-social a:hover {
  background: var(--accent);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 300px 1fr 220px;
  }

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

  .hero-image {
    clip-path: none;
    min-height: 360px;
  }

  .hero-image::before {
    display: none;
  }

  .hero-image img {
    min-height: 360px;
  }

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

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

  .footer-modern {
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 16px;
}

 .footer-nav,
 .footer-legal {
  justify-content: flex-start;
 }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .site-logo-img {
    height: 70px;
    max-height: 70px;
    max-width: 260px;
  }

  .header-icons {
    gap: 14px;
  }

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

  .main-product-image {
    max-height: 420px;
  }

  .main-product-image img {
    max-height: 420px;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, 1280px);
  }

  .site-header {
    height: 90px;
  }

  .header-inner {
    height: 90px;
    min-height: 90px;
  }

  .site-logo-img {
    height: 58px;
    max-height: 58px;
    max-width: 220px;
  }

  .hero-content {
    padding: 34px 24px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .category-section,
  .products-grid,
  .bottom-benefits {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    border-right: 0;
    border-bottom: 1px solid #ece8df;
  }

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

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}

/* ===== LEGAL PAGES ===== */

.legal-page {
  padding: 54px 0;
  max-width: 980px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 38px;
}

.legal-card h1 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.legal-content h2 {
  margin: 30px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.legal-content p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-content strong {
  color: var(--text);
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.back-link:hover {
  text-decoration: underline;
}

/* ===== AUTH / ACCOUNT ===== */

.auth-page {
  padding: 54px 0 76px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}

.auth-card,
.auth-info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 40px;
}

.auth-head {
  margin-bottom: 28px;
}

.auth-card h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.auth-subtitle {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

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

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 850;
  color: var(--text);
  font-size: 14px;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  background: #fafafa;
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.auth-form input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 103, 71, 0.08);
}

.auth-form input::placeholder {
  color: #9aa0a6;
}

.auth-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  min-height: 54px;
  font-size: 16px;
}

.auth-switch {
  margin: 24px 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.form-error {
  background: #fdecec;
  color: #991b1b;
  border: 1px solid #f3b7b7;
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 18px;
  font-weight: 800;
}

.auth-info-card {
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(0, 103, 71, 0.12), transparent 36%),
    #ffffff;
}

.auth-info-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 22px;
}

.auth-info-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.auth-info-card ul {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.auth-info-card li {
  color: var(--text);
  font-weight: 750;
}

.auth-info-card li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  margin-right: 8px;
}

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

@media (max-width: 920px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-info-card {
    order: -1;
  }
}

@media (max-width: 720px) {
  .auth-page {
    padding: 32px 0 56px;
  }

  .auth-card,
  .auth-info-card {
    border-radius: 22px;
    padding: 26px;
  }
}

/* ===== LOGIN PAGE ===== */

.login-page {
  min-height: calc(100vh - 120px);
  padding: 70px 20px 90px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background:
    radial-gradient(circle at top left, rgba(0, 103, 71, 0.08), transparent 34%),
    linear-gradient(180deg, #f7f7f3 0%, #ffffff 100%);
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(8, 17, 31, 0.10);
  padding: 38px;
}

.login-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.login-back:hover {
  color: var(--accent);
}

.login-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(38px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.login-subtitle {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

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

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form label span {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.login-form input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 16px;
  background: #fafafa;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.login-form input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 103, 71, 0.10);
}

.login-form input::placeholder {
  color: #9aa0a6;
}

.login-submit {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 103, 71, 0.24);
  background: #005c3f;
}

.login-footer-text {
  margin-top: 26px;
  text-align: center;
}

.login-footer-text p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.login-footer-text a {
  color: var(--accent);
  font-weight: 950;
  text-decoration: none;
}

.login-footer-text a:hover {
  text-decoration: underline;
}

.login-footer-text small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .login-page {
    padding: 36px 16px 60px;
    align-items: flex-start;
  }

  .login-card {
    padding: 28px;
    border-radius: 22px;
  }
}

/* ===== REGISTER CHECKBOX FIX ===== */

.register-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600 !important;
}

.register-checkbox input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  margin: 3px 0 0 0 !important;
  padding: 0 !important;
  accent-color: var(--accent);
  flex: 0 0 16px;
}

.register-checkbox span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.register-checkbox a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.register-checkbox a:hover {
  text-decoration: underline;
}

/* ===== CHECKOUT PAGE ===== */

.checkout-page {
  padding: 54px 0 80px;
}

.checkout-head {
  max-width: 900px;
  margin-bottom: 28px;
}

.checkout-head h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.checkout-head p {
  color: var(--muted);
}

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

.checkout-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.checkout-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

@media (max-width: 980px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .checkout-page {
    padding: 34px 0 56px;
  }

  .checkout-card {
    padding: 22px;
    border-radius: 20px;
  }
}

/* ===== CHECKOUT SUMMARY ===== */

.checkout-summary-list {
  display: grid;
  gap: 14px;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.checkout-summary-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.checkout-summary-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-summary-item span {
  font-weight: 900;
  white-space: nowrap;
}

.checkout-summary-totals {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.checkout-summary-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.checkout-summary-totals strong {
  color: var(--text);
}

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

.checkout-summary-total span,
.checkout-summary-total strong {
  color: var(--text);
  font-weight: 950;
}

/* ===== CHECKOUT FORM ===== */

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

.checkout-login-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  background: #fafafa;
}

.checkout-login-box h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.checkout-login-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-login-btn {
  white-space: nowrap;
}

.checkout-user-status {
  margin: 0;
  color: var(--muted);
}

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

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

.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.checkout-form input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 15px;
  background: #fafafa;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.checkout-form input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 103, 71, 0.09);
}

.checkout-grid {
  display: grid;
  gap: 16px;
}

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

.checkout-grid.postal-city {
  grid-template-columns: 0.45fr 1fr;
}

.checkout-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--muted) !important;
  font-size: 14px !important;
  line-height: 1.45;
  font-weight: 600 !important;
}

.checkout-checkbox input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin: 3px 0 0 0 !important;
  padding: 0 !important;
  flex: 0 0 16px;
  accent-color: var(--accent);
}

.checkout-checkbox span {
  color: var(--muted);
}

.checkout-checkbox a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.checkout-checkbox a:hover {
  text-decoration: underline;
}

.checkout-submit {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.checkout-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 103, 71, 0.24);
  background: var(--accent-dark);
}

@media (max-width: 720px) {
  .checkout-login-box {
    display: grid;
    gap: 14px;
  }

  .checkout-login-btn {
    width: 100%;
  }

  .checkout-grid.two,
  .checkout-grid.postal-city {
    grid-template-columns: 1fr;
  }

  .checkout-submit {
    min-height: 56px;
  }
}

/* ===== ORDER SUCCESS ===== */

.order-success-card {
  max-width: 760px;
  margin: 0 auto;
}

.order-success-card h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.order-success-text {
  color: var(--muted);
  margin-bottom: 22px;
}

.order-success-box {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: #fafafa;
  margin-bottom: 26px;
}

.order-success-box p {
  margin: 0 0 8px;
}

.order-success-box p:last-child {
  margin-bottom: 0;
}

.order-success-button {
  margin-top: 26px;
}

/* ===== PAYMENT OPTIONS ===== */

.payment-option {
  display: flex !important;
  align-items: flex-start;
  gap: 12px !important;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fafafa;
  cursor: pointer;
}

.payment-option input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 3px 0 0 0 !important;
  accent-color: var(--accent);
}

.payment-option strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.payment-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.payment-option-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ===== payment instructions ===== */

.payment-instructions h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.payment-instructions {
  margin-bottom: 26px;
}

/* ===== PAYPAL BUTTON ===== */

.paypal-button-container {
  display: none;
  margin-top: 8px;
}

.paypal-button-container.is-visible {
  display: block;
}

/* ===== ACCOUNT DROPDOWN ===== */

.account-dropdown {
  position: relative;
}

.account-dropdown summary {
  list-style: none;
}

.account-dropdown summary::-webkit-details-marker {
  display: none;
}

.account-summary {
  cursor: pointer;
}

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.14);
  padding: 10px;
  z-index: 9999;
}

.account-dropdown-user {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.account-dropdown-user strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.account-dropdown-user small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}

.account-dropdown-menu a,
.account-dropdown-menu button {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-dropdown-menu a:hover,
.account-dropdown-menu button:hover {
  background: #f3f3ef;
}

.account-dropdown-menu .danger-link {
  color: #b00020;
}

.account-dropdown-menu .danger-link:hover {
  background: rgba(176, 0, 32, 0.08);
}

@media (max-width: 720px) {
  .account-dropdown-menu {
    right: -52px;
    width: 230px;
  }
}

/* ===== DELETE ACCOUNT ===== */

.danger-submit {
  background: #b00020;
}

.danger-submit:hover {
  background: #8f001a;
  box-shadow: 0 16px 34px rgba(176, 0, 32, 0.22);
}

.login-small-link {
  margin: -6px 0 14px;
  text-align: right;
}

.login-small-link a {
  color: #007a4d;
  font-weight: 700;
  text-decoration: none;
}

.login-small-link a:hover {
  text-decoration: underline;
}

/* =========================
   CMS PAGE
========================= */

.cms-page {
  padding: 70px 0 90px;
}

.cms-page-container {
  max-width: 950px;
}

.cms-page-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.cms-page-header h1 {
  margin: 8px 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.cms-page-intro {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.72;
}

.cms-page-content {
  max-width: 780px;
  padding: 36px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  line-height: 1.75;
}

.cms-page-content h2 {
  margin: 38px 0 14px;
  font-size: 28px;
  line-height: 1.2;
}

.cms-page-content h2:first-child {
  margin-top: 0;
}

.cms-page-content h3 {
  margin: 30px 0 12px;
  font-size: 21px;
}

.cms-page-content p {
  margin: 0 0 18px;
}

.cms-page-content ul,
.cms-page-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.cms-page-content li {
  margin-bottom: 8px;
}

.cms-page-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cms-page-content strong {
  font-weight: 700;
}

@media (max-width: 700px) {
  .cms-page {
    padding: 42px 0 65px;
  }

  .cms-page-header {
    margin-bottom: 30px;
  }

  .cms-page-content {
    padding: 24px 20px;
  }
}

/* =========================
   EXTRA PAGES DROPDOWN
========================= */

.extra-pages-dropdown {
  position: relative;
}

.extra-pages-dropdown summary {
  list-style: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 8px 0;
}

.extra-pages-dropdown summary::-webkit-details-marker {
  display: none;
}

.extra-pages-dropdown summary::after {
  content: " ▾";
  font-size: 12px;
}

.extra-pages-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

.extra-pages-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.extra-pages-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
}