:root {
    --accent-yellow: #fcd30b;
    --grey: #9b9b9b;
    --dark: #222;
    --light-grey: #ebeded;
    --container-width: 1200px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font:
        16px/1.3 Arial,
        Helvetica,
        sans-serif;
    color: #222;
    background: #fff;
    min-width: 320px;
}
img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 10px;
}
.button {
    display: inline-block;
    background: var(--accent-yellow);
    font-weight: 700;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 5px;
    border: 0;
    cursor: pointer;
    text-align: center;
}
.section-label {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-yellow) 60%, rgba(252, 211, 11, 0));
    font-weight: 700;
    font-size: 18px;
    padding: 4px 40px 4px 10px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.top-bar {
    background: var(--dark);
    color: #fff;
    font-size: 14px;
    padding-top: 3px;
    padding-bottom: 3px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    min-height: 36px;
}
.top-bar ul {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.top-bar .search {
    background: #666;
    padding: 3px 16px;
    flex: 0 1 310px;
    text-align: left;
    border-radius: 5px;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.logo {
    transition: all 0.3s;
}
.logo:hover {
    opacity: 0.7;
}
.logo img {
    width: 230px;
    height: auto;
    object-fit: contain;
}
.delivery-info {
    text-align: center;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}
.delivery-info b {
    font-weight: 400;
    color: #222;
}
.phone-block {
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
}
.phone-block a.phone-link {
    font-size: 14px;
}
.phone-block .button {
    font-size: 11px;
    padding: 3px 9px;
}
.messengers {
    font-size: 13px;
    text-align: center;
}
.social-links {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 6px;
}
.social-links img {
    width: 27px;
    height: 27px;
    border-radius: 3px;
    background-color: #5b5b5b;
    padding: 2px;
}
.social-links a {
    transition: all 0.1s ease 0s;
}
.social-links a:hover {
    transform: scale(1.05);
}
.main-nav {
    background: var(--grey);
}
.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
}
.main-nav li > a {
    display: block;
    padding: 15px 16px;
    color: #fff;
    font-size: 16px;
}
.main-nav li.active > a {
    background: var(--accent-yellow);
    color: #222;
}
.main-nav .nav-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}
.main-nav .nav-icons img {
    width: 26px;
    height: 26px;
}
#burger,
.burger-label {
    display: none;
}

.hero-banner {
    background: var(--accent-yellow);
}
.hero-banner .container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 30px;
}
.hero-text {
    flex: 1 1 55%;
}
.hero-banner h1 {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-banner p {
    margin-bottom: 30px;
    max-width: 560px;
}
.hero-banner .button {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    padding: 16px 30px;
}
.hero-image {
    flex: 1 1 45%;
}
.hero-image img {
    width: 100%;
    aspect-ratio: 5/3;
    /* background: rgba(255, 255, 255, 0.4); */
}

.catalog-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding: 14px 10px;
}
.catalog-section {
    background: var(--light-grey);
    padding-bottom: 30px;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: #fff;
    max-width: var(--container-width);
    margin: 0 auto 20px;
    border: 1px solid #fff;
}
.catalog-card {
    background: #e0e0e0;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}
.catalog-card h3 {
    font-weight: 400;
    font-size: 20px;
    padding: 14px 6px 0;
    min-height: 68px;
}
.catalog-card img {
    width: 100px;
    height: 100px;
    margin: 0;
    object-fit: contain;
}
.catalog-card .price-tag {
    margin-top: 10px;
    background: var(--accent-yellow);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 4px;
    width: 100%;
}
.cta-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 19px;
    padding: 0 10px;
}

.advantages {
    padding: 40px 0 30px;
}
.advantages-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.advantage-item {
    border: 1px solid #ddd;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: start;
    font-size: 13px;
}
.advantage-item img {
    width: 85px;
    height: 85px;
    flex: none;
    object-fit: contain;
}
.advantage-item h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

