#primary {
    padding-top: 120px;
}

.product-wrapper {
    max-width: 1440px;
    margin: auto;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 72px;
    padding: 0 50px;
    padding-bottom: 80px;
    margin-top: 10px;
}

.woocommerce-product-gallery__wrapper {
    position: relative;

    > div:first-child {
        border-radius: 0;

        a {
            border-radius: 0;
        }
    }

    .save-percent-badge {
        position: absolute;
        top: 24px;
        left: 24px;
        background-color: var(--tiffany);
        font-family: "Geist";
        font-size: 12px;
        color: black;
        border-radius: 0;
        padding: 10px 18px;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .save-percent-badge--out {
        background-color: rgba(17, 24, 39, 0.88);
        color: #ffffff;
    }
}

.woocommerce-product-gallery__wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease-in-out;
}

.product-thumbnails {
    margin-top: 20px;
    display: flex;
    gap: 12px;

    > button {
        width: 96px;
        height: 96px;
        border-radius: 0;
        cursor: pointer;
        overflow: hidden;
        border-width: 1px;
        border-style: solid;
        border-color: #e5e7eb;
        transition: all 0.2s ease-in-out;
        background: none;
        padding: 0;
    }

    > button.active {
        border-color: var(--tiffany);
        box-shadow: inset 0 0 0 1px var(--tiffany);
    }

    > button:hover img {
        transform: scale(1.04);
    }
}

.fade-in {
  opacity: 0.3;
  transition: opacity 0.3s ease-in-out;
}
.fade-in[src] {
  opacity: 1;
}

.woocommerce-product-gallery__image {
    aspect-ratio: 4 / 5;
    display: block;
}

.woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.summary.entry-summary {
    padding-top: 18px;

    .product-eyebrow {
        display: block;
        margin-bottom: 12px;
        font-family: "Geist";
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.34em;
        text-transform: uppercase;
        color: var(--tiffany);
    }

    .product_title {
        margin-bottom: 12px;
        font-size: clamp(40px, 5vw, 56px);
        line-height: 0.98;
        letter-spacing: -0.03em;
        font-weight: 500;
    }

    .price {
        font-family: "Geist";
        font-size: 18px;
        font-weight: 400;
        margin-top: 0;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 12px;

        > ins {
            text-decoration: none;
            font-size: 30px;
            color: #111827;
        }

        > span {
            font-size: 30px;
            color: #111827;
        }

        > del {
            color: #98a2b3;
            font-size: 20px;
        }
    }

    .exclusive-stock {
        font-family: "initial";
        font-size: 16px;
        color: #667085;
        margin-bottom: 32px;
    }
}

.product_meta {
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.product-tags {
    display: flex;
    gap: 0;
    row-gap: 8px;
    flex-wrap: wrap;
    align-items: center;

    > span {
        font-family: "Geist";
        font-size: 14px;
        color: #98a2b3;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        background: transparent;
        padding: 0;
        border-radius: 0;
    }

    > span + span::before {
        content: "";
        display: inline-block;
        width: 4px;
        height: 4px;
        margin: 0 16px 2px;
        border-radius: 50%;
        background-color: var(--tiffany);
        vertical-align: middle;
    }
}

.product-long-description {
    margin-bottom: 32px;
}

.product-long-description p {
    margin-bottom: 0;
    color: #475467;
    font-family: "Geist";
    font-size: 16px;
    line-height: 1.6;
}

.custom-cart-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 0;
}

.custom-cart-form--disabled {
    opacity: 0.78;
}

.product-purchase-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.quantity-label {
    font-weight: 400;
    color: #667085;
    font-family: "Geist";
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.quantity-input {
    display: flex;
    align-items: center;
}

.quantity-input .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 0;
    overflow: hidden;
    width: fit-content;
    height: 48px;
}

.qty-btn {
    background: none;
    border: none;
    width: 40px;
    height: 48px;
    font-size: 16px;
    cursor: pointer;
    color: #475467;
    transition: background 0.2s, color 0.2s;
}

.qty-btn:hover {
    background: #f8fafc;
    color: #111827;
}

