/*
Theme Name: Vladsnack
Theme URI: https://vladsnack.ru
Author: Vladsnack
Author URI: https://vladsnack.ru
Description: Тема для интернет-магазина рыбных снеков Vladsnack. Поддерживает WooCommerce.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vladsnack
Tags: e-commerce, woocommerce, custom-menu, featured-images, custom-logo, full-width-template

WooCommerce: true
*/

/* ============================================================
   ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
    --green:      #95C22B;
    --green-dark: #7aa320;
    --cream:      #fdf6ec;
    --sand:       #f2e4cc;
    --brown:      #4a2e10;
    --amber:      #F6E095;
    --text:       #2a1a06;
}

/* ============================================================
   СБРОС И БАЗА
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    background: #fff;
    color: var(--text);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Spectral', serif;
    letter-spacing: .01em;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header {
    background: #fff;
    border-bottom: 2px solid var(--sand);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo img  { height: 44px; width: auto; }
.site-logo a    { display: inline-block; }

/* Nav */
.main-navigation ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: var(--brown);
    letter-spacing: .02em;
    transition: color .2s;
    text-decoration: none;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--green); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-call {
    background: var(--green);
    color: #fff !important;
    border-radius: 50px;
    padding: .45rem 1.3rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    letter-spacing: .04em;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    transition: background .25s, transform .15s;
    text-decoration: none;
    display: inline-block;
}
.btn-call:hover { background: var(--green-dark); transform: translateY(-1px); }

.header-icon {
    color: #555;
    font-size: 1.2rem;
    transition: color .2s;
}
.header-icon:hover { color: var(--green); }

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--sand);
    border-radius: .5rem;
    padding: .3rem .6rem;
    cursor: pointer;
    color: var(--brown);
    font-size: 1.3rem;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-wrap { padding: 1.5rem 0 0; }

.hero-slider {
    border-radius: 0 0 2.5rem 2.5rem;
    overflow: hidden;
    position: relative;
    min-height: 420px;
}

.hero-track {
    display: flex;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
    height: 100%;
}

.hero-slide {
    flex: 0 0 100%;
    display: flex;
    min-height: 420px;
    position: relative;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(90,144,48,.92) 0%, rgba(90,144,48,.6) 50%, transparent 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 3.5rem 2rem 3.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 480px;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1.5px solid rgba(255,255,255,.45);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    letter-spacing: .08em;
    font-size: .85rem;
    padding: .35rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.22);
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
    backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,.42); }
.hero-arrow-prev { left: 1.2rem; }
.hero-arrow-next { right: 1.2rem; }

.hero-dots {
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: background .2s, transform .2s;
    border: none;
    padding: 0;
}
.hero-dot.active { background: #fff; transform: scale(1.25); }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    height: 3px;
    width: 60%;
    background: var(--green);
    border-radius: 2px;
    margin-top: 6px;
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

.cat-card {
    border-radius: 1.2rem;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    display: block;
    text-decoration: none;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.cat-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(30,18,4,.75));
    color: #fff;
    font-family: 'Spectral', serif;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .9rem;
    padding: .9rem .8rem .65rem;
    text-align: center;
}
.cat-card--new { border: 2.5px solid var(--green); }
.cat-card--new .cat-label { background: linear-gradient(transparent, rgba(122,182,72,.85)); }

/* ============================================================
   POPULAR / PRODUCT SLIDER
   ============================================================ */
.popular-section { padding: 0 0 4rem; }

.popular-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.6rem;
}