/* how */
.work-steps {
    background: var(--light-grey);
    padding: 20px 0 30px;
}
.steps-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    text-align: center;
    font-size: 13px;
}
.steps-list img {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    object-fit: contain;
}
.steps-list h3 {
    font-size: 13px;
    border-bottom: 2px solid var(--accent-yellow);
    padding-bottom: 4px;
    margin-bottom: 8px;
    min-height: 36px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.questions-cta {
    padding: 26px 10px;
}

.faq-section {
    background: var(--light-grey);
    padding: 12px 0 24px;
}
.faq-section h2 {
    font-size: 18px;
    padding: 12px 0 14px;
}
.faq-section details {
    border-top: 2px solid #555;
    padding: 12px 0;
}
.faq-section details:last-child {
    border-bottom: 2px solid #555;
}
.faq-section summary {
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.faq-section summary::-webkit-details-marker {
    display: none;
}
.faq-section summary::after {
    /* content: "\2304"; */
    font-weight: 400;
}
.faq-section details[open] summary::after {
    /* content: "\2303"; */
}
.faq-section details p {
    font-size: 17px;
    padding-top: 16px;
}

.banners {
    padding: 20px 10px;
}
.banners-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}
.banners-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    min-height: 100px;
}
.banner-item-1 {
    grid-column: span 6;
    aspect-ratio: 16/9;
}
.banner-item-2 {
    grid-column: span 6;
    aspect-ratio: 16/9;
}
.banner-item-3,
.banner-item-4,
.banner-item-5,
.banner-item-6 {
    grid-column: span 3;
    aspect-ratio: 3/4;
}
.banner-item-1,
.banner-item-2,
.banner-item-3,
.banner-item-4,
.banner-item-5,
.banner-item-6 {
    display: block;
    overflow: hidden;
}

