/* Product page (shop.pen hmVnD / H7wd2d). Scope to .pen-pdp — do not set * / body font-family. */

body:has(.pen-pdp) {
    background: var(--pen-bg);
}

body:has(.pen-pdp) .wrapper,
body:has(.pen-pdp) .wrapper-shop,
body:has(.pen-pdp) .shop-product.pen-pdp {
    background: var(--pen-bg);
}

.pen-pdp {
    font-family: var(--pen-font-body);
    color: var(--pen-text);
    padding-bottom: 48px;
}

.pen-pdp__main {
    margin-bottom: 32px;
}

.pen-pdp__gallery {
    position: relative;
}

.pen-pdp__gallery .ms-showcase2-template {
    max-width: 100%;
    background: transparent;
    padding: 0;
}

.pen-pdp .ms-view {
    background: var(--pen-bg-soft) !important;
    border-radius: 24px;
}

.pen-pdp .ms-slide img,
.pen-pdp .ms-slide-container img {
    object-fit: contain !important;
}

.pen-pdp .ms-thumb-list {
    display: none !important;
}

.pen-pdp__thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pen-pdp__thumbs::-webkit-scrollbar {
    display: none;
}

.pen-pdp__thumb {
    display: flex;
    flex: 0 0 calc((100% - 36px) / 4);
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 96px;
    padding: 0;
    background: var(--pen-bg-soft);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    scroll-snap-align: start;
}

.pen-pdp__thumb.is-active {
    border-color: var(--pen-brand);
}

.pen-pdp__thumb img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.pen-pdp__sale {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 4;
    padding: 6px 12px;
    background: var(--pen-sale);
    border-radius: 999px;
    color: #fff;
    font-family: var(--pen-font-head);
    font-size: 13px;
    font-weight: 800;
}

.pen-pdp__gallery-fav {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4;
    color: var(--pen-text-muted);
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
}

.pen-pdp__gallery-fav:hover,
.pen-pdp__gallery-fav:focus {
    color: var(--pen-sale);
    text-decoration: none;
}

.pen-pdp__eyebrow {
    margin: 0 0 8px;
    color: var(--pen-brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pen-pdp .shop-product-heading h2 {
    margin: 0 0 12px;
    color: var(--pen-ink-navy);
    font-family: var(--pen-font-head);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.pen-pdp__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--pen-text-muted);
    font-size: 14px;
}

.pen-pdp__stock {
    color: var(--pen-leaf);
    font-weight: 600;
}

.pen-pdp__stock::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    background: var(--pen-leaf);
    border-radius: 50%;
    content: "";
}

.pen-pdp__rating {
    color: var(--pen-ink-navy);
    font-weight: 700;
}

.pen-pdp__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.pen-pdp__price,
.pen-pdp .shop-product-prices .shop-red {
    color: var(--pen-ink-navy) !important;
    font-family: var(--pen-font-head);
    font-size: 40px;
    font-weight: 800;
}

.pen-pdp__price-old,
.pen-pdp .shop-product-prices .line-through {
    color: var(--pen-text-muted);
    font-size: 18px;
}

.pen-pdp .shop-product-prices .pen-pdp__save,
.pen-pdp__save {
    display: inline-block !important;
    padding: 4px 10px;
    background: #fdeef0;
    border-radius: 8px;
    color: var(--pen-sale) !important;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.3;
}

