/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f1f3f6;
    color: #212121;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: #2874f0;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
}

.navbar {
    max-width: 1248px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 10px;
}

.logo {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    min-width: 100px;
}

.logo>img {
    width: 75px;
}

.explore-plus {
    font-size: 11px;
    color: #f0f0f0;
    font-style: italic;
    margin-top: -2px;
}

.explore-plus .plus-text {
    color: #ffe500;
    font-weight: 500;
}

.explore-plus img {
    width: 10px;
    margin-left: 2px;
}

.search-bar {
    flex-grow: 1;
    max-width: 560px;
    background: #fff;
    display: flex;
    align-items: center;
    border-radius: 2px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .23);
    height: 36px;
    margin-left: 12px;
}

.search-bar input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 14px;
    color: #000;
}

.search-bar button {
    background: none;
    border: none;
    padding: 0 8px;
    cursor: pointer;
    color: #2874f0;
}

.nav-links {
    display: flex;
    align-items: center;
    margin-left: 20px;
    font-weight: 500;
    color: #fff;
}

.nav-links>* {
    margin: 0 20px;
    cursor: pointer;
    white-space: nowrap;
}

.login-btn a {
    background-color: #fff;
    color: #2874f0;
    padding: 5px 40px;
    border-radius: 2px;
    border: 1px solid #dbdbdb;
    font-weight: 500;
}

.dropdown {
    display: flex;
    align-items: center;
}

.dropdown svg {
    margin-left: 5px;
    transform: rotate(270deg);
    width: 10px;
    height: 10px;
}

.cart-link {
    display: flex;
    align-items: center;
}

.cart-link svg {
    margin-right: 8px;
}

/* Main Container */
.main-container {
    max-width: 1366px;
    /* Slightly wider for product page */
    margin: 0 auto;
    padding: 10px;
}

.breadcrumbs {
    font-size: 12px;
    color: #878787;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.breadcrumbs a:hover {
    color: #2874f0;
}

.breadcrumbs svg {
    margin: 0 5px;
    height: 8px;
    transform: rotate(-90deg);
}

/* Product Layout */
.product-layout {
    display: flex;
    background: #fff;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .16);
}

.left-col {
    width: 40%;
    padding: 16px;
    position: sticky;
    top: 60px;
    align-self: flex-start;
    min-width: 416px;
}

.right-col {
    width: 60%;
    padding: 24px;
    padding-left: 0;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    margin-bottom: 20px;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

.thumb {
    width: 64px;
    height: 64px;
    border: 1px solid #f0f0f0;
    margin-bottom: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;
}

.thumb.active {
    border: 2px solid #2874f0;
}

.thumb img {
    max-width: 100%;
    max-height: 100%;
}

.main-image {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #f0f0f0;
    position: relative;
    height: 448px;
    /* Fixed height for consistency */
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.share-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
}

.wishlist-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

.wishlist-icon svg {
    width: 16px;
    height: 16px;
    fill: #c2c2c2;
    /* Default gray */
}

.wishlist-icon:hover svg {
    fill: #ff4343;
    /* Red on hover */
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons button {
    flex: 1;
    height: 56px;
    border: none;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .2);
}

.action-buttons button svg {
    margin-right: 8px;
}

.add-to-cart {
    background-color: #ff9f00;
}

.buy-now {
    background-color: #fb641b;
}

/* Product Details (Right Col) */
.product-title h1 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.4;
}

.rating-reviews {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.rating-badge {
    background-color: #388e3c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.star-icon {
    width: 10px;
    margin-left: 2px;
}

.rating-count {
    color: #878787;
    margin-right: 10px;
    font-weight: 500;
}

.price-section {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

.current-price {
    font-size: 28px;
    font-weight: 500;
    margin-right: 10px;
}

.original-price {
    color: #878787;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 16px;
}

.discount {
    color: #388e3c;
    font-weight: 500;
    font-size: 16px;
}

.offers-section {
    margin-bottom: 24px;
}

.offer-header {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
}

.offers-list li {
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
}

.offer-icon {
    margin-right: 8px;
    margin-top: 2px;
}

.offers-list b {
    font-weight: 500;
}

.offers-list a {
    color: #2874f0;
    font-weight: 500;
    margin-left: 5px;
}

/* Common Row Styles */
.row {
    display: flex;
    margin-bottom: 16px;
}

.col-label {
    width: 110px;
    color: #878787;
    font-weight: 500;
    flex-shrink: 0;
}

.col-value {
    flex-grow: 1;
    color: #212121;
}

/* Delivery */
.pincode-check {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #2874f0;
    width: max-content;
    padding-bottom: 2px;
    margin-bottom: 5px;
}

.pincode-check svg {
    margin-right: 5px;
}

.pincode-check input {
    border: none;
    outline: none;
    font-weight: 500;
    font-size: 14px;
    width: 150px;
}

.check-btn {
    color: #2874f0;
    font-weight: 500;
    cursor: pointer;
    margin-left: 10px;
}

.delivery-date {
    font-size: 14px;
    font-weight: 500;
}

.free-delivery {
    color: #388e3c;
    font-size: 12px;
}

/* Highlights */
.highlights-section ul {
    display: flex;
    flex-wrap: wrap;
}

.highlights-section li {
    width: 50%;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    color: #212121;
}

.highlights-section li::before {
    content: "•";
    color: #c2c2c2;
    position: absolute;
    left: 0;
}

/* Seller */
.seller-name {
    color: #2874f0;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.rating-badge-sm {
    background-color: #2874f0;
    color: #fff;
    padding: 1px 4px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
    display: flex;
    align-items: center;
}

.star-icon-sm {
    width: 8px;
    margin-left: 2px;
}

.seller-features li {
    font-size: 12px;
    margin-bottom: 4px;
}

.seller-features li::before {
    content: "•";
    color: #c2c2c2;
    margin-right: 5px;
}

.super-coin {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 2px;
}

.super-coin img {
    width: 100%;
    max-width: 350px;
}

/* Description & Specs */
.section-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-bottom: none;
    margin-bottom: 0;
    margin-top: 20px;
}

.desc-content {
    border: 1px solid #e0e0e0;
    padding: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #212121;
}

.spec-table {
    border: 1px solid #e0e0e0;
    padding: 15px;
}

.spec-group {
    margin-bottom: 20px;
}

.group-title {
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.spec-row {
    display: flex;
    margin-bottom: 10px;
}

.spec-key {
    width: 25%;
    color: #878787;
}

.spec-value {
    width: 75%;
    color: #212121;
}

/* Footer */
footer {
    background-color: #172337;
    color: #fff;
    margin-top: 40px;
    padding: 40px 0;
}

.footer-content {
    max-width: 1248px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    min-width: 150px;
}

.footer-title {
    color: #878787;
    font-size: 12px;
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 12px;
    margin-bottom: 5px;
    color: #fff;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-col p {
    font-size: 12px;
    line-height: 1.5;
}

.border-left {
    border-left: 1px solid #454d5e;
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-layout {
        flex-direction: column;
    }

    .left-col {
        width: 100%;
        position: static;
        min-width: auto;
    }

    .right-col {
        width: 100%;
    }

    .action-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 100;
    }

    .action-buttons button {
        height: 50px;
    }

    .main-container {
        padding-bottom: 60px;
        /* Space for fixed buttons */
    }
}