.map-section {
    position: relative;
    border-top: 6px solid #ccc;
    min-height: 260px;
    background: #e8e8e0;
}
.map-section > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}
.map-info {
    position: absolute;
    right: calc(50% - 550px);
    top: 0;
    bottom: 0;
    width: 300px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 12px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.map-info li {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}
.map-info img {
    width: 34px;
    height: 34px;
    flex: none;
}

.site-footer {
    background: #666;
    color: #fff;
    font-size: 12px;
    padding: 20px 0 14px;
}
.site-footer a {
    display: block;
}
.site-footer h4 {
    font-size: 15px;
    margin-bottom: 4px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr 1fr;
    gap: 20px 14px;
}
.footer-grid .client-links h4 {
    font-size: 16px;
    margin-top: 20px;
}
.footer-grid .footer-main-link {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}
.footer-grid .footer-phone {
    text-align: left;
    font-size: 11px;
}
.footer-grid .footer-phone b {
    display: block;
    font-size: 15px;
    font-weight: 400;
}
.copyright {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: #ccc;
    font-size: 11px;
}
.footer-logo img {
    width: auto;
    height: 60px;
    margin-bottom: 12px;
    object-fit: contain;
}

@media (max-width: 1000px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .advantages-list {
        grid-template-columns: 1fr;
    }
    .steps-list {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .map-info {
        right: 0;
    }
    .hero-banner h1 {
        font-size: 34px;
    }
}
@media (max-width: 768px) {
    .top-bar ul {
        gap: 12px;
    }
    .site-header .container {
        justify-content: center;
    }
    .main-nav .container {
        flex-wrap: wrap;
        align-items: center;
    }
    .burger-label {
        display: block;
        padding: 14px 10px;
        color: #fff;
        cursor: pointer;
        font-size: 16px;
    }
    .main-nav ul {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
    }
    #burger:checked ~ ul {
        display: flex;
    }
    .main-nav li > a {
        padding: 12px 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }
    .main-nav .nav-icons {
        order: 2;
    }
    .hero-banner .container {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-banner h1 {
        font-size: 28px;
    }
    .steps-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .map-section {
        min-height: 0;
    }
    .map-section > img {
        height: 220px;
    }
    .map-info {
        position: static;
        width: auto;
        background: #f4f4f4;
    }
    .banners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-item-1,
    .banner-item-2,
    .banner-item-3,
    .banner-item-4,
    .banner-item-5,
    .banner-item-6 {
        grid-column: auto;
        aspect-ratio: 4/3;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid .footer-logo,
    .footer-grid .client-links {
        grid-column: 1/-1;
    }
}
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog-card h3 {
        font-size: 17px;
        min-height: 58px;
    }
    .advantage-item {
        flex-direction: column;
    }
    .hero-banner h1 {
        font-size: 24px;
    }
    .hero-banner .button {
        display: block;
    }
    .cta-block {
        flex-direction: column;
        gap: 12px;
        font-size: 17px;
    }
    .faq-section summary {
        font-size: 16px;
    }
    .faq-section details p {
        font-size: 15px;
    }
    .top-bar .search {
        flex: 1 1 100%;
    }
    .top-bar ul {
        width: 100%;
        justify-content: space-between;
    }
    .top-bar ul {
        display: none;
    }
}
@media (max-width: 360px) {
    .steps-list {
        grid-template-columns: 1fr;
    }
    .catalog-card h3 {
        font-size: 15px;
    }
    .logo img {
        width: 160px;
        height: 48px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.main-nav .container {
    position: relative;
}
.main-nav li.has-mega-menu {
    position: static;
}
.mega-toggle {
    display: none;
}
.mega-arrow {
    display: none;
}
.mega-menu {
    display: none;
    position: absolute;
    left: 10px;
    right: 10px;
    top: 100%;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 50;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 0 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: #222;
}
.mega-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 17px;
    color: #222;
    min-height: 34px;
}
.mega-menu a.sub-item {
    padding-left: 40px;
}
.mega-menu a.active {
    background: var(--accent-yellow);
}
.mega-menu a:hover {
    background: #f3f3f3;
}
.mega-menu a.active:hover {
    background: var(--accent-yellow);
}
.mega-menu .menu-icon {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border-radius: 50%; */
    padding: 2px;
    /* background-color: #fff; */
}
.mega-menu > div:first-child {
    padding-top: 10px;
}
.mega-menu > div {
    padding-top: 10px;
}
.main-nav .cart {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 15px;
}
.mega-toggle:checked ~ .mega-menu {
    display: grid;
}
@media (min-width: 769px) {
    .has-mega-menu:hover > .mega-menu {
        display: grid;
    }
}
.catalog-layout {
    display: grid;
    grid-template-columns: 225px 1fr;
    gap: 30px;
    padding-top: 30px;
    padding-bottom: 40px;
    align-items: start;
}
.catalog-toggle,
.catalog-toggle-btn {
    display: none;
}
.sidebar {
    background: #e0e0e0;
    font-size: 14px;
    padding-bottom: 6px;
}
.sidebar summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 9px 15px 5px;
    font-weight: 700;
}
.sidebar summary::-webkit-details-marker {
    display: none;
}
.sidebar summary::after {
    /* content: "\2304"; */
    font-weight: 400;
    color: #777;
}
.sidebar details[open] > summary::after {
    /* content: "\2303"; */
}
.sidebar details:not([open]) > summary {
    font-weight: 400;
}
.sidebar h4 {
    background: #cfcfcf;
    font-weight: 400;
    padding: 3px 24px;
    margin-top: 2px;
}
.sidebar li a {
    display: block;
    padding: 4px 34px;
}
.sidebar li a:hover {
    background: #d3d3d3;
}
.sidebar-link {
    display: block;
    padding: 9px 15px 5px;
}
.catalog-main {
    min-width: 0;
}
.breadcrumbs {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}
.breadcrumbs a {
    text-decoration: underline;
}
.page-title {
    font-size: 30px;
    padding-bottom: 12px;
    position: relative;
    margin-bottom: 28px;
}
.page-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 65px;
    height: 3px;
    background: var(--accent-yellow);
}
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    margin-bottom: 30px;
}
.filter-group h3 {
    text-align: center;
    font-size: 13px;
    margin-bottom: 10px;
}
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-chips a {
    background: #ddd;
    font-size: 12px;
    padding: 6px 10px;
}
.filter-chips a:hover {
    background: var(--accent-yellow);
}
.filter-group:nth-child(3) {
    max-width: 330px;
}
.filter-group:nth-child(2) {
    max-width: 150px;
}
.catalog-description {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 16px;
}
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    margin-bottom: 16px;
}
.sort-bar select {
    padding: 6px 8px;
    border: 1px solid #333;
    font-size: 13px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.product-card {
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    background: #fff;
}
.product-image {
    position: relative;
    display: block;
}
.product-image img {
    width: 100%;
    aspect-ratio: 1/0.7;
    object-fit: cover;
}
.product-badge {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-yellow);
    border-radius: 0 0 50% 0;
    width: 62px;
    height: 62px;
    padding: 3px 0 0 3px;
    font-size: 11px;
}
.product-card h3 {
    background: #f7c51e;
    text-align: center;
    font-size: 13px;
    padding: 6px 6px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0;
}
.product-card td {
    padding: 2px 6px;
}
.product-card td:first-child {
    width: 50%;
}
.product-price {
    margin-top: 0;
    background: #eee;
    text-align: center;
    padding: 8px 6px 10px;
}
.product-price b {
    display: block;
    font-size: 16px !important;
    margin: 2px 0 8px;
}
.product-price .button {
    padding: 7px 14px;
}
@media (max-width: 1000px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .catalog-layout {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }
    .mega-menu a {
        font-size: 15px;
    }
}
@media (max-width: 768px) {
    .main-nav .cart {
        margin-right: 6px;
    }
    .has-mega-menu {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .has-mega-menu > a {
        flex: 1;
    }
    .mega-arrow {
        display: block;
        padding: 12px 18px;
        color: #fff;
        cursor: pointer;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }
    .mega-menu {
        position: static;
        display: none;
        width: 100%;
        grid-template-columns: 1fr 1fr;
        box-shadow: none;
        border: 0;
    }
    .catalog-layout {
        grid-template-columns: 1fr;
        padding-top: 16px;
    }
    .catalog-toggle-btn {
        display: block;
        background: var(--accent-yellow);
        font-weight: 700;
        padding: 12px 14px;
        cursor: pointer;
    }
    .sidebar {
        display: none;
    }
    .catalog-toggle:checked ~ .sidebar {
        display: block;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-title {
        font-size: 26px;
    }
}
@media (max-width: 480px) {
    .product-grid {
        gap: 8px;
    }
    .product-price b {
        font-size: 17px;
    }
    .product-card h3 {
        font-size: 12px;
    }
    .mega-menu {
        grid-template-columns: 1fr;
    }
    .filters {
        flex-direction: column;
    }
    .filter-group h3 {
        text-align: left;
    }
    .filter-group:nth-child(n) {
        max-width: none;
    }
    .page-title {
        font-size: 22px;
    }
}
@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
.footer-email {
    color: var(--accent-yellow);
    font-weight: 700;
    font-size: 18px;
    margin-top: 5px;
}
/* ---------- поиск ---------- */
.search .search-trigger {
    background: none;
    border: 0;
    color: #fff;
    font: inherit;
    cursor: pointer;
    padding: 9px 16px;
    width: 100%;
    text-align: left;
}

/* оверлей */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    padding: 8vh 16px 16px;
    overflow-y: auto;
}
.search-overlay.is-open {
    display: block;
}
body.search-locked {
    overflow: hidden;
}

.search-overlay-inner {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.search-close {
    position: fixed;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--accent-yellow);
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-form {
    display: flex;
}

.search-input {
    width: 100%;
    font-size: 22px;
    padding: 18px 22px;
    border: 2px solid var(--accent-yellow);
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #222;
}
.search-input:focus {
    box-shadow: 0 0 0 4px rgba(252, 211, 11, 0.35);
}

/* результаты */
.search-results {
    margin-top: 14px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: none;
}
.search-results.is-visible {
    display: block;
}

.search-result-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #222;
    transition: background 0.1s;
}
.search-result-item:last-child {
    border-bottom: 0;
}
.search-result-item:hover {
    background: #fff8d6;
}
.search-result-item img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex: none;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 4px;
    background: #fafafa;
}
.search-result-text {
    min-width: 0;
}
.search-result-text b {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-text small {
    color: #777;
    font-size: 12px;
}
.search-result-price {
    margin-left: auto;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    padding-left: 10px;
}

.search-status {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-view-all {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--accent-yellow);
    font-weight: 700;
    font-size: 14px;
    color: #222;
}
.search-view-all:hover {
    background: #f0c400;
}

@media (max-width: 480px) {
    .search-overlay {
        padding-top: 14vh;
    }
    .search-input {
        font-size: 17px;
        padding: 14px 16px;
    }
    .search-result-price {
        font-size: 13px;
    }
}
/* =========================================
   СТИЛИ ДЛЯ КАРТОЧКИ ТОВАРА (SINGLE PRODUCT)
   ========================================= */
/* Убираем ограничение ширины страницы товара, чтобы он был на всю ширину контейнера */
.single-product .site-main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 30px 10px;
}

