/* ============================================================
   Calgary Games product cards + product panel.
   Markup comes from calgarygames-products.php; behaviour from
   cg-products.js. Colours reuse the design-system variables.

   Card: one image frame (any image shape is fitted, never cropped),
   name, short summary, price, a one-line pointer to more prices,
   and a View details button.
   Panel: a <dialog> with a large gallery, zoom, the price list and
   the longer description.
   ============================================================ */

.cg-products {
    --cgp-line: #e2e4e8;
    --cgp-frame: #fff;
    --cgp-muted: #555b63;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0 2.75rem;
    padding: 0;
}

/* ---------- Card ---------- */
.cg-product {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    background: #fff;
    border: 1px solid var(--cgp-line);
    border-top: 3px solid var(--cg-red);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.cg-products.is-enhanced .cg-product {
    cursor: pointer;
}
/* Hover styles only where a pointer can hover: on a touch screen the
   last card tapped would otherwise stay lifted after its panel closes. */
@media (hover: hover) {
    .cg-products.is-enhanced .cg-product:hover {
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.13);
        transform: translateY(-2px);
    }
}
.cg-product.is-flash {
    animation: cgProductFlash 1.6s ease-out 1;
}
@keyframes cgProductFlash {
    0%   { box-shadow: 0 0 0 4px var(--cg-teal); }
    100% { box-shadow: 0 0 0 0 rgba(46, 151, 175, 0); }
}

/* ---------- Card image frame + gallery ---------- */
.cg-product__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--cgp-frame);
    border-bottom: 1px solid var(--cgp-line);
}
.cg-product__track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cg-product__track::-webkit-scrollbar {
    display: none;
}
.cg-product__track:focus-visible {
    outline: 3px solid var(--cg-teal);
    outline-offset: -3px;
}
.cg-products .cg-product__slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
.cg-products .cg-product__img {
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    max-width: none;
    object-fit: contain;
    border-radius: 0;
    transition: transform 0.25s ease;
}
@media (hover: hover) {
    .cg-products.is-enhanced .cg-product:hover .cg-product__img {
        transform: scale(1.035);
    }
}
.cg-product__noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--cgp-muted);
    text-align: center;
}

.cg-products button.cg-product__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-height: 0;
    margin: -17px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(27, 27, 47, 0.86);
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease;
}
.cg-products button.cg-product__nav--prev { left: 6px; }
.cg-products button.cg-product__nav--next { right: 6px; }
.cg-products button.cg-product__nav:hover,
.cg-products button.cg-product__nav:focus-visible {
    background: var(--cg-red);
    color: #fff;
}
.cg-products button.cg-product__nav:focus-visible {
    outline: 3px solid var(--cg-teal-light);
    outline-offset: 2px;
}
.cg-products button.cg-product__nav[disabled] {
    opacity: 0;
    pointer-events: none;
}
/* Arrows need the script; without it the photos still swipe/scroll. */
.cg-products:not(.is-enhanced) .cg-product__nav {
    display: none;
}

.cg-product__count {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    border-radius: 999px;
    background: rgba(27, 27, 47, 0.9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    pointer-events: none;
}
.cg-product__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}
.cg-product__dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(27, 27, 47, 0.3);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
    transition: background 0.15s ease, transform 0.15s ease;
}
.cg-product__dots i.is-active {
    background: var(--cg-red);
    transform: scale(1.3);
}

/* ---------- Card text ---------- */
.cg-product__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 0.85rem 0.9rem 0.9rem;
}
.cg-products .cg-product__title {
    margin: 0 0 0.35rem;
    padding: 0;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cg-dark);
    overflow-wrap: anywhere;
}
/* The summary is always shown in full: nothing typed there is ever hidden
   behind a "...". Keep it to a sentence or two; longer text belongs in
   More details. */
.cg-products .cg-product__summary {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--cgp-muted);
    overflow-wrap: anywhere;
}
/* Two classes: the theme resets the top margin of whatever follows a
   heading, which would lift the price of a product with no summary. */
