
/* ====== Подключение шрифтов ====== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@300;400;600&display=swap');

/* ====== Переменные цвета и базовые настройки ====== */
:root{
  --bg: #f3f6f8;
  --surface: #ffffff;
  --muted: #9aa3ad;
  --accent: #caa97f; /* бежевый кнопок */
  --dark: #2f3b48; /* тёмно-синий/серый текст */
  --card-shadow: 0 8px 20px rgba(45,55,72,0.08);
  --card-shadow-strong: 0 18px 40px rgba(45,55,72,0.12);
  --radius: 12px;
  --nav-width: 220px;
}

/* Сброс */
*{box-sizing:border-box}
html{font-size:16px;scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--dark);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.4;
}

/* Стили ссылок и кнопок (общие) */
a{color:inherit;text-decoration:none}
button{font-family:inherit;border:0;background:none;cursor:pointer}
button:focus, a:focus{outline:3px solid rgba(202,169,127,0.18);outline-offset:3px}

/*  HEADER  */
header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:36px 64px;
  min-height:420px;
  background-image: url('assets/img/Баннер.png');
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
  color:var(--surface);
  position:relative;
}

/* полупрозрачная накладка, чтобы текст был читаем */
header::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(15,20,30,0.45) 0%, rgba(15,20,30,0.15) 40%, rgba(255,255,255,0.0) 100%);
  pointer-events:none;
}

/* блок навигации справа (flex) */
.header-cart{
  z-index:2;
  display:flex;
  flex-direction: column;
  align-items:flex-start;
  gap:18px;
  margin-left:auto;

}

.coffee-title {
    position: absolute;
    bottom: 80px;
    left: 60px;
    text-transform: uppercase;
    font-size: 55px;
    font-weight: 800;
    color: #2c3148;
    width: 300px;
    line-height: 1.1;
}

.coffee-title::after {
    content: "PERSONALIZED";
    position: absolute;
    top: 60px;
    left: 0;
    font-size: 48px;
    background: #d9b07c;
    padding: 4px 8px;
    text-transform: uppercase;
}


/* кнопка корзины */
.header-cart .aria-labicon-button img{width:30px;height:30px;display:block; transform:translateX(85px)}
.header-cart .aria-labicon-button:hover{transform:translateY(-2px)}
.header-cart .aria-labicon-button:active{transform:translateY(0)}

/* Навигация — flex горизонтальная и компактная */
nav.nav{
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:flex-end;
  text-transform:uppercase;
  font-weight:600;
  letter-spacing:0.06em;
  color:var(--surface);
}

/* поверх фона — видна */
nav.nav a{opacity:0.9}
nav.nav a:hover{opacity:1;text-decoration:underline}


/* ====== MAIN LAYOUT ====== */
main{max-width:1140px;margin:40px auto;padding:0 24px}

/* Секция: общий заголовок */
.products-section-container > p,
.products-section-favorite > p,
.products-section-gift > p,
.products-section-combo > p{
  text-align:center;
  color:var(--muted);
  margin:36px 0 6px;
  font-weight:600;
  letter-spacing:0.04em;
}

/* Универсальные заголовки */
.section-title{
  text-align:center;
  font-family:"Montserrat", sans-serif;
  text-transform:uppercase;
  font-weight:800;
  letter-spacing:0.06em;
  color:var(--dark);
  margin:0 0 28px;
  font-size:22px;
}

/* ====== Grid (равномерная) для блока feature (четыре карточки) ====== */
.products-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
  align-items:start;
}

/* Карточка feature */
.product-card{
  background:var(--surface);
  padding:22px;
  border-radius:12px;
  box-shadow:var(--card-shadow);
  text-align:center;
  transition:transform .22s, box-shadow .22s;
}
.product-card:hover{transform:translateY(-8px);box-shadow:var(--card-shadow-strong)}
.product-image{width:56px;height:56px;object-fit:contain;margin:8px auto}
.product-name{font-weight:700;margin:10px 0;color:var(--dark)}
.product-description{color:var(--muted);font-size:14px;line-height:1.45}

/* ====== Grid для Favorite (карточки товара с картинкой и ценой) ====== */
.products-grid-favorite{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:26px;
  margin-top:8px;
}

/* карточки товаров (фаворит) */
.product-card-fav{
  background:var(--surface);
  padding:20px;
  border-radius:8px;
  box-shadow:var(--card-shadow);
  display:flex;
  gap:18px;
  align-items:center;
  transition:transform .18s, box-shadow .18s;
}
.product-card-fav:hover{transform:translateY(-6px);box-shadow:var(--card-shadow-strong)}

/* картинка слева внутри карточки */
.card-fav{width:110px;height:110px;object-fit:contain;background:#f6f7f9;padding:12px;border-radius:8px}

/* цена и текст */
.product-price-fav{margin:0;font-weight:700;color:var(--accent);font-size:14px}
.product-name{margin:2px 0 6px;font-weight:700;text-transform:capitalize}
.product-description-fav{color:var(--muted);font-size:14px;line-height:1.4;margin:6px 0 14px;}

/* кнопки */
.bn{
  background:var(--accent);
  color:#fff;
  padding:9px 16px;
  border-radius:24px;
  font-weight:700;
  box-shadow:0 6px 18px rgba(202,169,127,0.12);
}
.bn:hover{transform:translateY(-3px)}
.bn:active{transform:translateY(0)}

/* вторая кнопка — детали */
.det{
  background:transparent;
  color:var(--dark);
  padding:8px 12px;
  border-radius:6px;
  margin-left:12px;
  font-weight:600;
}
.det:hover{
  color:var(--accent);
  text-decoration:underline
}

/* ====== Giftset — одна большая карточка ====== */


.product-card-gift{
  gap:22px;
  padding:35px;
  background:var(--surface);
  border-radius:12px;
  box-shadow:var(--card-shadow);
  max-width:500px;
  margin:0 auto 24px;
}

.product-gift{
  width:220px;
  height:auto;
  object-fit:cover;
  border-radius:8px
}

.product-ic{
  width:20px;
  height:20px;
  vertical-align:middle;
  margin-right:8px
}

.type-semen, .type-high{
  display:inline-block;
  color:var(--muted);
  margin-right:18px;
  font-size:13px
}

/* ====== Combo grid — masonry like (используем grid-auto-rows) ====== */
.products-grid-combo{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
  align-items:start;
  margin-top:8px;
}

/* карта комбо */
.product-card-combo{
  background:var(--surface);
  padding: 25px;
  border-radius:12px;
  box-shadow:var(--card-shadow);
  overflow:hidden;
  transition:transform .18s, box-shadow .18s;
}
.product-card-combo:hover{transform:translateY(-8px);box-shadow:var(--card-shadow-strong)}
.product-combo{width:100%;height:200px;object-fit:contain;padding:18px;background:#f6f7f9}
.product-price-combo{font-weight:800;color:var(--accent);margin:12px 18px 0}
.product-price-fake{color:var(--muted);text-decoration:line-through;font-weight:500;margin-left:8px}

/* ====== Footer ====== */
footer{
  background-color: #9aa3ad;
  font-style: italic;
  text-align:center;
  font-size:14px;
  padding: 5px;
}


nav.nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
}

  html, body {
    width: 100%;
    min-width: 100vw;
    overflow-x: hidden;
}

header, footer {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
}