/* Жесткая сетка из двух колонок */
.product-single-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

/* Заголовок */
.product-summary-col .page-title {
    font-size: 32px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-yellow);
    line-height: 1.2;
}

/* Артикул и категория */
.product-meta-info {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.product-meta-info a {
    color: #777;
    text-decoration: underline;
}

/* Краткое описание */
.woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Цена */
.product-summary-col .price {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    display: block;
}

/* Кнопка "В корзину" */
.product-summary-col form.cart {
    display: flex;
    align-items: center;
    gap: 15px;
}
.product-summary-col .single_add_to_cart_button {
    background: var(--accent-yellow) !important;
    color: #222 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 15px 40px !important;
    border-radius: 5px !important;
    border: none !important;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}
.product-summary-col .single_add_to_cart_button:hover {
    background: #e5bf00 !important;
}
.product-summary-col .quantity .qty {
    padding: 12px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 70px;
    height: 100%;
}

/* Галерея (картинка) */
.woocommerce-product-gallery {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    background: #fafafa;
    margin: 0 !important;
}
.woocommerce-product-gallery__image--placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

/* Вкладки (Описание) */
.product-description-wrap {
    margin-bottom: 40px;
}
.woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    border-bottom: 2px solid #ebeded !important;
    display: flex;
    gap: 30px;
}
.woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.woocommerce-tabs ul.tabs li a {
    padding: 10px 0 !important;
    font-weight: 700 !important;
    color: #999 !important;
    font-size: 18px;
    border-bottom: 3px solid transparent;
    text-decoration: none !important;
}
.woocommerce-tabs ul.tabs li.active a {
    color: #222 !important;
    border-bottom-color: var(--accent-yellow);
}
.woocommerce-tabs .panel {
    font-size: 16px;
    line-height: 1.6;
}
.woocommerce-tabs .panel h2 {
    display: none;
}

