/* product.css — inherits CSS vars from style.css */

/* ===================== PRODUCT PAGE HEADER (default / no category) ===================== */
.prod-page-header {
    padding-top: 56px;
    background: linear-gradient(135deg, #eef3ff 0%, #dce8ff 60%, #e8f0ff 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.prod-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,87,255,.07) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,87,255,.07) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

.prod-page-header-in {
    max-width: 1360px;
    margin: 0 auto;
    padding: 56px 4% 52px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.prod-page-kicker {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(0,87,255,.1);
    border: 1px solid rgba(0,87,255,.2);
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.prod-page-header-in h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -1px;
}

.prod-page-hl {
    color: var(--blue);
}

.prod-page-header-in p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto;
}

/* ===================== CATEGORY BANNER ===================== */
.prod-banner {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.prod-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.prod-banner-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    margin-bottom: 14px;
}

.prod-banner-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.prod-banner-sub {
    color: rgba(255,255,255,.8);
    font-size: .97rem;
    max-width: 520px;
    line-height: 1.6;
}

/* ===================== BUTTONS ===================== */
.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: #fff;
    padding: 11px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    border: 2px solid var(--blue);
    transition: all .25s;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.btn-glow:hover {
    background: var(--blue-dark, #0040cc);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,87,255,.35);
}

/* ===================== FILTER BAR ===================== */
.fbar {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 68px;
    z-index: 800;
}

.fin {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    height: 56px;
}

.fin::-webkit-scrollbar { display: none; }

.fp {
    flex-shrink: 0;
    padding: 6px 18px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    font-size: .81rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    background: #fff;
    white-space: nowrap;
    transition: all .22s;
    text-decoration: none;
}

.fp:hover { border-color: var(--blue); color: var(--blue); }

.fp.on {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 3px 12px rgba(26,86,219,.25);
}

/* ===================== SECTION ===================== */
.sec { padding: 72px 4%; }
.sec-in { max-width: 1360px; margin: 0 auto; }

/* ===================== SEARCH ===================== */
.prod-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    max-width: 560px;
}

.prod-search-input {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    transition: border .2s;
    background: #fff;
}

.prod-search-input:focus { border-color: var(--blue); }

.prod-search-btn {
    padding: 11px 24px;
    font-size: .9rem;
    border-radius: 10px;
}

/* ===================== PRODUCT GRID ===================== */
.pgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===================== PRODUCT CARD ===================== */
.pc {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .3s;
    cursor: pointer;
    position: relative;
}

.pc::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.pc:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(26,86,219,.12);
    border-color: var(--blue);
}

.pc:hover::before { transform: scaleX(1); }

/* Media */
.pc-media {
    height: 210px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f4ff;
}

.pc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
    display: block;
}

.pc:hover .pc-media img { transform: scale(1.06); }

.pc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 100px;
    color: #fff;
    letter-spacing: .4px;
    background: var(--blue);
}

/* Body */
.pc-body {
    padding: 20px 20px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-cat {
    font-size: .67rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 7px;
}

.pc-body h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0d1117;
    margin-bottom: 9px;
    line-height: 1.3;
}

.pc-body p {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.75;
    flex: 1;
}

/* Footer */
.pc-foot {
    padding: 14px 20px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pc-price {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue);
}

.pc-price-na {
    font-size: .8rem;
    font-weight: 700;
    color: var(--muted);
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
}

.pc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl {
    font-size: .82rem;
    font-weight: 700;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .18s;
    text-decoration: none;
}

.pl::after { content: '→'; }
.pc:hover .pl { gap: 8px; }

.pc-enquire-btn {
    font-size: .78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    color: #fff;
    background: var(--blue);
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}

.pc-enquire-btn:hover {
    background: var(--blue-dark, #0040cc);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,87,255,.3);
}

/* Empty state */
.prod-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
}

.prod-empty-icon { font-size: 3.5rem; margin-bottom: 16px; }

.prod-empty h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0d1117;
    margin-bottom: 8px;
}

.prod-empty p { color: var(--muted); font-size: .95rem; }

/* Pagination */
.prod-pagination { margin-top: 40px; }

/* ===================== PRODUCT DETAIL PAGE ===================== */
.pd-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 4% 80px;
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.pd-breadcrumb a { color: var(--blue); transition: opacity .2s; }
.pd-breadcrumb a:hover { opacity: .75; }
.pd-breadcrumb span { color: var(--muted); }

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 72px;
}

.pd-img-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    background: #f0f4ff;
    aspect-ratio: 4/3;
}

.pd-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-cat {
    font-size: .72rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.pd-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #0d1117;
    line-height: 1.2;
    margin-bottom: 16px;
}

.pd-price {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 20px;
}

.pd-desc {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 28px;
}

.pd-delivery {
    background: #f8faff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.pd-delivery-label {
    font-weight: 700;
    font-size: .88rem;
    margin-bottom: 12px;
    color: #1e293b;
}

.pd-delivery-row { display: flex; gap: 10px; }

.pd-pin-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    transition: border .2s;
}

.pd-pin-input:focus { border-color: var(--blue); }

.pd-pin-btn {
    padding: 10px 20px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}

