/* =============================================
   SINGLE PRODUCT PAGE
   ============================================= */

/* Product Hero */
.seed-product-hero {
    padding: calc(var(--header-height) + var(--announcement-height) + var(--space-3xl)) 0 var(--space-4xl);
    background: var(--seed-white);
}

.seed-product-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-3xl);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    align-items: start;
}

/* Gallery */
.seed-product-gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.seed-product-gallery__main {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
    background: var(--seed-cream-alt);
    aspect-ratio: 1;
}

.seed-product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    cursor: zoom-in;
}

.seed-product-gallery__main img:hover {
    transform: scale(1.05);
}

.seed-product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.seed-product-gallery__thumb {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast), opacity var(--transition-fast);
    aspect-ratio: 1;
    background: var(--seed-cream-alt);
}

.seed-product-gallery__thumb.is-active {
    border-color: var(--seed-green-dark);
}

.seed-product-gallery__thumb:not(.is-active):hover {
    opacity: 0.7;
}

.seed-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.seed-product-info {
    padding-top: var(--space-md);
}

.seed-product-info__badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.seed-product-info__badge {
    display: inline-flex;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.seed-product-info__badge--tag {
    background: var(--seed-cream-alt);
    color: var(--seed-green-dark);
    border: 1px solid var(--seed-gray-light);
}

.seed-product-info__badge--bestseller {
    background: var(--seed-green-dark);
    color: var(--seed-cream);
}

.seed-product-info__title {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.seed-product-info__subtitle {
    font-size: var(--text-base);
    color: var(--seed-gray);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

/* Rating */
.seed-product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.seed-product-rating__stars {
    display: flex;
    gap: 2px;
    color: var(--seed-green-dark);
}

.seed-product-rating__count {
    font-size: var(--text-sm);
    color: var(--seed-gray);
}

/* Price */
.seed-product-info__price {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--seed-green-dark);
    margin-bottom: var(--space-xl);
}

.seed-product-info__price del {
    font-size: var(--text-xl);
    color: var(--seed-gray);
    font-weight: var(--font-weight-regular);
    margin-left: var(--space-sm);
}

.seed-product-info__price-note {
    display: block;
    font-size: var(--text-xs);
    color: var(--seed-gray);
    font-weight: var(--font-weight-regular);
    margin-top: var(--space-xs);
}

/* Quantity & Add to Cart */
.seed-product-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.seed-product-actions .quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--seed-gray-light);
    border-radius: var(--radius-pill);
    overflow: hidden;
    width: fit-content;
}

.seed-product-actions .quantity input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    font-family: var(--font-primary);
    padding: 12px 0;
    background: transparent;
    -moz-appearance: textfield;
}

.seed-product-actions .quantity input::-webkit-outer-spin-button,
.seed-product-actions .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.seed-product-actions .quantity button {
    padding: 12px 16px;
    font-size: var(--text-lg);
    color: var(--seed-green-dark);
    transition: background var(--transition-fast);
}

.seed-product-actions .quantity button:hover {
    background: var(--seed-cream-alt);
}

.seed-product-actions .single_add_to_cart_button,
.seed-add-to-cart-btn {
    width: 100%;
    padding: 18px 32px;
    background: var(--seed-green-dark);
    color: var(--seed-cream);
    border: none;
    border-radius: var(--radius-pill);
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
}

.seed-product-actions .single_add_to_cart_button:hover,
.seed-add-to-cart-btn:hover {
    background: var(--seed-green-medium);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== Accordion (Benefits / Ingredients) ===== */
.seed-accordion {
    border-top: 1px solid var(--seed-gray-light);
    margin-top: var(--space-xl);
}

.seed-accordion__item {
    border-bottom: 1px solid var(--seed-gray-light);
}

.seed-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: var(--seed-green-dark);
    text-align: left;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.seed-accordion__trigger:hover {
    opacity: 0.7;
}

.seed-accordion__icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.seed-accordion__icon::before,
.seed-accordion__icon::after {
    content: '';
    position: absolute;
    background: var(--seed-green-dark);
    transition: transform var(--transition-base);
}

.seed-accordion__icon::before {
    width: 14px;
    height: 1.5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.seed-accordion__icon::after {
    width: 1.5px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.seed-accordion__item.is-open .seed-accordion__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.seed-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.seed-accordion__item.is-open .seed-accordion__content {
    max-height: 500px;
}

.seed-accordion__body {
    padding: 0 0 var(--space-lg);
    font-size: var(--text-sm);
    color: var(--seed-gray);
    line-height: 1.7;
}

.seed-accordion__body ul {
    list-style: disc;
    padding-left: var(--space-lg);
}

.seed-accordion__body ul li {
    margin-bottom: var(--space-xs);
}

/* ===== Timeline Section ===== */
.seed-timeline {
    padding: var(--space-5xl) 0;
    background: var(--seed-cream-alt);
}

.seed-timeline__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
    padding: 0 var(--space-xl);
}

.seed-timeline__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    align-items: start;
}

.seed-timeline__steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.seed-timeline__step {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--seed-gray-light);
    opacity: 0.5;
    transition: opacity var(--transition-base);
}

