/* =============================================================
 * SINGLE PRODUCT PAGE CSS (Final Fixed & Clean)
 * ============================================================= */

/* --- Base & Reset --- */
body.woocommerce.single-product,
body.single-product,
.asbd-single,
.asbd-container {
    background: #ffffff !important;
}
.asbd-single {
    padding: 18px 0 56px;
    display: block;
}
.asbd-container {
    width: min(1240px, calc(100% - 32px)) !important;
    margin: 0 auto !important;
    max-width: 1240px;
}
.asbd-single, .asbd-single * {
    box-sizing: border-box;
}

/* --- Breadcrumb --- */
.asbd-breadcrumb {
    margin-bottom: 14px;
    font-size: 13px;
    color: #91887d;
}
.asbd-breadcrumb a {
    color: #91887d;
    text-decoration: none;
}

/* --- Main Layout (2 Columns) --- */
.asbd-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px) !important;
    gap: 28px !important;
    align-items: stretch;
}

/* --- Gallery Card (Left Side) --- */
.asbd-gallery-card {
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(24, 39, 75, 0.055);
    padding: 16px;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
}
.asbd-viewer {
    position: relative;
    width: 100%;
    height: clamp(390px, 43vw, 560px);
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.asbd-viewer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}
.asbd-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #7b4d1f;
    background: #fff7dd;
    border: 1px solid #f3df96;
}

