/* ============================================================
   PRODUCT DETAILS STYLES
   ============================================================ */

.m-product-details {
    background: white;
    min-height: 100vh;
    padding-bottom: 90px; /* Space for the bottom buttons */
    overflow-x: hidden;
}

/* TOP BAR */
.m-pd-top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 52px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #F3F4F6;
    z-index: 100;
}
.m-pd-top-bar .back-btn {
    color: #111827;
    text-decoration: none;
    display: flex;
}
.m-pd-top-bar .back-btn svg {
    width: 22px;
    height: 22px;
}
.m-pd-top-bar .title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}
.m-pd-top-bar .share-btn {
    background: transparent;
    border: none;
    color: #111827;
    padding: 0;
    cursor: pointer;
    display: flex;
}
.m-pd-top-bar .share-btn svg {
    width: 20px;
    height: 20px;
}

/* IMAGE CAROUSEL */
.m-pd-carousel {
    margin-top: 52px;
    height: 280px;
    background: #F8F9FA;
    position: relative;
    overflow: hidden;
}
.m-pd-carousel .m-carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
}
.m-pd-carousel .m-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F9FA;
}
.m-pd-carousel .m-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.m-pd-carousel .m-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}
.m-pd-carousel .m-carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D1D5DB;
    transition: all 0.3s ease;
}
.m-pd-carousel .m-carousel-dots .dot.active {
    background: var(--m-primary-purple);
    width: 18px;
    border-radius: 10px;
}

/* PRODUCT INFO */
.m-pd-info {
    padding: 16px;
}
.m-pd-info .product-name {
    font-size: 19px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin: 0;
}
.m-pd-info .price-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

/* WooCommerce Price formatting overrides */
.m-pd-info .prices del,
.m-pd-info .prices del .amount {
    font-size: 15px !important;
    color: #9CA3AF !important;
    text-decoration: line-through;
    font-weight: 400;
}
.m-pd-info .prices ins,
.m-pd-info .prices ins .amount,
.m-pd-info .prices > .amount {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    text-decoration: none;
    margin-left: 6px;
}

.m-pd-info .rating {
    display: flex;
    align-items: center;
    gap: 4px;
}
.m-pd-info .rating svg {
    width: 16px;
    height: 16px;
}
.m-pd-info .rating .star {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}
.m-pd-info .rating .reviews {
    font-size: 12px;
    color: #9CA3AF;
}

.m-divider {
    height: 1px;
    background: #F3F4F6;
    margin: 14px 0;
}

/* CHECK PINCODE */
.m-pincode-section .label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}
.m-pincode-section .input-container {
    height: 48px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.m-pincode-section .input-container input {
    flex: 1;
    padding: 0 16px;
    font-size: 14px;
    border: none;
    outline: none;
    width: 100%;
}
.m-pincode-section .input-container button {
    padding: 0 18px;
    height: 100%;
    color: var(--m-primary-purple);
    font-weight: 700;
    font-size: 14px;
    border: none;
    background: transparent;
    border-left: 1px solid #E5E7EB;
    cursor: pointer;
}
.m-pincode-section .pincode-result {
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

/* DESCRIPTION SECTION */
.m-description-section {
    margin-top: 16px;
}
.m-description-section .heading {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
}
.m-description-section .expandable-content {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.m-description-section .expandable-content.expanded {
    display: block;
    -webkit-line-clamp: unset;
}
.m-description-section .read-more {
    color: var(--m-primary-purple);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    cursor: pointer;
    display: inline-block;
}
.m-description-section .ingredients-text {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.6;
}

/* BOTTOM BAR */
.m-pd-bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: white;
    padding: 12px 16px;
    border-top: 1px solid #F3F4F6;
    display: flex;
    gap: 12px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    z-index: 100;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.m-pd-bottom-bar button {
    flex: 1;
    height: 52px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}
.m-pd-bottom-bar .btn-add-cart {
    border: 2px solid var(--m-primary-purple);
    background: white;
    color: var(--m-primary-purple);
}
.m-pd-bottom-bar .btn-add-cart svg {
    width: 18px;
    height: 18px;
}
.m-pd-bottom-bar .btn-buy-now {
    background: #F97316;
    color: white;
}