input.qty {
    width: 60px;
    height: 48px;
    border: none;
    border-left: 1px solid #d0d5dd;
    border-right: 1px solid #d0d5dd;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    padding: 0;
    text-align: center;
    -moz-appearance: textfield;
    font-family: "Geist";
}

input.qty::-webkit-outer-spin-button,
input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none; /* removes default +/- buttons in Chrome */
  margin: 0;
}

.add-to-cart-button {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease all;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    font-family: "Geist";
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.add-to-cart-button:hover {
    background: #1f2937;
}

.quantity-input--disabled .quantity {
    background: #ffffff;
    border-color: #d0d5dd;
}

.quantity-input--disabled .qty-btn,
.quantity-input--disabled input.qty,
.quantity-input--disabled .input-text.qty {
    cursor: not-allowed;
    color: #667085;
    background: #ffffff;
}

.quantity-input--disabled .qty-btn:hover {
    background: #ffffff;
    color: #667085;
}

.add-to-cart-button--disabled,
.add-to-cart-button--disabled:hover {
    background: #111827;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.58;
}

.product-accordion-group {
    margin-top: 44px;
    border-top: 1px solid #e5e7eb;
}

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

.product-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 21px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #111827;
    font-family: "Geist";
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    transition: color 0.2s ease;
}

.product-accordion-toggle:hover,
.product-accordion-toggle:focus-visible {
    color: var(--tiffany);
}

.product-accordion-toggle:hover .product-accordion-icon::before,
.product-accordion-toggle:hover .product-accordion-icon::after,
.product-accordion-toggle:focus-visible .product-accordion-icon::before,
.product-accordion-toggle:focus-visible .product-accordion-icon::after {
    background-color: var(--tiffany);
}

.product-accordion-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.product-accordion-icon::before,
.product-accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #98a2b3;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.product-accordion-icon::before {
    width: 16px;
    height: 1px;
}

.product-accordion-icon::after {
    width: 1px;
    height: 16px;
}

.product-accordion-toggle[aria-expanded="true"] .product-accordion-icon::after {
    opacity: 0;
}

.product-accordion-panel {
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
    will-change: height, opacity, transform;
}

.product-accordion-panel.is-open {
    opacity: 1;
    transform: translateY(0);
}

.product-accordion-content {
    padding: 0 0 28px;
}

.product-accordion-empty {
    font-family: "Geist";
    color: #667085;
    font-size: 16px;
}

.product-attributes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-attribute {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: flex-start;
    gap: 16px;
    font-family: "Geist";
}

.product-attribute-icon {
    color: #98a2b3;
}

.product-attribute-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.product-attribute-text {
    min-width: 0;
}

.product-attribute-text > .value {
    color: #111827;
    font-weight: 400;
    font-size: 16px;
    text-align: left;
}

.shipping-returns-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shipping-returns-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 16px;
    align-items: start;
}

.shipping-returns-icon {
    color: #98a2b3;
}

.shipping-returns-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.shipping-returns-text > h3 {
    margin-bottom: 8px;
    font-family: "Geist";
    font-size: 18px;
    font-weight: 400;
    color: #344054;
}

.shipping-returns-text > p {
    font-family: "Geist";
    font-size: 14px;
    color: #667085;
}

.shipping-returns-text > p:first-child {
    font-size: 16px;
    color: #364153;
    margin-bottom: 8px;
}

.related-wrapper {
    background-color: #fbf9fa;
}

.related.products {
    padding: 0 50px;
    padding-top: 80px;
    padding-bottom: 80px;
    max-width: 1440px;
    margin: auto;
    position: relative;

    > h4 {
        text-align: center;
        font-size: 48px;
        font-family: "Geist";
        margin-bottom: 16px;
    }

    > p {
        text-align: center;
        font-size: 18px;
        font-family: "Geist";
        color: #4a5565;
        margin-bottom: 64px;
    }

    > .products {
        padding: 0px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 48px;
    }
}

.woocommerce-notices-wrapper:has(+ .product) .woocommerce-message {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    color: #065f46;
}

