/* product-details.css */

:root {
    --theme-pink: #FF4F81;
    --text-dark: #282c3f;
    --text-grey: #535766;
    --bg-light: #f9f9f9;
}

body {
    background-color: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 4%;
    font-size: 14px;
    color: var(--text-dark);
    margin-top: 80px; /* Offset for fixed header */
}

.breadcrumbs span {
    cursor: pointer;
}

.breadcrumbs .current {
    font-weight: 600;
    color: var(--text-dark);
}

/* Main Layout */
.product-container {
    display: flex;
    padding: 0 4% 40px;
    gap: 30px;
    position: relative;
}

/* Left Column: Image Gallery */
.image-gallery {
    width: 58%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 images side by side */
    gap: 10px;
}

.img-grid-item {
    width: 100%;
    overflow: hidden;
    cursor: zoom-in;
}

.img-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.img-grid-item:hover img {
    transform: scale(1.05);
}

/* Right Column: Details (Sticky) */
.product-details {
    width: 42%;
    padding: 10px 20px;
    /* Sticky Logic */
    position: sticky;
    top: 100px;
    height: fit-content;
}

.brand-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.product-name {
    font-size: 20px;
    color: #535665;
    font-weight: 400;
    margin-top: 5px;
    line-height: 1.2;
}

/* Rating Box */
.rating-box {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-pill {
    border: 1px solid #e0e0e0;
    padding: 4px 8px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-count {
    color: var(--text-grey);
    font-size: 14px;
}

.divider {
    border: 0;
    border-top: 1px solid #eaeaec;
    margin: 15px 0;
}

/* Price Section */
.price-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.mrp {
    font-size: 20px;
    color: var(--text-grey);
    text-decoration: line-through;
}

.discount {
    font-size: 20px;
    color: #ff905a; /* Specific discount orange */
    font-weight: 700;
}

.tax-note {
    color: #03a685;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Size Selector */
.size-selector h4, .delivery-options h4, .product-meta h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sizes {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.size-btn {
    width: 50px; /* Adjusted for circle */
    height: 50px;
    border-radius: 50%;
    border: 1px solid #bfc0c6;
    background: white;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-dark);
    transition: 0.2s;
}

.size-btn:hover {
    border-color: var(--theme-pink);
}

.size-btn.active {
    border-color: var(--theme-pink);
    color: var(--theme-pink);
    background-color: #fff5f8; /* Light pink bg */
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-add-bag {
    flex: 2;
    background-color: var(--theme-pink);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-add-bag:hover {
    background-color: #e03e6d;
}

.btn-wishlist {
    flex: 1;
    background-color: white;
    border: 1px solid #d4d5d9;
    color: var(--text-dark);
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-wishlist:hover {
    border-color: var(--text-dark);
}

/* Delivery Options */
.delivery-options {
    margin-bottom: 30px;
}

.pincode-box {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.pincode-box input {
    border: 1px solid #d4d5d9;
    padding: 10px;
    border-radius: 4px;
    width: 200px;
}

.pincode-box button {
    background: none;
    border: none;
    color: var(--theme-pink);
    font-weight: 700;
    cursor: pointer;
}

.delivery-note {
    font-size: 12px;
    color: var(--text-grey);
}

.product-meta ul {
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }
    
    .image-gallery {
        width: 100%;
        grid-template-columns: 1fr; /* One image per row on mobile */
    }

    .product-details {
        width: 100%;
        position: static; /* Remove sticky on mobile */
    }

    .action-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        padding: 10px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        margin-bottom: 0;
        z-index: 100;
    }
}