
/* =================================
   BREADCRUMBS
================================= */

.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 26px;
    color: var(--muted);
    font-size: 11px;
}

.breadcrumbs a:hover {
    color: var(--gold-dark);
}

.breadcrumbs span:last-child {
    color: var(--ink);
}


/* =================================
   PRODUCT DETAIL LAYOUT
================================= */

.product-detail {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(35px, 7vw, 90px);
    padding-top: 30px;
    padding-bottom: 75px;
    align-items: start;
}


/* =================================
   MAIN PRODUCT IMAGE
   Show the entire image without cropping
================================= */

.main-image {
    position: relative;
    width: 100%;
    aspect-ratio: .94 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    cursor: zoom-in;
}

.main-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .25s ease;
    transform-origin: center center;
}

.image-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    background: white;
    padding: 8px 11px;
    font-size: 9px;
    letter-spacing: 1.3px;
}


/* =================================
   IMAGE ZOOM
================================= */

.main-image.zoomed {
    cursor: zoom-out;
}

.main-image.zoomed img {
    transform: scale(2);
    transition: transform .15s ease;
}

.main-image img.zoom-hover {
    transform: scale(1.8);
}

@media (hover: hover) and (pointer: fine) {
    .main-image:not(.zoomed):hover {
        cursor: zoom-in;
    }
}


/* =================================
   THUMBNAILS
================================= */

.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.thumbnail {
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}

.thumbnail.active {
    border-color: var(--gold);
    padding: 3px;
}

.thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 1.25 / 1;
    object-fit: contain;
    object-position: center;
}

.thumbnail span {
    display: block;
    padding: 5px;
    font-size: 11px;
}

.gallery-hint {
    color: var(--muted);
    font-size: 10px;
    margin: 8px 0 0;
}


/* =================================
   GALLERY ARROWS
================================= */

.gallery-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #ffffffb8;
    border-radius: 50%;
    background: #ffffffdf;
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.gallery-arrow:hover {
    background: var(--gold);
    color: white;
}

.gallery-prev {
    left: 14px;
}

.gallery-next {
    right: 14px;
}


/* =================================
   VIEW SWITCHER
================================= */

.view-switcher {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    margin-top: 14px;
}

.view-button {
    border: 0;
    border-right: 1px solid var(--line);
    background: white;
    padding: 11px;
    font-size: 11px;
    cursor: pointer;
    color: var(--muted);
}

.view-button:last-child {
    border-right: 0;
}

.view-button.active {
    background: #f7ead3;
    color: var(--gold-dark);
    font-weight: 700;
}


/* =================================
   PRODUCT INFORMATION
================================= */

.product-info {
    padding-top: 10px;
}

.product-info .eyebrow {
    margin-bottom: 12px;
}

.product-info h1 {
    font-size: clamp(37px, 4vw, 51px);
    margin-bottom: 17px;
}

.product-lead {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.canvalink{
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;    
    color: var(--gold-dark);
}

.product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
}

.availability-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6d8a62;
}

.meta-divider {
    color: #c8c0b5;
    padding: 0 3px;
}

.detail-divider {
    height: 1px;
    background: var(--line);
    margin: 22px 0;
}


/* =================================
   PRODUCT OPTIONS
================================= */

.option-group {
    margin-bottom: 22px;
}

.option-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.option-heading label,
.quantity-group > label {
    font-size: 12px;
    font-weight: 700;
}

.option-heading > span {
    color: var(--muted);
    font-size: 11px;
}

.option-group select {
    width: 100%;
    border: 1px solid var(--line);
    background: white;
    padding: 13px;
    color: var(--ink);
    outline: none;
    border-radius: 2px;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.choice {
    border: 1px solid var(--line);
    background: white;
    padding: 10px 14px;
    font-size: 11px;
    cursor: pointer;
}

.choice.selected,
.choice:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: #fffaf1;
}


