/* Vintie's & Co - Boutique 1.0.11 */
:root {
    --vco-wine: #713b43;
    --vco-wine-dark: #54272f;
    --vco-gold: #c6a15b;
    --vco-gold-soft: #e7d7b5;
    --vco-ink: #3f3334;
    --vco-muted: #8b7d7b;
    --vco-paper: #fffdf9;
    --vco-cream: #f7f0e5;
}

.vco-shop,
.vco-shop * {
    box-sizing: border-box;
}

.vco-shop {
    position: relative;
    width: 100%;
    color: var(--vco-ink);
    font-family: inherit;
}

.vco-shop__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.vco-shop__heading {
    text-align: center;
    margin: 0 auto 28px;
    max-width: 920px;
}

.vco-shop__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--vco-gold);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .34em;
    text-transform: uppercase;
}

.vco-shop__heading h2 {
    margin: 0;
    color: var(--vco-wine-dark);
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.04;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
}

.vco-shop__heading p {
    margin: 15px auto 0;
    max-width: 850px;
    color: #776b69;
    font-size: 16px;
    line-height: 1.65;
}

.vco-shop__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px auto 0;
    color: var(--vco-gold);
}

.vco-shop__ornament::before,
.vco-shop__ornament::after {
    content: '';
    width: 68px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vco-gold-soft));
}

.vco-shop__ornament::after {
    background: linear-gradient(90deg, var(--vco-gold-soft), transparent);
}

.vco-shop__ornament span {
    font-size: 12px;
}

.vco-shop__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 245px));
    justify-content: center;
    gap: 18px;
    align-items: stretch;
}

.vco-product {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(113, 59, 67, .10);
    border-radius: 18px;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 12px 30px rgba(55, 33, 35, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.vco-product:hover {
    transform: translateY(-3px);
    border-color: rgba(198, 161, 91, .42);
    box-shadow: 0 17px 38px rgba(55, 33, 35, .13);
}

.vco-product__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.18 / 1;
    background: var(--vco-cream);
}

.vco-product__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.vco-product__image-button:hover img {
    transform: scale(1.025);
}

.vco-product__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--vco-gold);
    background: linear-gradient(145deg, #fbf4e8, #f1e3ce);
}

.vco-product__placeholder small {
    color: var(--vco-wine);
    text-transform: uppercase;
    letter-spacing: .14em;
}

.vco-product__badge,
.vco-product__status {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.vco-product__badge {
    left: 12px;
    color: #fff;
    background: var(--vco-wine);
}

.vco-product__status {
    right: 12px;
    color: var(--vco-wine-dark);
    background: #f0dca9;
}

.vco-product__status--soldout {
    color: #fff;
    background: #6d6664;
}

.vco-product__body {
    padding: 14px 14px 16px;
    text-align: center;
}

.vco-product__category {
    margin-bottom: 6px;
    color: var(--vco-gold);
    font-size: 9px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .27em;
    text-transform: uppercase;
}

.vco-product__body h3,
.vco-detail__content h3 {
    margin: 0;
    color: var(--vco-wine-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
}

.vco-product__body h3 {
    font-size: 20px;
    line-height: 1.15;
}

.vco-product__price {
    margin-top: 11px;
    color: var(--vco-wine);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    line-height: 1;
    font-weight: 700;
}

/* La photo elle-même est maintenant le bouton d'ouverture du produit.
   Il n'y a plus de calque/bouton invisible au-dessus de la carte. */
.vco-shop button.vco-product__image-button,
.vco-shop button.vco-product__image-button:hover,
.vco-shop button.vco-product__image-button:focus,
.vco-shop button.vco-product__image-button:focus-visible,
.vco-shop button.vco-product__image-button:active {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: inherit !important;
    box-shadow: none !important;
    text-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: zoom-in !important;
    overflow: hidden !important;
}

.vco-shop button.vco-product__image-button img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.vco-shop button.vco-product__image-button:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(198, 161, 91, .85) !important;
}

/* Les badges restent visibles mais ne bloquent pas le clic sur la photo. */
.vco-product__badge,
.vco-product__status {
    pointer-events: none;
}

.vco-product--soldout .vco-product__media img {
    filter: grayscale(.35);
    opacity: .8;
}

.vco-shop__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 28px auto 0;
    color: #8c7c79;
    font-size: 12px;
    text-align: center;
}

