body.single-product .site-main {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.single-product .page-content,
body.single-product .woocommerce,
body.single-product div.product {
    width: 100% !important;
    max-width: none !important;
}

.product-detail {
    width: min(100% - var(--mm-shell-gutter), var(--mm-shell-width));
    margin: 0 auto;
    padding: 48px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 32px;
    align-items: start;
}

.product-detail__loop {
    width: min(100% - var(--mm-shell-gutter), var(--mm-shell-width));
    margin: 0 auto 64px;
}

.product-detail__media {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.product-detail__gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: clip;
}

.product-detail__gallery-track {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.product-detail__image-frame {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #f6f6f6;
}

.product-detail__image {
    display: block;
    width: 100%;
    height: auto;
}

.product-detail__gallery-controls,
.product-detail__gallery-dots {
    display: none;
}

.product-detail__summary {
    position: sticky;
    top: 96px;
    align-self: start;
    width: 100%;
    box-sizing: border-box;
    padding-top: 8px;
    padding-left: 8px;
    padding-right: 8px;
    color: #111;
}

.product-detail__header {
    margin-bottom: 28px;
}

.product-detail__headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.product-detail__pricing {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.product-detail__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

.product-detail__price {
    text-align: right;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}

.product-detail__price del {
    display: inline-block;
    margin-right: 8px;
    color: #8b8b8b;
    opacity: 1;
    font-weight: 400;
}

.product-detail__price ins {
    display: inline-block;
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.product-detail__description {
    margin-bottom: 28px;
    color: #333;
    font-size: 13px;
    line-height: 1.55;
}

.product-detail__description p {
    margin: 0 0 14px;
}

.product-detail__description p:last-child {
    margin-bottom: 0;
}

.product-detail__description ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.product-detail__description li {
    margin-bottom: 4px;
}

.product-detail__option-group {
    margin-bottom: 34px;
}

.product-detail__option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.product-detail__size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.product-detail__size-option {
    min-width: 52px;
    min-height: 46px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #f3f3f3;
    color: #111;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.product-detail__size-option:hover {
    border-color: #111;
}

.product-detail__size-option.is-selected {
    border-color: #b8b8b8;
    background: #dfdbda;
    color: #5e5e5e;
}

.product-detail__stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7a7a7a;
    padding: 0;
    white-space: nowrap;
}

.product-detail__stock.is-out-of-stock {
    color: #8a1f1f;
}

.product-detail__stock-label {
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: currentColor;
}

.product-detail__stock-value {
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: none;
}

.product-detail__stock--inline {
    flex: 0 0 auto;
    margin-left: auto;
}

.product-detail__actions {
    margin-bottom: 34px;
}

.product-detail__purchase-button {
    width: 100%;
    min-height: 54px;
    border: 1px solid #000;
    border-radius: 16px;
    background: #000;
    color: #fff;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-detail__purchase-button::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 8.5H17.5L18.5 21H5.5L6.5 8.5Z' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M9 8.5V6.5C9 4.84315 10.3431 3.5 12 3.5C13.6569 3.5 15 4.84315 15 6.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.product-detail__purchase-button:hover {
    background: #000;
    border-color: #000;
    opacity: 0.92;
}

.product-detail__purchase-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-detail__short-description {
    color: #444;
    font-size: 13px;
    line-height: 1.55;
}

.product-detail__short-description p {
    margin: 0;
}

.product-detail__short-description p + p {
    margin-top: 6px;
}

.product-detail__cart-form {
    width: 100%;
    margin: 0;
}

@media (max-width: 1180px) {
    .product-detail {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 48px;
    }

    .product-detail__summary {
        top: 72px;
    }
}

@media (max-width: 820px) {
    .product-detail {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-top: 32px;
        overflow-x: hidden;
    }

    .product-detail__gallery-track {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        overflow-y: clip;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: none;
        align-items: stretch;
        scroll-padding-left: 16px;
        scroll-padding-right: 16px;
    }

    .product-detail__gallery-track::-webkit-scrollbar {
        display: none;
    }

    .product-detail__image-frame {
        flex: 0 0 calc(92% - 4px);
        scroll-snap-align: start;
    }

    .product-detail__summary {
        position: static;
        padding-top: 0;
        padding-left: 24px;
        padding-right: 24px;
        width: 100%;
        max-width: var(--mm-shell-width);
        margin: 0 auto;
    }

    .product-detail__headline {
        gap: 16px;
    }

    .product-detail__gallery-controls {
        display: none !important;
    }

    .product-detail__gallery-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
    }

    .product-detail__gallery-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(17, 17, 17, 0.2);
        cursor: pointer;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .product-detail__gallery-dot.is-active {
        background: #111;
        transform: scale(1.15);
    }
}

@media (max-width: 767px) {
    .product-detail {
        padding: 20px 0 40px;
        gap: 24px;
    }

    .product-detail__media {
        order: 1;
    }

    .product-detail__summary {
        order: 2;
    }

    .product-detail__gallery-track {
        gap: 4px;
        padding: 0 0;
        overflow-y: clip;
        scroll-padding-left: 12px;
        scroll-padding-right: 12px;
    }

    .product-detail__image-frame {
        flex: 0 0 calc(92% - 4px);
        scroll-snap-align: start;
    }

    .product-detail__summary {
        padding-left: 24px;
        padding-right: 24px;
        width: 100%;
        max-width: var(--mm-shell-width);
    }

    .product-detail__header {
        margin-bottom: 20px;
    }

    .product-detail__headline {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-detail__pricing {
        align-items: center;
    }

    .product-detail__title {
        font-size: 22px;
    }

    .product-detail__price {
        text-align: center;
        white-space: normal;
    }

    .product-detail__description,
    .product-detail__actions,
    .product-detail__option-group {
        margin-bottom: 24px;
    }

       .product-detail__option-row {
        align-items: center;
    }

    .product-detail__purchase-button {
        min-height: 56px;
    }
}

@media (max-width: 479px) {
    .product-detail {
        padding-top: 16px;
    }

    .product-detail__gallery-track {
        padding: 0;
        overflow-y: clip;
        scroll-padding-left: 8px;
        scroll-padding-right: 8px;
    }

    .product-detail__image-frame {
        flex-basis: calc(92% - 4px);
    }

    .product-detail__summary {
        padding-left: 18px;
        padding-right: 18px;
        width: 100%;
        max-width: var(--mm-shell-width);
    }

    .product-detail__size-options {
        gap: 8px;
    }

    .product-detail__size-options button{
        min-height: 0;
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 8px;
    }
}
