/* product.php — mobile-first product detail */

body.product-page {
    background: #fff;
    color: #0f172a;
}

.product-page-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 28px;
}

.product-page-hero {
    padding: 20px 0 8px;
    text-align: center;
}

.product-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.product-page-title {
    margin: 0 0 10px;
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.product-page-subtitle {
    margin: 0 0 14px;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #64748b;
}

.product-page-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.8125rem;
    color: #475569;
    text-decoration: none;
}

.product-page-rating:hover {
    color: #166534;
}

.product-page-rating__stars {
    color: #78c450;
    letter-spacing: 1px;
}

.product-page-pricing-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 16px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.product-page-pricing-card__from {
    margin: 0 0 2px;
    font-size: 0.8125rem;
    color: #64748b;
}

.product-page-pricing-card__price {
    margin: 0 0 4px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.product-page-pricing-card__meta {
    margin: 0 0 16px;
    font-size: 0.8125rem;
    color: #64748b;
}

.product-page-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: #78c450;
    color: #fff !important;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.product-page-cta:hover {
    background: #5e9b3e;
    color: #fff !important;
}

.product-page-cta--secondary {
    margin-top: 10px;
    background: #fff;
    color: #166534 !important;
    border: 1px solid #78c450;
}

.product-page-cta--secondary:hover {
    background: #f0fdf4;
    color: #166534 !important;
}

.product-page-shipping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.product-page-shipping i {
    color: #78c450;
}

.product-page-options {
    margin-bottom: 16px;
    text-align: left;
}

.product-page-options label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    padding: 0;
}

.product-page-options select,
.product-page-options textarea,
.product-page-options input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    margin-bottom: 12px;
    color: #0f172a;
    background: #fff;
}

.product-page-options .variation.hide {
    display: none;
}

.product-page-section-title {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0f172a;
}

.product-page-bulk {
    margin-bottom: 28px;
}

.product-page-bulk__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.product-page-bulk__card {
    flex: 0 0 118px;
    scroll-snap-align: start;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    text-align: center;
}

.product-page-bulk__card.is-best {
    border-color: #78c450;
    box-shadow: 0 0 0 1px #78c450 inset;
}

.product-page-bulk__qty {
    padding: 12px 8px 6px;
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
}

.product-page-bulk__price {
    padding: 0 8px 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
}

.product-page-bulk__save {
    min-height: 1.25em;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #16a34a;
}

.product-page-bulk__best {
    display: none;
    padding: 8px;
    background: #78c450;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.product-page-bulk__card.is-best .product-page-bulk__best {
    display: block;
}

.product-page-reviews {
    margin-bottom: 28px;
}

/* Full-bleed reviews — sits outside .product-page-shell */
.product-page-reviews--full {
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
    margin-bottom: 28px;
}

.product-page-reviews--full .product-page-reviews__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.product-page-reviews__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.product-page-reviews__all {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #78c450;
    text-decoration: none;
    white-space: nowrap;
}

.product-page-reviews__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.product-page-review-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.product-page-review-card__stars {
    color: #78c450;
    font-size: 0.8125rem;
    margin-bottom: 4px;
}

.product-page-review-card__rating {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.product-page-review-card__text {
    margin: 0 0 12px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #475569;
}

.product-page-review-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-page-review-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.product-page-review-card__name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
}

.product-page-review-card__role {
    font-size: 0.6875rem;
    color: #64748b;
}

.product-page-description {
    margin-bottom: 28px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #475569;
}

.product-page-description img {
    max-width: 100%;
    height: auto;
}

/* Full-bleed product description HTML — sits outside .product-page-shell */
.product-description-full {
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
}