.pd-pin-btn:hover { background: var(--blue-dark, #0040cc); }

.pd-delivery-result { margin-top: 10px; font-size: .85rem; min-height: 20px; }
.del-ok   { color: #16a34a; font-weight: 600; }
.del-warn { color: #d97706; font-weight: 600; }
.del-err  { color: #dc2626; font-weight: 600; }

.pd-enquire-btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    display: block;
    font-family: inherit;
}

/* Related */
.pd-related { margin-top: 64px; }

.pd-related-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d1117;
    margin-bottom: 28px;
}

.pc-cat { font-size: .7rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }

.pc-view-btn {
    margin-top: 14px;
    display: inline-block;
    padding: 8px 18px;
    font-size: .82rem;
    border-radius: 7px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
    .pgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .prod-hero-in { padding: 80px 4% 60px; }
    .pd-grid { grid-template-columns: 1fr; gap: 28px; }
    .prod-banner { height: 240px; }
}

@media (max-width: 560px) {
    .pgrid { grid-template-columns: 1fr; }
    .prod-search-form { flex-direction: column; }
}

/* ===================== PAGINATION ===================== */
.prod-pagination .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.prod-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    text-decoration: none;
    transition: all .2s;
    font-family: inherit;
}

.prod-pagination .page-item .page-link:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light, #eef3ff);
}

.prod-pagination .page-item.active .page-link {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 3px 10px rgba(26,86,219,.25);
}

.prod-pagination .page-item.disabled .page-link {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===================== PRODUCT DETAIL — GALLERY + TABS ===================== */

/* Banner */
.pd-banner {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.pd-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: flex-end;
    padding: 28px 4%;
}

/* Wrap */
.pd-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 4% 80px;
}

/* Breadcrumb */
.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.pd-breadcrumb a { color: var(--blue); }
.pd-breadcrumb a:hover { opacity: .75; }

/* Main grid */
.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 56px;
}

/* Gallery */
.pd-gallery-col { display: flex; flex-direction: column; gap: 12px; }

.pd-main-img {
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    background: #f0f4ff;
    aspect-ratio: 4/3;
}
.pd-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .2s;
}

.pd-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pd-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: border-color .2s;
    flex-shrink: 0;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { border-color: var(--blue); }
.pd-thumb.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,87,255,.15); }

/* Info col */
.pd-cat {
    font-size: .72rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.pd-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
    color: #0d1117;
    line-height: 1.2;
    margin-bottom: 14px;
}
.pd-price {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 12px;
}
.pd-price-na {
    font-size: .9rem;
    font-weight: 700;
    color: var(--muted);
    background: #f1f5f9;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.pd-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.pd-stock.in  { background: #dcfce7; color: #16a34a; }
.pd-stock.out { background: #fee2e2; color: #dc2626; }

.pd-delivery {
    background: #f8faff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.pd-delivery-label { font-weight: 700; font-size: .88rem; margin-bottom: 12px; color: #1e293b; }
.pd-delivery-row { display: flex; gap: 10px; }
.pd-pin-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    transition: border .2s;
}
.pd-pin-input:focus { border-color: var(--blue); }
.pd-pin-btn {
    padding: 10px 20px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    font-family: inherit;
}
.pd-delivery-result { margin-top: 10px; font-size: .85rem; min-height: 20px; }
.del-ok   { color: #16a34a; font-weight: 600; }
.del-warn { color: #d97706; font-weight: 600; }
.del-err  { color: #dc2626; font-weight: 600; }

.pd-buy-btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    display: block;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: .3px;
}

/* Description + Tabs */
.pd-desc-section {
    border: 1.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 64px;
}
.pd-tabs {
    display: flex;
    border-bottom: 1.5px solid var(--border);
    background: #f8faff;
}
.pd-tab {
    padding: 14px 28px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 3px solid transparent;
    transition: all .2s;
    margin-bottom: -1.5px;
}
.pd-tab:hover { color: var(--blue); }
.pd-tab.active { color: var(--blue); border-bottom-color: var(--blue); background: #fff; }

.pd-tab-content { padding: 32px; }

.pd-full-desc {
    font-size: .97rem;
    color: #374151;
    line-height: 1.9;
    white-space: pre-line;
}

.pd-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.pd-specs-table tr { border-bottom: 1px solid var(--border); }
.pd-specs-table tr:last-child { border-bottom: none; }
.pd-specs-table td { padding: 12px 16px; }
.pd-specs-table td:first-child { font-weight: 700; color: #374151; width: 200px; background: #f8faff; }
.pd-specs-table td:last-child { color: var(--muted); }

/* Related */
.pd-related { margin-top: 16px; }
.pd-related-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d1117;
    margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 900px) {
    .pd-grid { grid-template-columns: 1fr; gap: 28px; }
    .pd-banner { height: 220px; }
}
@media (max-width: 560px) {
    .pd-tab { padding: 12px 16px; font-size: .82rem; }
    .pd-tab-content { padding: 20px; }
    .pd-thumbs { gap: 8px; }
    .pd-thumb { width: 60px; height: 60px; }
    .pd-wrap { padding: 24px 4% 60px; }
    .pd-price { font-size: 1.6rem; }
    .pd-delivery-row { flex-direction: column; }
    .pd-pin-btn { width: 100%; }
    .fbar { top: 68px; }
    .fin { height: auto; padding: 10px 4%; flex-wrap: wrap; gap: 8px; }
    .fp { height: 34px; font-size: .78rem; }
    .prod-page-header-in { padding: 40px 4% 36px; }
    .prod-banner { height: 200px; }
    .prod-banner-title { font-size: 1.5rem; }
    .pc-foot { flex-wrap: wrap; gap: 8px; }
    .pc-actions { width: 100%; justify-content: space-between; }
}