.vco-shop__secure .dashicons {
    color: var(--vco-gold);
    font-size: 17px;
    width: 17px;
    height: 17px;
}

.vco-shop__empty {
    padding: 45px 25px;
    border: 1px solid rgba(198, 161, 91, .3);
    border-radius: 18px;
    text-align: center;
    background: var(--vco-paper);
}

.vco-shop__empty > span {
    color: var(--vco-gold);
    display: block;
    margin-bottom: 8px;
}

.vco-shop__empty strong {
    color: var(--vco-wine-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
}

/* Fenêtre produit agrandie */
.vco-modal[hidden] {
    display: none !important;
}

.vco-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.vco-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(35, 22, 24, .73);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.vco-modal__panel {
    position: relative;
    z-index: 2;
    overflow: hidden auto;
    width: min(980px, 96vw);
    max-height: min(88vh, 780px);
    border: 1px solid rgba(231, 215, 181, .75);
    border-radius: 22px;
    background: #fffdfa;
    box-shadow: 0 28px 80px rgba(0,0,0,.32);
}

.vco-shop button.vco-modal__close,
.vco-shop button.vco-modal__close:hover,
.vco-shop button.vco-modal__close:focus,
.vco-shop button.vco-modal__close:active,
.vco-shop button.vco-modal__close:focus-visible {
    position: absolute !important;
    z-index: 10 !important;
    top: 10px !important;
    right: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--vco-wine) !important;
    font-family: Arial, sans-serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.vco-shop button.vco-modal__close:hover,
.vco-shop button.vco-modal__close:focus-visible {
    border: 0 !important;
    background: transparent !important;
    color: var(--vco-gold) !important;
    box-shadow: none !important;
    outline: none !important;
}

.vco-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    min-height: 460px;
}

.vco-detail__media {
    position: relative;
    min-height: 460px;
    background: var(--vco-cream);
}

.vco-detail__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    max-height: 700px;
    object-fit: cover;
}

.vco-detail__content {
    display: flex;
    flex-direction: column;
    padding: 46px 38px 36px;
}

.vco-detail__content h3 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
}

.vco-detail__description {
    margin: 18px 0 0;
    color: #6f6361;
    font-size: 15px;
    line-height: 1.7;
}

.vco-product__variants {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eee4d6;
}

.vco-product__variants-title {
    margin-bottom: 10px;
    color: var(--vco-wine-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vco-product__variants-list {
    display: grid;
    gap: 7px;
}

.vco-product__variant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-radius: 9px;
    background: #f8f2e8;
    color: #645856;
    font-size: 12px;
}

.vco-product__variant strong {
    color: var(--vco-wine);
    white-space: nowrap;
}

.vco-product__variant--low {
    background: #fff2dc;
}

.vco-product__variant--out {
    opacity: .6;
}

.vco-detail__footer {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
}

.vco-detail__price {
    margin: 0 0 10px;
    font-size: 35px;
}

.vco-product__stock {
    margin: 0 0 12px;
    color: #6d625f;
    font-size: 12px;
    font-weight: 700;
}

.vco-product__stock--low {
    color: #9a6427;
}

.vco-product__stock--out {
    color: #8d5656;
}

.vco-shop a.vco-product__button,
.vco-shop span.vco-product__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--vco-wine) !important;
    border-radius: 999px;
    background: var(--vco-wine) !important;
    color: #fff !important;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .05em;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.vco-shop a.vco-product__button:hover,
.vco-shop a.vco-product__button:focus {
    border-color: var(--vco-gold) !important;
    background: var(--vco-gold) !important;
    color: var(--vco-wine-dark) !important;
    transform: translateY(-1px);
}

.vco-shop span.vco-product__button--disabled {
    border-color: #b8adaa !important;
    background: #b8adaa !important;
    cursor: not-allowed;
}

html.vco-modal-lock,
body.vco-modal-lock {
    overflow: hidden !important;
}

@media (max-width: 900px) {
    .vco-shop__grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 225px));
        justify-content: center;
        gap: 16px;
    }

    .vco-detail {
        grid-template-columns: 1fr;
    }

    .vco-detail__media,
    .vco-detail__media img {
        min-height: 0;
        max-height: 46vh;
        aspect-ratio: 4 / 3;
    }

    .vco-detail__content {
        padding: 28px 26px 30px;
    }
}

