/* =========================================================
   Dasen Product Detail Page
========================================================= */

.product-hero {
    padding: 44px 0 70px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
        url("../img/bg.jpg") center center / cover no-repeat;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

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

.product-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: start;
}

.product-gallery,
.product-summary {
    min-width: 0;
}

.main-image-box {
    position: relative;
    display: grid;
    min-height: 560px;
    place-items: center;
    border: 1px solid #dfeaf6;
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff, #eef7ff);
    box-shadow: 0 24px 60px rgba(6, 27, 61, 0.12);
    overflow: hidden;
}

.main-image-box::before {
    content: "";
    position: absolute;
    inset: 34px;
    border-radius: 24px;
    background: linear-gradient(145deg, #eaf8ee, #f7fbff);
}

.main-image-box img {
    position: relative;
    z-index: 2;
    max-width: 78%;
    max-height: 490px;
    object-fit: contain;
    filter: drop-shadow(0 28px 24px rgba(6, 27, 61, 0.22));
}

.product-tag {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 3;
    padding: 8px 12px;
    border: 1px solid #bee8bd;
    border-radius: 999px;
    background: #ecf9e8;
    color: #238b35;
    font-size: 12px;
    font-weight: 900;
}

.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.thumb {
    height: 120px;
    border: 1px solid #dfeaf6;
    border-radius: 18px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.thumb.active,
.thumb:hover {
    border-color: var(--green);
    box-shadow: 0 14px 28px rgba(6, 27, 61, 0.11);
    transform: translateY(-4px);
}

.product-summary {
    padding: 34px;
    border: 1px solid #e4edf7;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 55px rgba(6, 27, 61, 0.08);
}

.product-summary h1 {
    margin: 18px 0 14px;
    color: var(--navy);
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.product-summary h1 em {
    color: var(--green);
    font-style: normal;
}

.summary-text {
    color: #26364c;
    font-size: 16px;
    line-height: 1.7;
}

.summary-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 22px 0;
}

.summary-points span {
    padding: 12px 13px;
    border: 1px solid #e4edf7;
    border-radius: 14px;
    background: #f7fbff;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.price-panel {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin: 24px 0;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(105deg, #061b3d, #0b2e64);
    color: #ffffff;
}

.price-panel small,
.price-panel span {
    color: #c9d4df;
    font-size: 13px;
    font-weight: 700;
}

.price-panel strong {
    display: block;
    margin-top: 5px;
    font-size: 22px;
}

.option-block {
    margin-top: 22px;
}

.option-block h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 16px;
}

.variant-options,
.qty-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    border: 1px solid #d8e3ef;
    border-radius: 12px;
    background: #ffffff;
    color: var(--navy);
    padding: 12px 17px;
    cursor: pointer;
    font-weight: 900;
    transition: all 0.3s ease;
}

.option-btn.active,
.option-btn:hover {
    border-color: var(--green);
    background: #ecf9e8;
    color: var(--green);
}

.cart-actions {
    margin-top: 28px;
}

.login-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.product-info-section {
    padding: 70px 0;
    background: #ffffff;
}

.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tab-btn {
    border: 1px solid #d8e3ef;
    border-radius: 999px;
    background: #ffffff;
    color: var(--navy);
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 900;
}

.tab-btn.active,
.tab-btn:hover {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
}

.tab-content {
    display: none;
    padding: 34px;
    border: 1px solid #e4edf7;
    border-radius: 24px;
    background: #f7fbff;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 28px;
}

.tab-content p,
.usage-list,
.composition-list {
    color: #304056;
    font-size: 15px;
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.info-grid div {
    padding: 20px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(6, 27, 61, 0.06);
}

.info-grid h4 {
    margin: 0 0 8px;
    color: var(--navy);
}

.safety-box {
    margin-top: 20px;
    padding: 18px;
    border-left: 4px solid var(--green);
    border-radius: 12px;
    background: #ffffff;
    color: #304056;
    line-height: 1.7;
}

.spec-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid #dfeaf6;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

.spec-table div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border-bottom: 1px solid #e4edf7;
}

.spec-table div:nth-child(odd) {
    border-right: 1px solid #e4edf7;
}

.spec-table strong {
    color: var(--navy);
}

.spec-table span {
    color: var(--muted);
    text-align: right;
}

.related-products {
    background: #f7fbff;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-grid article {
    padding: 26px;
    border: 1px solid #e4edf7;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(6, 27, 61, 0.07);
    text-align: center;
}

.related-grid img {
    height: 220px;
    max-width: 100%;
    object-fit: contain;
}

.related-grid h3 {
    color: var(--navy);
}

