/* ============================================================
   Product Details page styles - mobile-first
   ============================================================ */

.pd-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

.pd-notfound {
    min-height: 50vh;
}

/* ------------------------------------------------------------
   Product gallery
   ------------------------------------------------------------ */
.pd-gallery {
    position: relative;
}

.pd-main-wrap {
    position: relative;
    background: #fff;
}

.pd-main {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
}

.main-product-image {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
    will-change: transform;
}

.pd-main.zoomed .main-product-image {
    transform: scale(2.2);
    cursor: zoom-out;
    transition: none;
}

.pd-main:not(.zoomed) .main-product-image {
    cursor: zoom-in;
}

.ratting1-style-0 {
    align-items: center;
    background: #fff;
    border: 0.8px solid rgb(221, 221, 221);
    border-radius: 16px;
    bottom: 18px;
    display: flex;
    font-size: 14px;
    padding: 3px 8px;
    position: absolute;
    right: 10px;
    width: max-content;
    z-index: 2;
    box-sizing: border-box;
}

.ratting1-style-1 {
    color: rgb(34, 139, 34);
    font-size: 11px;
    margin-left: 5px;
    font-weight: 900;
    line-height: 11px;
}

.dots {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.dot {
    outline: none;
    background: rgb(197, 197, 197);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    height: 10px;
    margin: 0 5px;
    padding: 0;
    width: 10px;
}

.dot.active {
    background: #000;
}

.thumbnail-container {
    padding: 6px 10px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-container::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    min-height: 100px;
    overflow: hidden;
    position: relative;
    width: 86.3px;
    min-width: 86.3px;
    max-width: 86.3px;
    padding: 6px;
    margin-top: 10px;
    margin-right: 10px;
    border-radius: 10px;
    border: 1px solid #ececec;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail.active {
    border: 2.2px solid #000;
}

/* ------------------------------------------------------------
   Product information
   ------------------------------------------------------------ */
.details-section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 0.5rem;
    padding-top: 6px;
}

.pd-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.productName {
    color: rgb(87, 87, 87);
    text-align: start;
    font-weight: 700;
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-title-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding-top: 4px;
}