/* =================================
   QUANTITY
================================= */

.quantity-control {
    display: flex;
    width: 135px;
    border: 1px solid var(--line);
    margin-top: 10px;
}

.quantity-control button {
    width: 38px;
    border: 0;
    background: white;
    cursor: pointer;
    font-size: 18px;
}

.quantity-control input {
    min-width: 0;
    width: 58px;
    text-align: center;
    border: 0;
    outline: 0;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-group small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}


/* =================================
   QUOTE PANEL
================================= */

.quote-panel {
    background: #f5efe6;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.quote-panel > div {
    min-width: 0;
}

.quote-panel > div span {
    display: block;
    font-size: 8px;
    letter-spacing: 1.4px;
    color: var(--gold-dark);
    margin-bottom: 5px;
}

.quote-panel strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.quote-panel .button {
    flex: 0 0 auto;
    padding: 12px 14px;
    gap: 10px;
}

.price-note {
    color: var(--muted);
    font-size: 10px;
    margin: 12px 0 24px;
}


/* =================================
   PRODUCT PROMISES
================================= */

.product-promises {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 10px;
}

.product-promises > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-promises > div > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f7ead3;
    color: var(--gold-dark);
    font-size: 17px;
    flex: 0 0 32px;
}

.product-promises p {
    margin: 0;
    line-height: 1.45;
}

.product-promises strong,
.product-promises small {
    display: block;
}

.product-promises strong {
    font-size: 10px;
}

.product-promises small {
    font-size: 9px;
    color: var(--muted);
    margin-top: 3px;
}


/* =================================
   PRODUCT DESCRIPTION
================================= */

.product-description {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-top: 35px;
    padding-bottom: 40px;
}

.description-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--line);
}

.description-tab {
    padding: 0 0 13px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
    color: var(--muted);
}

.description-tab.active {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.description-panel {
    padding-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
}

.description-panel h2 {
    font-size: 21px;
    margin-bottom: 12px;
}

.description-panel p,
.description-panel li {
    color: var(--muted);
    font-size: 12px;
}

.description-panel ul,
.description-panel ol {
    margin: 0;
    padding-left: 20px;
}

.description-panel li {
    margin-bottom: 7px;
}


/* =================================
   RELATED PRODUCTS
================================= */

.related {
    padding-top: 70px;
    padding-bottom: 75px;
}

.related .section-heading {
    margin-bottom: 22px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.related-card img {
    aspect-ratio: 1.4 / 1;
    margin-bottom: 12px;
    background: var(--cream);
}

.related-card:hover {
    color: var(--gold-dark);
}


/* =================================
   TABLET RESPONSIVE
================================= */

@media (max-width: 850px) {

    .product-detail {
        gap: 30px;
    }

    .quote-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .quote-panel .button {
        width: 100%;
    }

    .product-promises {
        grid-template-columns: 1fr;
    }

}


/* =================================
   MOBILE RESPONSIVE
================================= */

@media (max-width: 650px) {

    .breadcrumbs {
        padding-top: 20px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 20px;
        padding-bottom: 50px;
    }

    .main-image {
        aspect-ratio: 1 / .88;
    }

    .product-info {
        padding-top: 0;
    }

    .product-info h1 {
        font-size: 42px;
    }

    .quote-panel {
        flex-direction: row;
        align-items: center;
    }

    .quote-panel .button {
        width: auto;
    }

    .product-promises {
        grid-template-columns: 1fr 1fr;
    }

    .description-panel {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related {
        padding-top: 50px;
        padding-bottom: 55px;
    }

    .related-grid {
        gap: 12px;
    }

    .related-card {
        font-size: 10px;
    }

    .related-card img {
        margin-bottom: 8px;
    }

}


@media (max-width: 390px) {

    .quote-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .quote-panel .button {
        width: 100%;
    }

    .product-promises {
        grid-template-columns: 1fr;
    }

}