.popular-arrows { display: flex; gap: 8px; }
.popular-arrows button {
    background: #fff;
    border: 1.5px solid #ddd;
    color: var(--brown);
    width: 42px; height: 42px;
    border-radius: 50%;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.popular-arrows button:hover { background: var(--green); color: #fff; border-color: var(--green); }

.slider-viewport {
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0 12px;
    margin-bottom: -12px;
}
.slider-viewport::-webkit-scrollbar { display: none; }

.slider-track {
    display: flex;
    gap: 1.5rem;
    padding: 4px 2px;
}

.slide-item {
    flex: 0 0 calc((100% - 3rem) / 3);
    scroll-snap-align: start;
    min-width: 0;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(74,46,16,.07);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(74,46,16,.13); }

.product-img {
    width: 100%; aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.product-body { padding: 1rem 1.1rem 1.2rem; }

.product-name {
    font-family: 'Spectral', serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--brown);
    margin-bottom: .5rem;
    display: block;
    text-decoration: none;
}
.product-name:hover { color: var(--green); }

.product-price {
    font-family: 'Spectral', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}
.product-price .unit {
    font-size: .8rem;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    color: #888;
    margin-left: 4px;
}

.btn-cart {
    width: 100%;
    background: var(--amber);
    border: none;
    color: #3a2800;
    font-family: 'Spectral', serif;
    letter-spacing: .07em;
    font-size: .9rem;
    padding: .55rem;
    border-radius: 50px;
    margin-top: .9rem;
    transition: background .2s, transform .15s;
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
}
.btn-cart:hover { background: #edd96a; transform: scale(1.03); color: #3a2800; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 3.5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr 2.5fr;
    gap: 2rem;
    align-items: start;
}

.about-label {
    font-family: 'Spectral', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-transform: uppercase;
    color: var(--brown);
    font-weight: 700;
}

.about-lead {
    font-family: 'Spectral', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .9rem;
    line-height: 1.35;
}

.about-section p { color: #555; line-height: 1.75; font-size: .95rem; }

.contact-label {
    font-family: 'Spectral', serif;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #999;
    margin-bottom: .25rem;
}

.contact-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text);
    font-size: .95rem;
    text-decoration: none;
}
.contact-chip:hover { color: var(--green); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
    background: #fff;
    border-top: 1.5px solid #eee;
    font-size: .82rem;
    color: #999;
    padding: 1.4rem 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: .5rem;
}

.footer-left  { text-align: left; }
.footer-center{ text-align: center; }
.footer-right { text-align: right; }

.footer-logo { height: 36px; width: auto; }

.site-footer a { color: #999; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--green); }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: .8rem;
    padding-top: .8rem;
    border-top: 1px solid #f0f0f0;
}

/* ============================================================
   MODAL ЗАКАЗ ЗВОНКА
   ============================================================ */
.call-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.call-overlay.active { display: flex; }

.call-modal {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.2rem 2rem 2rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    animation: modalIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.call-modal h3 {
    font-family: 'Spectral', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: .35rem;
}
.call-modal p { font-size: .88rem; color: #888; margin-bottom: 1.4rem; }

.call-close {
    position: absolute;
    top: 1rem; right: 1.1rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
}
.call-close:hover { color: var(--brown); }

.call-field { margin-bottom: 1rem; }
.call-field label {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    color: #666;
    margin-bottom: .35rem;
    letter-spacing: .03em;
}
.call-field input {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: .75rem;
    padding: .7rem 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: .95rem;
    color: var(--text);
    outline: none;
    transition: border-color .2s;
}
.call-field input:focus { border-color: var(--green); }
.call-field input::placeholder { color: #bbb; }

.btn-modal-submit {
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: .75rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    margin-top: .5rem;
    transition: background .2s, transform .15s;
}
.btn-modal-submit:hover { background: var(--green-dark); transform: translateY(-1px); }

.call-success {
    text-align: center;
    padding: 1rem 0 .5rem;
    display: none;
}
.call-success .success-icon { font-size: 2.8rem; color: var(--green); }
.call-success p { color: var(--brown); font-weight: 500; margin-top: .7rem; font-size: 1rem; }

/* ============================================================
   WOOCOMMERCE OVERRIDE
   ============================================================ */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Spectral', serif;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--brown);
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--amber) !important;
    color: #3a2800 !important;
    border-radius: 50px !important;
    font-family: 'Spectral', serif !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: #edd96a !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #place_order {
    background: var(--green) !important;
    color: #fff !important;
    border-radius: 50px !important;
}
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--green) !important;
    color: #fff !important;
    border-radius: 50px !important;
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.woocommerce div.product .product_title {
    font-family: 'Spectral', serif;
    color: var(--brown);
    text-transform: uppercase;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--text);
    font-family: 'Spectral', serif;
    font-size: 1.5rem !important;
    font-weight: 700;
}

/* ============================================================
   СТРАНИЦА ДОСТАВКИ
   ============================================================ */
.delivery-section { padding: 4rem 0; }

.delivery-card {
    background: var(--cream);
    border-radius: 1.2rem;
    padding: 2rem;
    height: 100%;
    border-left: 4px solid var(--green);
}
.delivery-card h3 {
    color: var(--brown);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ============================================================
   PAYMENT
   ============================================================ */
.payment-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}
.payment-icons img { height: 36px; width: auto; }

/* ============================================================
   CONTAINER / LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.section { padding: 4rem 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
    .slide-item { flex: 0 0 calc((100% - 1.5rem) / 2); }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .about-grid > :first-child { grid-column: 1 / -1; }
    .main-navigation { display: none; }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { flex-direction: column; gap: .5rem; padding: 1rem 0; }
    .menu-toggle { display: block; }
}

@media (max-width: 767px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center !important; }
    .footer-left, .footer-right { text-align: center; }
    .hero-slide-content { padding: 2rem 1.5rem; }
}

@media (max-width: 575px) {
    .slide-item { flex: 0 0 80%; scroll-snap-align: center; }
    .slider-viewport { padding-left: 10%; padding-right: 10%; }
}


.single_add_to_cart_button.button.alt.vladsnack-add-to-cart-button {
	background: #F6E095 !important;
	color: #4E2B25 !important;
}

.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
	background: #F6E095;
	width: 100%;
	display: block;
	text-align: center;
	color: #4E2B25;
	padding: 10px;
	border-radius: 20px;
	margin-top: 15px;
}



.wc-blocks-components-select .wc-blocks-components-select__container {
	background: #fff;
	border-radius: 4px;
	box-sizing: border-box;
	line-height: 0;
	position: relative;
	width: 100%;
	margin-top: 10px;
}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
	min-height: 3em;
	background: #F6E095;
	padding: 10px;
	border: 0px;
}

.wc-block-components-button__text {
	color: black;
}



.woocommerce .page-title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.wc-block-components-product-metadata__description {
	display: none;
}

/* скрываем "Бесплатно" только у Самовывоза */
.wc-block-components-totals-item:has(.wc-block-components-totals-item__label)
.wc-block-components-totals-item__value strong {
    display: none;
}



#radio-control-0-free_shipping\:5__secondary-label {
	display: none;
}


.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads {
	display: none !important;
}

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--edit-address {
	display: none;
}

.wc-block-checkout__shipping-option--free {
	display: none;
}
