html, body {
    max-width: 100%;
    overflow-x: hidden;
}
.shik * { box-sizing: border-box; } 
body { 
  font-family: 'Montserrat', sans-serif; 
  color: #4A2B21; 
  background: url('images/glavnaya-shik.png') center/cover fixed no-repeat, #FBF7F0 !important; 
  margin: 0;
  padding: 0;
} 

.shik-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; overflow-x: hidden; } 
.header { padding: 20px 0; border-bottom: 1px solid #D9CFC4; margin-bottom: 30px; }
.main-nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.main-nav a { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; color: #4A2B21; text-decoration: none; letter-spacing: 1px; transition: color 0.2s; text-transform: uppercase; }
.main-nav a:hover, .main-nav a.active { color: #7C1F2C; }
.shik .footer { padding: 40px 0 20px 0; border-top: 1px solid #D9CFC4; margin-top: 40px; text-align: center; } 
.shik .footer .footer-nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; } 
.shik .footer .footer-nav a { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500; color: #6b5647; text-decoration: none; letter-spacing: 1px; transition: color 0.2s; text-transform: uppercase; } 
.shik .footer .footer-nav a:hover { color: #7C1F2C; } 
.shik .footer .footer-social { display: flex; gap: 20px; justify-content: center; margin-bottom: 20px; align-items: center; } 
.shik .footer .footer-social a { font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 600; color: #4A2B21; text-decoration: none; letter-spacing: 1px; transition: color 0.2s; line-height: 1; padding: 8px 16px; border: 1px solid #4A2B21; border-radius: 20px; } 
.shik .footer .footer-social a:hover { background: #7C1F2C; color: #fff; border-color: #7C1F2C; } 
.shik .footer .copyright { font-family: 'Montserrat', sans-serif; font-size: 12px; color: #8A7466; letter-spacing: 0.5px; margin-top: 20px; } 
.shik h1 { font-family: 'Montserrat', sans-serif; font-size: 54px; font-weight: 600; margin: 0; color: #4A2B21; letter-spacing: 2px; line-height: 1.1; } 
.shik .script { font-family: 'Great Vibes', cursive; font-size: 42px; color: #7C1F2C; margin: 10px 0 20px; line-height: 1; } 
.shik .sub { font-size: 18px; color: #6b5647; margin-bottom: 30px; font-family: 'Montserrat', sans-serif; } 
.shik .btn { display: inline-block; background: #7C1F2C; color: #fff; font-size: 14px; letter-spacing: 1.5px; padding: 14px 32px; border-radius: 30px; text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 600; transition: 0.3s; box-shadow: 0 4px 15px rgba(124, 31, 44, 0.2); } 
.shik .btn:hover { background: #5e1620; transform: translateY(-2px); } 
.shik .hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 60px 0; flex-wrap: wrap; } 
.shik .hero .left { flex: 1 1 450px; } 
.shik .hero .right { flex: 1 1 400px; text-align: center; } 
.shik .hero .right img { width: 100%; max-width: 450px; height: 450px; object-fit: cover; border-radius: 20px; box-shadow: 0 10px 30px rgba(74, 43, 33, 0.15); } 
.shik .strip { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 20px; 
  background: transparent !important; 
  padding: 18px 10px; 
  margin: 20px 0 40px; 
  border-top: 1px solid rgba(74,43,33,0.2); 
  border-bottom: 1px solid rgba(74,43,33,0.2); 
  box-shadow: none !important;
  border-radius: 0 !important;
  flex-wrap: wrap; 
} 
.shik .strip .item { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  font-size: 13px; 
  font-weight: 500; 
  color: #4A2B21; 
  font-family: 'Montserrat', sans-serif; 
  flex: 1 1 220px;
  max-width: 320px;
  justify-content: center; 
} 
.shik .strip .item img.ico-img { 
  width: 26px; 
  height: 26px; 
  object-fit: contain; 
  vertical-align: middle; 
  flex-shrink: 0; 
}

.shik .title { text-align: center; font-size: 36px; color: #4A2B21; font-family: 'Montserrat', sans-serif; font-weight: 600; margin-top: 50px; text-transform: uppercase; letter-spacing: 1px; } 
.shik .heart { text-align: center; color: #7C1F2C; font-size: 22px; margin: 10px 0 30px; } 
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-bottom: 50px; } 
.card { background: #fff; border-radius: 16px; padding: 15px; text-align: center; box-shadow: 0 4px 16px rgba(74, 43, 33, 0.06); display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.3s; } 
.card:hover { transform: translateY(-5px); } 
.card img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 15px; } 
.card .name { font-size: 16px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; font-family: 'Montserrat', sans-serif; font-weight: 600; color: #4A2B21; } 
.card .desc { font-size: 13px; color: #8A7466; font-family: 'Montserrat', sans-serif; margin-bottom: 15px; } 
.btn-s { display: inline-block; background: #7C1F2C; color: #fff !important; font-size: 12px; letter-spacing: 1px; padding: 12px 20px; border-radius: 8px; text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 600; transition: 0.3s; margin-top: auto; } 
.btn-s:hover { background: #5e1620; } 
.why { display: flex; gap: 25px; flex-wrap: wrap; justify-content: center; margin-bottom: 50px; } 
.why .item { flex: 1 1 220px; max-width: 260px; background: #fff; padding: 25px 20px; border-radius: 16px; text-align: center; font-size: 14px; color: #4A2B21; font-family: 'Montserrat', sans-serif; font-weight: 500; line-height: 1.5; box-shadow: 0 4px 16px rgba(74, 43, 33, 0.05); } 
.emo { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; background: #fff; padding: 50px; border-radius: 20px; margin: 40px 0; box-shadow: 0 4px 20px rgba(74, 43, 33, 0.05); } 
.emo .left, .emo .right { flex: 1 1 350px; } 
.emo .right img { width: 100%; height: 320px; border-radius: 16px; object-fit: cover; } 
.emo .script { font-size: 46px; color: #7C1F2C; margin: 10px 0 25px; font-family: 'Great Vibes', cursive; } 
@media(max-width:768px) { 
  .shik h1 { font-size: 38px; } 
  .shik .hero { padding: 30px 0; } 
  .emo { padding: 25px; } 
}
/* Убираем тонкие разделительные полосы у плашек с преимуществами */
.strip,
.features-strip,
.bottom-strip {
    border-top: none !important;
    border-bottom: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* На случай, если полоса сделана отдельным тегом hr */
hr {
    display: none !important;
}
/* Поля ввода адреса и формы - мобильная адаптивность */
input, textarea, select {
    box-sizing: border-box !important;
    max-width: 100% !important;
}


/* ============================================================
   Доработки витрины, модального окна и размерной сетки (ТЗ)
   ============================================================ */

/* Блок 1. Задача 1. Тонкая акцентная рамка карточек */


/* Блок 2. Задача 3. Блокировка скролла каталога под карточкой (Scroll Lock) */
body.modal-scroll-lock {
    overflow: hidden !important;
    touch-action: none;
}
#productModal {
    overscroll-behavior: contain;
}
.product-modal-content, .modal-dialog-content, .modal-card, .modal-box-inner {
    overscroll-behavior: contain;
}

/* Блок 2. Задача 5. Устранение вылезания контента карточки за границы */
.modal-box-inner, #productModal .modal-content, #productModal .modal-card {
    width: 100% !important;
    max-width: 580px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding: 20px 16px !important;
}
#productModal select,
#productModal input {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
}
.product-card-sizes, #modalSizeButtons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

/* Блок 3. Задача 6. Стрелки перелистывания фотографий в модальном окне */
.modal-photo-slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}
.modal-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.85);
    color: #4A2B21;
    border: 1px solid rgba(74, 43, 33, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s, color 0.2s;
    user-select: none;
}
.modal-slider-arrow:hover {
    background: #ffffff;
    color: #7C1F2C;
}
.modal-slider-arrow.prev { left: 10px; }
.modal-slider-arrow.next { right: 10px; }

/* Блок 1. Рамки карточек в каталоге по ВСЕМУ периметру (ТЗ) */
.product-card-unit {
    box-sizing: border-box !important;
    border: 2px solid #5C382C !important; /* Четкий карандашный коричневый контур толщиной 2px */
    border-radius: 16px !important;
    overflow: hidden !important; /* Фотография сверху аккуратно повторяет скругление рамки */
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 4px 14px rgba(74, 43, 33, 0.06) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}
.product-card-unit:hover {
    border-color: #7C1F2C !important;
    box-shadow: 0 8px 24px rgba(74, 43, 33, 0.12) !important;
    transform: translateY(-2px);
}

.product-card-details {
    border: none !important;
}

/* Акцентная двойная рамка для карточки «Товар недели» */
.product-card-unit.is-week-product {
    border: 2px solid #5C382C !important;
    outline: 2px solid #D4AF37 !important; /* Золотой контур */
    outline-offset: -5px !important;       /* Внутренний сдвиг для создания премиальной двойной рамки */
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.25) !important;
}

/* Блок 2. Позиционирование бейджа «Товар недели» (Исключить наложение) */
.badge-cat-tag {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    z-index: 2 !important;
}
.badge-week-tag {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 3 !important;
    background: #7C1F2C !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 8px rgba(124, 31, 44, 0.4) !important;
    white-space: nowrap !important;
}
