.site-main {
    margin-top: 60px;
    flex: 1;
    font-family: Arial, sans-serif;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
}

.shop-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.top-logo {
    height: 93px;
}

.news {
    text-align: center;
    padding: 0 35px;
}

.news h2 {
    font-weight: 800;
    font-size: 26px;
    margin: 22px 0;
}

.news-photo {
    position: relative;
    background: #D7D7D7;
    aspect-ratio: 1850 / 697;
    overflow: hidden;
}

.news-slide-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.news-slide-img.is-active {
    opacity: 1;
    z-index: 1;
}

.dots {
    text-align: center;
    margin: 32px 0;
}

.dot {
    display: inline-block;
    cursor: pointer;
    margin: 0 9px;
    transition: transform 0.2s;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    vertical-align: middle;
}

button.dot:focus-visible {
    outline: 2px solid #202020;
    outline-offset: 3px;
}

.dot:hover {
    transform: scale(1.2);
}

.dot img {
    display: block;
}

.featured {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 40px 35px 50px;
    text-align: center;
}

.featured-item {
    width: 100%;
}

.featured-title {
    font-size: 26px;
    font-weight: 800;
    padding: 22px 0;
}

.featured-link-box {
    aspect-ratio: 920 / 697;
    background: #D7D7D7;
    overflow: hidden;
}

.featured-link-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.featured-item:hover img {
    transform: scale(1.03);
}

.shop-content {
    text-align: center;
    padding-bottom: 60px;
}

.shop-content-title {
    font-weight: 800;
    font-size: 26px;
    padding: 42px 0 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    row-gap: 50px;
    padding: 0 35px;
}

.link-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.link-box > a.product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #D7D7D7;
}

.link-box > a.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #D7D7D7;
    transition: transform 0.4s ease;
    display: block;
}

.link-box:hover img {
    transform: scale(1.03);
}

.content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 800;
}

.product-content {
    font-size: 14px;
    color: #666;
}

.product-price {
    font-size: 14px;
    color: #555;
    font-weight: 400;
}

.link-box .product-price {
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    color: #555;
}

.link-box .product-price .price:not(:has(del)) {
    font-size: inherit;
    line-height: inherit;
    font-weight: 400;
    color: #555;
}

.link-box .product-price .price:has(del),
.link-box .product-price .price:has(.hanagasumi-price-sale-wrap) {
    font-size: 16px;
    line-height: 18px;
}

.link-box .product-price .price:has(del) {
    font-size: inherit;
    line-height: inherit;
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
}

.link-box .product-price .price:has(del)::before {
    content: '|';
    order: 2;
    color: #858585;
    font-weight: 400;
    margin: 0 10px;
}

.link-box .product-price .price:has(del) ins {
    order: 1;
    margin: 0;
    color: #ba3d3d;
    font-weight: 700;
    text-decoration: none;
    background: none;
}

.link-box .product-price .price:has(del) ins .woocommerce-Price-amount,
.link-box .product-price .price:has(del) ins .woocommerce-Price-currencySymbol {
    color: #ba3d3d;
    font-weight: 700;
    text-decoration: none;
}

.link-box .product-price .price:has(del) del {
    order: 3;
    margin: 0;
    color: #858585;
    font-weight: 500;
    text-decoration: line-through;
}

.link-box .product-price .price:has(del) del .woocommerce-Price-amount,
.link-box .product-price .price:has(del) del bdi {
    color: #858585;
    font-weight: 500;
    text-decoration: line-through;
}

.product-price .price:has(del),
.woocommerce .price:has(del) {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
}

.product-price .price:has(del) ins,
.woocommerce .price:has(del) ins {
    text-decoration: none;
    color: #ba3d3d;
    background: none;
    order: 1;
    margin: 0;
    font-weight: 700;
}

.product-price .price:has(del) ins .woocommerce-Price-amount,
.product-price .price:has(del) ins .woocommerce-Price-currencySymbol,
.woocommerce .price:has(del) ins .woocommerce-Price-amount,
.woocommerce .price:has(del) ins .woocommerce-Price-currencySymbol {
    color: #ba3d3d;
    text-decoration: none;
    font-weight: 700;
}

.product-price .price:has(del) del,
.woocommerce .price:has(del) del {
    color: #858585;
    font-weight: 500;
    margin: 0;
    order: 3;
    text-decoration: line-through;
}

