:root {
  --ivory: #f7f2e9;
  --charcoal: #1f1c1a;
  --espresso: #34261d;
  --amber: #c98a41;
  --amber-soft: #ddb67d;
  --ink: #2e2c2b;
  --stone: #7f7165;
  --paper: #fffdf8;
  --line: rgba(52, 38, 29, 0.15);
  --danger: #b24735;
  --glow: 0 24px 70px rgba(31, 28, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Work Sans', sans-serif;
  color: var(--ink);
  background: linear-gradient(115deg, #f8efe0 0%, #f2ebdf 32%, #ece4d9 100%);
  min-height: 100vh;
}

h1,
h2,
h3,
.brand-mark {
  font-family: 'Bodoni Moda', serif;
  letter-spacing: 0.02em;
}

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

.site-body {
  position: relative;
  overflow-x: hidden;
}

.lux-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 138, 65, 0.35), transparent 32%),
    radial-gradient(circle at 10% 80%, rgba(160, 111, 53, 0.28), transparent 24%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.85), rgba(244, 233, 217, 0.8));
  pointer-events: none;
}

.site-header {
  width: min(1160px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: var(--glow);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.22rem;
  font-weight: 700;
}

.brand-logo {
  width: 2.2rem;
  height: 2.2rem;
  display: block;
}

.site-nav {
  display: inline-flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--espresso);
  transition: background 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover {
  background: rgba(201, 138, 65, 0.16);
  transform: translateY(-1px);
}

.site-nav a.is-active {
  background: rgba(52, 38, 29, 0.92);
  color: #fff;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 38, 29, 0.2);
  background: #fff;
}

.cart-pill-count {
  display: inline-flex;
  min-width: 1.45rem;
  min-height: 1.45rem;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-size: 0.8rem;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.language-pill {
  display: inline-flex;
  border: 1px solid rgba(52, 38, 29, 0.2);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
}

.language-pill a {
  padding: 0.42rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--espresso);
}

.language-pill a.is-active {
  background: rgba(52, 38, 29, 0.92);
  color: #fff;
}

.page-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 1.2rem auto 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 245, 225, 0.78));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.2rem, 3vw, 2.3rem);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.2rem;
  box-shadow: var(--glow);
}

.hero-copy {
  align-self: center;
}

.hero-label {
  margin: 0;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  margin: 0.6rem 0 1rem;
  max-width: 13ch;
  color: var(--charcoal);
  line-height: 1.04;
}

.hero p {
  max-width: 58ch;
  color: var(--stone);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  min-height: 260px;
  border-radius: 22px;
  border: 1px solid rgba(52, 38, 29, 0.12);
  background: linear-gradient(145deg, rgba(53, 38, 28, 0.97), rgba(90, 60, 34, 0.95));
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-one {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, #ffd08a, #9b5f21);
  top: -42px;
  left: -52px;
  animation: float 8s ease-in-out infinite;
}

.orb-two {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 20% 20%, #f3dfbe, #835028);
  right: -60px;
  bottom: -72px;
  animation: float 9s ease-in-out infinite reverse;
}

.hero-card {
  position: absolute;
  left: 1.3rem;
  bottom: 1.2rem;
  right: 1.3rem;
  border: 1px solid rgba(255, 239, 214, 0.42);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: rgba(255, 247, 233, 0.08);
  backdrop-filter: blur(2px);
  color: #fbf4e7;
}

.hero-card span {
  display: block;
  opacity: 0.85;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.24rem;
}

.section-head,
.page-head,
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.section-head h2,
.page-head h1,
.admin-head h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
}

.section-head a,
.page-head p,
.admin-head p {
  color: var(--stone);
  margin: 0;
}

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

.product-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.88);
  box-shadow: 0 18px 45px rgba(44, 29, 19, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(44, 29, 19, 0.12);
}

.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.product-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 250px;
}

.product-tag {
  margin: 0;
  color: var(--amber);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  line-height: 1.3;
}

.product-content h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.2;
  min-height: 3em;
}

.product-content h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price,
.detail-price,
.row-total {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--espresso);
}

.stock-pill {
  margin: 0;
  width: fit-content;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 38, 29, 0.18);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
  color: #23482f;
}

.stock-pill.is-out {
  color: var(--danger);
  border-color: rgba(178, 71, 53, 0.34);
  background: rgba(255, 241, 238, 0.88);
}

.card-actions,
.summary-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.card-actions {
  margin-top: auto;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, #b37432, #8c5622);
  color: #fff;
}

.btn-secondary {
  background: rgba(52, 38, 29, 0.92);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(52, 38, 29, 0.24);
  background: #fff;
  color: var(--espresso);
}

