/*============================================*/
/* Single product: [peptix_product_details], [peptix_product_marquee] */

.peptix-product {
    --pp-blue: #3B82F6;
    --pp-blue-soft: rgba(59, 130, 246, 0.08);
    --pp-blue-line: rgba(59, 130, 246, 0.25);
    --pp-ink: #0F172A;
    --pp-text: #4B5563;
    --pp-muted: #757575;
    --pp-line: #E5E7EB;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    font-family: "Outfit", sans-serif;
    color: var(--pp-ink);
}

/* Gallery */
.peptix-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.peptix-product-main-image,
.peptix-product .peptix-product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
    background: #ECEDEF;
    border-radius: 10px !important;
}

.peptix-product-main-image img,
.peptix-product .peptix-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.peptix-product-main-image img {
    transition: opacity 0.25s ease;
}

.peptix-product-main-image.is-switching img {
    opacity: 0.4;
}

.peptix-product-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.peptix-product .peptix-product-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer; 
}

.peptix-product .peptix-product-thumb img {
    transition: transform 0.4s ease;
}

.peptix-product .peptix-product-thumb:hover img {
    transform: scale(1.04);
}

.peptix-product .peptix-product-thumb:focus-visible {
    outline: 2px solid var(--pp-blue);
    outline-offset: 2px;
}

/* Summary */
.peptix-product-summary {
    position: sticky;
    top: 30px;
    min-width: 0;
}

.peptix-product-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.peptix-product-top .product-rating p {
    margin: 0;
    font-size: 18px;
    color: var(--pp-ink);
}

.peptix-product-top .product-rating .peptix-star {
    color: #FFB822;
}

.peptix-product-top .product-rating span {
    color: var(--pp-muted);
    font-size: 16px;
}

.peptix-product-coa-link {
    flex: 0 0 auto;
    padding: 12px 14px;
    border: 1px solid var(--pp-blue-line);
    border-radius: 8px;
    background: var(--pp-blue-soft);
    font-size: 15px;
    line-height: 1.2;
    color: var(--pp-ink) !important;
    text-decoration: none !important;
    transition: background 0.25s ease, color 0.25s ease;
}

.peptix-product-coa-link:hover {
    background: var(--pp-blue);
    color: #FFFFFF !important;
}

.peptix-product .peptix-product-title {
    margin: 6px 0 12px;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 52px;
    line-height: 1.1;
    color: var(--pp-ink);
}

/* Price: sale price first (blue), regular price after (struck). */
.peptix-product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 18px;
    font-size: 22px;
    line-height: 1.3;
    color: var(--pp-blue);
}

.peptix-product-price del {
    order: 2;
    font-size: 18px;
    color: var(--pp-muted);
    opacity: 1;
}

.peptix-product-price ins {
    order: 1;
    text-decoration: none;
    color: var(--pp-blue);
}

.peptix-product-price .screen-reader-text {
    position: absolute;
}

.peptix-free-shipping {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 4px;
    background: var(--pp-blue-soft);
    font-size: 15px;
    color: var(--pp-ink);
}

.peptix-free-shipping[hidden] {
    display: none;
}

.peptix-free-shipping.is-free {
    background: rgba(22, 163, 74, 0.1);
    color: #15803D;
}

/* Buttons: undo the Elementor kit / theme button styles. */
.peptix-product button {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
}

/* Variations */
.peptix-product-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.peptix-product .peptix-product-variation {
    min-width: 66px;
    padding: 12px 12px;
    border: 1px solid var(--pp-line);
    border-radius: 8px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.2;
    color: #A3A3A3;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.peptix-product .peptix-product-variation:hover,
.peptix-product .peptix-product-variation.active {
    border-color: var(--pp-blue-line);
    color: var(--pp-ink);
}

.peptix-product .peptix-product-variation.active {
    box-shadow: 0 0 0 1px var(--pp-blue-line);
}

.peptix-product .peptix-product-variation:disabled {
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.6;
}

/* Purity / COA pills */
.peptix-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.peptix-product-badges .product-purity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 14px 4px 4px;
    border: 1px solid var(--pp-blue-line);
    border-radius: 50px;
    background: var(--pp-blue-soft);
    font-size: 15px;
    color: var(--pp-ink);
}

.peptix-product-badges .product-purity .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
}

/* Quantity */
.peptix-product-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    background: #EDEDED;
}

.peptix-product .peptix-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--pp-ink);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.peptix-product .peptix-qty-btn:hover {
    background: var(--pp-blue);
    color: #FFFFFF;
}

.peptix-product .peptix-qty-input {
    width: 80px;
    height: 46px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 17px;
    text-align: center;
    color: var(--pp-ink);
}

.peptix-product-stock {
    margin: 10px 0 0;
    font-size: 16px;
}

.peptix-product-stock.is-in {
    color: #15803D;
}

.peptix-product-stock.is-in::before {
    content: "\2713";
    margin-right: 2px;
}

.peptix-product-stock.is-backorder {
    color: #B45309;
}

.peptix-product-stock.is-out {
    color: #B91C1C;
}

/* Buttons */
.peptix-product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.peptix-product-actions:has(> :only-child) {
    grid-template-columns: 1fr;
}

