:root {
  --bg-main: #f6f1e8;
  --bg-soft: #efe3cc;
  --bg-card: #fffaf2;
  --bg-dark: #5f4332;
  --bg-accent: #d79a49;
  --bg-accent-2: #ebbf7d;
  --bg-accent-3: #b87444;

  --text-main: #2f241c;
  --text-soft: #6d5a4a;

  --footer-bg: #4e3729;
  --white: #ffffff;

  --shadow: 0 14px 34px rgba(95, 67, 50, 0.10);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

main {
  flex: 1;
  display: block;
}

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

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

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

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

/* HEADER */
.site-header {
  background: rgba(95, 67, 50, 0.96);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(60, 40, 28, 0.12);
}

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

.brand {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

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

.header-nav a {
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.header-nav a:hover {
  color: var(--white);
}

/* BUTTONS */
.btn-bread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: var(--bg-accent);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: inset 0 -6px 0 #a76c2f;
}

.btn-bread:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 -10px 0 #a76c2f;
}

.btn-bread:active {
  transform: translateY(1px);
  box-shadow: inset 0 -3px 0 #a76c2f;
}

.cart-button,
.footer-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* FOOTER */
.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.92);
  padding: 28px 0;
}

.footer-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--white);
}

.footer-info {
  line-height: 1.7;
}

/* UNIVERSAL BLOCKS */
.content-card,
.sidebar-block,
.content-block,
.hero-card,
.product-card,
.cart-row,
.cart-block,
.checkout-block,
.admin-login-card,
.admin-sidebar,
.admin-panel,
.order-card,
.admin-product-card,
.feature-card,
.about-content {
  background: var(--bg-card);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
}

/* FORMS */
input,
textarea,
select {
  width: 100%;
  border: 0;
  outline: none;
  padding: 14px 16px;
  background: #fff;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(215, 154, 73, 0.20);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-message {
  min-height: 24px;
  color: var(--bg-accent-3);
  font-weight: 700;
}

.empty-state {
  margin-top: 20px;
  padding: 24px;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
  color: var(--text-soft);
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--text-main);
}

p {
  color: var(--text-soft);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 16px 0;
  }

  .header-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .brand {
    text-align: center;
  }

  .cart-button,
  .footer-admin-btn,
  .btn-bread {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1180px, calc(100% - 20px));
  }

  .brand {
    font-size: 28px;
  }

  .site-footer {
    padding: 22px 0;
  }
}