/* ========================================
   PRODUCT DETAIL - Modern layout
   ======================================== */

.product-detail {
    padding: 2.5rem 0 4rem;
    background: var(--slate-50);
    min-height: 50vh;
}

.product-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-200);
}

/* Image side */
.product-image-section {
    display: flex; flex-direction: column; gap: 1rem;
}
.main-image {
    position: relative;
    background: var(--gradient-soft);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex; align-items: center; justify-content: center;
    min-height: 460px;
    overflow: hidden;
}
.main-image::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(10,108,219,.08), transparent 60%);
    pointer-events: none;
}
.main-image img {
    max-width: 100%; max-height: 380px; object-fit: contain;
    transition: transform .3s;
    position: relative; z-index: 1;
}
.main-image:hover img { transform: scale(1.04); }
.main-image .discount-badge {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: var(--gradient-accent); color: #fff;
    padding: 0.55rem 1.1rem; border-radius: 50px;
    font-weight: 700; font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(255,107,53,.4);
    z-index: 2;
}

/* Info side */
.product-info-section {
    display: flex; flex-direction: column; gap: 1.3rem;
}
.product-info-section .category-badge {
    width: fit-content;
}
.product-info-section h1 {
    font-size: 1.9rem; font-weight: 800; color: var(--dark);
    line-height: 1.25; letter-spacing: -0.02em;
}

.rating {
    display: flex; align-items: center; gap: 0.8rem;
    color: var(--slate-600); font-size: 0.92rem;
}
.stars {
    color: #fbbf24; font-size: 1.1rem; letter-spacing: 1px;
}

/* Price box */
.price-box {
    background: var(--slate-50);
    padding: 1.5rem; border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    display: flex; flex-direction: column; gap: 0.7rem;
}
.price-item {
    display: flex; justify-content: space-between; align-items: center;
}
.price-item label {
    font-weight: 600; color: var(--slate-600); font-size: 0.92rem;
}
.price-item .mrp {
    color: var(--slate-400); text-decoration: line-through; font-size: 1.05rem; font-weight: 500;
}
.price-item .price {
    font-size: 2rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em;
}
.price-item .savings {
    color: var(--success); font-weight: 700; font-size: 1rem;
    background: rgba(16,185,129,.12); padding: 0.35rem 0.8rem; border-radius: 50px;
}

/* Stock */
.stock-section {
    padding: 0.85rem 1.1rem; border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem;
    display: flex; align-items: center; gap: 0.6rem;
}
.stock-section.available {
    background: rgba(16,185,129,.1); color: #065f46;
    border: 1px solid rgba(16,185,129,.3);
}
.stock-section.unavailable {
    background: rgba(239,68,68,.1); color: #991b1b;
    border: 1px solid rgba(239,68,68,.3);
}
.stock-section p { margin: 0; }

/* Purchase */
.purchase-section {
    display: flex; flex-direction: column; gap: 1rem;
    padding: 1.5rem; background: var(--gradient-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-light);
}
.purchase-section label {
    font-weight: 600; color: var(--dark);
}
.quantity-selector {
    display: flex; align-items: center;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius); width: fit-content;
    overflow: hidden;
}
.qty-btn {
    background: var(--slate-50); border: none;
    padding: 0.7rem 1.2rem; font-size: 1.1rem; font-weight: 700;
    cursor: pointer; color: var(--primary);
    transition: all .15s;
}
.qty-btn:hover { background: var(--primary-light); }
.quantity-selector input {
    border: none; width: 70px; text-align: center;
    font-size: 1rem; font-weight: 700; padding: 0.7rem 0;
    background: #fff; color: var(--dark);
}
.quantity-selector input:focus { outline: none; }

.purchase-section .add-to-cart,
.purchase-section .btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
}
.purchase-section .add-to-cart {
    background: var(--gradient-primary);
    color: #fff; border: none; border-radius: var(--radius);
    font-weight: 700; cursor: pointer;
    box-shadow: 0 6px 18px rgba(10,108,219,.35);
    transition: transform .2s, box-shadow .2s;
}
.purchase-section .add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10,108,219,.45);
}

/* Features list */
.features-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
}
.features-section h3 {
    margin-bottom: 1rem; color: var(--dark); font-size: 1.1rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.5rem;
}
.features-section h3::before { content: '⭐'; }
.features-list {
    list-style: none;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
.features-list li {
    padding: 0.5rem 0.8rem;
    color: var(--dark); font-weight: 500; font-size: 0.9rem;
    background: var(--slate-50); border-radius: var(--radius-sm);
    display: flex; align-items: flex-start; gap: 0.5rem;
}
.features-list li::before {
    content: ''; display: none;
}
.features-list li {
    position: relative; padding-left: 2rem;
}
.features-list li::before {
    content: '✓'; display: block; position: absolute; left: 0.7rem; top: 0.55rem;
    color: var(--success); font-weight: 700;
}

/* Delivery info */
.delivery-info {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid var(--primary-light);
    padding: 1.5rem; border-radius: var(--radius-lg);
}
.delivery-info h3 {
    margin-bottom: 1rem; color: var(--dark); font-size: 1.05rem; font-weight: 700;
}
.info-item {
    padding: 0.6rem 0; color: var(--slate-600); font-size: 0.92rem;
    display: flex; align-items: center; gap: 0.7rem;
    border-bottom: 1px dashed var(--slate-200);
}
.info-item:last-child { border-bottom: none; }
.info-item span {
    font-weight: 700; color: var(--primary); flex-shrink: 0;
    min-width: 130px;
}

/* Description */
.description-section {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.description-section h2 {
    font-size: 1.6rem; margin-bottom: 1.2rem; color: var(--dark);
    font-weight: 700; position: relative; padding-bottom: 0.8rem;
}
.description-section h2::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 50px; height: 3px; background: var(--gradient-primary); border-radius: 2px;
}
.description-section p {
    color: var(--slate-600); line-height: 1.8; margin-bottom: 1rem;
}

/* Related */
.related-products {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}
.related-products h2 {
    font-size: 1.6rem; margin-bottom: 1.8rem; color: var(--dark); font-weight: 700;
    position: relative; padding-bottom: 0.8rem;
}
.related-products h2::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 50px; height: 3px; background: var(--gradient-primary); border-radius: 2px;
}
.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; padding: 1.5rem; }
    .main-image { min-height: 320px; padding: 1.5rem; }
    .features-list { grid-template-columns: 1fr; }
    .description-section, .related-products { padding: 1.5rem; }
}
@media (max-width: 480px) {
    .product-info-section h1 { font-size: 1.4rem; }
    .price-item .price { font-size: 1.5rem; }
    .product-layout { padding: 1rem; }
}