/* Похожие товары */
.related.products {
    margin-top: 40px;
}
.related.products > h2 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.related.products > h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-yellow);
}
.related ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .product-single-wrap {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .related ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .related ul.products {
        grid-template-columns: 1fr !important;
    }
}
.woocommerce div.product div.summary,
.woocommerce ul.products li.first,
.woocommerce-page ul.products li.first,
.woocommerce div.product div.images.woocommerce-product-gallery {
    width: 100% !important;
}
.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before {
    display: none !important;
}
.woocommerce ul.products li.product .button {
    display: none !important;
}
.woocommerce-ordering {
    margin: 0 !important;
}
.woocommerce-ordering select {
    padding: 6px 8px;
    border: 1px solid #333;
    font-size: 13px;
    background: #fff;
}
.woocommerce-result-count {
    margin: 0 !important;
    font-size: 12px;
    color: #333;
}
.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    float: none !important;
    width: 100%;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    display: flex;
}

.product-price {
    margin-top: 0;
    background: #fff;
    text-align: center;
    padding: 15px 10px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-price small {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
    display: block;
}

.product-price b {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.1;
    display: block;
}

.product-price del {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    text-decoration: line-through;
    margin-bottom: 2px;
    display: block;
}

.product-price ins {
    font-size: 16px;
    font-weight: 700;
    color: #e53935;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.product-price .button {
    display: inline-block;
    background: var(--accent-yellow) !important;
    font-weight: 700 !important;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 5px;
    border: 0;
    cursor: pointer;
    text-align: center;
}

.product-price .button:hover {
    background: #e5bf00;
}

.product-price .add_to_cart_button {
    display: block;
}

.product-badge {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-yellow);
    border-radius: 0 0 50% 0;
    width: 70px;
    min-height: 50px;
    height: fit-content;
    padding: 6px 0 0 5px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: #222;
    word-wrap: break-word;
    white-space: normal;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price,
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    color: #000 !important;
    text-decoration: none !important;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price {
    color: #000 !important;
    opacity: 0.7;
    font-size: 12px;
    text-decoration: none !important;
}
.product-price-wrap .price del {
    font-size: 14px;
}
.product-price-wrap .price {
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: row-reverse;
    text-align: start;
    gap: 15px;
}
.woocommerce span.onsale {
    border-radius: 10px !important;
    background-color: var(--accent-yellow) !important;
    padding: 5px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #17171781 !important;
}

.sidebar-details summary::-webkit-details-marker,
.sidebar-summary::-webkit-details-marker {
    display: none;
}

.sidebar-details summary {
    list-style: none;
    cursor: pointer;
}

.sidebar-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 15px;
    color: #222;
    background: #e0e0e0;
    transition: background 0.2s ease;
    user-select: none;
}

