.product-detail {
    max-width: 1280px;
    margin: 0 auto;
    padding: calc(1rem + var(--site-header-height)) 1rem 2rem;
}

@media (min-width: 640px) {
    .product-detail {
        padding: calc(2rem + var(--site-header-height)) 1.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .product-detail {
        padding: calc(2rem + var(--site-header-height)) 2rem 2rem;
    }
}

.product-detail__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.product-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #5F777B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-detail__back:hover {
    color: #0CAF60;
}

.product-detail__back-icon {
    width: 1rem;
    height: 1rem;
}

.product-detail__back-text {
    font-size: 1rem;
    font-weight: 400;
}

.product-attributes__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.product-attributes__title {
    margin: 0;
    color: #052E31;
    font-size: 1.125rem;
    line-height: 1.35;
    font-weight: 600;
}

.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .product-detail__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.product-detail__main-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: #F5F5F5;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.product-detail__main-image-bg {
    position: absolute;
    inset: -6%;
    width: 112%;
    height: 112%;
    object-fit: cover;
    filter: blur(16px);
    transform: scale(1.05);
    opacity: 0.6;
}

.product-detail__main-image-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-detail__favorite {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 2rem;
    height: 2rem;
    z-index: 2;
    background-color: #ffffff;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
    transition: box-shadow 0.2s ease;
}

.product-detail__favorite:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-detail__favorite svg {
    width: 1rem;
    height: 1rem;
}

.product-detail__favorite-icon--filled {
    display: none;
}

.product-detail__favorite--active .product-detail__favorite-icon--filled {
    display: block;
}

.product-detail__favorite--active .product-detail__favorite-icon--outline {
    display: none;
}

.product-detail__favorite--active svg {
    color: #FB2C36;
    fill: #FB2C36;
}

.product-detail__favorite:not(.product-detail__favorite--active) svg {
    color: #5F777B;
    transition: color 0.2s ease;
}

.product-detail__favorite:not(.product-detail__favorite--active):hover svg {
    color: #FB2C36;
}

