/* Сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	text-decoration: none;
}
body {
    font-family: 'Rubik', Arial, sans-serif;
    color: #000;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ШАПКА */
.header {
    background: rgb(255 255 255 / 70%);
	/*background: #fff;*/
    /*padding: 7px 0;*/
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 900;
}
.header-sticky {
    position: sticky;
    top: 0;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    max-height: 40px;
}
.main-nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    white-space: nowrap;
}
.main-nav a:hover {
    color: #7367f0;
}
.btn {
    background: linear-gradient(0turn, #9c78bf 0%, #7367f0 100%);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}
.btn-sm {
    padding: 6px 16px;
    font-size: 14px;
}

/* СЛАЙДЕР */
.slider {
    position: relative;
    height: 100vh;
}
.slides {
    height: 100%;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.slide.active {
    opacity: 1;
}
.slide-content {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #000;
    background: rgba(253,253,253,0.9);
    padding: 20px 40px;
    border-radius: 20px;
}
.slide-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.dot {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
}
.dot.active {
    background: #fff;
}

/* === КАТАЛОГ === */
.catalog {
    padding: 60px 0;
    background: #fff;
}
.catalog h2 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.catalog p {
    max-width: 560px;
    margin-bottom: 40px;
    font-size: 22px;
}

/* === КАТЕГОРИИ === */
.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}
.category-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
}
.category-btn.active,
.category-btn:hover {
    color: #000;
    border-bottom-color: #000;
}

/* === ПОИСК === */
.search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    margin: 20px 0 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
}

/* === ТОВАРЫ === */
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 40px;
}
.product-item {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.4s ease, transform 0.4s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	align-items: center; /* ← Центрируем содержимое по горизонтали */
	text-align: center;   /* ← Текст по центру */
}
.product-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%; /* ← КРИТИЧЕСКИ ВАЖНО: чтобы .product-img-wrapper имел ширину */
	align-items: center;
}
.product-img-wrapper {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	margin-bottom: 12px;
	border-radius: 15px;
	width: 100%; /* ← Чтобы изображение заполняло карточку */
	max-width: 240px; /* ← Сохраняем прежний размер (как в оригинале) */
}
.product-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: opacity 0.3s;
}
.product-img.secondary {
	opacity: 0;
}
.product-item:hover .product-img.secondary {
	opacity: 1;
}
.product-item h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 8px;
	flex: 1;
}
.product-price {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 12px;
	white-space: nowrap;
}
.old-price {
	text-decoration: line-through;
	color: #999;
	margin-right: 8px;
}
.current-price {
	color: #000;
}
.btn-more {
	width: 65%;           /* ← Требование: 65% */
	padding: 8px;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 5px;
	font-weight: 500;
	font-size: 14px;      /* ← Требование: 14px */
	cursor: pointer;
	transition: background 0.2s;
	margin-top: auto;
}
.btn-more:hover {
	background: #333;
}

.btn-more2 {
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
}
.btn-more2:hover {
	background: #333;
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
	margin: 30px 0 40px;
}
.category-card {
	text-align: center;
	cursor: pointer;
	transition: transform 0.2s;
}
.category-card:hover {
	transform: translateY(-5px);
}
.category-img {
	width: 100%;
	aspect-ratio: 2 / 2.7; /* ← ПРЯМОУГОЛЬНИК: ширина / высота 4 / 3 — чуть выше,16 / 9 — ещё более вытянутый,1 / 1 — квадрат (как было). */
	background-size: cover;
	background-position: center;
	border-radius: 12px;
	margin-bottom: 10px;
}
.category-name {
	font-size: 16px;
	font-weight: 600;
	color: #000;
}


/* ДОСТАВКА */
.delivery {
    padding: 60px 0;
    background: #fff;
    text-align: center;
}
.delivery img {
    height: 60px;
    margin-bottom: 20px;
}
.delivery h3 {
    font-size: 36px;
    margin-bottom: 20px;
}
.delivery p {
    font-size: 21px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* РЕКВИЗИТЫ */
.requisites {
    padding: 80px 0;
    background: url('https://thb.tildacdn.com/tild3863-6561-4738-b033-663735656562/-/resize/20x/photo1461672943121ad4a2564289a.jpeg') center/cover;
    color: #000000;
}
.requisites .container {
    background: rgba(255,255,255,0.9);
    color: #000;
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
}
.requisites h3 {
    margin-bottom: 20px;
}

/* КОНТАКТЫ */
.contacts {
    padding: 60px 0;
    background: #f1f1f1;
    text-align: center;
}
.contact-info div {
    font-size: 24px;
    margin-bottom: 10px;
}
.socials {
    margin-top: 20px;
}
.socials a {
    display: inline-block;
    margin: 0 10px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

/* Корзина */
.qty-btn,
.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.qty-input,
.cart-qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
}
.btn-add-to-cart {
    background: #7367f0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* === МОБИЛЬНОЕ МЕНЮ === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #000;
    border-radius: 2px;
    transition: 0.3s;
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Анимация появления текста на фонах */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .hero {
        height: 600px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .main-nav a {
        margin-left: 15px;
        font-size: 14px;
    }
    .logo img {
        max-height: 32px;
    }

    /* Мобильное меню */
  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 900;
  }
  .main-nav.mobile-open {
    display: flex;
  }
  .main-nav a {
    margin: 0;
    padding: 8px 20px;
    width: 100%;
    text-align: center;
    border-radius: 8px;
  }
  .main-nav a:hover {
    background: #f5f5f5;
  }
}

/* === ФУТЕР (все страницы) === */
.footer {
  background: #f1f0f6;
  padding: 40px 0 20px;
  /*margin-top: 60px;*/
  margin-top: 0px;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-contacts {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}
.footer-socials {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  margin-top: 20px;
  align-items: flex-end;
}
.footer-socials img {
  width: 50px;
  height: auto;
  transition: transform 0.2s;
}
.footer-socials img:hover {
  transform: scale(1.1);
}
.footer-docs {
  margin-top: 20px;
  text-align: center;
}
.footer-docs a {
  color: #636367;
  text-decoration: underline;
  font-weight: 500;
}