.product-price .price:has(del) del .woocommerce-Price-amount,
.product-price .price:has(del) del bdi,
.woocommerce .price:has(del) del .woocommerce-Price-amount,
.woocommerce .price:has(del) del bdi {
    color: #858585;
    font-weight: 500;
    text-decoration: line-through;
}

.product-price .price:has(del)::before,
.woocommerce .price:has(del)::before {
    content: '|';
    order: 2;
    color: #858585;
    font-weight: 400;
    margin: 0 10px;
}

.product-price .price:has(del) .woocommerce-Price-amount,
.woocommerce .price:has(del) .woocommerce-Price-amount {
    font-weight: inherit;
}

.price-row {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: inherit;
    line-height: inherit;
}

.price-row .sale {
    color: #ba3d3d;
    font-weight: 700;
}

.price-row .price-sep {
    color: #858585;
    font-weight: 400;
    margin: 0 10px;
}

.price-row .old {
    color: #858585;
    font-weight: 500;
    text-decoration: line-through;
}

.hanagasumi-price-sale-wrap {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
    font-size: 16px;
    line-height: 18px;
}

.hanagasumi-price-sale-wrap,
.hanagasumi-price-sale-wrap .woocommerce-Price-amount,
.hanagasumi-price-sale-wrap bdi {
    font-size: 16px;
    line-height: 18px;
}

.hanagasumi-sale-new {
    text-decoration: none;
    color: #ba3d3d;
    font-weight: 700;
    background: none;
    margin: 0;
}

.hanagasumi-sale-new .woocommerce-Price-amount,
.hanagasumi-sale-new .woocommerce-Price-currencySymbol {
    color: #ba3d3d;
    font-weight: 700;
    text-decoration: none;
}

.hanagasumi-sale-sep {
    color: #858585;
    font-weight: 400;
    margin: 0 10px;
    user-select: none;
}

.hanagasumi-sale-old {
    color: #858585;
    font-weight: 500;
    margin: 0;
    text-decoration: line-through;
}

.hanagasumi-sale-old .woocommerce-Price-amount,
.hanagasumi-sale-old bdi {
    color: #858585;
    font-weight: 500;
    text-decoration: line-through;
}

.link-box .product-price .price:has(.hanagasumi-price-sale-wrap)::before,
.product-price .price:has(.hanagasumi-price-sale-wrap)::before,
.woocommerce .price:has(.hanagasumi-price-sale-wrap)::before {
    content: none;
    display: none;
    margin: 0;
}

.link-box .product-price .price:has(.hanagasumi-price-sale-wrap),
.product-price .price:has(.hanagasumi-price-sale-wrap),
.woocommerce .price:has(.hanagasumi-price-sale-wrap) {
    display: inline;
}

/* :has()-фоллбэк для старых браузеров: класс ставится в woocommerce_get_price_html */
span.price.price--hanagasumi-sale::before {
    content: none !important;
    display: none !important;
    margin: 0 !important;
}

span.price.price--hanagasumi-sale {
    display: inline;
}

@media (max-width: 768px) {
    .hanagasumi-price-sale-wrap {
        flex-wrap: nowrap;
        align-items: baseline;
    }

    .hanagasumi-price-sale-wrap,
    .hanagasumi-sale-new,
    .hanagasumi-sale-old {
        white-space: nowrap;
    }

    .hanagasumi-sale-sep {
        margin-left: 5px;
        margin-right: 5px;
        flex-shrink: 0;
    }

    .product-price .price:has(del):not(:has(.hanagasumi-price-sale-wrap)),
    .woocommerce .price:has(del):not(:has(.hanagasumi-price-sale-wrap)) {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .product-price .price:has(del):not(:has(.hanagasumi-price-sale-wrap)) ins,
    .product-price .price:has(del):not(:has(.hanagasumi-price-sale-wrap)) del,
    .woocommerce .price:has(del):not(:has(.hanagasumi-price-sale-wrap)) ins,
    .woocommerce .price:has(del):not(:has(.hanagasumi-price-sale-wrap)) del {
        white-space: nowrap;
    }

    .product-price .price:has(del):not(:has(.hanagasumi-price-sale-wrap))::before,
    .woocommerce .price:has(del):not(:has(.hanagasumi-price-sale-wrap))::before {
        margin-left: 5px;
        margin-right: 5px;
        flex-shrink: 0;
    }

    .price-row {
        flex-wrap: nowrap;
        align-items: baseline;
    }

    .price-row,
    .price-row .sale,
    .price-row .old {
        white-space: nowrap;
    }

    .price-row .price-sep {
        margin-left: 5px;
        margin-right: 5px;
        flex-shrink: 0;
    }
}

.home-category-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.home-category-card .product-image {
    display: block;
    overflow: hidden;
}

.home-category-card .product-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.home-category-card:hover .product-image img {
    transform: scale(1.03);
}

.home-category-card .product-name {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    font-size: 18px;
    margin-top: 12px;
    color: #202020;
}

.load-more {
    display: inline-block;
    padding: 14px 20px;
    margin: 40px auto 0;
    background: #202020;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.load-more:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right));
        row-gap: 40px;
        column-gap: 12px;
    }

    .news {
        padding: 0 max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right));
    }

    .featured {
        padding: 0 max(24px, env(safe-area-inset-left)) 40px max(24px, env(safe-area-inset-right));
    }

    .shop-content-title {
        padding: 32px max(24px, env(safe-area-inset-left)) 16px max(24px, env(safe-area-inset-right));
    }

    .shop-content-title-box {
        padding: 0 max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right));
    }
}