.product-detail__actual-photo-link {
    position: absolute;
    left: 50%;
    bottom: 2.5rem;
    z-index: 2;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    color: #052E31;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    border: 1px solid transparent;
    box-shadow: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.product-detail__actual-photo-link:hover {
    background: #ffffff;
    border-color: rgba(12, 175, 96, 0.28);
    color: #0A8D4E;
    box-shadow: 0 12px 24px rgba(5, 46, 49, 0.14);
    transform: translateX(-50%) translateY(-1px);
}

.product-detail__thumbs-slider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-detail__thumbs-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.product-detail__thumb {
    width: 112px;
    height: 112px;
    background-color: #F5F5F5;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease;
    flex: 0 0 auto;
}

.product-detail__thumbs-nav {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #D7DFE0;
    background: #ffffff;
    color: #5F777B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-detail__thumbs-nav:hover {
    border-color: #0CAF60;
    color: #0CAF60;
}

.product-detail__thumbs-nav--disabled {
    opacity: 0.5;
    pointer-events: none;
}

.product-detail__thumbs-slider--static .product-detail__thumbs-nav {
    display: none;
}

.product-detail__thumb:hover {
    border-color: #0CAF60;
}

.product-detail__thumb--active {
    border-color: #0CAF60;
}

.product-detail__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail__tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-detail__tag {
    padding: 0.25rem 0.75rem;
    background-color: rgba(12, 175, 96, 0.1);
    color: #0CAF60;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-detail__title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #052E31;
    margin: 0 0 0.5rem 0;
}

@media (min-width: 1024px) {
    .product-detail__title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .product-detail__actual-photo-link {
        width: calc(100% - 1.5rem);
        max-width: 320px;
        bottom: 1.5rem;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
}

.product-detail__subtitle {
    font-size: 1.125rem;
    color: #5F777B;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.product-detail__price {
    margin-bottom: 2rem;
}

.product-detail__price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.product-detail__price-current {
    font-size: 2.25rem;
    font-weight: 700;
    color: #052E31;
}

.product-detail__price-old {
    font-size: 1.25rem;
    color: #5F777B;
    text-decoration: line-through;
}

.product-detail__discount {
    padding: 0.25rem 0.5rem;
    background-color: rgba(251, 44, 54, 0.1);
    color: #FB2C36;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-detail__report-link {
    position: relative;
    display: inline-flex;
    width: fit-content;
    color: #5F777B;
    font-size: 0.875rem;
    text-decoration: none;
    border-bottom: 1px dashed rgba(95, 119, 123, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.product-detail__report-link:hover {
    color: #0CAF60;
    border-color: rgba(12, 175, 96, 0.55);
}

.product-detail__report-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    width: min(22rem, 80vw);
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    background: #052E31;
    color: #ffffff;
    font-size: 0.8125rem;
    line-height: 1.45;
    box-shadow: 0 10px 24px rgba(5, 46, 49, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.35rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.product-detail__report-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 1.25rem;
    border-width: 0.4rem;
    border-style: solid;
    border-color: transparent transparent #052E31 transparent;
}

.product-detail__report-link:hover .product-detail__report-tooltip,
.product-detail__report-link:focus-visible .product-detail__report-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.product-detail__stock {
    font-size: 0.875rem;
    color: #0CAF60;
}

.product-detail__delivery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-detail__delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.product-detail__delivery-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #0CAF60;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.product-detail__delivery-title {
    color: #052E31;
    font-weight: 500;
}

.product-detail__delivery-subtitle {
    color: #5F777B;
    font-size: 0.875rem;
}

.product-detail__shop-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.product-detail__shop-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.product-detail__shop-meta-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: #0CAF60;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.product-detail__shop-meta-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.product-detail__shop-meta-label {
    color: #5F777B;
    font-size: 0.75rem;
}

.product-detail__shop-meta-value {
    color: #052E31;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-detail__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .product-detail__actions {
        flex-direction: row;
    }

    .product-detail__actions > * {
        flex: 1 1 0;
        min-width: 0;
    }
}

.product-detail__action-btn {
    flex: 1;
    height: 3rem;
    min-height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    appearance: none;
    -webkit-appearance: none;
}

.product-detail__action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.product-detail .product-detail__action-btn--primary {
    background-color: #0CAF60;
    color: #ffffff;
    border-color: #0CAF60;
}

.product-detail .product-detail__action-btn--primary:hover {
    background-color: rgba(12, 175, 96, 0.9);
}

.product-detail__action-btn--secondary {
    background-color: #ffffff;
    border-color: #0CAF60;
    color: #0CAF60;
}

@media (max-width: 639px) {
    .product-detail__action-btn--secondary {
        min-height: 3rem;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.product-detail__action-btn--secondary:hover {
    background-color: #0CAF60;
    color: #ffffff;
}

.product-detail__action-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.product-detail__cart-control {
    display: flex;
    align-items: center;
}

.product-detail__cart-counter {
    width: 100%;
    height: 2.5rem;
    border: none;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem;
    background: #F3F4F6;
}

.product-detail__counter-btn {
    width: 1.6rem;
    height: 1.7rem;
    flex: 0 0 1.6rem;
    border: none;
    border-radius: 0.45rem;
    background: #ffffff;
    color: #9CA3AF;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product-detail__counter-btn[data-cart-action="decrease"] {
    color: #9CA3AF;
}

.product-detail__counter-btn[data-cart-action="increase"] {
    color: #0CAF60;
}

.product-detail__counter-btn:hover {
    background-color: #f8fafb;
}

.product-detail__counter-input {
    flex: 1;
    min-width: 0;
    border: none;
    text-align: center;
    color: #052E31;
    font-weight: 600;
    height: 2.1rem;
    background: transparent;
    border-radius: 0.45rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.product-detail__cart-counter:hover .product-detail__counter-input,
.product-detail__counter-input:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(12, 175, 96, 0.18);
}

.product-detail__cart-control .product-detail__action-btn {
    width: 100%;
}
