.edp-detail-page {
    background-color: #f2f0eb;
    color: #000 !important;
    font-family: var(--pd-font-body);
    padding-bottom: 100px;
}

.product-detail-box-container {
    max-width: var(--site-max-width, 1440px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(var(--site-px, 0px), env(safe-area-inset-left, 0px));
    padding-right: max(var(--site-px, 0px), env(safe-area-inset-right, 0px));
}

.edp-detail-page h1, .edp-detail-page h2, .edp-detail-page h3,
.edp-detail-page p, .edp-detail-page span, .edp-detail-page label {
    color: #000 !important;
}

.breadcrumbs {
    padding: 40px 0 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumbs a { text-decoration: none; color: #888 !important; }
.breadcrumbs span { margin: 0 8px; color: #ccc; }

.product-core {
    display: flex;
    max-width: 100%;
    margin: 0;
    padding: 0 0 100px;
    gap: 80px;
}

.product-gallery {
    flex: 1.2;
    text-align: center;
}

.main-image img {
    width: 100%;
    height: auto;
    max-width: 600px;
}

.gallery-controls {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.gallery-controls button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
}

.product-details-info {
    flex: 1;
}

.product-details-info h1 {
    font-size: 2.2rem;
    font-family: var(--pd-font-brand);
    font-weight: var(--pd-fw-regular);
    margin-bottom: 20px;
    max-width: var(--pd-title-max-width);
}

.subtitle {
    font-size: 1rem;
    color: #555 !important;
    margin-bottom: 30px;
    font-family: var(--pd-font-body);
    font-weight: var(--pd-fw-light);
    font-style: italic;
}

.description-body p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: var(--text-lede);
    font-family: var(--pd-font-body);
    font-weight: var(--pd-fw-light);
}

.description-body {
    max-width: var(--pd-description-max-width);
}

.scent-info strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--pd-font-body);
    font-weight: var(--pd-fw-medium);
}

.scent-info p {
    font-family: var(--pd-font-body);
    font-weight: var(--pd-fw-light);
}

.purchase-form {
    margin-top: 40px;
    border-top: 1px solid #dcd9d4;
    padding-top: 30px;
}

.size-selection label, .quantity-row label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-family: var(--pd-font-body);
    font-weight: var(--pd-fw-medium);
    margin-bottom: 12px;
}

.quantity-row label {
    font-size: 0.95rem;
}

.size-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.size-btn {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #000;
    background: transparent;
    cursor: pointer;
    font-family: var(--pd-font-body);
    font-weight: var(--pd-fw-regular);
    transition: all 0.2s;
}

.size-btn.active {
    background: #000;
    color: #fff !important;
}

.price-display {
    font-size: 1.8rem;
    font-family: var(--pd-font-brand);
    font-weight: var(--pd-fw-regular);
    margin-bottom: 30px;
}

.qty-selector {
    display: flex;
    border: 1px solid #000;
    width: 100%;
    margin-bottom: 30px;
    background: #f2f0eb;
}

.qty-selector button {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-family: var(--pd-font-body);
    font-weight: var(--pd-fw-regular);
}

.qty-selector input {
    width: 60px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-family: var(--pd-font-body);
    font-weight: var(--pd-fw-regular);
    background: transparent;
}

.primary-add-btn {
    width: 100%;
    background: #000;
    color: #fff !important;
    padding: 12px 20px;
    border: none;
    font-family: var(--pd-font-body);
    font-weight: var(--pd-fw-regular);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-bottom: 25px;
}

.utility-links {
    display: flex;
    gap: 30px;
    font-size: 0.85rem;
    font-family: var(--pd-font-body);
    font-weight: var(--pd-fw-medium);
}

.utility-links a {
    text-decoration: none;
    border-bottom: none;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.utility-links a svg {
    flex-shrink: 0;
}

.utility-links .utility-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.how-to-use {
    background: #fff;
    padding: 100px 0;
    text-align: center;
    margin: 40px 0;
}

.how-to-use h2 {
    font-size: var(--text-section-heading);
    font-family: var(--pd-font-brand);
    font-weight: var(--pd-fw-bold);
    margin-bottom: 20px;
}

.how-to-use p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #444 !important;
    font-family: var(--pd-font-body);
    font-weight: var(--pd-fw-light);
}

.recommendations .product-grid.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin: 40px 0;
}

.recommendations h2 {
    font-size: var(--text-section-heading);
    font-family: var(--pd-font-brand);
    font-weight: var(--pd-fw-bold);
    margin: 30px 0;
    text-align: left;
}

.mobile-purchase-panel {
    display: none;
}

.product-card-tile {
    text-align: center;
    background: transparent;
}

.product-card-tile .product-image img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.product-card-tile h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.product-card-tile .product-subtitle {
    font-size: 0.85rem;
    color: #555 !important;
    margin-bottom: 15px;
    min-height: 40px;
}

