.page-content {
    max-width: var(--content-max-width);
}

.single-product .page-content {
    max-width: var(--product-content-width);
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.site-content {
    flex: 1;
    display: flex;
    /*align-items: center; */
    justify-content: center;

    padding: var(--space-xxl) var(--space-xl);
}

.content-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
	
}


.content-narrow {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    text-align: center;
}


.section {
    margin-bottom: 4rem;
}

.section-small {
    margin-bottom: 2rem;
}


@media (max-width: 768px) {

    .site-content {
        padding: 3rem 1.5rem;
    }

    .content-narrow {
        max-width: 100%;
    }
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* =========================================================
   PRODUCT LAYOUT
   ========================================================= */

.woocommerce div.single-product > div.product {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 60px;
    align-items: start;
}

/* Sicherheitsnetz – keine Vererbung kaputtgehen lassen */
article.product {
    display: block;
}


/* =========================================================
   PRODUCT GALLERY – STAGE ONLY (Flexslider untouched)
   ========================================================= */

.woocommerce div.single-product > div.product
.woocommerce-product-gallery {
    width: 100%;
    float: none;

    display: grid;
    grid-template-columns: 90px 1fr; /* Thumbs | Main image */
    gap: 24px;
    align-items: start;
}


/* =========================================================
   THUMBNAILS (visual layout only)
   ========================================================= */

.woocommerce-product-gallery .flex-control-thumbs {
    grid-column: 1;

    display: flex;
    flex-direction: column;
    gap: 14px;

    margin: 0;
    padding: 0;
    list-style: none;

    width: 90px;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: 90px;
}

.woocommerce-product-gallery .flex-control-thumbs img {
    width: 100%;
    height: auto;
    display: block;

    border-radius: 6px;
    opacity: 0.55;
    cursor: pointer;

    transition: opacity 0.25s ease, outline 0.25s ease;
}

.woocommerce-product-gallery
.flex-control-thumbs li.flex-active img {
    opacity: 1;
    outline: 1px solid rgba(212, 175, 55, 0.6);
    outline-offset: 2px;
}


/* Reset WooCommerce default summary width */
.woocommerce div.single-product > div.product
.summary.entry-summary {
    width: 100%;
    float: none;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter:blur(1px);
}

.summary.entry-summary {
    padding: 40px 48px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 6px;
}

.summary.entry-summary p:first-of-type {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 32px;
}


.summary.entry-summary strong {
    color: rgba(212, 175, 55, 0.9);
    letter-spacing: 0.05em;
}



.summary .price {
    font-size: 28px;
    font-weight: 500;
    margin: 32px 0;
    color: rgba(212, 175, 55, 0.95);
}


.single_add_to_cart_button {
    width: 100%;
    margin-top: 12px;
    padding: 14px 0;
}


.woocommerce-payment-methods,
.wc-stripe-payment-request-wrapper {
    margin-top: 24px;
    opacity: 0.9;
}

.summary.entry-summary ul {
    margin: 24px 0 32px;
    padding: 0;
    list-style: none;
}

.summary.entry-summary li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.summary.entry-summary li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgba(212, 175, 55, 0.8);
}



.single-product form.cart {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    align-items: center;
}


.single-product form.cart .quantity {
    margin: 0;
}

.single-product form.cart .qty {
    width: 100%;
    height: 48px;
    text-align: center;
}


.single-product form.cart .single_add_to_cart_button {
    width: 100%;
    height: 48px;
    margin: 0;
}


/* Disable WooCommerce clearfix for grid-based cart form */
.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after {
    content: none !important;
    display: none !important;
}





/* =========================================================
   MAIN IMAGE / SLIDER (do NOT interfere with Flexslider)
   ========================================================= */

.woocommerce-product-gallery .flex-viewport {
    grid-column: 2;
    width: 100%;
}

.woocommerce-product-gallery__wrapper {
    width: 100%;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================================================
   ZOOM ICON
   ========================================================= */

.woocommerce-product-gallery__trigger {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;

    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);

    opacity: 0.6;
    transition: opacity 0.25s ease, background 0.25s ease;
}


.woocommerce-product-gallery:hover
.woocommerce-product-gallery__trigger {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}



/* Force both gallery elements into the first grid row */
.woocommerce-product-gallery .flex-viewport {
    grid-row: 1;
}

.woocommerce-product-gallery .flex-control-thumbs {
    grid-row: 1;
}

/* Override WooCommerce default thumb width */
.woocommerce div.product div.images .flex-control-thumbs li {
    width: 100%;
}


.product  .woocommerce-product-gallery .flex-control-thumbs li {
    padding: 4px;
    box-sizing: border-box;
}

