.custom-product-wrapper {
    margin: auto;
}

.product-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.woocommerce img, .woocommerce-page img {
    height: 100%;
}

.product-image img {
    width: 100%;
}

.category {
    letter-spacing: 2px;
    font-size: 16px;
    color: #777;
}

.title {
    font-size: 46px;
    margin: 10px 0;
    line-height: 1.2;
}

.custom-product-rating {
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-product-rating .star-rating {
    margin: 0 !important;
    color: var(--gcid-heading-color);
    font-size: 14px;
    letter-spacing: 0.04em;
}

.custom-product-rating .woocommerce-review-link {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    text-decoration: none;
}

.custom-product-rating .woocommerce-review-link:hover,
.custom-product-rating .woocommerce-review-link:focus-visible {
    color: var(--gcid-heading-color);
    text-decoration: underline;
}

.price {
    font-size: 32px;
    margin-bottom: 20px;
}

.description {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.sizes .label {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
}

.size {
    position: relative;
    padding: 12px 18px;
    border: 1px solid #ccc;
    color: #2c2c2c;
    background: white;
    cursor: pointer;
    font-size: 16px;
}

.size.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    overflow: hidden;
}

.size.disabled::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -25%;
    width: 154%;
    height: 1.5px;
    background: #999;
    transform: rotate(45deg);
    transform-origin: center;
}

.size.active {
    border: 2px solid black;
}

/* Buttons inside custom product UI */
.custom-product-wrapper .size,
.custom-product-wrapper .add-to-cart,
.custom-product-wrapper .custom-add-to-cart .add_to_cart_inline .button,
.custom-product-wrapper .custom-add-to-cart .single_add_to_cart_button.button {
    letter-spacing: 3px;
    transition: letter-spacing 0.2s ease;
}

.custom-product-wrapper .size:not(.disabled):hover,
.custom-product-wrapper .size:not(.disabled):focus-visible,
.custom-product-wrapper .add-to-cart:enabled:hover,
.custom-product-wrapper .add-to-cart:enabled:focus-visible,
.custom-product-wrapper .custom-add-to-cart .add_to_cart_inline .button:hover,
.custom-product-wrapper .custom-add-to-cart .add_to_cart_inline .button:focus-visible,
.custom-product-wrapper .custom-add-to-cart .single_add_to_cart_button.button:hover:not(:disabled),
.custom-product-wrapper .custom-add-to-cart .single_add_to_cart_button.button:focus-visible:not(:disabled) {
    letter-spacing: 3.5px !important;
}

/* Hover/focus: no border, square corners (overrides theme / Woo) */
.custom-product-wrapper button:not(:disabled):hover,
.custom-product-wrapper button:not(:disabled):focus-visible,
.custom-product-wrapper .custom-add-to-cart a.button:hover,
.custom-product-wrapper .custom-add-to-cart a.button:focus-visible {
    border: 0 !important;
    border-radius: 0 !important;
}

.product-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.custom-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before {
    position: relative !important;
    top: 0px !important;
    left: 0px !important;
    margin: 0px !important;
}

.custom-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before {
    font-size: 30px !important;
}

.custom-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:hover.no-txt:before  {
    background-color: var(--gcid-heading-color) !important;
    color: #fff !important;
    font-size: 30px !important;
}

.custom-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt {
    position: relative;
    width: 30px;
    height: 30px;
    vertical-align: sub;
}

.add-to-cart {
    width: 100%;
    padding: 16px;
    margin-top: 30px;
    background: #eee;
    border: none;
    text-transform: uppercase;
    font-size: 16px;
}

.add-to-cart.enabled {
    background: black;
    color: white;
    cursor: pointer;
}

.custom-add-to-cart {
    margin-top: 30px;
}

.custom-product-stock-notice {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #d8b2b2;
    background: #fff7f7;
    color: #8a1f1f;
    font-size: 14px;
    line-height: 1.4;
}

.custom-add-to-cart .add_to_cart_inline {
    border: none !important;
    padding: 0 !important;
    margin: 0;
    display: block;
}

.custom-add-to-cart .add_to_cart_inline .button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 16px 20px;
    background: var(--gcid-heading-color) !important;
    color: #fff !important;
    border: 1px solid var(--gcid-heading-color);
    border-radius: 0;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none !important;
}