.cg-products .cg-product__buy {
    margin-top: auto;
}
.cg-products .cg-product__price,
.cg-pd .cg-product__price {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--cg-red-dark);
    overflow-wrap: anywhere;
}
.cg-product__from {
    margin-right: 1px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cgp-muted, #555b63);
}
.cg-products .cg-product__hint,
.cg-pd .cg-product__hint {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--cg-dark);
    overflow-wrap: anywhere;
}
.cg-product__hint-text {
    display: inline-block;
}
.cg-product__hint-tag {
    display: inline-block;
    margin-right: 3px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--cg-teal-dark);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.7;
    text-transform: uppercase;
    vertical-align: 1px;
    white-space: nowrap;
}

/* View details: a <summary> without the script, a <button> with it. */
.cg-product__details {
    margin: 0.7rem 0 0;
}
.cg-products .cg-product__more {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0.45rem 0.6rem;
    border: 1.5px solid var(--cg-dark);
    border-radius: 6px;
    background: #fff;
    color: var(--cg-dark);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    list-style: none;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.cg-products button.cg-product__more {
    margin-top: 0.7rem;
}
.cg-products .cg-product__more::-webkit-details-marker {
    display: none;
}
.cg-products .cg-product__more:hover,
.cg-products .cg-product__more:focus-visible {
    background: var(--cg-dark);
    color: #fff;
}
@media (hover: hover) {
    .cg-products.is-enhanced .cg-product:hover .cg-product__more {
        background: var(--cg-dark);
        color: #fff;
    }
}
.cg-products .cg-product__more:focus-visible {
    outline: 3px solid var(--cg-teal);
    outline-offset: 2px;
}
.cg-product__details-body {
    padding-top: 0.75rem;
    font-size: 0.9rem;
    cursor: auto;
}

/* ---------- Price list + longer description (card fallback and panel) ---------- */
.cg-product__options {
    margin: 0 0 1rem;
}
.cg-products .cg-product__options-title,
.cg-pd .cg-product__options-title {
    margin: 0 0 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555b63;
}
.cg-products .cg-product__options-list,
.cg-pd .cg-product__options-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e2e4e8;
}
.cg-products .cg-product__options-list li,
.cg-pd .cg-product__options-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: 0.5rem 0.1rem;
    border-bottom: 1px solid #e2e4e8;
}
.cg-product__opt-label {
    min-width: 0;
    font-weight: 600;
    color: var(--cg-dark);
    overflow-wrap: anywhere;
}
/* A short price stays on one line. A long one ("1 for $3.99, 5 for $9.99")
   wraps between words instead of pushing out of the card. */
.cg-product__opt-price {
    flex: 0 1 auto;
    max-width: 62%;
    font-weight: 800;
    color: var(--cg-red-dark);
    text-align: right;
    overflow-wrap: break-word;
}
.cg-product__long > :first-child { margin-top: 0; }
.cg-product__long > :last-child { margin-bottom: 0; }
.cg-product__long {
    overflow-wrap: anywhere;
}

/* ---------- Product panel ---------- */
html.cg-pd-open {
    overflow: hidden;
}
.cg-pd {
    box-sizing: border-box;
    width: min(1060px, 94vw);
    max-width: none;
    height: min(720px, 90vh);
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--cg-text);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.cg-pd::backdrop {
    background: rgba(15, 15, 30, 0.74);
}
.cg-pd[open] {
    animation: cgPdIn 0.2s ease-out;
}
@keyframes cgPdIn {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to   { opacity: 1; transform: none; }
}
.cg-pd__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    height: 100%;
}
.cg-pd button {
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}
.cg-pd button.cg-pd__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cg-dark);
    color: #fff;
    cursor: pointer;
}
.cg-pd button.cg-pd__close:hover,
.cg-pd button.cg-pd__close:focus-visible {
    background: var(--cg-red);
    color: #fff;
}
.cg-pd button:focus-visible,
.cg-pd a:focus-visible {
    outline: 3px solid var(--cg-teal);
    outline-offset: 2px;
}