.woocommerce-notices-wrapper:has(+ .product) .woocommerce-error {
    background: linear-gradient(135deg,#fef2f2 0%,#fff5f5 100%);
    border: 1px solid #fecaca;
    color: #7f1d1d;
}

.woocommerce-notices-wrapper:has(+ .product) .woocommerce-message,
.woocommerce-notices-wrapper:has(+ .product) .woocommerce-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
}

.woocommerce-notices-wrapper:has(+ .product) .woocommerce-error li {
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.woocommerce-notices-wrapper:has(+ .product) .woocommerce-message:before,
.woocommerce-notices-wrapper:has(+ .product) .woocommerce-message:after,
.woocommerce-notices-wrapper:has(+ .product) .woocommerce-error:before,
.woocommerce-notices-wrapper:has(+ .product) .woocommerce-error:after {
    display: none;
}

.woocommerce-notices-wrapper:has(+ .product) .woocommerce-message a,
.woocommerce-notices-wrapper:has(+ .product) .woocommerce-error a {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.woocommerce-notices-wrapper:has(+ .product) .woocommerce-message a {
    background: #065f46;
    color: #ffffff;
}

.woocommerce-notices-wrapper:has(+ .product) .woocommerce-error a {
    background: #7f1d1d;
    color: #ffffff;
}

.woocommerce-notices-wrapper:has(+ .product) .woocommerce-message a:hover {
    background: #047857;
}

.woocommerce-notices-wrapper:has(+ .product) .woocommerce-error a:hover {
    background: #991b1b;
}

@media (max-width: 1000px) {
    .product-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .product-wrapper {
        padding: 10px 20px 0px 20px;
        padding-bottom: 50px;
        gap: 36px;
    }

    .summary.entry-summary {
        padding-top: 0;

        .product-eyebrow {
            margin-bottom: 14px;
            font-size: 12px;
        }

        .product_title {
            margin-bottom: 14px;
            font-size: 36px;
        }

        .exclusive-stock {
            margin-bottom: 24px;
            font-size: 17px;
        }

        .price {
            margin-bottom: 26px;
            gap: 10px;

            > ins,
            > span {
                font-size: 32px;
            }

            > del {
                font-size: 18px;
            }
        }
    }

    #primary {
        padding-top: 105px;
    }

    .product-thumbnails {
        gap: 10px;

        > button {
            width: 80px;
            height: 80px;
        }
    }

    .product_meta {
        padding-bottom: 32px;
        margin-bottom: 32px;
    }

    .product-tags {

        > span + span::before {
            margin: 0 8px 2px;
        }
    }

    .product-long-description {
        margin-bottom: 32px;
    }

    .product-accordion-group {
        margin-top: 32px;
    }

    .product-accordion-toggle {
        padding: 22px 0;
    }

    .related.products {
        padding: 50px 20px;

        > h4 {
            font-size: 36px;
            margin-bottom: 16px;
            line-height: 1.2;
        }

        > p {
            font-size: 16px;
            margin-bottom: 64px;
        }
    }

    .related.products > .products {
        grid-template-columns: 1fr;
    }

    .woocommerce-notices-wrapper:has(+ .product) .woocommerce-message,
    .woocommerce-notices-wrapper:has(+ .product) .woocommerce-error li {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .woocommerce-notices-wrapper:has(+ .product) .woocommerce-message a,
    .woocommerce-notices-wrapper:has(+ .product) .woocommerce-error a {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .woocommerce-product-gallery__wrapper .save-percent-badge {
        top: 16px;
        left: 16px;
        padding: 8px 14px;
        font-size: 11px;
    }

    .product-thumbnails {
        flex-wrap: wrap;

        > button {
            width: calc(25% - 8px);
            min-width: 68px;
            height: auto;
            aspect-ratio: 1 / 1;
        }
    }

    .summary.entry-summary .product_title {
        font-size: 30px;
    }

    .summary.entry-summary .price > ins,
    .summary.entry-summary .price > span {
        font-size: 28px;
    }

    .product-purchase-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 479px) {

    #primary {
        padding-top: 115px;
    }
}