.seed-timeline__step.is-active {
    opacity: 1;
}

.seed-timeline__step-marker {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--seed-green-dark);
    color: var(--seed-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

.seed-timeline__step-content h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.seed-timeline__step-content p {
    font-size: var(--text-sm);
    color: var(--seed-gray);
    margin: 0;
}

.seed-timeline__media {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--seed-green-dark);
}

.seed-timeline__media video,
.seed-timeline__media img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Bundle Cross-sell ===== */
.seed-bundle {
    background: var(--seed-cream-alt);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    border: 1px solid var(--seed-gray-light);
}

.seed-bundle__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.seed-bundle__title {
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
}

.seed-bundle__discount {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    color: var(--seed-green-light);
    background: rgba(74, 122, 61, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.seed-bundle__products {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.seed-bundle__product {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
}

.seed-bundle__product img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* ===== Sticky Add to Cart Bar ===== */
.seed-sticky-cart {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--seed-white);
    border-top: 1px solid var(--seed-gray-light);
    padding: var(--space-md) 0;
    z-index: 998;
    transition: bottom var(--transition-base);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.seed-sticky-cart.is-visible {
    bottom: 0;
}

.seed-sticky-cart__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.seed-sticky-cart__info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.seed-sticky-cart__image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.seed-sticky-cart__name {
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-sm);
}

.seed-sticky-cart__price {
    font-weight: var(--font-weight-bold);
    font-size: var(--text-base);
}

.seed-sticky-cart__btn {
    padding: 12px 32px;
}

/* ===== FAQ Section ===== */
.seed-faq {
    padding: var(--space-5xl) 0;
    background: var(--seed-white);
}

.seed-faq__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.seed-faq__list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Uses same accordion styles as above */

/* ===== Elementor Sticky Fix for Product Pages ===== */
/* Remove overflow:hidden from Elementor wrappers — it breaks position:sticky */
.product .elementor-section,
.product .elementor-container,
.product .elementor-row,
.product .elementor-column,
.product .elementor-column-wrap,
.product .elementor-widget-wrap,
.product .elementor-element,
.product .e-con,
.product .e-con-inner {
    overflow: visible !important;
}

/* Sticky utility class — add "tt-sticky-col" to Elementor column CSS Classes */
.tt-sticky-col,
.tt-sticky-col>.elementor-widget-wrap,
.tt-sticky-col>.elementor-column-wrap>.elementor-widget-wrap {
    position: sticky !important;
    top: 120px !important;
    align-self: flex-start !important;
}

/* Ensure the parent Elementor section has enough height */
.tt-sticky-col {
    height: auto !important;
}

/* Disable sticky on mobile */
@media (max-width: 768px) {

    .tt-sticky-col,
    .tt-sticky-col>.elementor-widget-wrap,
    .tt-sticky-col>.elementor-column-wrap>.elementor-widget-wrap {
        position: static !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .seed-product-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .seed-timeline__grid {
        grid-template-columns: 1fr;
    }

    .seed-timeline__media {
        position: static;
        max-width: 600px;
        margin: 0 auto;
        order: -1;
    }
}

@media (max-width: 768px) {
    .seed-product-hero__grid {
        grid-template-columns: 1fr;
    }

    .seed-product-gallery {
        position: static;
    }

    .seed-product-info__title {
        font-size: var(--text-3xl);
    }

    .seed-sticky-cart__info {
        gap: var(--space-sm);
    }

    .seed-sticky-cart__image {
        display: none;
    }
}