/* Thumbnails */
.asbd-thumb-slider {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 34px !important;
    gap: 10px;
    align-items: center;
}
.asbd-thumbs {
    display: flex !important;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.asbd-thumbs::-webkit-scrollbar { display: none; }
.asbd-thumb {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    padding: 3px;
    border: 1px solid #dfe4e8;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
}
.asbd-thumb.active { border: 2px solid #2d7ff9; padding: 2px; }
.asbd-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.asbd-thumb-nav {
    width: 34px;
    height: 34px;
    border: 1px solid #e1e6eb;
    border-radius: 50%;
    background: #ffffff;
    color: #747b84;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Benefits Box */
.asbd-gallery-benefits {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px;
    margin-top: 10px;
}
.asbd-gallery-benefit {
    padding: 10px 7px;
    border: 1px solid #edf0f3;
    border-radius: 10px;
    text-align: center;
    background: #ffffff;
}
.asbd-gallery-benefit-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 6px;
    border-radius: 8px;
    background: #f0fff5;
    color: #18a957;
    display: flex;
    align-items: center;
    justify-content: center;
}
.asbd-gallery-benefit strong { display: block; font-size: 10px; color: #252a30; font-weight: 800; }
.asbd-gallery-benefit span { display: block; font-size: 8px; color: #888f97; margin-top: 3px; }

/* --- Summary Card (Right Side) --- */
.asbd-summary {
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(24, 39, 75, 0.055);
    display: flex !important;
    flex-direction: column;
}
.asbd-quality-pill {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 5px;
    background: #effbea;
    color: #56aa3b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    width: max-content;
}
.asbd-title {
    margin: 10px 0;
    color: #1d2732;
    font-size: 32px;
    line-height: 1.12;
    font-weight: 800;
}
.asbd-rating-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.asbd-stars i { font-size: 13px; color: #d8dce2; }
.asbd-stars i.is-filled { color: #f3b21b; }
.asbd-rating-count { font-size: 12px; color: #5f666d; text-decoration: none; }

/* Price */
.asbd-price-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.asbd-price, .asbd-price .amount {
    color: #348f49;
    font-size: 31px;
    font-weight: 800;
}
.asbd-old-price, .asbd-old-price .amount {
    color: #9aa0a6;
    font-size: 15px;
    text-decoration: line-through;
}
.asbd-save {
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff0ef;
    color: #ff463e;
    font-size: 10px;
    font-weight: 800;
}

/* Stock */
.asbd-stock-row {
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #30363c;
}
.asbd-stock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #35a65b;
}
.asbd-stock-row.is-out .asbd-stock-dot { background: #d83a36; }

/* Cart Actions */
.asbd-qty-row {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.asbd-qty-box {
    display: inline-flex !important;
    align-items: center;
    height: 36px;
    padding: 2px;
    border: 1px solid #e2e7ec;
    border-radius: 8px;
    background: #f9fafb;
}
.asbd-qty-btn {
    width: 32px;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #7a8087;
    font-size: 17px;
    cursor: pointer;
}
.asbd-qty-box input.qty {
    width: 34px;
    text-align: center;
    border: 0;
    background: transparent;
    font-weight: 700;
    font-size: 12px;
}
.asbd-cta-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.asbd-main-cart-btn, .asbd-buy-now {
    height: 46px;
    border: 0;
    border-radius: 6px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}
.asbd-main-cart-btn { background: linear-gradient(180deg, #3baa4e 0%, #27983c 100%); }
.asbd-buy-now { background: linear-gradient(180deg, #ffa915 0%, #f39200 100%); }

/* Support Buttons */
.asbd-support-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.asbd-support-btn {
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}
.asbd-support-btn.is-whatsapp { color: #22a75a; border-color: #75d6a0; }
.asbd-support-btn.is-call { color: #3177e0; border-color: #83aef2; }

/* Shipping Options */
.asbd-shipping-wrap {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e6eaee;
    border-radius: 14px;
    background: #fff;
}
.asbd-shipping-head {
    display: flex !important;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 800;
    color: #232a31;
}
.asbd-shipping-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.asbd-shipping-card {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ece5d9;
}
.asbd-shipping-card.green { background: #f2fff5; border-color: #c9efd3; }
.asbd-shipping-card.blue { background: #f5f8ff; border-color: #d7e2fb; }
.asbd-shipping-card.purple { background: #faf6ff; border-color: #eadcff; }
.asbd-shipping-card-head {
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
}
.asbd-shipping-price { font-size: 18px; font-weight: 900; margin-bottom: 7px; }
.asbd-shipping-note { font-size: 12px; color: #747b83; }

/* --- Tabs (Description & Reviews) --- */
.asbd-tab-wrap { margin-top: 32px; }
.asbd-tab-nav {
    display: flex !important;
    border-bottom: 1px solid #e5e7eb;
}
.asbd-tab-btn {
    min-width: 205px;
    padding: 18px 28px;
    border: 1px solid #e4e7eb;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: #fff;
    color: #4b5563;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 11px;
    position: relative;
}
.asbd-tab-btn.is-active { color: #62c52f; border-bottom: 0; }
.asbd-tab-btn.is-active::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0; left: -1px; right: -1px;
    height: 4px;
    background: #62c52f;
}
.asbd-tab-panel { display: none; }
.asbd-tab-panel.is-active { display: block !important; }

/* Tab Content Card */
.asbd-card, #asbd-tab-reviews {
    padding: 38px 46px;
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 0 18px 18px 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055);
}
.asbd-section-title {
    font-size: 28px;
    font-weight: 800;
    color: #20252d;
    margin-bottom: 16px;
}

/* === ABOUT PRODUCT CONTENT (FIXED) === */
.asbd-content {
    display: block !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #4b5563 !important;
}
.asbd-content p {
    display: block !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.7 !important;
}
.asbd-content ul {
    display: block !important;
    list-style: none !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}
.asbd-content ul li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #3f4752 !important;
}
.asbd-content ul li::before {
    content: "✓" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 24px !important;
    margin: 2px 0 0 0 !important;
    background: #e5f7d7 !important;
    color: #62c52f !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

/* =============================================================
 * FIXED: REVIEWS TAB LAYOUT & STARS
 * ============================================================= */
.asbd-review-layout {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    gap: 30px !important;
    align-items: start !important;
}
.asbd-review-card {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 24px !important;
}
.asbd-review-side-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin: 0 0 16px 0 !important;
}
.asbd-review-summary {
    text-align: center !important;
}
.asbd-review-summary-icon {
    width: 60px !important;
    height: 60px !important;
    background: #fff !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    color: #f3b21b !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}
.asbd-review-summary strong {
    display: block !important;
    font-size: 24px !important;
    color: #111827 !important;
    margin-bottom: 4px !important;
}
.asbd-review-summary p {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 0 0 16px 0 !important;
}
.asbd-review-write-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px !important;
    background: #62c52f !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: 0 !important;
    cursor: pointer !important;
    gap: 8px !important;
}
.asbd-review-main h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin: 0 0 16px 0 !important;
}
.asbd-review-form-wrap {
    margin-top: 24px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 24px !important;
}
.asbd-review-form-wrap h4 {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 0 16px 0 !important;
}
.asbd-review-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}
.asbd-review-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.asbd-review-field.full {
    grid-column: 1 / -1 !important;
}
.asbd-review-field label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #374151 !important;
}
.asbd-review-field input,
.asbd-review-field textarea {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #f9fafb !important;
}
.asbd-review-field input:focus,
.asbd-review-field textarea:focus {
    outline: none !important;
    border-color: #62c52f !important;
    background: #fff !important;
}
.asbd-review-submit {
    background: #62c52f !important;
    color: #fff !important;
    border: 0 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}
.asbd-rating-stars-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}
.asbd-rating-stars {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.asbd-rating-stars a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0 !important; 
    text-decoration: none !important;
    color: transparent !important;
    border: 0 !important;
    background: transparent !important;
}
.asbd-rating-stars a::before {
    content: "★" !important;
    font-size: 28px !important;
    line-height: 1 !important;
    color: #d1d5db !important;
    transition: 0.2s ease !important;
}
.asbd-rating-stars a:hover::before,
.asbd-rating-stars a.is-active::before {
    color: #f3b21b !important;
}
.asbd-review-empty {
    text-align: center !important;
    padding: 40px 20px !important;
    background: #f9fafb !important;
    border: 1px dashed #d1d5db !important;
    border-radius: 12px !important;
}
.asbd-review-empty-icon {
    font-size: 40px !important;
    color: #9ca3af !important;
    margin-bottom: 12px !important;
}
.asbd-review-empty strong {
    display: block !important;
    font-size: 18px !important;
    color: #111827 !important;
    margin-bottom: 6px !important;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .asbd-layout { grid-template-columns: 1fr !important; }
    .asbd-review-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 860px) {
    .asbd-viewer { height: auto; aspect-ratio: 1/1; }
}
@media (max-width: 767px) {
    .asbd-container { width: calc(100% - 18px) !important; }
    .asbd-gallery-card, .asbd-summary { padding: 12px; border-radius: 14px; }
    .asbd-title { font-size: 26px; }
    .asbd-thumb { flex: 0 0 58px; width: 58px; height: 58px; }
    .asbd-gallery-benefits { grid-template-columns: repeat(2, 1fr) !important; }
    .asbd-cta-row, .asbd-support-row, .asbd-shipping-grid { grid-template-columns: 1fr !important; }
    .asbd-tab-btn { min-width: 158px; padding: 15px 18px; font-size: 14px; }
    .asbd-card, #asbd-tab-reviews { padding: 24px 18px; }
    .asbd-content ul li { font-size: 14px !important; }
    .asbd-content ul li::before { flex: 0 0 22px !important; width: 22px !important; height: 22px !important; font-size: 12px !important; }
    .asbd-review-form { grid-template-columns: 1fr !important; }
}