/*
Theme Name: LEGO Christmas Tree Dynamic Images
Theme URI: https://example.com/
Author: You
Author URI: https://example.com/
Description: Лендинг LEGO Christmas Tree 40573 с аккуратной шапкой, фото из товара WooCommerce и стилизованной корзиной
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: lego-christmas-dynamic
*/

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #222;
}

a { color: #007185; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==== HEADER (нейтральная) ==== */

header.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e7e7e7;
  padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

header .logo {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Меню */

header nav {
  display: flex;
  gap: 20px;
}

header nav a {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  transition: 0.2s;
}

header nav a:hover {
  color: #007185;
}

/* Корзина справа */

.header-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  color: #333;
}

.header-cart:hover {
  color: #007185;
}

.header-cart-icon {
  width: 22px;
  height: 22px;
}

/* Mobile toggle */

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* MAIN LAYOUT */

section.main-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.landing-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.landing-left,
.landing-right {
  flex: 1 1 350px;
  min-width: 300px;
}

.landing-img-main {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.landing-img-main img {
  max-width: 100%;
  height: auto;
}

/* Thumbs + active state */

.landing-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-thumbs img {
  width: 70px;
  border: 1px solid #ddd;
  padding: 4px;
  cursor: pointer;
  transition: 0.15s;
  background: #fff;
}

.landing-thumbs img:hover {
  border-color: #007185;
}

.landing-thumbs img.active-thumb {
  border-color: #007185;
  box-shadow: 0 0 0 2px #007185;
}

.landing-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.landing-rating {
  font-size: 18px;
  color: #f0a41a;
}

.landing-price {
  margin-top: 15px;
  font-size: 28px;
  font-weight: bold;
}

.landing-stock {
  font-size: 14px;
  color: #007600;
  margin-bottom: 15px;
}

.btn-primary,
.btn-secondary {
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: #ffd814;
  border-color: #fcd200;
  padding: 12px 30px;
  font-size: 16px;
  color: #000;
}

.btn-secondary {
  background: #ffa41c;
  border-color: #ff8f00;
  padding: 10px 25px;
  font-size: 14px;
  color: #000;
  margin-left: 10px;
}

.landing-block {
  margin-top: 25px;
  font-size: 15px;
  line-height: 1.6;
}

.landing-block h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.landing-block ul {
  padding-left: 20px;
}

.landing-block table {
  font-size: 14px;
}

.landing-reviews {
  margin-top: 40px;
}

.landing-reviews h2 {
  font-size: 20px;
}

.landing-review-item {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

.landing-faq {
  margin-top: 40px;
}

.landing-faq h2 {
  font-size: 20px;
}

.landing-faq p {
  font-size: 14px;
}

.landing-final {
  margin-top: 40px;
  padding: 20px;
  background: #f7f7f7;
  text-align: center;
  border-radius: 8px;
}

.landing-final h2 {
  font-size: 22px;
}

.landing-final h3 {
  font-size: 24px;
  margin: 15px 0;
}

footer.site-footer {
  margin-top: 40px;
  padding: 15px 20px;
  border-top: 1px solid #eee;
  font-size: 13px;
  text-align: center;
  color: #666;
}

/* ==== СТИЛИ ДЛЯ КОРЗИНЫ WOO ==== */

.woocommerce-cart .woocommerce {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

/* Таблица товаров */

.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  vertical-align: middle;
}

.woocommerce table.shop_table thead {
  background: #f7f7f7;
}

.woocommerce table.shop_table th {
  font-weight: 600;
  font-size: 14px;
}

.woocommerce table.shop_table td.product-thumbnail img {
  width: 60px;
  height: auto;
  border-radius: 6px;
}

.woocommerce a.remove {
  color: #ff4d4f !important;
  font-size: 18px;
}

.woocommerce a.remove:hover {
  background: transparent;
}

/* Кол-во и купон */

.woocommerce .quantity .qty {
  width: 60px;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Купон и кнопка "Обновить корзину" */

.woocommerce-cart .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.woocommerce-cart .coupon .input-text {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  min-width: 160px;
}

.woocommerce-cart .button {
  border-radius: 20px;
  border: none;
  padding: 8px 18px;
  background: #ffd814;
  cursor: pointer;
  font-size: 14px;
}

.woocommerce-cart .button:hover {
  background: #f2c900;
}

/* Блок с итогами */

.woocommerce .cart-collaterals {
  flex: 1 1 260px;
}

.woocommerce .cart_totals {
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  padding: 15px 18px;
  background: #fafafa;
}

.woocommerce .cart_totals h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.woocommerce .cart_totals table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
  padding: 6px 0;
  font-size: 14px;
  text-align: left;
}

.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td {
  font-weight: 700;
  font-size: 16px;
}

/* Кнопка "Перейти к оформлению" */

.woocommerce .wc-proceed-to-checkout {
  margin-top: 15px;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  border-radius: 25px;
  background: #ffa41c;
  color: #000;
  font-size: 16px;
  font-weight: 600;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
  background: #ff8f00;
}

/* Адаптив для корзины */

@media (max-width: 768px) {
  .woocommerce-cart .woocommerce {
    flex-direction: column;
  }

  .woocommerce table.shop_table {
    font-size: 13px;
  }

  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    padding: 8px 10px;
  }

  .woocommerce-cart .coupon {
    flex-direction: column;
    align-items: flex-start;
  }

  .woocommerce .cart_totals {
    margin-top: 15px;
  }
}

/* Responsive для шапки и кнопок */

@media (max-width: 768px) {
  section.main-wrap {
    padding: 15px;
  }

  .btn-primary,
  .btn-secondary {
    display: block;
    width: 100%;
    margin: 10px 0 0 0;
  }

  .menu-toggle {
    display: block;
  }

  header nav {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    padding: 15px 20px 20px;
    border-bottom: 1px solid #e7e7e7;
  }

  header nav.active {
    display: flex;
  }

  .header-cart {
    display: none;
  }
}
