/* ===== BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #FAF8F5;
  color: #4E342E;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  background-color: #3E2723;
  color: #FAF8F5;
  padding: 20px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: bold;
}

.logo .brand {
  color: #D7A86E;
}

.header nav a,
.header nav button {
  margin-left: 20px;
  color: #FAF8F5;
  text-decoration: none;
  font-weight: 500;
}

.header nav button {
  background-color: transparent;
  border: 1px solid #D7A86E;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header nav button:hover {
  background-color: #D7A86E;
  color: #3E2723;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://i.pinimg.com/736x/b8/1e/df/b81edffa37e525163c73f62387d981fe.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  color: #FAF8F5;
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.5;
}

.btn-cta {
  display: inline-block;
  background-color: #D7A86E;
  color: #3E2723;
  padding: 15px 36px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-cta:hover {
  background-color: #B78C5A;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ===== SHOP ===== */
.shop h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin: 40px 0 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.product-item {
  position: relative;
  background-color: #FAF8F5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.product-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 15px;
  text-align: center;
}

.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 10px;
}

.product-info p {
  font-size: 18px;
  font-weight: bold;
  color: #3E2723;
}

.product-item .overlay {
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5);
  color: #FAF8F5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity:0;
  transition: opacity 0.3s ease;
}

.product-item:hover .overlay {
  opacity:1;
}

.product-info .add-to-cart {
  display: inline-block;
  background-color: #D7A86E;
  color: #3E2723;
  padding: 10px 24px; /* чуть меньше, чем большая CTA */
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-info .add-to-cart:hover {
  background-color: #B78C5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.overlay button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #D7A86E;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.overlay button:hover {
  background-color: #B78C5A;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  width: 100%;
  height: 1px;
  background: #D7A86E;
  margin: 100px 0;
  position: relative;
}
.section-divider::before {
  content: "КРИСТЕН.БРЕНД";
  position: absolute;
  left:50%;
  top:-16px;
  transform: translateX(-50%);
  background: #FAF8F5;
  padding: 0 20px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color:#3E2723;
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1 1 45%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.5s ease;
}

.about-image:hover {
  transform: scale(1.03);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  flex: 1 1 50%;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  margin-bottom: 15px;
  color: #3e2723;
}

.about-subtitle {
  font-size: 20px;
  color: #6d4c41;
  margin-bottom: 20px;
  font-style: italic;
}

.about-text p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.about-text ul {
  margin: 25px 0;
  padding-left: 0;
  list-style: none;
}

.about-text li {
  margin-bottom: 10px;
  font-size: 16px;
}

.about-text li::before {
  content: "— ";
  color: #8d6e63;
}

/* ===== CONTACT ===== */
.contact {
  background-color: #f9f6f4;
  padding: 120px 0;
  border-top: 1px solid #e0d6d0;
}

.contact-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  flex-wrap: wrap;
}

.contact-info {
  flex:1 1 40%;
  font-size:16px;
}

.contact-info a {
  color: #3e2723;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  border-bottom: 1px solid #3e2723;
  color: #5d4037;
}

.contact-form {
  flex: 1 1 50%;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form label {
  display: block;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d7ccc8;
  border-radius: 10px;
  margin-top:6px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline:none;
  border-color: #8d6e63;
  box-shadow: 0 0 0 3px rgba(141,110,99,0.2);
}

.contact-form button {
  width:100%;
  padding:15px;
  margin-top:15px;
  border:none;
  border-radius:10px;
  background-color:#D7A86E;
  color:#3E2723;
  font-weight:bold;
  cursor:pointer;
}

.contact-form button:hover {
  background-color:#B78C5A;
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(62,39,35,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #3E2723;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #D7A86E;
}

/* Список товаров */
#cart-items,
#checkout-summary-list,
#order-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

#cart-items li,
#checkout-summary-list li,
#order-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  color: #4E342E;
}

#cart-items li button {
  background: #D7A86E;
  border: none;
  border-radius: 5px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #3E2723;
  font-weight: bold;
}

#cart-items li button:hover {
  background: #B78C5A;
  color: #fff;
}

/* Итого */
#cart-total {
  font-weight: bold;
  font-size: 18px;
  margin-top: 10px;
  color: #3E2723;
}

/* Кнопки оформления */
#checkout-button,
#checkout-form button {
  width: 100%;
  background-color: #D7A86E;
  color: #3E2723;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#checkout-button:hover,
#checkout-form button:hover {
  background-color: #B78C5A;
  color: #fff;
  transform: translateY(-2px);
}

/* Форма чекаута */
#checkout-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#checkout-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: 15px;
  color: #4E342E;
}

#checkout-form input,
#checkout-form textarea {
  margin-top: 6px;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #d7ccc8;
  font-size: 15px;
  background-color: #fdfdfd;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#checkout-form input:focus,
#checkout-form textarea:focus {
  border-color: #8d6e63;
  box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.2);
  outline: none;
}

/* Заголовки модалки */
.modal h2,
#checkout-form h3 {
  font-family: 'Playfair Display', serif;
  color: #3E2723;
  margin-bottom: 20px;
}

/*Плашка Фонд содействия инновациям*/
/* ===== FUND BANNER ===== */
.fund-banner {
  background: #FAF8F5;
  padding: 80px 0;
  border-top: none !important;
  border-bottom: none !important;
  position: relative;
}

.fund-banner::before {
  display: none !important;
}

.fund-banner-inner {
  background: #ffffff;
  padding: 50px;
  border-radius: 25px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.fund-text {
  flex: 1 1 50%;
  color: #3E2723;
}

.fund-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin-bottom: 20px;
  color: #3E2723;
}

.fund-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #5d4037;
}

.fund-logo {
  flex: 1 1 40%;
  text-align: center;
}

.fund-logo img {
  width: 100%;
  max-width: 420px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Мобилка */
@media (max-width: 768px) {
  .fund-banner-inner {
    text-align: center;
    padding: 35px;
  }
  
  .fund-text h2 {
    font-size: 30px;
  }

  .fund-text p {
    font-size: 17px;
  }

  .fund-logo img {
    max-width: 300px;
  }
}

/* ===== FOOTER ===== */
.footer {
  text-align:center;
  padding:20px;
  background-color: #3E2723;
  color:#FAF8F5;
}


/* ======== PRODUCT MODAL ======*/
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.detail-image-wrap {
  flex: 1 1 45%;
  max-width: 45%;
  overflow: hidden;
  border-radius: 15px;
}

.detail-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.detail-info {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.detail-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #3E2723;
  margin-bottom: 15px;
}

.detail-info p {
  font-size: 18px;
  color: #4E342E;
  margin-bottom: 15px;
}

.detail-info ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.detail-info ul li {
  margin-bottom: 10px;
  font-size: 16px;
}

.detail-add-to-cart {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  background-color: #D7A86E;
  color: #3E2723;
  font-weight: bold;
  cursor: pointer;
  width: fit-content;
}

.detail-add-to-cart:hover {
  background-color: #B78C5A;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .product-detail {
    flex-direction: column;
  }
  .detail-image-wrap, .detail-info {
    max-width: 100%;
    flex: 1 1 100%;
  }
}