.related-grid a {
    color: var(--green);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 980px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .main-image-box {
        min-height: 470px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .product-hero {
        padding: 30px 0 50px;
    }

    .product-summary {
        padding: 24px;
    }

    .product-summary h1 {
        font-size: 34px;
    }

    .main-image-box {
        min-height: 360px;
    }

    .main-image-box img {
        max-height: 310px;
    }

    .thumbnail-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-points,
    .spec-table,
    .info-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .price-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .spec-table div,
    .spec-table div:nth-child(odd) {
        border-right: 0;
    }

    .related-grid img {
        height: 190px;
    }
}



/* =========================================================
   B2B Price Card + Sticky Add To Cart
========================================================= */

.price-card {
    position: relative;
    margin: 24px 0;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #061b3d, #0c3472);
    color: #ffffff;
    overflow: hidden;
}

.price-card::before {
    content: "";
    position: absolute;
    right: -55px;
    top: -55px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.24);
}

.discount-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 999px;
    background: #28a745;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.price-head {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding-right: 98px;
}

.price-head small,
.price-head span {
    color: #c9d4df;
    font-size: 13px;
    font-weight: 800;
}

.price-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 13px;
    margin-bottom: 20px;
}

.old-price {
    color: rgba(255, 255, 255, 0.62);
    font-size: 18px;
    font-weight: 800;
    text-decoration: line-through;
}

.sale-price {
    color: #ffffff;
    font-size: 46px;
    font-weight: 900;
    line-height: 0.95;
}

.price-wrap small {
    margin-bottom: 6px;
    color: #c9d4df;
    font-size: 13px;
    font-weight: 800;
}

.slab-pricing {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
}

.slab-pricing div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.slab-pricing span {
    color: #dbe5f0;
    font-size: 13px;
    font-weight: 800;
}

.slab-pricing strong {
    color: #ffffff;
    font-size: 14px;
}

.sticky-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e4edf7;
    box-shadow: 0 -12px 34px rgba(6, 27, 61, 0.12);
    backdrop-filter: blur(14px);
}

.sticky-product {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sticky-product img {
    width: 52px;
    height: 58px;
    object-fit: contain;
}

.sticky-product strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.25;
}

.sticky-product span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.sticky-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sticky-price {
    text-align: right;
}

.sticky-price small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.sticky-price strong {
    color: var(--green);
    font-size: 20px;
    font-weight: 900;
}

.sticky-btn {
    border: 0;
    border-radius: 12px;
    background: var(--green);
    color: #ffffff;
    padding: 14px 24px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(40, 167, 69, 0.22);
}

.sticky-btn:hover {
    background: #1f8f39;
}


@media (max-width: 768px) {
    .price-head {
        display: block;
        padding-right: 92px;
    }

    .price-head span {
        display: block;
        margin-top: 5px;
    }

    .sale-price {
        font-size: 38px;
    }

    .sticky-cart {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .sticky-actions {
        justify-content: space-between;
        width: 100%;
    }

    .sticky-btn {
        flex: 1;
    }

    .sticky-price {
        min-width: 90px;
        text-align: left;
    }

    body {
        padding-bottom: 150px;
    }
}

@media (max-width: 480px) {
    .slab-pricing div {
        flex-direction: column;
        gap: 5px;
    }

    .sticky-product img {
        width: 44px;
        height: 50px;
    }

    .sticky-product strong {
        font-size: 14px;
    }

    .sticky-product span {
        font-size: 12px;
    }
}
/* =========================================================
   Slab / Tier Pricing — active row + discount annotation
========================================================= */

/* =========================================================
   Slab / Tier Pricing — active row + discount annotation
========================================================= */

/* Highlight the currently active slab tier */
.slab-pricing div.slab-active {
    border-color: rgba(40, 167, 69, 0.55);
    background: rgba(40, 167, 69, 0.14);
}

.slab-pricing div.slab-active span,
.slab-pricing div.slab-active strong {
    color: #ffffff;
}

/* Per-tier discount % label */
.slab-pricing div em {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.slab-pricing div.slab-active em {
    color: #a8f5be;
}

/* =========================================================
   Sticky Cart — stacked product info layout
========================================================= */

.sticky-product > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sticky-product strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Variant label — e.g. "500 ml" */
#stickyVariant {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

/* Unit price — e.g. "₹119 / Unit" */
#stickyUnitPrice {
    display: block;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

/* =========================================================
   WC form — visually hidden but DOM-accessible for JS
   display:none breaks WC variation JS; this keeps it active
========================================================= */
.dasen-wc-form-wrap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
}

/* =========================================================
   Add To Basket — loading state + success notice
========================================================= */

/* Button disabled/loading state */
#dasenAddToBasket:disabled,
#stickyAddBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* "Added to cart · View Cart" notice */
.atb-notice {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ecf9e8;
    border: 1px solid #bee8bd;
    color: #238b35;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.atb-notice a {
    color: var(--green);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.atb-notice a:hover {
    color: var(--navy);
}