.custom-add-to-cart .add_to_cart_inline .added_to_cart {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: var(--gcid-heading-color);
}

.custom-add-to-cart form.cart {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-add-to-cart table.variations {
    width: 100%;
    margin: 0 0 16px;
    border: 0;
}

.custom-add-to-cart table.variations {
    display: none;
}


.custom-variation-pills {
    margin: 0 0 18px;
}

.custom-variation-controls {
    margin: 0 0 18px;
}

.custom-variation-pills-label {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 10px;
    color: #595959;
}

.color-options {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
}

.color-swatch {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #d9d9d9;
    border-radius: 999px !important;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.color-swatch-dot {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: block;
}

.color-swatch.active {
    border-color: #1b1b1b !important;
}

.color-swatch.active .color-swatch-dot {
    border-color: rgba(0, 0, 0, 0.28);
}

.color-swatch.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.custom-product-wrapper .color-swatch:not(.disabled):hover,
.custom-product-wrapper .color-swatch:not(.disabled):focus-visible {
    border: 1px solid #1b1b1b !important;
    border-radius: 999px !important;
    transform: translateY(-1px);
}

.custom-product-wrapper .color-swatch:focus-visible {
    outline: 2px solid #1b1b1b;
    outline-offset: 2px;
}

.custom-add-to-cart table.variations td,
.custom-add-to-cart table.variations th {
    padding: 0 0 10px;
    border: 0;
}

.custom-add-to-cart .variations label {
    font-size: 14px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #222;
}

.custom-add-to-cart .variations select {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #d0d0d0;
    background: #fff;
    font-size: 15px;
}

/* Match product form inputs with search input styling */
.custom-add-to-cart form.cart {
    line-height: 1.5em;
}

.custom-add-to-cart form.cart input[type="text"],
.custom-add-to-cart form.cart input[type="number"],
.custom-add-to-cart form.cart input[type="email"],
.custom-add-to-cart form.cart input[type="tel"],
.custom-add-to-cart form.cart input[type="search"],
.custom-add-to-cart form.cart textarea,
.custom-add-to-cart form.cart select,
.custom-add-to-cart form.cart .yith-wapo-option-value {
    color: #2c2c2c !important;
    font-size: 18px;
    line-height: 1.5em;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #2c2c2c;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    appearance: none;
}

.custom-add-to-cart form.cart input[type="text"]:focus,
.custom-add-to-cart form.cart input[type="number"]:focus,
.custom-add-to-cart form.cart input[type="email"]:focus,
.custom-add-to-cart form.cart input[type="tel"]:focus,
.custom-add-to-cart form.cart input[type="search"]:focus,
.custom-add-to-cart form.cart textarea:focus,
.custom-add-to-cart form.cart select:focus,
.custom-add-to-cart form.cart .yith-wapo-option-value:focus {
    color: #2c2c2c !important;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #2c2c2c;
    box-shadow: none;
    outline: none;
}

.custom-add-to-cart .reset_variations {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #333;
    text-decoration: underline;
}

.custom-add-to-cart .single_variation_wrap {
    width: 100%;
}

.custom-add-to-cart .woocommerce-variation-price {
    margin: 6px 0 12px;
    font-size: 16px;
}

.custom-add-to-cart .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.custom-add-to-cart .quantity {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
    margin: 0 !important;
    align-self: stretch;
}

/* Hide quantity completely; Woo will submit default quantity=1 */
.custom-add-to-cart .quantity {
    display: none !important;
}

/* Visible label aligned with variation section typography */
.custom-add-to-cart .quantity::before {
    content: "Cantitate";
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #777;
}

.custom-add-to-cart .quantity .qty {
    box-sizing: border-box;
    width: 92px;
    min-width: 92px;
    height: 54px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #000;
    border-radius: 0;
    background-color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    text-align: center;
    color: var(--gcid-heading-color);
    line-height: 1;
    -moz-appearance: textfield;
    appearance: textfield;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.custom-add-to-cart .quantity .qty::-webkit-outer-spin-button,
.custom-add-to-cart .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-add-to-cart .quantity .qty::placeholder {
    color: #999;
}

.custom-add-to-cart .quantity .qty:hover {
    border-color: #333;
}

.custom-add-to-cart .quantity .qty:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.custom-add-to-cart .quantity .qty:focus-visible {
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px #000;
}

.custom-add-to-cart .single_add_to_cart_button.button {
    flex: 1;
    min-height: 54px;
    margin: 0;
    padding: 16px 20px;
    background: var(--gcid-heading-color) !important;
    color: #fff !important;
    border: 1px solid var(--gcid-heading-color);
    border-radius: 0;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1;
}

.vlas-customization {
    padding: 18px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
}

.vlas-customization__toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gcid-heading-color);
    cursor: pointer;
}

.vlas-customization__toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--gcid-heading-color);
    cursor: pointer;
}