/* Gallery side */
.cg-pd__gallery {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #fff;
    border-right: 1px solid #e2e4e8;
}
.cg-pd__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}
.cg-pd__track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior: contain;
    scrollbar-width: none;
}
.cg-pd__track::-webkit-scrollbar {
    display: none;
}
.cg-pd__track:focus-visible {
    outline: 3px solid var(--cg-teal);
    outline-offset: -3px;
}
.cg-pd .cg-pd__slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    cursor: zoom-in;
}
.cg-pd .cg-pd__slide img {
    position: absolute;
    top: 16px;
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    max-width: none;
    object-fit: contain;
}
/* Zoomed: the photo is drawn at 2.5x inside a scrolling frame. */
.cg-pd__stage.is-zoomed .cg-pd__track {
    overflow: hidden;
}
.cg-pd .cg-pd__slide.is-zoomed {
    overflow: auto;
    overscroll-behavior: contain;
    cursor: zoom-out;
    scrollbar-width: thin;
}
.cg-pd .cg-pd__slide.is-zoomed img {
    position: static;
    display: block;
    width: 250%;   /* the script narrows this to the largest copy that exists */
    height: auto;
    max-width: none;
}
/* No larger copy to show: no zoom cursor, and the Zoom button is hidden. */
.cg-pd .cg-pd__slide.no-zoom {
    cursor: default;
}
.cg-pd button.cg-pd__zoom[hidden] {
    display: none;
}
/* Arrows sit either side of the thumbnails, so nothing covers the photo. */
.cg-pd__navrow {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px 12px;
}
.cg-pd__navrow[hidden] {
    display: none;
}
.cg-pd button.cg-pd__nav {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cg-dark);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease;
}
.cg-pd button.cg-pd__nav:hover,
.cg-pd button.cg-pd__nav:focus-visible {
    background: var(--cg-red);
    color: #fff;
}
.cg-pd button.cg-pd__nav[disabled] {
    opacity: 0.25;
    background: var(--cg-dark);
    cursor: default;
}
.cg-pd__counter {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(27, 27, 47, 0.9);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    pointer-events: none;
}
.cg-pd button.cg-pd__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(27, 27, 47, 0.9);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}
.cg-pd button.cg-pd__zoom:hover,
.cg-pd button.cg-pd__zoom:focus-visible {
    background: var(--cg-red);
    color: #fff;
}
.cg-pd .cg-pd__caption {
    margin: 0;
    padding: 8px 16px 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    color: var(--cg-dark);
}
.cg-pd__thumbs {
    display: flex;
    flex: 0 1 auto;
    gap: 8px;
    min-width: 0;
    padding: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.cg-pd button.cg-pd__thumb {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    min-height: 0;
    padding: 3px;
    border: 2px solid #cfd3d9;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
.cg-pd button.cg-pd__thumb:hover {
    border-color: var(--cg-dark);
    background: #fff;
}
.cg-pd button.cg-pd__thumb.is-active {
    border-color: var(--cg-red);
    background: #fff;
}
/* The strip scrolls, which would clip a ring drawn outside the thumbnail. */
.cg-pd button.cg-pd__thumb:focus-visible {
    outline-offset: -3px;
}
.cg-pd .cg-pd__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

/* Text side */
.cg-pd__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}
.cg-pd__scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1.6rem 1.5rem 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.cg-pd .cg-pd__title {
    margin: 0 44px 0.6rem 0;
    padding: 0;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--cg-dark);
    overflow-wrap: anywhere;
}
.cg-pd .cg-pd__buy .cg-product__price {
    font-size: 1.55rem;
}
.cg-pd .cg-pd__buy {
    margin: 0 0 1rem;
}
.cg-pd .cg-pd__summary {
    margin: 0 0 1.1rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--cg-text);
    overflow-wrap: anywhere;
}
.cg-pd__details {
    font-size: 0.95rem;
    line-height: 1.6;
}
.cg-pd__details p,
.cg-pd__details ul,
.cg-pd__details ol {
    margin: 0 0 0.8rem;
}
.cg-pd__details ul,
.cg-pd__details ol {
    padding-left: 1.2rem;
}
.cg-pd__details li {
    margin: 0 0 0.3rem;
}
.cg-pd__details .cg-product__options-list {
    padding-left: 0;
}
.cg-pd__details a,
.cg-pd__summary a {
    color: var(--cg-teal-dark);
    text-decoration: underline;
}
.cg-pd__cta {
    flex: 0 0 auto;
    padding: 0.9rem 1.5rem 1.1rem;
    border-top: 1px solid #e2e4e8;
    background: #fff;
}
.cg-pd a.cg-pd__contact {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    background: var(--cg-red);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease;
}
.cg-pd a.cg-pd__contact:hover,
.cg-pd a.cg-pd__contact:focus-visible {
    background: var(--cg-red-dark);
    color: #fff;
}
.cg-pd .cg-pd__note {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    color: #555b63;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .cg-products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* ---------- Phones: two cards per row, panel fills the screen ---------- */
@media (max-width: 760px) {
    .cg-pd {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        border-radius: 0;
    }
    .cg-pd__shell {
        display: block;
        height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .cg-pd button.cg-pd__close {
        position: fixed;
        top: 8px;
        right: 8px;
        width: 44px;
        height: 44px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    }
    .cg-pd__gallery {
        border-right: 0;
        border-bottom: 1px solid #e2e4e8;
    }
    .cg-pd__stage {
        flex: 0 0 auto;
        height: min(100vw, 62vh);
    }
    .cg-pd__info {
        display: block;
    }
    .cg-pd__scroll {
        padding: 1.1rem 1.1rem 1rem;
        overflow: visible;
    }
    .cg-pd .cg-pd__title {
        margin-right: 0;
        font-size: 1.25rem;
    }
    .cg-pd__cta {
        position: sticky;
        bottom: 0;
        padding: 0.7rem 1.1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
    }
    .cg-pd .cg-pd__note {
        display: none;
    }
}
@media (max-width: 600px) {
    /* Two cards per row. The grid reaches a little into the page gutter so
       each photo and title gets as much width as a phone allows. */
    .cg-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        margin: 1rem -0.75rem 2.25rem;
    }
    .cg-product__body {
        padding: 0.65rem 0.6rem 0.7rem;
    }
    .cg-products .cg-product__title {
        font-size: 0.95rem;
    }
    .cg-products .cg-product__summary {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .cg-products .cg-product__price {
        font-size: 1.1rem;
    }
    .cg-products .cg-product__hint {
        font-size: 0.74rem;
    }
    .cg-products button.cg-product__nav {
        width: 30px;
        height: 30px;
        margin-top: -15px;
    }
    .cg-products .cg-product__more {
        min-height: 40px;
        padding: 0.4rem 0.3rem;
        font-size: 0.8rem;
    }
}
@media (max-width: 339px) {
    .cg-products {
        grid-template-columns: minmax(0, 1fr);
        margin-left: 0;
        margin-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cg-product,
    .cg-products .cg-product__img,
    .cg-pd[open],
    .cg-product.is-flash {
        animation: none;
        transition: none;
    }
    .cg-products.is-enhanced .cg-product:hover {
        transform: none;
    }
    .cg-products.is-enhanced .cg-product:hover .cg-product__img {
        transform: none;
    }
}

@media print {
    .cg-product__nav,
    .cg-product__dots,
    .cg-product__count,
    .cg-product__more {
        display: none !important;
    }
    .cg-product {
        break-inside: avoid;
    }
}

/* Panel for a product with no photos: text only. */
.cg-pd.has-no-gallery .cg-pd__shell {
    grid-template-columns: minmax(0, 1fr);
}
.cg-pd.has-no-gallery .cg-pd__gallery {
    display: none;
}
/* fit-content, not auto: a modal dialog with an automatic height stretches
   to its maximum. With a very long description the text column scrolls and
   the Contact button stays in view. */
.cg-pd.has-no-gallery {
    width: min(560px, 94vw);
    height: fit-content;
    max-height: 90vh;
}
.cg-pd.has-no-gallery .cg-pd__info {
    max-height: 90vh;
}
/* After the rule above on purpose: it has to win on phones. */
@media (max-width: 760px) {
    .cg-pd.has-no-gallery {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: none;
    }
    .cg-pd.has-no-gallery .cg-pd__info {
        max-height: none;
    }
}

/* Option names that jump to their photo in the panel. */
.cg-pd button.cg-product__opt-photo {
    display: inline;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cg-teal-dark);
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.cg-pd button.cg-product__opt-photo:hover,
.cg-pd button.cg-product__opt-photo:focus-visible {
    background: none;
    color: var(--cg-red-dark);
}
