/**
 * WooCommerce single-product page CSS (Phase B)
 * Cart/Checkout/Account moved to cca.css. Qty/Notices shared live in woocommerce-loop.css.
 */
/* ===== Product Page ===== */
.woocommerce div.product div.images {
    margin-bottom: 24px;
}

.woocommerce div.product div.images img {
    border-radius: 14px;
}

.woocommerce div.product .woocommerce-product-gallery .thumbnails {
    display: flex;
    gap: 10px;
}

.woocommerce div.product p.price {
    font-size: 22px;
    font-weight: 800;
    color: var(--pink-primary, #ec2c6f);
    margin-bottom: 8px;
}
.woocommerce div.product p.price del {
    color: var(--text-light, #9992a0);
    font-weight: 500;
    font-size: 0.72em;
}
.woocommerce div.product p.price ins {
    text-decoration: none;
    color: var(--pink-primary, #ec2c6f);
}

.woocommerce div.product .product_title {
    font-size: 22px;
    font-weight: 700;
}

.woocommerce div.product .woocommerce-product-rating .star-rating {
    font-size: 14px;
}

/* ===== Reviews ===== */
.woocommerce #reviews #comments ol.commentlist li {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
    border: none;
    padding: 0;
    margin: 0;
}

.woocommerce #reviews #comments ol.commentlist li .star-rating {
    font-size: 12px;
    margin-bottom: 8px;
}

.nb-reviews {
    display: grid;
    gap: 22px;
}
.nb-reviews__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.nb-reviews__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
}
.nb-reviews__avg {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff5f9;
    color: var(--pink-600);
    font-size: 13px;
}
.nb-reviews__avg strong {
    font-size: 18px;
    font-weight: 800;
}
.nb-reviews__empty,
.nb-reviews__verify,
.nb-reviews__login {
    margin: 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--bg-soft, #fdf7fa);
    border: 1px dashed var(--border);
    color: var(--text-mid);
    line-height: 1.8;
}
.nb-reviews__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.nb-reviews__list > li {
    background: #fff;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 16px 18px !important;
    margin: 0 !important;
}
.nb-reviews__list .meta,
.nb-reviews__list .woocommerce-review__author {
    font-weight: 800;
    color: var(--text-dark);
}
.nb-reviews__list .description p {
    margin: 8px 0 0;
    color: var(--text-mid);
    line-height: 1.85;
    font-size: 13.5px;
}
.nb-reviews__form-wrap {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
    border: 1px solid rgba(236, 44, 111, 0.14);
}
.nb-reviews__form-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
}
.nb-reviews__field {
    margin: 0 0 12px;
}
.nb-reviews__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}
.nb-reviews__field input,
.nb-reviews__field textarea,
.nb-reviews #review_form #respond input[type="text"],
.nb-reviews #review_form #respond input[type="email"],
.nb-reviews #review_form #respond textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
    color: var(--text-dark);
    box-shadow: none;
}
.nb-reviews__field textarea,
.nb-reviews #review_form #respond textarea {
    min-height: 120px;
    resize: vertical;
}
.nb-reviews__rating {
    margin: 0 0 14px;
}
.nb-reviews__rating > label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}
.nb-reviews__rating #rating {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.nb-star-picker {
    display: flex;
    flex-direction: row;
    direction: ltr;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}
.nb-star-picker__btn {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: #d7d0d4;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.nb-star-picker__btn:hover,
.nb-star-picker__btn:focus {
    transform: translateY(-1px);
    border-color: rgba(236, 44, 111, 0.35);
    color: #f5b4cb;
}
.nb-star-picker__btn.is-on {
    background: #fff5f9;
    border-color: rgba(236, 44, 111, 0.4);
    color: var(--pink-500, #ec2c6f);
}
.nb-reviews .stars,
.nb-reviews p.stars {
    display: none !important;
}
.nb-reviews__submit.btn-primary,
.nb-reviews #review_form #respond .form-submit input {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    background: linear-gradient(135deg, #ec2c6f, #c2185b);
    color: #fff !important;
    font-weight: 800;
    cursor: pointer;
}
.nb-free-ship-progress {
    margin: 8px 0 14px;
}
.nb-free-ship-progress__bar {
    height: 8px;
    border-radius: 999px;
    background: #f3e8ee;
    overflow: hidden;
    margin-bottom: 8px;
}
.nb-free-ship-progress__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ec2c6f, #ff6d95);
}
.nb-free-ship-note {
    margin: 0;
    font-size: 12px;
    color: var(--text-mid);
    line-height: 1.6;
}
.nb-free-ship-note.is-done {
    color: #1fa971;
    font-weight: 700;
}

