/* Product Page — Premium Botanical */
.product-breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
}

.product-breadcrumb .breadcrumb {
    font-size: 0.85rem;
    background: none;
    margin: 0;
}

.product-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.product-breadcrumb a:hover { color: var(--primary); }

.product-page-wrap {
    background: linear-gradient(180deg, var(--bg) 0%, var(--white) 280px);
}

.product-gallery-card {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.product-badge-sale {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 3;
    background: #E8A598;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
}

body.rtl .product-badge-sale { left: auto; right: 1.5rem; }

.product-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg);
    aspect-ratio: 1;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.product-gallery-main:hover img { transform: scale(1.02); }

.product-gallery-thumbs {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--primary); }

.product-purchase-panel {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.back-link:hover { color: var(--primary); }

body.rtl .back-link i { transform: scaleX(-1); }

.product-sku-line {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-sku-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-inline-end: 0.35rem;
}

.product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.product-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.2;
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.product-wish-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--border, #e5e7eb);
    background: #fff;
    color: var(--text, #2c2c2c);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.product-wish-btn:hover {
    border-color: #e0566d;
    color: #e0566d;
    box-shadow: 0 4px 14px rgba(224, 86, 109, 0.16);
}

.product-wish-btn[aria-pressed="true"] {
    border-color: rgba(224, 86, 109, 0.4);
    background: #fff5f7;
    color: #e0566d;
}

.product-wish-btn i {
    font-size: 1.05rem;
    line-height: 1;
    width: 1.1em;
    text-align: center;
}

@media (max-width: 575.98px) {
    .product-title-row {
        flex-wrap: wrap;
    }
    .product-wish-btn {
        width: 100%;
    }
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.product-rating-row .stars { color: #F5C542; font-size: 0.9rem; }

.rating-count { font-size: 0.85rem; color: var(--text-muted); }

.product-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.product-price-block .price-current {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-display);
}

.product-price-block .price-original {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-badge {
    background: rgba(232, 165, 152, 0.2);
    color: #c45a4a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.product-lead {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.variant-options {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.variant-summary {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 0.75rem;
    min-height: 1.25rem;
}

.product-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 0.75rem 0.35rem;
    background: var(--bg);
    border-radius: 12px;
}

.trust-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.product-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text);
}

.meta-chip.stock-instock { background: rgba(109, 139, 116, 0.15); color: var(--primary); }
.meta-chip.stock-outofstock { background: rgba(232, 165, 152, 0.2); color: #c45a4a; }

.purchase-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.qty-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    background: var(--white);
    height: 40px;
}

.pack-qty-hint {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    color: var(--muted, #6b7280);
}

.preorder-hint {
    color: #9a6700;
}

.meta-chip--preorder {
    background: #fff8e6;
    color: #9a6700;
    border: 1px solid #f0d78c;
}

.preorder-confirm-box {
    background: #fffbeb;
}

.qty-btn {
    width: 36px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover { background: var(--bg); color: var(--primary); }

.qty-stepper .qty-input {
    width: 38px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    padding: 0;
}

.btn-add-cart {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    padding-inline: 1rem;
}

.btn-whatsapp-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem;
    border: 1.5px solid #25D366;
    color: #25D366;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-whatsapp-product:hover {
    background: #25D366;
    color: white;
}

.product-details-section {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.product-detail-tabs {
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / legacy Edge */
}

.product-detail-tabs::-webkit-scrollbar,
.product-details-section::-webkit-scrollbar,
.product-tab-panels::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.product-details-section,
.product-tab-panels {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-detail-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 1.1rem 1.25rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: none;
}

.product-detail-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.product-tab-panels { padding: 0; }

.tab-panel-inner {
    padding: 2rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.product-specs-table {
    width: 100%;
    max-width: 420px;
    border-collapse: collapse;
}

.product-specs-table th,
.product-specs-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border, #e9ece8);
    text-align: start;
    vertical-align: top;
}

.product-specs-table th {
    width: 42%;
    font-weight: 600;
    color: var(--text, #2c2c2c);
}

.product-specs-table td {
    color: var(--text-muted, #6b7280);
}

.review-card-inline {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.review-card-inline:last-child { border-bottom: none; }

.review-card-inline .stars { color: #F5C542; font-size: 0.85rem; }

.review-title { color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 991px) {
    .product-purchase-panel { padding: 1.5rem; }
    .product-trust-row { grid-template-columns: 1fr; }
    .purchase-row { flex-direction: column; }
    .qty-stepper { align-self: flex-start; }
}

@media (min-width: 992px) {
    .product-purchase-panel { position: sticky; top: 100px; }
}

/* Nursery multi-color bundle selector */
.bundle-form {
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    background: var(--white);
    margin-bottom: 16px;
}

.bundle-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.bundle-title { font-weight: 700; font-size: 1.05rem; }
.bundle-hint { font-size: 0.85rem; color: var(--primary); font-weight: 600; }

.bundle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.bundle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border);
}

.bundle-row:last-child { border-bottom: none; }

.bundle-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
    flex-shrink: 0;
}

.bundle-name {
    flex: 1;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.bundle-name small { font-weight: 400; }

.qty-stepper-sm { border-radius: 10px; height: 36px; }
.qty-stepper-sm .qty-btn { width: 32px; height: 36px; font-size: 1rem; }
.qty-stepper-sm .qty-input { width: 40px; font-size: 0.85rem; }

.bundle-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    border-top: 1.5px dashed var(--border);
}

.bundle-total.is-ok strong { color: var(--primary); }

.btn-add-cart:disabled { opacity: 0.55; cursor: not-allowed; }

/* "From" price + per-color surcharge */
.price-from {
    font-size: 0.95rem;
    color: var(--text-muted, #6b736b);
    font-weight: 600;
    margin-inline-end: 4px;
}

.bundle-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-end: 10px;
    white-space: nowrap;
}

.bundle-surcharge {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(109, 139, 116, 0.12);
    border-radius: 6px;
    padding: 2px 6px;
}

.bundle-surcharge--down { color: #c0463b; background: rgba(192, 70, 59, 0.1); }

.bundle-unit { font-weight: 600; font-size: 0.9rem; }