@media (max-width: 560px) {
    .vco-shop__inner {
        width: min(100% - 20px, 1180px);
    }

    .vco-shop__heading {
        margin-bottom: 20px;
    }

    .vco-shop__heading p {
        font-size: 14px;
    }

    .vco-shop__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .vco-product {
        border-radius: 13px;
    }

    .vco-product__media {
        aspect-ratio: 1 / 1;
    }

    .vco-product__body {
        padding: 11px 8px 13px;
    }

    .vco-product__category {
        font-size: 7px;
        letter-spacing: .16em;
    }

    .vco-product__body h3 {
        font-size: 17px;
    }

    .vco-product__price {
        margin-top: 9px;
        font-size: 22px;
    }

    .vco-product__hint {
        margin-top: 7px;
        font-size: 9px;
    }

    .vco-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .vco-modal__panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 18px;
    }

    .vco-detail__media,
    .vco-detail__media img {
        max-height: 39vh;
        aspect-ratio: 1.12 / 1;
    }

    .vco-detail__content {
        padding: 23px 18px 24px;
    }

    .vco-detail__content h3 {
        font-size: 31px;
    }

    .vco-detail__description {
        font-size: 14px;
        line-height: 1.6;
    }

    .vco-product__variant {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .vco-shop a.vco-product__button,
    .vco-shop span.vco-product__button {
        width: 100%;
    }
}

/* Galerie produit - v1.0.11 */
.vco-product__gallery-count {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(84, 39, 47, .9);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    pointer-events: none;
}

.vco-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 460px;
    background: var(--vco-cream);
}

.vco-gallery__stage {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 18px;
    overflow: hidden;
}

.vco-detail__media .vco-gallery__main {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 610px;
    object-fit: contain;
    background: var(--vco-cream);
}

.vco-shop button.vco-gallery__nav,
.vco-shop button.vco-gallery__nav:hover,
.vco-shop button.vco-gallery__nav:focus {
    position: absolute !important;
    z-index: 6 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 0 4px !important;
    margin: 0 !important;
    border: 1px solid rgba(198,161,91,.85) !important;
    border-radius: 50% !important;
    background: rgba(255,253,249,.94) !important;
    color: var(--vco-wine) !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.16) !important;
    font-size: 32px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}
.vco-gallery__nav--prev { left: 12px !important; }
.vco-gallery__nav--next { right: 12px !important; }
.vco-shop button.vco-gallery__nav:hover,
.vco-shop button.vco-gallery__nav:focus-visible {
    background: var(--vco-wine) !important;
    color: #fff !important;
}

.vco-gallery__counter {
    position: absolute;
    z-index: 5;
    right: 14px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(84,39,47,.88);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.vco-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px 12px;
    border-top: 1px solid #eadfcf;
    background: #fffdfa;
    scrollbar-width: thin;
}

.vco-shop button.vco-gallery__thumb,
.vco-shop button.vco-gallery__thumb:hover,
.vco-shop button.vco-gallery__thumb:focus {
    flex: 0 0 68px !important;
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    padding: 3px !important;
    margin: 0 !important;
    border: 2px solid transparent !important;
    border-radius: 10px !important;
    background: #f7f0e5 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    overflow: hidden !important;
}
.vco-shop button.vco-gallery__thumb.is-active {
    border-color: var(--vco-gold) !important;
    box-shadow: 0 0 0 1px rgba(198,161,91,.25) !important;
}
.vco-shop button.vco-gallery__thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .vco-gallery { min-height: 0; }
    .vco-gallery__stage { min-height: 0; height: 42vh; }
    .vco-detail__media .vco-gallery__main { min-height: 0; max-height: 42vh; }
}

@media (max-width: 560px) {
    .vco-gallery__stage { height: 36vh; padding: 10px; }
    .vco-detail__media .vco-gallery__main { max-height: 36vh; }
    .vco-gallery__thumbs { padding: 8px 10px 10px; }
    .vco-shop button.vco-gallery__thumb,
    .vco-shop button.vco-gallery__thumb:hover,
    .vco-shop button.vco-gallery__thumb:focus {
        flex-basis: 58px !important;
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
    }
}