.btn-danger {
  background: rgba(178, 71, 53, 0.12);
  border-color: rgba(178, 71, 53, 0.32);
  color: var(--danger);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.detail-media,
.detail-info,
.checkout-form,
.success-box,
.cart-summary,
.empty-state,
.admin-form,
.stat-card,
.admin-table,
.error-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 245, 0.9);
  box-shadow: var(--glow);
}

.detail-media {
  margin: 0;
  overflow: hidden;
  padding: 0.8rem;
  display: grid;
  gap: 0.7rem;
}

.detail-main-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(52, 38, 29, 0.18);
  background: rgba(255, 255, 255, 0.85);
  aspect-ratio: 4 / 5;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-main-video {
  width: 100%;
  height: 100%;
  background: #13100d;
  display: block;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.45rem;
}

.detail-thumb {
  position: relative;
  border: 1px solid rgba(52, 38, 29, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-thumb:hover {
  transform: translateY(-2px);
}

.detail-thumb.is-active {
  border-color: rgba(140, 86, 34, 0.7);
  box-shadow: 0 0 0 2px rgba(201, 138, 65, 0.2);
}

.detail-thumb img {
  width: 100%;
  height: 68px;
  min-height: 68px;
  object-fit: cover;
  border-radius: 8px;
}

.detail-thumb-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 13, 8, 0.78);
  color: #fff;
  font-size: 0.65rem;
}

.detail-info {
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.detail-header {
  display: grid;
  gap: 0.45rem;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.9vw, 2.2rem);
}

.detail-description-box {
  border-radius: 14px;
  border: 1px solid rgba(52, 38, 29, 0.14);
  background: rgba(255, 255, 255, 0.76);
  padding: 0.8rem;
}

.detail-description {
  margin: 0;
  color: var(--stone);
  line-height: 1.55;
  white-space: pre-line;
}

.detail-specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.detail-specs div {
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(52, 38, 29, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.detail-specs dt {
  color: var(--stone);
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.detail-specs dd {
  margin: 0;
  font-weight: 600;
}

.buy-box {
  display: flex;
  align-items: end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.buy-box label,
.checkout-form label,
.admin-form label,
.admin-login-card label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
  color: var(--espresso);
}

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

input,
select,
textarea {
  border: 1px solid rgba(52, 38, 29, 0.18);
  border-radius: 10px;
  background: #fff;
  padding: 0.62rem 0.75rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(140, 86, 34, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 138, 65, 0.16);
}

.cart-list {
  display: grid;
  gap: 0.7rem;
}

.cart-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 245, 0.88);
  display: grid;
  grid-template-columns: 90px 1.4fr auto auto auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem;
}

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

.cart-row h3 {
  margin: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cart-row > div {
  min-width: 0;
}

.cart-row p {
  margin: 0.24rem 0 0;
  color: var(--stone);
}

.cart-row .stock-pill {
  margin-top: 0.42rem;
}

.quantity-form {
  display: grid;
  align-items: center;
  gap: 0.35rem;
}

.quantity-form input {
  width: 86px;
}

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

.cart-summary p,
.cart-summary h2 {
  margin: 0;
}

.checkout-form,
.admin-form,
.admin-login-card form {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.checkout-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-form label:last-of-type,
.checkout-form button,
.admin-form label:nth-child(3),
.admin-form button {
  grid-column: 1 / -1;
}

.error-box {
  padding: 1rem;
  color: var(--danger);
}

.error-box h2,
.error-box ul {
  margin: 0;
}

.error-box ul {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.success-box,
.empty-state {
  padding: 1.3rem;
  text-align: center;
}

.success-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.success-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

.site-footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto 2.4rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.9);
  text-align: center;
  color: var(--stone);
}

.footer-contacts {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-contacts a {
  color: var(--espresso);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.has-reveal-js .reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
}

body.has-reveal-js .reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.admin-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
}

.admin-sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.92);
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar nav {
  display: grid;
  gap: 0.4rem;
}

.admin-sidebar nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
}

