*,
*::before,
*::after { box-sizing: border-box; }
body { font-family: Arial, sans-serif; margin: 0; color: #202124; background: #fff; overflow-x: hidden; }
/* Space for fixed footer so content is not hidden behind it */
main { padding-bottom: 280px; }
.container { width: min(1180px, 92%); margin: 0 auto; }

.top-header { background: #155402; color: #fff; padding: 18px 0; }
.top-header .container { width: 100%; padding: 0 10px 0 14px; margin: 0; }
.top-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-left { display: flex; align-items: center; gap: 14px; }
.header-right { display: flex; align-items: center; margin-left: auto; min-width: 0; }
.site-logo { width: 62px; height: 62px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); }
.brand h1 { margin: 0; font-size: 42px; }
.brand p { margin: 2px 0 0; font-size: 15px; }
.contact-items { display: flex; gap: 12px; font-size: 13px; flex-wrap: wrap; }

.main-nav { background: #222428; border-top: 1px solid rgba(255,255,255,.15); }
.nav-inner { display: flex; align-items: center; gap: 10px; }
.main-nav a { color: #fff; text-decoration: none; padding: 16px 18px; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.main-nav a.active, .main-nav a:hover { color: #7ac943; }
.auth-links { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.auth-links a { border: 1px solid rgba(255,255,255,.35); padding: 8px 12px; font-size: 12px; }
.auth-links a.active-auth { background: #7ac943; color: #1a1c1f; border-color: #7ac943; }
.welcome-text { color: #fff; font-size: 13px; margin-right: 4px; }

.flash-wrap { margin: 18px auto; }
.flash-message { margin: 0 0 10px; padding: 10px 12px; border: 1px solid transparent; }
.flash-error { background: #fde8e8; border-color: #f0b7b7; color: #862c2c; }
.flash-success { background: #e9f8e5; border-color: #92cd86; color: #0e5a00; }

.hero { min-height: 520px; position: relative; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; }
.hero-track { display: flex; width: 500%; height: 100%; animation: hero-slide-left 50s infinite; }
.hero-slide { width: 20%; height: 100%; background-size: cover; background-position: center; }
.slide-1 { background-image: url("https://images.unsplash.com/photo-1493238792000-8113da705763?auto=format&fit=crop&w=1700&q=80"); }
.slide-2 { background-image: url("https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&w=1700&q=80"); }
.slide-3 { background-image: url("https://images.unsplash.com/photo-1502877338535-766e1452684a?auto=format&fit=crop&w=1700&q=80"); }
.slide-4 { background-image: url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1700&q=80"); }
.slide-5 { background-image: url("https://images.unsplash.com/photo-1617788138017-80ad40651399?auto=format&fit=crop&w=1700&q=80"); }
@keyframes hero-slide-left {
  0%,18%{transform:translateX(0)} 20%,38%{transform:translateX(-20%)}
  40%,58%{transform:translateX(-40%)} 60%,78%{transform:translateX(-60%)}
  80%,98%{transform:translateX(-80%)} 100%{transform:translateX(0)}
}
.hero-overlay { position: relative; z-index: 1; min-height: 520px; display: flex; align-items: center; background: linear-gradient(rgba(30,34,40,.46), rgba(30,34,40,.46)); }
.hero-content { color: #fff; }
.hero-content h2 { font-size: 58px; margin: 0; }
.hero-content p { width: min(620px, 100%); font-size: 22px; margin: 18px 0 28px; line-height: 1.35; }
.cta-btn { display: inline-block; text-decoration: none; border: 2px solid #fff; color: #fff; padding: 14px 30px; font-weight: 700; font-size: 13px; }
.cta-btn:hover { background: #fff; color: #333; }

.search-section, .contact-page, .auth-page { background: #f4f4f4; padding: 42px 0 56px; }
.search-section h3, .order-section h3 { margin: 0; font-size: 40px; }

.order-section { background: #fff; padding: 44px 0 56px; }
.about-section { background: #fff; padding: 44px 0 56px; }
.about-section h2 { margin: 0 0 18px; font-size: 38px; }
.about-section h3 { margin: 24px 0 10px; font-size: 24px; color: #155402; }
.about-section p { margin: 0; line-height: 1.7; color: #28323c; max-width: 980px; }
.order-steps { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.order-step, .info-card, .contact-form-wrap, .auth-card { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.order-step { border-left: 4px solid #155402; padding: 16px; }
.order-step h4 { margin: 0 0 8px; font-size: 19px; }
.order-step p { margin: 0; line-height: 1.45; color: #28323c; }

.contact-page h2, .auth-card h2 { margin: 0 0 22px; font-size: 36px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(230px, 1fr)); gap: 16px; margin-bottom: 28px; }
.info-card { border-left: 4px solid #155402; padding: 18px; }
.info-card h3 { margin: 0 0 8px; }
.info-card p { margin: 0; }
.contact-form-wrap, .auth-card { padding: 24px; }
.auth-card { max-width: 620px; margin: 0 auto; }
.auth-card .form-section-title {
  margin: 20px 0 10px;
  font-size: 19px;
  color: #155402;
}
.auth-card .form-section-title:first-of-type { margin-top: 0; }
.form-help-tight { margin: 0 0 12px; font-size: 13px; color: #4b5866; line-height: 1.4; }
.profile-card { max-width: 640px; }
.contact-form { display: grid; gap: 10px; }
.contact-form label { font-weight: 700; font-size: 14px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 10px; border: 1px solid #cfd3d8; font: inherit; }
.contact-submit { border-color: #155402; background: #155402; color: #fff; width: fit-content; cursor: pointer; }
.contact-submit:hover { background: #0f4001; color: #fff; }

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.15);
  background: #1f2328;
  color: #d9dde3;
  margin-top: 0;
}
.site-footer > .container.footer-grid { width: min(1050px, 94%); margin-inline: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  padding: 36px 0 32px;
  justify-items: center;
}
.footer-block {
  width: 100%;
  max-width: 300px;
  text-align: left;
}
.footer-block h3 { margin: 0 0 12px; color: #fff; font-size: 18px; text-align: left; }
.footer-block p { margin: 0; line-height: 1.65; font-size: 14px; text-align: left; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: #b7bec7; }

.admin-dashboard-page { background: #f4f4f4; padding: 42px 0 56px; }
.admin-dashboard-page h2 { margin: 0 0 10px; font-size: 36px; }
.admin-dashboard-page > .container > p { margin: 0 0 22px; color: #4b5866; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 16px; }
.dashboard-card { background: #fff; border-left: 4px solid #155402; box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 18px; }
.dashboard-card h3 { margin: 0 0 10px; font-size: 20px; }
.dashboard-card p { margin: 0 0 8px; line-height: 1.5; color: #28323c; }
.logs-card { margin-top: 18px; border-left-color: #1f2328; }
.log-table-wrap { overflow-x: auto; }
.log-table { width: 100%; border-collapse: collapse; }
.log-table th, .log-table td { border: 1px solid #d9dee4; padding: 10px; text-align: left; font-size: 14px; vertical-align: top; }
.log-table th { background: #f1f4f7; }
.admin-back { margin: 0 0 12px; }
.admin-back a { color: #155402; font-weight: 700; text-decoration: none; }
.admin-back a:hover { text-decoration: underline; }
.dashboard-card-wide { grid-column: 1 / -1; }
.msg-count { margin: 0 0 12px; color: #4b5866; font-size: 14px; }
.contact-msg-table .msg-cell {
  max-width: min(420px, 40vw);
  white-space: pre-wrap;
  word-break: break-word;
  vertical-align: top;
}

.lang-switch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-right: 8px;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  text-transform: none;
  font-weight: 600;
}
.lang-switch .lang-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  padding: 0 4px;
}
.lang-switch .lang-link:hover {
  color: #7ac943;
  text-decoration: none;
}
.lang-switch .lang-link.is-active {
  color: #7ac943;
  text-decoration: underline;
  font-weight: 700;
}

.admin-toolbar { margin: 0 0 20px; }
.admin-toolbar .cta-btn { text-decoration: none; display: inline-block; }
.admin-product-form-card { margin-top: 8px; }
/* Product list: use more of the viewport than the default 1180px site container */
.admin-products-page > .container {
    width: min(1680px, 98vw);
    max-width: 100%;
}
/* No inner horizontal scrollbar: table fits the wide container; long text wraps */
.admin-products-page .log-table-wrap {
    overflow-x: visible;
}
.admin-products-page .product-table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
    word-wrap: break-word;
}
.admin-products-page .product-table th,
.admin-products-page .product-table td {
    overflow-wrap: anywhere;
    hyphens: auto;
}
.admin-products-page .product-table .product-thumb,
.admin-products-page .product-table .product-thumb-placeholder {
    max-width: 100%;
}
.product-table .col-actions { white-space: nowrap; }
.admin-action-link { color: #155402; font-weight: 700; text-decoration: none; margin-right: 12px; }
.admin-action-link:hover { text-decoration: underline; }
.inline-delete-form { display: inline; }
.product-thumb {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #d9dee4;
  background: #f1f4f7;
}
.product-thumb-placeholder {
  display: inline-block;
  font-size: 12px;
  color: #6d7782;
  min-width: 68px;
}
.admin-btn-delete {
  background: #8b1a1a;
  color: #fff;
  border: 1px solid #6d1414;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
}
.admin-btn-delete:hover { background: #6d1414; }

.form-section-title { margin: 28px 0 12px; font-size: 18px; color: #155402; border-bottom: 1px solid #dde2e8; padding-bottom: 6px; }
.form-help { margin: 0 0 12px; font-size: 13px; color: #5a6570; line-height: 1.45; }
.product-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; margin-bottom: 16px; }
.product-photo-tile { background: #f4f4f4; padding: 8px; border-radius: 4px; text-align: center; }
.product-photo-tile img { width: 100%; height: 100px; object-fit: cover; border-radius: 2px; display: block; margin-bottom: 8px; }
.photo-remove-label { font-size: 12px; cursor: pointer; display: block; }
.product-doc-list { margin: 0 0 16px; padding-left: 1.2em; line-height: 1.8; }
.doc-remove-label { margin-left: 10px; font-size: 13px; cursor: pointer; }

.product-form-wizard { margin-top: 4px; }
.wizard-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: #eef2f6;
  border-radius: 6px;
  border: 1px solid #dde2e8;
}
.wizard-progress-title { margin: 0; font-size: 15px; font-weight: 700; color: #155402; }
.wizard-progress-dots { display: flex; gap: 8px; align-items: center; }
.wizard-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b8c0ca;
  transition: background 0.15s, transform 0.15s;
}
.wizard-dot.is-active { background: #155402; transform: scale(1.2); }
.product-form-step { display: none; }
.product-form-step.is-active { display: block; }
.product-form-step .form-section-title:first-child { margin-top: 0; }
.product-form-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid #eef0f3;
  align-items: center;
}
.btn-wizard-secondary {
  border: 1px solid #9aa3ad;
  background: #fff;
  color: #333;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.btn-wizard-secondary:hover { background: #f4f4f4; }

@media (max-width: 992px) {
  .brand h1 { font-size: 32px; }
  .contact-items { font-size: 12px; gap: 8px; }
  .site-logo { width: 52px; height: 52px; }
  .hero-content h2 { font-size: 46px; }
  .hero-content p { font-size: 18px; }
  .contact-grid, .order-steps, .footer-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .site-footer > .container.footer-grid { width: min(1180px, 92%); }
  .footer-block { max-width: 420px; }
  main { padding-bottom: 360px; }
}
@media (max-width: 720px) {
  .top-header .container { padding: 0 10px; }
  .main-nav a { padding: 14px 10px; font-size: 11px; }
  .auth-links { width: 100%; margin-left: 0; }
  .hero, .hero-overlay { min-height: 430px; }
  .hero-content h2 { font-size: 34px; }
  .hero-content p { font-size: 16px; margin: 12px 0 20px; }
  main { padding-bottom: 420px; }
}