/* ===== Variations ===== */
.woocommerce div.product form.cart .variations {
    margin-bottom: 20px;
}

.woocommerce div.product form.cart .variations td {
    display: block;
    padding: 0;
}

.woocommerce div.product form.cart .variations label {
    font-weight: 700;
}

.woocommerce div.product form.cart .variations select {
    width: 100%;
}


/* ===== Widgets ===== */
.widget_product_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_product_categories ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.widget_product_categories ul li:last-child {
    border-bottom: none;
}

.widget_product_categories ul li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.widget_product_categories ul li a:hover {
    color: var(--pink-600);
}


/* ===== Product add to cart / variations ===== */
.nb-product-add-to-cart { margin-bottom: 16px; }
.nb-add-to-cart-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.nb-product-add-to-cart .btn-add-cart,
.nb-add-to-cart-row .single_add_to_cart_button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--pink-500) !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    min-height: 52px;
    padding: 16px 24px !important;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    line-height: 1.3;
}
.nb-buy-now-btn {
    display: none !important;
}
.nb-variations {
    width: 100%;
    margin-bottom: 16px;
    border-collapse: collapse;
}
.nb-variations th,
.nb-variations td {
    text-align: right;
    padding: 8px 0;
    vertical-align: middle;
}
.nb-variations select,
.nb-variations .nb-variation-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.nb-variations .value {
    position: relative;
}
.nb-var-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 6px;
}
.nb-var-swatch {
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--border, #e8e2e6);
    background: #fff;
    color: var(--text-dark, #26232a);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s, opacity .15s;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 40px;
}
.nb-var-swatch__label {
    display: block;
}
.nb-var-swatch__oos {
    display: none;
}
.nb-var-swatch:hover:not(:disabled):not(.is-disabled) {
    border-color: #f3b6cc;
    background: #fff7fa;
}
.nb-var-swatch.is-selected {
    border-color: var(--pink-500, #ec2c6f);
    background: var(--pink-50, #fdf1f6);
    color: var(--pink-600, #d91f5e);
    box-shadow: 0 0 0 1px rgba(236, 44, 111, .18);
}
.nb-var-swatch.is-disabled,
.nb-var-swatch:disabled {
    opacity: 1;
    color: #8f8896;
    background: #f6f4f6;
    border-color: #e4dfe4;
    border-style: dashed;
    cursor: not-allowed;
    text-decoration: none;
    padding: 7px 14px 6px;
    pointer-events: none;
}
.nb-var-swatch.is-disabled .nb-var-swatch__label,
.nb-var-swatch:disabled .nb-var-swatch__label {
    color: #9a93a0;
    font-weight: 600;
}
.nb-var-swatch.is-disabled .nb-var-swatch__oos,
.nb-var-swatch:disabled .nb-var-swatch__oos {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    color: #a33b52;
}
.nb-variation-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0 12px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
}
.nb-variation-stock[hidden] {
    display: none !important;
}
.nb-variation-stock.is-in {
    color: #1a7a45;
    background: #e9f9ee;
    border: 1px solid #c8ebd4;
}
.nb-variation-stock.is-out {
    color: #b4233d;
    background: #fff1f3;
    border: 1px solid #f5c2cd;
}
.single-product .woocommerce-variation-availability {
    display: none !important;
}
/* Single stock label only (theme) — hide WooCommerce duplicates */
.single-product .nb-product-add-to-cart > .stock,
.single-product form.cart > .stock,
.single-product .summary > .stock:not(.nb-stock) {
    display: none !important;
}