.vlas-customization__panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.32s ease, opacity 0.24s ease;
}

.vlas-customization__panel.is-open {
    opacity: 1;
}

.vlas-customization__info {
    margin-top: 14px;
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.6;
}

.vlas-customization__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.vlas-customization__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.vlas-customization__field span {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
}

.vlas-customization__field-note {
    margin-top: 4px;
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: #7a7a7a;
}

.custom-add-to-cart .vlas-customization__field input[type="text"] {
    height: 46px;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid #2c2c2c;
    background: transparent;
    color: #222;
    font-size: 16px;
    line-height: 1.3;
    border-radius: 0;
}

.custom-add-to-cart .vlas-customization__field input[type="text"]:focus {
    border-bottom-color: #000;
    box-shadow: none;
}

.vlas-customization__agreement {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.vlas-customization__agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--gcid-heading-color);
    cursor: pointer;
}

.product-tabs {
    margin-top: 28px;
    border-top: 1px solid #ddd;
}

.product-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #ddd;
}

.product-tabs__button {
    position: relative;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.product-tabs__button::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 1px;
    background: transparent;
    transition: background-color 0.2s ease;
}

.product-tabs__button.is-active {
    color: #111;
}

.product-tabs__button.is-active::after {
    background: #111;
}

.product-tabs__panels {
    padding-top: 18px;
}