.sidebar-summary:hover {
    background: #d4d4d4;
}

.sidebar-summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -4px;
}

.sidebar-details[open] .sidebar-summary::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.details-content {
    overflow: hidden;
    background: #f4f4f4;
    transition: height 0.3s ease;
}

.details-content ul {
    padding: 10px 0;
    margin: 0;
}

.details-content li a {
    display: block;
    padding: 6px 15px 6px 30px;
    color: #444;
    font-size: 14px;
    transition: color 0.2s;
}

.details-content li a:hover {
    color: #000;
    text-decoration: underline;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    user-select: none;
}

.faq-summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -5px;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-details[open] .faq-summary::after {
    transform: rotate(-135deg);
    margin-top: 5px;
}

.faq-content {
    overflow: hidden;
    transition: height 0.3s ease;
}

.faq-content p {
    padding-top: 16px;
    font-size: 17px;
}

.faq-details {
    border-top: 2px solid #555;
    padding: 12px 0;
}
.faq-details:last-child {
    border-bottom: 2px solid #555;
}

.callback-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.callback-popup.is-active {
    opacity: 1;
    visibility: visible;
}

.callback-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.callback-popup__content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 40px 30px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    margin: 20px;
}

.callback-popup.is-active .callback-popup__content {
    transform: translateY(0);
}

.callback-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}
.callback-popup__close:hover {
    color: #222;
}

.callback-popup__title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #222;
}

.callback-popup__desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.callback-form__group {
    margin-bottom: 15px;
}

.callback-form__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.callback-form__input:focus {
    outline: none;
    border-color: var(--accent-yellow);
}
.callback-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.callback-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 20px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    user-select: none;
}

.callback-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.callback-checkbox__checkmark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid #ccc;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s;
    margin-top: 1px;
}

.callback-checkbox input:checked ~ .callback-checkbox__checkmark {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.callback-checkbox__checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid #222;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s;
}

.callback-checkbox input:checked ~ .callback-checkbox__checkmark::after {
    transform: rotate(45deg) scale(1);
}

.callback-checkbox__text a {
    color: #222;
    text-decoration: underline;
}

.callback-form__submit {
    width: 100%;
    font-size: 16px;
    padding: 14px;
}

body.popup-open {
    overflow: hidden;
}