/* Match .product-page-reviews__inner — centred readable column for all description content */
.product-description-full .pt-ss {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

/* Simple descriptions without the .pt-ss wrapper */
.product-description-full:not(:has(.pt-ss)) {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark hero / volume blocks — full-bleed backgrounds, padded inner text only */
.product-description-full .pt-ss > section.pt-hero,
.product-description-full .pt-ss > section.pt-vol {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

.product-description-full .pt-ss .pt-hero,
.product-description-full .pt-ss .pt-vol {
    border-radius: 0;
}

.product-description-full .pt-ss .pt-hero .txt {
    padding-left: 16px;
    padding-right: 16px;
}

.product-description-full .pt-ss .pt-vol {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.product-page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.product-page-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: 0.6875rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-page-related {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.product-page-related__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-page-related__grid > a {
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.product-page-related a {
    text-decoration: none;
    color: inherit;
}

.product-page-related .card-display {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-page-related a:hover .card-display {
    border-color: #78c450;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.product-page-related .image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 140px;
    margin: 0 0 10px;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 8px;
    line-height: 0;
}

.product-page-related .image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-page-related .product-card-design-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-page-related .product-card-design-svg svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.product-page-related .name {
    margin: 0 0 6px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    flex: 1;
}

.product-page-related a:hover .name {
    color: #166534;
}

.product-page-related .product-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #166534;
}

.product-page-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10030;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(110%);
    transition: transform 0.24s ease;
}

.product-page-sticky.is-visible {
    transform: translateY(0);
}

.product-page-sticky__inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-page-sticky__thumb {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.product-page-sticky__thumb img,
.product-page-sticky__thumb svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-page-sticky__meta {
    flex: 1;
    min-width: 0;
}

.product-page-sticky__title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-page-sticky__price {
    margin: 0;
    font-size: 0.6875rem;
    color: #64748b;
    line-height: 1.35;
}

.product-page-sticky .product-page-cta {
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
    padding: 12px 14px;
    font-size: 0.75rem;
}

.product-page-gallery-desktop {
    display: block;
    padding: 12px 0 4px;
    text-align: center;
}

.product-page-gallery-desktop > img:not(.product-gallery-thumb),
.product-page-gallery-desktop > .product-design-preview-wrap {
    display: block;
    width: min(100%, 360px);
    max-height: 280px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
}

.product-page-gallery-desktop > .product-design-preview-wrap {
    max-height: none;
    padding: 16px;
    background: #f8fafc;
    box-sizing: border-box;
}

.product-page-gallery-desktop > .product-design-preview-wrap svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 240px;
    margin: 0 auto;
}

.product-page-gallery-desktop .product-gallery-thumb {
    display: inline-block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    margin: 10px 6px 0 0;
    vertical-align: top;
    border: 1px solid #e2e8f0;
}

.pop-atc {
    z-index: 100000;
}

@media (min-width: 900px) {
    .product-page-shell {
        max-width: 1200px;
        padding: 24px 24px 28px;
        display: grid;
        grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
        gap: 40px;
        align-items: start;
    }

    .product-page-gallery-desktop {
        padding: 0;
        text-align: left;
    }

    .product-page-gallery-desktop > img:not(.product-gallery-thumb),
    .product-page-gallery-desktop > .product-design-preview-wrap {
        max-width: 100%;
        width: auto;
        max-height: none;
        margin: 0;
    }

    .product-page-gallery-desktop .product-gallery-thumb {
        width: 72px;
        height: 72px;
        margin: 8px 8px 0 0;
    }

    .product-page-hero {
        text-align: left;
        padding-top: 0;
    }

    .product-page-title {
        font-size: 2rem;
    }

    .product-page-bulk__track {
        flex-wrap: wrap;
        overflow: visible;
    }

    .product-page-reviews--full {
        padding: 0 24px;
    }

    .product-description-full {
        padding: 0 24px;
    }

    .product-description-full .pt-ss .pt-hero .txt {
        padding-left: clamp(24px, calc((100vw - 1180px) / 2 + 24px), 80px);
        padding-right: clamp(24px, calc((100vw - 1180px) / 2 + 24px), 80px);
    }

    .product-description-full .pt-ss .pt-vol {
        padding-left: 24px;
        padding-right: 24px;
    }

    .product-page-reviews--full .product-page-reviews__track {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        overflow: visible;
    }

    .product-page-reviews--full .product-page-review-card {
        flex: none;
        width: auto;
    }

    .product-page-bulk__card {
        flex: 1 1 0;
    }

    .product-page-sticky {
        display: none;
    }

    .product-page-related__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .product-page-related .image {
        height: 160px;
    }
}

@media (max-width: 899px) {
    body.product-page {
        padding-bottom: 0;
    }

    .product-page-reviews--full {
        padding-bottom: 92px;
    }
}
