/* Single product page styles */

.lpg-product {
    --lpg-green-900: #0a5a41;
    --lpg-green-700: #0b6a49;
    --lpg-green-600: #1fa55a;
    --lpg-green-200: #dff2e8;
    --lpg-green-100: #e9f7f0;
    --lpg-ink: #16212b;
    --lpg-muted: #66707a;
    --lpg-shadow: 0 18px 40px rgba(4, 60, 45, 0.16);
    --lpg-soft-shadow: 0 12px 22px rgba(4, 60, 45, 0.12);
    padding: 10px 0 50px;
    color: var(--lpg-ink);
    background: #fff;
}


.lpg-product__breadcrumbs {
    padding-top: 6px;
    font-size: 13px;
    color: var(--lpg-muted);
}

.lpg-product__crumbs a {
    text-decoration: none;
    color: var(--lpg-muted);
}

.lpg-product__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 20px;
    text-decoration: none;
    color: var(--lpg-green-700);
    font-weight: 600;
    font-size: 13px;
}

.lpg-product__notices .woocommerce-message,
.lpg-product__notices .woocommerce-error,
.lpg-product__notices .woocommerce-info {
    margin: 0 0 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #eef6f1;
    color: var(--lpg-ink);
    font-size: 13px;
    list-style: none;
}

.lpg-product__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    align-items: start;
}

.lpg-product__gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lpg-product__image {
    background: #f5f6f7;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--lpg-soft-shadow);
    min-height: 340px;
    display: grid;
    place-items: center;
}

.lpg-product__main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lpg-product__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.lpg-product__thumb {
    border: none;
    background: #fff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--lpg-soft-shadow);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.lpg-product__thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.lpg-product__thumb.is-active,
.lpg-product__thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--lpg-shadow);
}

.lpg-product__info {
    position: sticky;
    top: 90px;
}

.lpg-product__card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--lpg-shadow);
}

.lpg-product__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.lpg-product__header h1 {
    margin: 0 0 6px;
    font-size: 24px;
}

.lpg-product__badge {
    background: var(--lpg-green-200);
    color: var(--lpg-green-900);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.lpg-product__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--lpg-muted);
}

.lpg-product__rating .star-rating {
    margin: 0;
    font-size: 12px;
    line-height: 1;
    position: relative;
    display: inline-block;
    width: 80px;
    height: 14px;
    overflow: hidden;
}

.lpg-product__rating .star-rating::before {
    content: '*****';
    position: absolute;
    top: 0;
    left: 0;
    color: #d7e2db;
    letter-spacing: 2px;
}

.lpg-product__rating .star-rating span {
    display: block;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.lpg-product__rating .star-rating span::before {
    content: '*****';
    position: absolute;
    top: 0;
    left: 0;
    color: #f4b400;
    letter-spacing: 2px;
}

.lpg-product__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.lpg-product__price {
    font-size: 24px;
    font-weight: 800;
    color: var(--lpg-green-700);
}

.lpg-product .woocommerce-Price-amount,
.lpg-product .woocommerce-Price-currencySymbol {
    color: var(--lpg-green-700);
    font-weight: 800;
}

.lpg-product .woocommerce-Price-amount {
    font-size: 22px;
}

.lpg-product .woocommerce-Price-currencySymbol {
    font-size: 0.95em;
}

.lpg-product__stock {
    font-size: 12px;
    font-weight: 700;
    color: var(--lpg-green-600);
}

.lpg-product__stock--out {
    color: #a33;
}

.lpg-product__excerpt {
    margin: 14px 0 18px;
    color: var(--lpg-muted);
    font-size: 14px;
}

.lpg-product__cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.lpg-product .variations_form {
    margin-bottom: 10px;
}

.lpg-product .variations {
    border: none;
    margin: 0 0 12px;
    width: 100%;
}

.lpg-product .variations tbody,
.lpg-product .variations tr,
.lpg-product .variations th,
.lpg-product .variations td {
    display: block;
    padding: 0;
}

.lpg-product .variations th {
    font-weight: 700;
    color: var(--lpg-ink);
    margin-bottom: 6px;
    text-align: left;
}

.lpg-product .variations td {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lpg-product .reset_variations {
    font-size: 12px;
    color: var(--lpg-muted);
    text-decoration: none;
}

.lpg-product .reset_variations:hover {
    color: var(--lpg-green-700);
}

.lpg-product .single_variation_wrap {
    margin-top: 6px;
}

.lpg-product .woocommerce-variation {
    margin: 6px 0 12px;
    font-size: 13px;
    color: var(--lpg-muted);
}

.lpg-variation-group {
    margin: 12px 0 8px;
}

.lpg-variation-group select {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.lpg-variation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lpg-variation-btn {
    border: 1px solid var(--lpg-green-200);
    background: #fff;
    color: var(--lpg-green-900);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.lpg-variation-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--lpg-soft-shadow);
}

.lpg-variation-btn.is-active {
    background: var(--lpg-green-600);
    color: #fff;
    border-color: var(--lpg-green-600);
}

.lpg-product__qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f4f2;
    border-radius: 999px;
    padding: 6px 10px;
}

.lpg-product__qty input[type='number'] {
    width: 46px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    appearance: textfield;
}

.lpg-product__qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--lpg-soft-shadow);
}