.admin-sidebar nav a.is-active,
.admin-sidebar nav a:hover {
  border-color: rgba(52, 38, 29, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.admin-main {
  padding: 1.2rem 1.2rem 1.6rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  padding: 1rem;
}

.stat-card p,
.stat-card h2 {
  margin: 0;
}

.stat-card p {
  color: var(--stone);
}

.stat-card h2 {
  margin-top: 0.5rem;
  font-size: 2.2rem;
}

.admin-table {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(52, 38, 29, 0.14);
  padding: 0.75rem;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--stone);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.actions-cell {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.admin-login-card {
  width: min(460px, 100%);
  padding: 1.3rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 245, 0.95);
  box-shadow: var(--glow);
}

.admin-login-card h1,
.admin-login-card p,
.login-error {
  margin: 0 0 0.7rem;
}

.login-error {
  color: var(--danger);
}

.admin-login-card input {
  color: var(--ink);
  color-scheme: light;
}

.site-header,
.hero,
.site-footer,
.admin-sidebar,
.admin-main {
  animation: fade-slide 0.7s ease both;
}

.hero-art {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-art:hover {
  box-shadow: 0 26px 60px rgba(23, 14, 7, 0.26);
}

.product-card,
.stat-card,
.admin-panel,
.cart-row,
.detail-info,
.checkout-form,
.admin-table {
  position: relative;
  overflow: hidden;
}

.product-card::after,
.stat-card::after,
.admin-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.38), transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.9s ease;
  pointer-events: none;
}

.product-card:hover::after,
.stat-card:hover::after,
.admin-panel:hover::after {
  transform: translateX(110%);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -120%;
  width: 42%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-24deg);
}

.btn:hover::after {
  animation: btn-shine 0.8s ease;
}

@keyframes float {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes reveal-up {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes btn-shine {
  0% {
    left: -120%;
  }
  100% {
    left: 150%;
  }
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  display: grid;
  gap: 0.5rem;
  border: 1px solid rgba(52, 38, 29, 0.22);
}

.stat-card-accent {
  background: linear-gradient(145deg, rgba(255, 249, 239, 0.98), rgba(255, 241, 214, 0.9));
}

.stat-card-profit {
  background: linear-gradient(145deg, rgba(32, 52, 38, 0.9), rgba(44, 74, 53, 0.88));
}

.stat-card-profit p,
.stat-card-profit h2 {
  color: #eefbf2;
}

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

.admin-panel {
  border: 1px solid rgba(52, 38, 29, 0.18);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: var(--glow);
  padding: 1rem;
}

.admin-panel h3 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
}

.panel-empty {
  margin: 0;
  color: var(--stone);
}

.status-stack {
  display: grid;
  gap: 0.65rem;
}

.status-row {
  display: grid;
  gap: 0.4rem;
}

.status-row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.status-row-top span {
  color: var(--stone);
  font-size: 0.9rem;
}

.status-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(52, 38, 29, 0.12);
  overflow: hidden;
}

.status-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(120deg, #d79c56, #9f5f26);
}

.trend-bars {
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: end;
  gap: 0.35rem;
}

.trend-item {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.trend-bar {
  width: 100%;
  min-height: 3px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #cb8d47, #7f4519);
  transition: transform 0.25s ease;
}

.trend-item:hover .trend-bar {
  transform: translateY(-4px);
}

.trend-item small {
  color: var(--stone);
  font-size: 0.72rem;
}

.top-products-list,
.recent-orders-list {
  display: grid;
  gap: 0.55rem;
}

.top-product-row,
.recent-order-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(52, 38, 29, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.top-product-row small,
.recent-order-row small {
  display: block;
  color: var(--stone);
}

.recent-order-right {
  text-align: right;
}

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

.promo-card,
.why-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 245, 0.9);
  box-shadow: var(--glow);
  padding: 1rem;
}

.promo-card h2,
.why-card h2 {
  margin: 0;
  font-size: 1.34rem;
}

.promo-card p,
.why-card p {
  margin: 0.6rem 0 0;
  color: var(--stone);
  line-height: 1.56;
}

.why-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--stone);
  display: grid;
  gap: 0.4rem;
}

.contact-list {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.42rem;
}

.contact-list a {
  color: var(--espresso);
  text-decoration: none;
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-main-image,
  .detail-main-video,
  .detail-media img {
    min-height: 0;
  }

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

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

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    grid-template-rows: auto;
  }

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

  .stats-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .promo-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

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

  .cart-row {
    grid-template-columns: 74px 1fr;
    align-items: start;
  }

  .cart-row img {
    width: 74px;
    height: 74px;
  }

  .cart-row form,
  .cart-row .row-total {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

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

  .page-head,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-head p {
    max-width: 100%;
  }

  .cart-pill-label {
    display: none;
  }

  .cart-pill {
    padding: 0.48rem 0.62rem;
    min-width: 2.35rem;
    justify-content: center;
  }

  .footer-contacts {
    flex-direction: column;
    gap: 0.34rem;
  }

  .stats-grid-4 {
    grid-template-columns: 1fr;
  }

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

  .admin-head {
    align-items: start;
    flex-direction: column;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  table {
    min-width: 640px;
  }

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

  .trend-bars {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-height: 170px;
  }
}