.product-tabs__panel {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.product-tabs__panel[hidden] {
    display: none !important;
}

.product-tabs__panel > *:first-child {
    margin-top: 0;
}

.product-tabs__panel > *:last-child {
    margin-bottom: 0;
}

.product-accordion-mobile {
    display: none;
    margin-top: 22px;
    border-top: 1px solid #ddd;
}

.product-accordion-mobile__item {
    border-bottom: 1px solid #ddd;
}

.product-accordion-mobile__button {
    width: 100%;
    position: relative;
    border: 0;
    background: transparent;
    color: #222;
    text-align: left;
    padding: 14px 34px 14px 0;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.product-accordion-mobile__button::after {
    content: "+";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
    color: #444;
}

.product-accordion-mobile__button.is-active::after {
    content: "−";
}

.product-accordion-mobile__panel {
    padding: 0 0 14px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.product-accordion-mobile__panel[hidden] {
    display: none !important;
}

.product-accordion-mobile__panel > *:first-child {
    margin-top: 0;
}

.product-accordion-mobile__panel > *:last-child {
    margin-bottom: 0;
}

.product-acf-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-acf-details__row {
    padding-bottom: 12px;
    border-bottom: 1px solid #efefef;
}

.product-acf-details__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.product-acf-details__label {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #222;
}

.product-acf-details__value {
    color: #555;
}

.product-acf-details__value p:last-child,
.product-tab-size-chart p:last-child {
    margin-bottom: 0;
}

.product-acf-details__value ul {
    margin: 0;
    padding-left: 18px;
}

.related.products {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Desktop layout */
@media (min-width: 992px) {
    .product-grid {
        flex-direction: row;
        align-items: flex-start;
        gap: 0px;
    }

    .product-gallery {
        position: relative;
        width: 50%;
    }

    .product-info {
        width: 50%;
        position: sticky;
        padding: 100px;
        top: 0px;
        margin: 0 auto;
    }
}

/* Masonry gallery */
.masonry-gallery {
    column-count: 2;
    column-gap: 0px;
}

.masonry-item {
    width: 100%;
    display: block;
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0;
}

.gallery-media-button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
}

.gallery-main-image {
    width: 100%;
    height: auto;
    display: block;
}

/* MOBILE IMPROVEMENTS */
@media (max-width: 992px) {

    .title {
        font-size: 32px; /* scaled down for mobile */
    }

    .price {
        font-size: 24px;
    }

    .product-info {
        padding: 20px 0;
        position: static;
        width: 90%;
        max-width: 90%;
        margin: 0 auto;
    }

    .product-tabs {
        display: none;
    }

    .product-accordion-mobile {
        display: block;
    }

    .size {
        text-align: center;
        color: #2c2c2c;
        font-size: 12px;
        padding: 7px;
    }

    .color-options {
        gap: 10px;
    }

    .color-swatch {
        width: 44px;
        height: 44px;
    }

    .color-swatch-dot {
        width: 32px;
        height: 32px;
    }

    .add-to-cart {
        font-size: 16px;
        padding: 14px;
    }

    .masonry-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .masonry-gallery::-webkit-scrollbar {
        display: none;
    }

    .masonry-item {
        flex: 0 0 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .gallery-media-button {
        position: relative;
        width: 100%;
        aspect-ratio: auto;
        overflow: visible;
        background: transparent;
        cursor: zoom-in;
    }

    .gallery-media-button::before {
        display: none;
    }

    .gallery-main-image {
        position: relative;
        z-index: 0;
        width: 100%;
        height: auto;
        display: block;
        object-fit: initial;
        background: transparent;
    }

    .masonry-item.is-short-image .gallery-media-button {
        aspect-ratio: 3 / 4;
        overflow: hidden;
        background: #f3f3f3;
    }

    .masonry-item.is-short-image .gallery-media-button::before {
        content: "";
        display: block;
        position: absolute;
        inset: -12px;
        background-image: var(--gallery-blur-image);
        background-size: cover;
        background-position: center;
        filter: blur(16px);
        transform: scale(1.08);
        opacity: 0.95;
        pointer-events: none;
    }

    .masonry-item.is-short-image .gallery-main-image {
        z-index: 1;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .mobile-gallery-thumbs {
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        overflow-x: auto;
        padding: 12px;
        max-height: 80vh;
        margin: 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

    .mobile-gallery-thumb {
        flex: 0 0 auto;
        width: 54px;
        height: 74px;
        padding: 0;
        border: 1px solid transparent;
        background: #fff;
        opacity: 0.6;
        transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
        cursor: pointer;
    }

    .mobile-gallery-thumb.is-active {
        opacity: 1;
        border-color: var(--gcid-heading-color);
        transform: translateY(-1px);
    }

    .mobile-gallery-thumb-image {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .gallery-progress {
        position: relative;
        width: 100%;
        height: 2px;
        background: rgba(0,0,0,0.15);
    }

    .gallery-progress-bar {
        height: 100%;
        width: 0%;
        background: black;
        transition: width 0.18s linear;
    }
    .size.disabled::after {
        content: "";
        position: absolute;
        top: 50%;
        left: -20%;
        width: 140%;
        height: 1.5px;
        background: #999;
        transform: rotate(36deg);
        transform-origin: center;
    }

    .vlas-customization {
        padding: 16px 14px;
    }

    .vlas-customization__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

body.gallery-lightbox-open {
    overflow: hidden;
    touch-action: none;
}

body.gallery-lightbox-open .et-db #et-boc .et-l.et-l--header .et_builder_inner_content {
    z-index: 1 !important;
}

body.gallery-lightbox-open .gallery-lightbox {
    z-index: 200100 !important;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200100 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s ease, visibility 0.26s ease;
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, 0.94);
}

.gallery-lightbox__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
}

.gallery-lightbox__track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.gallery-lightbox__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-lightbox__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.18s ease;
}

.gallery-lightbox__image.is-zoomed {
    cursor: grab;
    transition: transform 0.08s linear;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    z-index: 2;
    border: 0;
    background: rgba(22, 22, 22, 0.4);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(3px);
}

.gallery-lightbox__close {
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 29px;
    line-height: 1;
}

.gallery-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 64px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

.gallery-lightbox__nav--prev {
    left: 14px;
}

.gallery-lightbox__nav--next {
    right: 14px;
}

.gallery-lightbox__meta {
    position: absolute;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.45);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (min-width: 993px) {
    .mobile-gallery-thumbs {
        display: none;
    }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 480px) {
    .title {
        font-size: 28px;
    }

    .price {
        font-size: 22px;
    }

    .size {
        flex: 1 1 100%; /* 1 per row */
    }
}