.product .woocommerce-product-gallery
.flex-control-thumbs img.flex-active {
    opacity: 1;
}


.product .woocommerce-product-gallery
.flex-control-thumbs li:has(img.flex-active) {
    border: 1px solid rgba(212, 175, 55, 0.7);
    border-radius: 8px;
}


/* Quantity und Button "Add To Cart" */
.single-product form.cart .quantity {
    margin: 0;
}

.single-product form.cart .qty {
    width: 100%;
    height: 48px;

    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 4px;

    color: rgba(212, 175, 55, 0.9);
    font-size: 15px;
    font-weight: 500;
    text-align: center;

    outline: none;
    transition: border-color 0.25s ease;
}

.single-product form.cart .qty:focus {
    border-color: rgba(212, 175, 55, 0.7);
}


.single-product form.cart .single_add_to_cart_button {
    height: 48px;
    width: 100%;

    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 4px;

    color: rgba(212, 175, 55, 0.95);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;

    text-transform: none;
    cursor: pointer;

    transition: 
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}


.single-product form.cart .single_add_to_cart_button:hover,
.single-product form.cart .single_add_to_cart_button:focus {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.9);
    color: rgba(212, 175, 55, 1);
}



/* -----------------------------------------
   WooCommerce Add-to-Cart Message (Premium)
----------------------------------------- */

.single-product .woocommerce-notices-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.single-product .woocommerce-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 16px 22px;

    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 6px;

    color: rgba(212, 175, 55, 0.95);
    font-size: 14px;
    line-height: 1.4;

    backdrop-filter: blur(6px);
}

/* Remove Woo default icon & styling */
.single-product .woocommerce-message::before {
    display: none;
}

/* Message text */
.single-product .woocommerce-message {
    box-shadow: none;
}

/* View cart button */
.single-product .woocommerce-message .wc-forward {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 4px;

    color: rgba(212, 175, 55, 0.95);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;

    text-transform: none;
    white-space: nowrap;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.single-product .woocommerce-message .wc-forward:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.9);
    color: rgba(212, 175, 55, 1);
}


.single-product form.cart .qty::-webkit-inner-spin-button,
.single-product form.cart .qty::-webkit-outer-spin-button {
    -webkit-appearance: inner-spin-button;
    opacity: 1;
}


/* Spinner container */
.single-product form.cart .qty::-webkit-inner-spin-button,
.single-product form.cart .qty::-webkit-outer-spin-button {
    opacity: 1;
    height: 100%;
}

/* Optional: subtiler Gold-Akzent */
.single-product form.cart .qty::-webkit-inner-spin-button {
    filter: invert(65%) sepia(35%) saturate(450%) hue-rotate(10deg);
    cursor: pointer;
}

.single-product form.cart .qty::-webkit-inner-spin-button {
    filter: invert(70%) sepia(30%) saturate(400%) hue-rotate(10deg);
}



/* Firefox: keep native arrows visible */
@-moz-document url-prefix() {
    .single-product form.cart .qty {
        appearance: number-input;
    }
}


.single-product form.cart .quantity {
    position: relative;
}

.single-product form.cart .qty {
    padding-right: 6px;
}


.single-product form.cart .qty {
    font-variant-numeric: tabular-nums;
}




.single-product form.cart .quantity {
    position: relative;
}

.single-product form.cart .quantity::before,
.single-product form.cart .quantity::after {
    content: '';
    position: absolute;
    right: 10px;
    width: 8px;
    height: 8px;
    border-right: 1px solid rgba(212,175,55,.7);
    border-bottom: 1px solid rgba(212,175,55,.7);
    pointer-events: none;
}

.single-product form.cart .quantity::before {
    top: 11px;
    transform: rotate(-135deg);
}

.single-product form.cart .quantity::after {
    bottom: 11px;
    transform: rotate(45deg);
}


.single-product form.cart .quantity {
    cursor: default;
}


/* Benefits vom Plugin WooCommerce Access Control - Benefits */
.wcac-product-benefits{
    margin: 2rem 0 2.2rem 0;
    padding-left: 0.6rem; /* sehr subtil */

}

.wcac-product-benefits ul li{	
    color: var(--color-text-muted);
    text-align: left;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .woocommerce div.single-product > div.product {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .woocommerce-product-gallery {
        grid-template-columns: 1fr;
    }

    .woocommerce-product-gallery .flex-control-thumbs {
        flex-direction: row;
        justify-content: center;
        margin-top: 16px;
    }
	
	
    .single-product form.cart {
        grid-template-columns: 1fr;
    }

    .single-product form.cart .qty,
    .single-product form.cart .single_add_to_cart_button {
        height: 46px;
    }	
}


@media (max-width: 479px) {
    .site-content{
        padding-top:2rem;
    }

}