* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.inner-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.breadcrumb {
    padding: 20px;
}

.default-text {
    font-size: 14px;
    font-weight: 400;
}

.breadcrumb a {
    text-decoration: none;
    color: black;
    font-weight: 500;
}




.breadcrumb span {
    margin: 0 5px;
}

.single-product-card {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 36px;
    align-items: start;
    padding: 34px;
    border-radius: 10px;
}

.star i {
    color: #fbbf24 !important;
}

.star p {
    margin-bottom: 5;
}

.single-product-media {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.image-card {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1/1;
    border: 1px solid #eceff2;
}

.image-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
}

.badge {
    position: absolute;
    right: 14px;
    top: 14px;
    background: #fff0f0;
    color: #ff2e2e;
    border: 1px solid #ffc7c7;
    font-weight: 700;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.thumbnails-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    position: relative;
}

.thumb-nav {
    background: #fff;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.thumb-nav:hover {
    background: #f3f4f6;
}

.thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.thumbnails::-webkit-scrollbar {
    display: none;
}

.thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e6e9ec;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.thumb.active {
    box-shadow: 0 6px 18px rgba(14, 30, 37, 0.08);
    border: 2px solid #333;
}

.product-info {
    padding: 6px 25px 0 25px;
    display: flex;
    flex-direction: column;
    align-items: start;
    height: 100%;
}

.product-name {
    font-size: 48px;
    line-height: 1.12;
    margin: 2px 0 12px;
    font-weight: 500;
    color: #0f172a;
    font-family: inherit !important;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.seller {
    font-size: 14px;
    color: #6b7280;
}


.sold-count {
    color: #16a34a;
    font-weight: 600;
    font-size: 13px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating .star path {
    fill: #fbbf24;
}

.rating-text {
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.description {
    color: #9ca3af;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    margin-bottom: 18px;
    max-width: 90%;
    position: relative;
}

.read-more {
    display: inline-block;
    margin-left: 10px;
    color: #4c4c4d;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
}

.price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
    flex-wrap: wrap;
}

.price-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 220px;
}

.current-price {
    font-size: 32px;
    color: #389721;
    font-weight: 700;
}

.price-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.old-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 16px;
    margin-top: 4px;
}

.qty-add {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 18px;
    flex-wrap: wrap;
}

.qty {
    display: flex;
    align-items: center;
    border-radius: 6px;
    border: 1px solid #e6e9ec;
    overflow: hidden;
    height: 40px;
}

.qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    border: 0;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    color: #374151;
    transition: background .12s ease;
}

.qty-btn:hover {
    background: #f4f6f8;
}

.qty-input {
    width: 54px;
    border: 0;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    background: transparent;
    outline: none;
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px !important;
    border-radius: 8px !important;
    padding: 18px 40px !important;
    font-weight: 400 !important;
    cursor: pointer;
    border: 1px solid transparent !important;
    font-size: 16px !important;
}

.actions .btn svg {
    opacity: 0.9 !important;
}

.actions .btn-outline {
    color: #389721 !important;
    background: #ffffff !important;
    border-color: #389721 !important;
    box-shadow: inset 0 0 0 2px rgba(22, 163, 74, 0.06) !important;
}

.btn-outline:hover {
    background: rgba(22, 163, 74, 0.03) !important;
    border-radius: 8px !important;
}

.btn-primary {
    color: #fff !important;
    background: #389721 !important;
    border-color: #389721 !important;
}

.btn-primary:hover {
    filter: brightness(.85) !important;
    color: white !important;
}



/* Recommended Items  */

.sub-title-text {
    font-size: 30px;
    font-weight: 600;
    margin: 50px 0;
}

.recommended-product-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    position: relative;
    display: flex;
    max-width: 400px;
    margin: 0 20px;
    min-width: 300px;
    flex-direction: column;
    justify-content: space-between;
    max-height: min-content;
}

.recommended-product-card-container {
    padding: 0 10px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.recommended-product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 10px;
}

.recommended-product-card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.recommended-muted-bold-text {
    font-size: 12px;
    color: #313131;
    font-weight: 700;
}

.recommended-review-star::before {
    content: '★';
    color: orange;
    font-size: 14px;
}

.recommended-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff3b3b;
    padding: 5px 10px;
    background-color: #FFC2C2;
    border: 1px solid #ff3b3b;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.recommended-product-card h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 5px 0;
}

.recommended-seller {
    font-size: 12px;
    color: #555;
}

.recommended-reviews {
    font-size: 12px;
    color: #333;
    margin: 5px 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.recommended-reviews span {
    color: green;
}

.recommended-price {
    font-size: 14px;
    font-weight: 600;
}

.recommended-old-price {
    text-decoration: line-through;
    margin-right: 6px;
    color: #999;
}

.recommended-buy-btn {
    background: #389721;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: auto;
}

.recommended-buy-btn:hover {
    background: darkgreen;
}

#productContent {
    width: fit-content;
    word-break: break-all;
    word-wrap: break-word;
}

/* REVIEWS  */
.reviews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    width: 100%;
    margin-top: 2rem;
}

.left-summary {
    flex: 1;
    min-width: 340px;
    max-width: 400px;
}

.left-summary h4 {
    font-size: medium;
    font-weight: 600;
    margin-bottom: 12px;
}


.rating-score {
    font-size: 60px;
    font-weight: 700;
    margin-top: 20px;
    color: #000;
}

.stars {
    display: flex;
    gap: 3px;
    font-size: 40px;
    color: #E7B66B;
}

.rating-bars {
    margin-top: 16px;
}

.bar {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.bar span:first-child {
    width: 50px;
}

.progress {
    flex: 1;
    background: #f2f2f2;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 8px;
}

.progress-fill {
    height: 100%;
    background: #E7B66B;
}

button.add-review {
    background: #2e7d32;
    color: white !important;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    margin-top: 18px;
    width: 100%;
    cursor: pointer;
}

/* Right Side */
.reviews {
    flex: 3;
    min-width: 300px;
}

.review-card {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    background: #e0e0ff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #4b4bff;
}

.review-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 4px;
}

.pagination {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination button {
    border: 1px solid #ccc;
    background: #fff;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.pagination button.active {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

@media(max-width: 1000px) {
    .reviews-container {
        flex-direction: column;
    }
}


@media (max-width: 768px) {
    .product-name {
        font-size: 28px;
    }

    .description {
        font-size: 14px;
        max-width: 100%;
    }

    .current-price {
        font-size: 24px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 16px;
    }

    .qty-input {
        width: 40px;
    }

    .thumbnails {
        gap: 8px;
    }

    .thumb {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 980px) {
    .single-product-card {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 18px;
    }

    .single-product-media {
        order: 0;
        width: 100%;
    }

    .product-info {
        order: 1;
        padding-top: 0;
    }
}

@media (max-width: 470px) {
    .single-product-card {
        padding: 0px;
    }

    .product-name {
        font-size: 20px;
    }

    .actions {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .actions>button {
        width: 100%;
        align-items: center;
        justify-content: center;
        padding: 18px 0;
    }

    .qty-add,
    .price-block {
        width: 100%;
    }
}

.addWishList{
    color: #389721 !important;
    background-color: transparent !important;
    border:  none !important;
    padding: 0;
    margin: 0;
}
.addWishList:hover{
    color: #3fa725 !important;
}