.product-card-tile .size-group {
    text-align: left;
    margin-bottom: 15px;
}

.product-card-tile .size-group label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-card-tile .select-wrapper {
    border: 1px solid #000;
    position: relative;
    background: #fff;
}

.product-card-tile .select-wrapper select {
    width: 100%;
    padding: 10px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    text-align: center;
    text-align-last: center;
    appearance: none;
    cursor: pointer;
}

.product-card-tile .product-price {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.product-card-tile .add-to-cart-btn {
    width: 100%;
    background: #000;
    color: #fff !important;
    border: none;
    padding: 14px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
}

@media (max-width: 75rem) {
    .product-core {
        gap: 48px;
    }

    .recommendations .product-grid.grid-4 {
        grid-template-columns: repeat(3, 1fr);
        margin: 36px 0;
    }
}

@media (max-width: 62rem) {
    .breadcrumbs {
        padding: 28px 0 16px;
    }

    .product-core {
        flex-direction: column;
        padding: 0 0 64px;
        gap: 28px;
    }

    .product-details-info h1 {
        font-size: 1.8rem;
    }

    .purchase-form {
        margin-top: 24px;
        padding-top: 24px;
    }

    .how-to-use {
        padding: 72px 5%;
        margin: 24px 0;
    }

    .recommendations h2 {
        margin: 24px 0 8px;
    }

    .recommendations .product-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px;
        margin-top: 24px;
    }

    .recommendations .product-card-tile:nth-child(n + 3) {
        display: none;
    }

    .product-details-info .purchase-form {
        display: none;
    }

    .mobile-purchase-panel {
        display: block;
        margin-top: 8px;
        margin-bottom: 20px;
    }

    .mobile-purchase-content .mobile-size-selection label,
    .mobile-purchase-content .mobile-quantity-row label {
        display: block;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin-bottom: 10px;
        font-family: var(--pd-font-body);
        font-weight: var(--pd-fw-medium);
    }

    .mobile-purchase-content .select-wrapper {
        border: 1px solid #7f7b75;
        background: transparent;
        margin-bottom: 20px;
    }

    .mobile-purchase-content .select-wrapper select {
        width: 100%;
        border: none;
        background: transparent;
        padding: 11px 14px;
        font-size: 1.45rem;
        font-family: var(--pd-font-body);
        font-weight: var(--pd-fw-regular);
        color: #1d1a16;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M2 2.5L7 7.5L12 2.5' stroke='%231d1a16' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        padding-right: 42px;
    }

    .mobile-purchase-content .mobile-quantity-row .qty-selector {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
        border: 1px solid #7f7b75;
        background: transparent;
    }

    .mobile-purchase-content .mobile-quantity-row .qty-selector button {
        font-size: 1.5rem;
        padding: 8px;
    }

    .mobile-purchase-content .mobile-quantity-row .qty-selector input {
        width: 70px;
        font-size: 1.45rem;
    }

    .mobile-add-cart-wrap {
        margin-top: 16px;
        background: #171310;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        gap: 12px;
    }

    .mobile-total span {
        display: block;
        font-size: 0.8rem;
        color: #fff !important;
        opacity: 1;
        margin-bottom: 3px;
    }

    .mobile-total strong {
        display: block;
        font-size: 1.5rem;
        line-height: 1;
        font-family: var(--pd-font-body);
        font-weight: var(--pd-fw-medium);
        color: #fff;
    }

    .mobile-add-cart-btn {
        border: none;
        background: #fff;
        color: #171310;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 10px 16px;
        min-width: 46%;
        font-size: 0.95rem;
        font-family: var(--pd-font-body);
        font-weight: var(--pd-fw-regular);
        cursor: pointer;
    }
}

@media (max-width: 48rem) {
    .edp-detail-page {
        padding-bottom: 64px;
    }

    .breadcrumbs {
        font-size: 0.65rem;
    }

    .breadcrumbs .current {
        display: inline-block;
        max-width: 52vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }

    .gallery-controls {
        gap: 16px;
        margin-top: 14px;
    }

    .gallery-controls button {
        font-size: 1.25rem;
    }

    .product-details-info h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .subtitle {
        margin-bottom: 18px;
        font-size: 0.9rem;
    }

    .description-body p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .size-buttons {
        margin-bottom: 18px;
    }

    .size-btn {
        padding: 12px;
    }

    .price-display {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    .qty-selector {
        width: 100%;
        max-width: 100%;
        margin-bottom: 18px;
    }

    .primary-add-btn {
        padding: 14px;
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 18px;
    }

    .utility-links {
        gap: 16px;
        flex-wrap: wrap;
        font-size: 0.8rem;
    }

    .how-to-use h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .how-to-use p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 36rem) {
    .breadcrumbs {
        padding-top: 20px;
    }

    .size-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .qty-selector {
        max-width: 100%;
    }

    .recommendations .product-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }
}