.pd-heart {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

.pd-share {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: rgb(66, 69, 83);
    font-size: 18px;
    line-height: 1;
}

.product-ratting-reviews {
    margin-top: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-ratting-reviews-style-1 {
    align-items: center;
    background: rgb(56, 142, 60);
    border: 0.8px solid rgb(221, 221, 221);
    border-radius: 5px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    padding: 2px 5px;
    width: max-content;
    flex-shrink: 0;
    box-sizing: border-box;
}

.product-ratting-reviews-style-1 span {
    line-height: 11px;
}

.details-star {
    color: #fff;
    font-size: 11px;
    margin-left: 3px;
    font-weight: 900;
    line-height: 11px;
}

.product-ratting-reviews-style-3 {
    margin-left: 0;
    font-size: 14px;
    color: rgb(128, 128, 128);
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.4;
}

.product-price-details-style-0 {
    text-align: left;
    margin: 2px 0 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.pd-rupee {
    font-size: 13px;
}

.pd-off-label {
    color: green;
    font-weight: 700;
    font-size: 14px;
    margin-right: 8px;
}

.product-price-details-style-3 {
    font-weight: 700;
    font-size: 24px;
    color: #000;
}

.product-price-details-style-2 {
    color: rgb(148, 150, 159);
    margin-left: 10px;
    text-decoration: line-through;
    font-size: 15px;
}

.product-price-details-style-1 {
    color: green;
    margin-left: 10px;
    font-weight: 700;
    font-size: 15px;
}

/* ------------------------------------------------------------
   Offer countdown timer
   ------------------------------------------------------------ */
.offer-timer-text {
    margin-bottom: 2px;
    font-weight: 500;
    line-height: 1.2;
    color: #000;
    margin-top: 16px;
}

.main-time {
    border: 1px solid #0000002d;
    border-radius: 10px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.pd-countdown {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.pd-countdown .countdown-box {
    background-color: #000;
    border-radius: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 9px 6px;
    text-align: center;
    width: 72px;
    box-sizing: border-box;
}

.pd-countdown .countdown-box div:first-child {
    font-size: 22px;
    line-height: 1.2;
}

.pd-countdown .countdown-box div:last-child {
    margin-top: 2px;
}

.pd-countdown .dot-timer {
    color: #000;
    font-size: 18px;
    font-weight: 700;
}

/* ------------------------------------------------------------
   Delivery section
   ------------------------------------------------------------ */
.cardification {
    background-color: #f4f4f5;
    height: 10px;
    margin-top: 16px;
}

.delivery-section {
    padding-top: 4px;
}

.delivery-title {
    font-size: 16px;
    font-weight: 700;
    margin: 14px 0 12px;
}

.address-box {
    border: 1px solid #bfc0c6;
    font-family: inherit;
    font-size: 14px;
    height: 44px;
    padding: 10px;
    position: relative;
    width: 94%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.pincode-input {
    flex: 1;
}

.pincode-input > input {
    border: none;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
}

.address-button {
    background-color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: rgb(66, 69, 83);
}

.pincode-valid {
    display: none;
    color: rgb(0, 179, 0);
    font-weight: 500;
    font-size: 14px;
    margin: 10px 0 0;
}

.pincode-invalid {
    display: none;
    color: #d11;
    font-weight: 500;
    font-size: 14px;
    margin: 10px 0 0;
}

.pd-delivery-perks {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

.pd-delivery-perks li {
    color: rgb(66, 69, 83);
    font-size: 14px;
    line-height: 2;
    display: flex;
    align-items: center;
}

.pd-perk-check {
    color: rgb(0, 179, 0);
    font-size: 12px;
    margin-right: 8px;
}

/* ------------------------------------------------------------
   Description + specifications
   ------------------------------------------------------------ */
.pd-section {
    padding: 20px 0 4px;
}

.pd-section-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
}

.product-description {
    color: rgb(66, 69, 83);
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.product-description img {
    max-width: 100%;
    height: auto;
}

.pd-specs {
    width: 100%;
    border-collapse: collapse;
}

.pd-specs tr {
    border-bottom: 1px solid #ececec;
}

.pd-specs tr:last-child {
    border-bottom: none;
}

.pd-spec-label {
    color: rgb(148, 150, 159);
    font-size: 13px;
    padding: 12px 0;
    width: 40%;
    vertical-align: top;
}

.pd-spec-value {
    color: rgb(33, 37, 41);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 0;
    vertical-align: top;
}

/* ------------------------------------------------------------
   Related products
   ------------------------------------------------------------ */
.related-section {
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 8px 12px 16px;
}

.related-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 14px;
}

/* ------------------------------------------------------------
   Sticky bottom bar
   ------------------------------------------------------------ */
.product-addtocart-style-0 {
    z-index: 99999;
    padding: 10px 16px;
    bottom: 0;
    position: sticky;
    flex-shrink: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

.pd-atc-bar {
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    min-height: 48px;
    border-radius: 15px;
    background: rgb(0, 0, 0);
    border: 0.8px solid rgb(0, 0, 0);
    color: #fff;
    cursor: pointer;
    font-family: 'Assistant', sans-serif;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    width: 100%;
    display: flex;
    box-sizing: border-box;
    transition: background-color 0.15s ease-in-out;
}

.pd-atc-bar:hover {
    background-color: #424649;
}

.pd-atc-bar.is-added {
    background-color: rgb(56, 142, 60);
    border-color: rgb(56, 142, 60);
}

.pd-atc-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    text-align: left;
}

.pd-atc-price-main {
    font-weight: 700;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
}

.pd-atc-mrp {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    text-decoration: line-through;
    font-weight: 400;
}

.pd-atc-off {
    color: #8fe08f;
    font-size: 12px;
    font-weight: 700;
}

.pd-atc-label {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 700;
}

.pd-atc-icon {
    margin-right: 8px;
    font-size: 15px;
}

/* ------------------------------------------------------------
   Desktop layout
   ------------------------------------------------------------ */
@media (min-width: 768px) {
    .pd-main .main-product-image {
        max-height: 420px;
    }
}

@media (min-width: 992px) {
    .pd-layout {
        display: flex;
        gap: 24px;
        padding: 16px 24px;
    }

    .pd-gallery {
        flex: 1 1 480px;
        max-width: 520px;
    }

    .details-section {
        flex: 1 1 480px;
        padding: 0;
    }

    .pd-title-actions {
        padding-top: 0;
    }
}