.lpg-product__qty input[type='number']::-webkit-outer-spin-button,
.lpg-product__qty input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lpg-product__add {
    flex: 1 1 auto;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    background: var(--lpg-green-600);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

.lpg-product .single_add_to_cart_button,
.lpg-product .single_add_to_cart_button.lpg-product__add,
.lpg-product .variations_form .single_add_to_cart_button,
.lpg-product .variations_form .single_add_to_cart_button.lpg-product__add {
    background: var(--lpg-green-600) !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    box-shadow: var(--lpg-soft-shadow);
}

.lpg-product .single_add_to_cart_button:hover,
.lpg-product .single_add_to_cart_button.lpg-product__add:hover,
.lpg-product .variations_form .single_add_to_cart_button:hover {
    filter: brightness(1.02);
}

.lpg-product .single_add_to_cart_button.disabled,
.lpg-product .single_add_to_cart_button:disabled,
.lpg-product__add.disabled,
.lpg-product__add:disabled {
    background: #cfd8d1 !important;
    color: #6b7a71 !important;
    cursor: not-allowed;
    box-shadow: none;
}

.lpg-product .single_add_to_cart_button.is-loading,
.lpg-product__add.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
}

.lpg-product .single_add_to_cart_button.is-loading::after,
.lpg-product__add.is-loading::after {
    content: '';
    position: absolute;
    right: 14px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-top-color: #fff;
    border-radius: 999px;
    animation: lpg-spin 0.8s linear infinite;
}

.lpg-product .single_add_to_cart_button.added::after,
.lpg-product .single_add_to_cart_button.added::before,
.lpg-product__add.added::after,
.lpg-product__add.added::before {
    content: none !important;
    display: none !important;
}

@keyframes lpg-spin {
    to {
        transform: rotate(360deg);
    }
}

.lpg-product__perks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    font-size: 12px;
    color: var(--lpg-muted);
}

.lpg-product__perk-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: var(--lpg-green-200);
    margin-right: 6px;
}

.lpg-product__tabs {
    margin-top: 36px;
    border-top: 1px solid #eef0f2;
    padding-top: 20px;
}

.lpg-product__tab-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    border-bottom: 1px solid #eef0f2;
}

.lpg-product__tab-btn {
    border: none;
    background: transparent;
    padding: 12px 0;
    font-weight: 700;
    color: var(--lpg-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.lpg-product__tab-btn.is-active {
    color: var(--lpg-ink);
    border-bottom-color: var(--lpg-green-600);
}

.lpg-product__tab-panel {
    display: none;
    padding: 20px 0 10px;
}

.lpg-product__tab-panel.is-active {
    display: block;
}

.lpg-product__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    font-size: 13px;
}

.lpg-product__specs span {
    color: var(--lpg-muted);
}

.lpg-product__specs strong {
    display: block;
    font-weight: 700;
    color: var(--lpg-ink);
}

.lpg-product__tab-panel ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: var(--lpg-muted);
}

.lpg-product__related {
    margin-top: 32px;
}

.lpg-product__related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.lpg-product__related-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--lpg-soft-shadow);
}

.lpg-product__related-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.lpg-product__related-body {
    padding: 12px 14px 16px;
    display: grid;
    gap: 6px;
}

.lpg-product__related-body h3 {
    margin: 0;
    font-size: 14px;
}

.lpg-product__related-price {
    color: var(--lpg-green-700);
    font-weight: 700;
    font-size: 14px;
}

.lpg-product__related-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f2f6f4;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    color: var(--lpg-ink);
}

.lpg-product .added_to_cart {
    display: none !important;
}

.lpg-product .woocommerce-tabs {
    display: none !important;
}























@media (max-width: 1024px) {
    .lpg-product__hero {
        grid-template-columns: 1fr;
    }

    .lpg-product__info {
        position: static;
    }

    .lpg-product__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .lpg-product__thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lpg-product__cart {
        flex-direction: column;
        align-items: stretch;
    }

    .lpg-product__qty {
        width: 100%;
        justify-content: center;
        gap: 16px;
        padding: 10px 14px;
    }

    .lpg-product__qty input[type='number'] {
        width: 56px;
    }

    .lpg-product__add {
        width: 100%;
    }

    .lpg-product__perks {
        grid-template-columns: 1fr;
    }

    .lpg-product__related-grid {
        grid-template-columns: 1fr;
    }

    .lpg-product__specs {
        grid-template-columns: 1fr;
    }
}