.pen-pdp__lead {
    margin: 0 0 20px;
    color: var(--pen-text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.pen-pdp__packs {
    margin-bottom: 16px;
}

.pen-pdp__packs-label {
    margin: 0 0 8px;
    color: var(--pen-ink-navy);
    font-family: var(--pen-font-head);
    font-size: 14px;
    font-weight: 800;
}

.pen-pdp__packs .form-group {
    margin: 0;
}

.pen-pdp__pack {
    display: inline-flex;
    flex-direction: column !important;
    align-items: flex-start;
    justify-content: center;
    min-width: 70px;
    min-height: 58px;
    margin: 0 8px 8px 0;
    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid var(--pen-line);
    border-radius: 999px;
    color: var(--pen-ink-navy);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.pen-pdp__pack-w {
    font-family: var(--pen-font-head);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.pen-pdp__pack.is-active .pen-pdp__pack-w,
.pen-pdp__pack:has(input:checked) .pen-pdp__pack-w {
    color: var(--pen-brand-ink);
}

.pen-pdp__pack-p {
    color: var(--pen-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.pen-pdp__pack.is-active,
.pen-pdp__pack:has(input:checked) {
    border-color: var(--pen-brand);
    box-shadow: 0 0 0 1px var(--pen-brand);
}

.pen-pdp__form.product-quantity,
.pen-pdp .product-quantity {
    display: block;
}

.pen-pdp__buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pen-pdp__qty {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 6px;
    background: #fff;
    border: 1.5px solid var(--pen-line);
    border-radius: 999px;
}

.pen-pdp #decButton,
.pen-pdp #incButton,
.pen-pdp .quantity-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--pen-bg-soft);
    border: 0;
    border-radius: 999px;
    color: var(--pen-ink-navy);
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
}

.pen-pdp #addtocartform-quantity,
.pen-pdp .quantity-field {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--pen-ink-navy);
    font-family: var(--pen-font-head);
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.pen-pdp .add-to-cart-button {
    flex: 1 1 180px;
    min-height: 54px;
    padding: 12px 20px;
    background: var(--pen-brand) !important;
    border: 0;
    border-radius: 999px;
    color: #fff !important;
    font-family: var(--pen-font-head);
    font-size: 16px;
    font-weight: 800;
}

.pen-pdp .add-to-cart-button .fa {
    margin-right: 8px;
}

.pen-pdp .add-to-cart-button:hover,
.pen-pdp .add-to-cart-button:focus {
    background: var(--pen-brand-deep) !important;
    color: #fff !important;
}

.pen-pdp__fav {
    display: inline-flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #fff;
    border: 1.5px solid var(--pen-line);
    border-radius: 999px;
    color: var(--pen-text-muted);
    font-size: 20px;
    text-decoration: none;
}

.pen-pdp__fav:hover,
.pen-pdp__fav:focus {
    border-color: var(--pen-line);
    color: var(--pen-sale);
    text-decoration: none;
}

.pen-pdp__fav--solo {
    width: auto;
    padding: 0 16px;
    font-family: var(--pen-font-head);
    font-size: 14px;
    font-weight: 700;
}

.pen-pdp .add-to-wishlist {
    margin-top: 8px;
    font-size: 14px;
}

.pen-pdp .add-to-wishlist a {
    color: var(--pen-brand);
}

.pen-pdp__perks {
    margin-top: 16px;
}

.pen-pdp__perks .container {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

.pen-pdp__perks .row {
    margin-left: 0;
    margin-right: 0;
}

.pen-pdp__perk-list {
    display: flex !important;
    flex-direction: column !important;
    width: auto;
    margin: 0 !important;
    padding: 4px;
    background: var(--pen-bg-soft);
    border: 0;
    border-radius: 16px;
    list-style: none;
}

.pen-pdp__perk-list li {
    display: flex !important;
    width: 100% !important;
    align-items: center;
    gap: 14px;
    padding: 14px;
    text-align: left;
}

.pen-pdp__perk-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    background: #fff;
    border-radius: 10px;
    color: var(--pen-brand);
    font-size: 16px;
}

.pen-pdp__perk-list strong {
    display: block;
    margin: 0 0 2px;
    color: var(--pen-ink-navy);
    font-family: var(--pen-font-head);
    font-size: 14px;
    font-weight: 800;
}

.pen-pdp__perk-list small {
    display: block;
    margin: 0;
    color: var(--pen-text-muted);
    font-size: 13px;
}

.pen-pdp__details {
    margin: 8px 0 40px;
    padding: 8px 0 0;
    background: transparent;
}

.pen-pdp__tabs {
    margin-bottom: 20px;
    border-bottom: 0;
}

.pen-pdp__tabs > li > a {
    margin-right: 16px;
    padding: 8px 0;
    border: 0;
    color: var(--pen-text-muted);
    font-family: var(--pen-font-head);
    font-size: 16px;
    font-weight: 700;
}

.pen-pdp__tabs > li.active > a,
.pen-pdp__tabs > li.active > a:hover,
.pen-pdp__tabs > li.active > a:focus {
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--pen-brand);
    color: var(--pen-ink-navy);
}

.pen-pdp__details-body {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
}

.pen-pdp__tab-content {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    max-width: 100%;
}

.pen-pdp__tab-content,
.pen-pdp__tab-content p {
    color: var(--pen-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.pen-pdp__tab-content ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.pen-pdp__tab-content li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 22px;
    color: var(--pen-text);
}

.pen-pdp__tab-content li::before {
    position: absolute;
    left: 0;
    color: var(--pen-leaf);
    content: "✔";
    font-size: 12px;
}

.pen-pdp__details-title,
.pen-pdp__facts-title {
    margin: 0 0 12px;
    color: var(--pen-ink-navy);
    font-family: var(--pen-font-head);
    font-size: 18px;
    font-weight: 800;
}

.pen-pdp__facts {
    flex: 0 0 380px;
    width: 380px !important;
    max-width: 100%;
    padding: 24px;
    background: var(--pen-bg-soft);
    border-radius: 18px;
}

.pen-pdp__specs {
    margin: 0;
}

.pen-pdp__spec {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pen-line);
}

.pen-pdp__spec:last-child {
    border-bottom: 0;
}

.pen-pdp__spec dt {
    margin: 0;
    color: var(--pen-text-muted);
    font-weight: 600;
}

.pen-pdp__spec dd {
    margin: 0;
    color: var(--pen-ink-navy);
    font-weight: 700;
    text-align: right;
}

.pen-pdp__related {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 40px max(15px, calc(50vw - 570px)) 24px;
    background: var(--pen-bg-soft);
}

.pen-pdp__related-title {
    margin: 0 0 20px;
    color: var(--pen-ink-navy);
    font-family: var(--pen-font-head);
    font-size: 28px;
    font-weight: 800;
}

.pen-pdp__related-grid.row.illustration-v2 {
    display: flex;
    flex-wrap: wrap;
}

.pen-pdp .pen-product-col {
    width: 100%;
}

.pen-pdp #pen-pdp-specs {
    display: none !important;
}

@media (min-width: 992px) {
    .pen-pdp__main.row {
        display: flex;
        align-items: flex-start;
    }

    .pen-pdp__gallery.col-md-5,
    .pen-pdp__info.col-md-7 {
        float: none;
    }

    .pen-pdp__gallery.col-md-5 {
        width: 43%;
        padding-right: 24px;
    }

    .pen-pdp__info.col-md-7 {
        width: 57%;
        padding-left: 16px;
    }

    .pen-pdp .pen-product-col {
        width: 25%;
    }

    .pen-pdp__tab-delivery {
        display: list-item;
    }
}

@media (max-width: 991px) {
    .pen-pdp .shop-product-heading h2 {
        font-size: 24px;
    }

    .pen-pdp__price,
    .pen-pdp .shop-product-prices .shop-red {
        font-size: 28px;
    }

    .pen-pdp .nav-tabs > li.pen-pdp__tab-delivery {
        display: none !important;
    }

    .pen-pdp #pen-pdp-delivery {
        display: block !important;
        margin-top: 16px;
    }

    .pen-pdp__facts {
        flex: 1 1 100%;
        width: 100% !important;
    }

    .pen-pdp__pack-p {
        display: none;
    }

    .pen-pdp__pack {
        min-height: 44px;
        padding: 10px 18px;
    }

    .pen-pdp__qty {
        flex: 1 1 100%;
        justify-content: center;
        order: 1;
        height: 44px;
    }

    .pen-pdp .add-to-cart-button {
        flex: 1 1 auto;
        order: 2;
        min-height: 52px;
    }

    .pen-pdp__fav {
        order: 3;
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        margin-left: 0;
    }

    .pen-pdp__thumbs {
        gap: 10px;
    }

    .pen-pdp__thumb {
        height: 78px;
        border-radius: 12px;
    }

    .pen-pdp__thumb img {
        width: 56px;
        height: 56px;
    }
}