@media (max-width: 768px) {
    .site-main {
        margin-top: 60px;
    }

    .shop-hero {
        padding: 0;
    }

    .top-logo {
        display: none;
    }

    .news {
        padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
    }

    .news h2 {
        font-size: 20px;
        margin: 16px 0;
    }

    .dots {
        margin: 20px 0 24px;
        padding: 0 8px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px 12px;
    }

    .dot {
        margin: 0;
    }

    .featured {
        flex-direction: column;
        gap: 24px;
        padding: 0 max(16px, env(safe-area-inset-left)) 36px max(16px, env(safe-area-inset-right));
    }

    .featured-title {
        font-size: 20px;
        padding: 16px 0;
    }

    .shop-content {
        padding-bottom: 44px;
    }

    .shop-content-title {
        font-size: 20px;
        padding: 28px max(16px, env(safe-area-inset-left)) 14px max(16px, env(safe-area-inset-right));
    }

    .shop-content-title-box {
        padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
        row-gap: 28px;
        column-gap: 10px;
    }

    .link-box {
        min-width: 0;
    }

    .link-box a.product-image {
        display: block;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background: #d7d7d7;
    }

    .link-box a.product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: auto;
        display: block;
    }

    .link-box .content {
        min-width: 0;
    }

    .product-name {
        font-size: 14px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .product-content {
        font-size: 12px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .link-box .product-price {
        font-size: 14px;
        line-height: 18px;
        font-weight: 400;
        color: #555;
        overflow-wrap: normal;
    }

    .load-more {
        display: block;
        width: calc(100% - 32px);
        max-width: 360px;
        margin: 28px auto 0;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .top-logo {
        height: 108px;
        max-width: min(340px, 96vw);
    }

    .news h2,
    .featured-title,
    .shop-content-title {
        font-size: 17px;
        letter-spacing: 0.04em;
    }

    .news-photo {
        border-radius: 0;
    }

    .dot img {
        max-width: 36px;
        height: auto;
    }

    .product-grid {
        column-gap: 8px;
        row-gap: 22px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-content {
        font-size: 11px;
    }

    .link-box .product-price {
        font-size: 14px;
        line-height: 18px;
    }
}

@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

.woocommerce .woocommerce-message {
    list-style: none;
}

.woocommerce .woocommerce-message .hanagasumi-cart-toast {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.45;
    color: #303030;
}

.woocommerce .woocommerce-message .hanagasumi-cart-toast__name {
    font-weight: 700;
    color: #202020;
}

.woocommerce .woocommerce-message .hanagasumi-cart-toast__note {
    font-weight: 400;
    color: #666;
}

.woocommerce .woocommerce-message .hanagasumi-cart-toast__link {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #202020;
    border-bottom: 1px solid rgba(32, 32, 32, 0.35);
    padding-bottom: 1px;
    margin-left: 4px;
}

.woocommerce .woocommerce-message .hanagasumi-cart-toast__link:hover {
    opacity: 0.7;
}

.single-product-page .woocommerce-message,
.woocommerce-page .woocommerce .woocommerce-message {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 14px 20px;
    text-align: center;
    background: rgba(253, 253, 253, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}