/* product-detail.css - modern vertical thumbnail layout + responsive */

/* Root */
:root {
    --primary: #e7ab3c;
    --accent: #2c3e50;
    --success: #27ae60;
    --danger: #e74c3c;
    --bg: #f7f9fb;
    --card: #ffffff;
    --border: #e6eef3;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(31, 41, 55, 0.06);
    --transition: 200ms cubic-bezier(.2, .8, .2, 1);
}

/* Base */
* {
    box-sizing: border-box
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    color: #0f172a;
    margin: 0
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px
}

/* Breadcrumb */
.breadcrumb-nav {
    background: var(--card);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px
}

.breadcrumb-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px
}

.breadcrumb-current {
    color: var(--primary);
    font-weight: 600;
    margin-left: 6px
}

/* Layout */
.product-detail-layout {
    display: grid;
    grid-template-columns: 80px 1fr 420px;
    gap: 24px;
    align-items: start;
    padding-bottom: 40px
}

@media (max-width:1100px) {
    .product-detail-layout {
        grid-template-columns: 72px 1fr 360px
    }
}

@media (max-width:900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        padding: 20px
    }
}

/* Left thumb column */
.thumb-column {
    position: sticky;
    top: 110px;
    height: fit-content
}

.thumb-track {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.thumb-item {
    background: transparent;
    border: 2px solid transparent;
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center
}

.thumb-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    display: block
}

.thumb-item.active {
    border-color: rgba(231, 171, 60, 0.5);
    box-shadow: 0 4px 18px rgba(231, 171, 60, 0.08)
}

/* Center visual column */
.visual-column {
    display: flex;
    align-items: flex-start;
    justify-content: center
}

.visual-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    width: 100%;
    max-width: 680px
}

.image-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px
}

.main-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 300ms
}

.image-wrap:hover .main-image {
    transform: scale(1.01)
}

.badge-offer {
    position: absolute;
    left: 14px;
    top: 14px;
    background: var(--danger);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px
}

.icon-btn {
    position: absolute;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--accent)
}

.icon-btn.zoom {
    top: 14px;
    right: 68px
}

.icon-btn.wishlist {
    top: 14px;
    right: 14px
}

.icon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08)
}

.icon-btn.wishlist.active {
    color: var(--danger)
}

/* image actions under image */
.image-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    justify-content: center
}

.image-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f7f9;
    padding: 6px;
    border-radius: 8px
}

.small-qty,
.small-qty-input {
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 6px
}

.small-qty {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer
}

.small-qty-input {
    width: 56px;
    text-align: center;
    background: transparent
}

.big-add-to-cart {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    transition: all var(--transition)
}

.big-add-to-cart:hover {
    transform: translateY(-3px)
}

/* Right info column */
.info-column {
    position: sticky;
    top: 100px
}

.info-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    width: 100%
}

.product-title {
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: 700;
    color: var(--accent)
}

.vendor-line {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px
}

.vendor-name {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600
}

.vendor-location {
    color: #6b7280;
    font-size: 13px
}

/* pricing */
.pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px
}

.price-current {
    font-size: 24px;
    font-weight: 800;
    color: var(--success)
}

.price-original {
    font-size: 14px;
    color: #6b7280;
    text-decoration: line-through
}

.stock.in {
    color: var(--success);
    font-weight: 600
}

.stock.out {
    color: var(--danger);
    font-weight: 600
}

/* pack sizes vertical */
.pack-section {
    margin-bottom: 14px
}

.pack-title {
    font-weight: 700;
    margin-bottom: 8px
}

.pack-options {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.pack-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    background: transparent
}

.pack-option:hover {
    border-color: rgba(231, 171, 60, 0.6)
}

.pack-option.active {
    background: rgba(231, 171, 60, 0.06);
    border-color: var(--primary)
}

.pack-left {
    font-weight: 600
}

.pack-right {
    font-weight: 700;
    color: var(--success)
}

/* time slots */
.time-slot-section {
    margin-bottom: 18px
}

.time-title {
    font-weight: 700;
    margin-bottom: 8px
}

.time-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.time-option {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px
}

.time-option.active {
    border-color: var(--primary);
    background: rgba(231, 171, 60, 0.06)
}

/* CTA row */
.cta-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 14px
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer
}

.btn-secondary {
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px
}

/* features */
.features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px
}

.feat {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #4b5563
}

/* modal styling override small */
.modal .modal-content {
    border-radius: 12px
}

/* lightbox styling */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30000
}

.lightbox.open {
    display: flex
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8)
}

.lb-content {
    position: relative;
    z-index: 30001;
    max-width: 92%;
    max-height: 92%
}

.lb-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px
}

.lb-close {
    position: absolute;
    top: -28px;
    right: -28px;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 34px;
    cursor: pointer
}

/* small notification */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    z-index: 40000;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15);
    font-weight: 600
}

/* Responsive tweaks */
@media (max-width:900px) {
    .thumb-column {
        display: none
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .info-column {
        position: static
    }

    .visual-card {
        padding: 12px
    }

    .image-wrap {
        min-height: 300px
    }
}