.peptix-product .peptix-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
    font-weight: 500;
    padding: 16px;
    border: 1px solid var(--pp-blue); 
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.peptix-product .peptix-product-btn svg {
    transition: transform 0.25s ease;
}

.peptix-product .peptix-product-btn:hover svg {
    transform: rotate(43deg);
}

.peptix-product .peptix-add-cart {
    background: var(--pp-blue);
    color: #FFFFFF !important;
}

/* Focus / active keep the button's own colors (Elementor's global button
   style would turn a focused button white). */
.peptix-product .peptix-add-cart:focus,
.peptix-product .peptix-add-cart:active,
.peptix-product .peptix-add-cart.added {
    border-color: var(--pp-blue);
    background: var(--pp-blue);
    color: #FFFFFF;
}

.peptix-product .peptix-add-cart:hover {
    background: #2563EB;
}

.peptix-product .peptix-buy-now {
    background: #FFFFFF;
    color: var(--pp-blue);
}

.peptix-product .peptix-buy-now:focus,
.peptix-product .peptix-buy-now:active {
    background: #FFFFFF;
    color: var(--pp-blue);
}

.peptix-product .peptix-buy-now:hover {
    background: var(--pp-blue);
    color: #FFFFFF;
}

.peptix-product .peptix-product-btn:focus-visible {
    outline: 2px solid var(--pp-blue);
    outline-offset: 2px;
}

/* WooCommerce's "View cart" link after Add to Cart: the mini cart opens instead. */
.peptix-product a.added_to_cart {
    display: none !important;
}

.peptix-product .peptix-product-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.peptix-product .peptix-product-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.peptix-product-message {
    margin: 12px 0 0;
    font-size: 15px;
    color: #B91C1C;
}

/* Accordion */
.peptix-product-accordion {
    margin-top: 50px;
    border-top: 1px solid var(--pp-line);
}

.peptix-product-tab {
    border-bottom: 1px solid var(--pp-line);
}

.peptix-product-tab summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0;
    font-size: 20px;
    line-height: 1.3;
    color: var(--pp-ink);
    list-style: none;
    cursor: pointer;
}

.peptix-product-tab summary::-webkit-details-marker {
    display: none;
}

.peptix-product-tab summary svg {
    flex: 0 0 auto;
    transition: transform 0.25s ease;
}

.peptix-product-tab[open] summary svg {
    transform: rotate(180deg);
}

.peptix-product-tab-content {
    padding: 0 0 26px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--pp-text);
}

.peptix-product-tab-content > *:first-child {
    margin-top: 0;
}

.peptix-product-tab-content > *:last-child {
    margin-bottom: 0;
}

/* Marquee */
.peptix-marquee {
    overflow: hidden;
    width: 100%;
}

.peptix-marquee-track,
.peptix-marquee-copy {
    display: flex;
    width: max-content;
}

.peptix-marquee-track {
    animation: peptix-marquee 30s linear infinite;
}

.peptix-marquee:hover .peptix-marquee-track {
    animation-play-state: paused;
}

.peptix-marquee-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 40px;
    white-space: nowrap;
}

.peptix-marquee-item p {
    margin: 0 !important;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 1.1;
    color: #000000;
}

.peptix-marquee-btn {
    padding: 5px 16px;
    border-radius: 50px;
    background: #FFFFFF;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
    color: #3B82F6 !important;
    text-decoration: none !important;
}

@keyframes peptix-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .peptix-marquee-track { animation: none; }
}

/*==============================================*/
@media (max-width: 1199px) {
    .peptix-product { gap: 32px; }
    .peptix-product .peptix-product-title { font-size: 44px; }
    .peptix-product-actions { gap: 12px; }
}

@media (max-width: 991px) {
    .peptix-product { grid-template-columns: 1fr; }
    .peptix-product-summary { position: static; }
    .peptix-product-accordion { margin-top: 36px; }

    /* Tablets and phones: the main image, then every thumbnail in one row below it. */
    .peptix-product-main-image { border-radius: 20px !important; }

    .peptix-product-thumbs {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
    }

    .peptix-product .peptix-product-thumb { border-radius: 14px !important; }
}

@media (max-width: 767px) {
    .peptix-product-gallery,
    .peptix-product-thumbs { gap: 10px; }
    .peptix-product .peptix-product-title { font-size: 36px; }
    .peptix-product-price { font-size: 20px; }
    .peptix-product-badges { margin-bottom: 24px; }
    .peptix-product .peptix-product-btn { min-height: 54px; font-size: 16px; }
    .peptix-product-tab summary { padding: 20px 0; font-size: 18px; }
    .peptix-marquee-item p { font-size: 28px; }
    .peptix-marquee-btn { font-size: 15px; }
}

@media (max-width: 480px) {
    .peptix-product-actions { grid-template-columns: 1fr; }
    .peptix-product-coa-link { padding: 10px 12px; font-size: 14px; }
}

/*==============================================*/
/* Rating at the top of the product page: links to the reviews section (#reviews, styled by the theme). */

.peptix-product-rating-link {
    color: inherit !important;
    text-decoration: none !important;
}

.peptix-product-rating-link:hover span {
    text-decoration: underline;
}

