/* ========================================
   The Med Store - Custom Styles
   Medikabazaar-inspired design
   ======================================== */

:root {
    --primary-navy: #1B2A4A;
    --primary-navy-light: #243558;
    --accent-teal: #00897B;
    --accent-teal-dark: #00695C;
    --accent-orange: #FF6F00;
    --bg-light: #F5F7FA;
    --text-dark: #1a1a2e;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    --border-light: #E5E7EB;
    --success-green: #10B981;
    --warning-yellow: #F59E0B;
    --error-red: #EF4444;
}

html, body {
    font-family: 'Inter', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-light);
    color: var(--text-dark);
}

/* ========= TOP UTILITY BAR ========= */
.top-utility-bar {
    background: var(--primary-navy);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    padding: 6px 0;
    letter-spacing: 0.3px;
}
.top-utility-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}
.top-utility-bar a:hover {
    color: #fff;
}

/* ========= MAIN HEADER ========= */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.store-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.store-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-navy));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
}
.store-logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.2;
}
.store-logo-text span {
    color: var(--accent-teal);
}
.store-logo-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Header search */
.header-search {
    flex: 1;
    max-width: 560px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 10px 48px 10px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg-light);
}
.header-search input:focus {
    border-color: var(--accent-teal);
    background: var(--white);
}
.header-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-teal);
    border: none;
    border-radius: 6px;
    color: white;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.header-search-btn:hover {
    background: var(--accent-teal-dark);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    position: relative;
}
.header-action-btn:hover {
    background: var(--bg-light);
}
.header-action-btn .action-icon {
    font-size: 22px;
    color: var(--primary-navy);
}
.header-action-btn .action-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}
.cart-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background: var(--error-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ========= CATEGORY NAV BAR ========= */
.category-nav-bar {
    background: var(--primary-navy);
    padding: 0;
    overflow: hidden;
}
.category-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-nav-inner::-webkit-scrollbar {
    display: none;
}
.category-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: rgba(255,255,255,0.88);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}
.category-nav-item:hover,
.category-nav-item.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.category-nav-item .mud-icon-root {
    font-size: 18px;
}

/* ========= HERO BANNER CAROUSEL ========= */
.hero-carousel-section {
    background: #f0f2f5;
    padding: 16px 0;
}
.hero-carousel-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.hero-slide {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 48px;
    min-height: 220px;
    position: relative;
}
.hero-slide-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}
.hero-slide-visual {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.hero-visual-box {
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.12);
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    color: white;
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent-teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.hero-btn:hover {
    background: var(--accent-teal-dark);
    transform: translateY(-1px);
}

/* ========= CATEGORY STRIP (Medikabazaar style) ========= */
.category-strip-section {
    background: var(--white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}
.category-strip-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-strip-inner::-webkit-scrollbar {
    display: none;
}
.category-strip-item {
    flex: 0 0 auto;
    min-width: 100px;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
}
.category-strip-item:hover {
    background: var(--bg-light);
}
.category-strip-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, rgba(0,137,123,0.08), rgba(27,42,74,0.06));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.category-strip-item:hover .category-strip-icon {
    border-color: var(--accent-teal);
    box-shadow: 0 2px 8px rgba(0,137,123,0.12);
}
.category-strip-icon .material-icons {
    font-size: 26px;
    color: var(--accent-teal);
}
.category-strip-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    white-space: nowrap;
}

/* ========= BRANDS ROW ========= */
.brands-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
}
.brands-row::-webkit-scrollbar {
    display: none;
}
.brand-tile {
    flex: 0 0 150px;
    min-width: 150px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.brand-tile:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.brand-tile-logo {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.brand-tile-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ========= SECTION TITLES ========= */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0;
}
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-navy);
    position: relative;
    padding-left: 14px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--accent-teal);
    border-radius: 2px;
}
.view-all-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-teal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.view-all-link:hover {
    color: var(--accent-teal-dark);
}

/* ========= PRODUCT CAROUSEL ========= */
.product-carousel-wrapper {
    position: relative;
}
.product-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0 16px;
    scrollbar-width: none;
}
.product-carousel::-webkit-scrollbar {
    display: none;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
    color: var(--text-dark);
    font-size: 18px;
}
.carousel-arrow:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.carousel-arrow-left { left: -12px; }
.carousel-arrow-right { right: -12px; }

/* ========= PRODUCT CARD ========= */
.product-card {
    flex: 0 0 220px;
    min-width: 220px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.product-card-image {
    width: 100%;
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 12px;
}
.product-card-image .placeholder-icon {
    color: #ccc;
    font-size: 48px;
}
.product-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--error-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.product-card-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-category {
    font-size: 0.72rem;
    color: var(--accent-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.product-card-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.35;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}
.product-card-rating .star {
    color: #FFC107;
    font-size: 14px;
}
.product-card-rating .star.empty {
    color: #ddd;
}
.product-card-rating .count {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 4px;
}
.product-card-stock {
    font-size: 0.72rem;
    margin-bottom: 10px;
}
.product-card-stock.in-stock { color: var(--success-green); }
.product-card-stock.low-stock { color: var(--warning-yellow); }
.product-card-stock.out-of-stock { color: var(--error-red); }
.product-card-action {
    margin-top: auto;
}
.add-to-cart-btn {
    width: 100%;
    padding: 8px 0;
    background: var(--accent-teal);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}
.add-to-cart-btn:hover {
    background: var(--accent-teal-dark);
}
.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ========= GRID PRODUCT CARD ========= */
.product-card-grid {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ========= CATEGORY TILES ========= */
.category-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 0 16px;
    scrollbar-width: none;
}
.category-carousel::-webkit-scrollbar {
    display: none;
}
.category-tile {
    flex: 0 0 130px;
    min-width: 130px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: var(--text-dark);
}
.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: var(--accent-teal);
}
.category-tile-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, rgba(0,137,123,0.1), rgba(27,42,74,0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    font-size: 24px;
}
.category-tile-name {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}
.category-tile-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========= PROMO BANNER ========= */
.promo-banner {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-navy) 100%);
    border-radius: 12px;
    padding: 32px 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
}
.promo-banner-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 6px;
}
.promo-banner-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}
.promo-banner-btn {
    padding: 10px 24px;
    background: white;
    color: var(--primary-navy);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
    white-space: nowrap;
}
.promo-banner-btn:hover {
    transform: translateY(-1px);
}

/* ========= CONTENT SECTIONS ========= */
.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 24px;
}

/* ========= FOOTER ========= */
.store-footer {
    background: var(--primary-navy);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 0;
    margin-top: 40px;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}
.footer-brand h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0 0 12px;
}
.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}
.footer-col h4 {
    color: white;
    font-size: 0.95rem;
    margin: 0 0 16px;
    font-weight: 600;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: white;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* ========= CATALOG PAGE ========= */
.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 24px;
}
.catalog-sidebar {
    width: 260px;
    flex-shrink: 0;
}
.catalog-sidebar-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 20px;
    position: sticky;
    top: 80px;
}
.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-teal);
}
.sidebar-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.88rem;
    color: var(--text-dark);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.sidebar-category-item:hover {
    background: var(--bg-light);
}
.sidebar-category-item.active {
    background: rgba(0,137,123,0.08);
    color: var(--accent-teal);
    font-weight: 600;
}
.sidebar-category-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 10px;
}
.catalog-main {
    flex: 1;
    min-width: 0;
}
.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* ========= MOBILE RESPONSIVE ========= */
@media (max-width: 960px) {
    .header-inner {
        padding: 0 16px;
        gap: 12px;
    }
    .store-logo-text { font-size: 1.1rem; }
    .store-logo-sub { display: none; }
    .header-search { max-width: none; }
    .header-action-btn { padding: 6px 8px; }
    .header-action-btn .action-label { display: none; }
    .hero-slide { padding: 28px 32px; min-height: 180px; }
    .hero-slide-visual { display: none; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .catalog-container { flex-direction: column; }
    .catalog-sidebar { width: 100%; }
    .catalog-sidebar-card { position: static; }
}
@media (max-width: 600px) {
    .header-inner { gap: 8px; }
    .header-search { display: none; }
    .product-card { flex: 0 0 170px; min-width: 170px; }
    .product-card-image { height: 140px; }
    .hero-slide { padding: 20px 20px; min-height: 160px; }
    .hero-slide h1 { font-size: 1.3rem !important; }
    .content-section { padding: 20px 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .promo-banner { flex-direction: column; text-align: center; gap: 16px; padding: 24px; }
    .category-tile { flex: 0 0 100px; min-width: 100px; padding: 14px 8px; }
    .category-tile-icon { width: 40px; height: 40px; font-size: 20px; }
}

/* ========= RESPONSIVE: Cart, Checkout, OrderDetail, Profile ========= */
@media (max-width: 768px) {
    .responsive-two-col {
        grid-template-columns: 1fr !important;
    }
}

/* ========= UTILITY ========= */
.cursor-pointer { cursor: pointer; }
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hide default MudBlazor container padding on layout */
.store-main-content .mud-main-content { padding: 0 !important; }
.store-layout .mud-main-content { min-height: 100vh; padding: 0 !important; }

/* Search autocomplete styling */
.header-autocomplete .mud-input-outlined .mud-input-outlined-border {
    border-color: var(--border-light) !important;
    border-radius: 8px;
}
.header-autocomplete .mud-input-outlined:hover .mud-input-outlined-border {
    border-color: var(--accent-teal) !important;
}
.header-autocomplete .mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: var(--accent-teal) !important;
}

/* Override MudBlazor AppBar for our layout */
.custom-appbar {
    background: transparent !important;
    box-shadow: none !important;
    position: static !important;
}

/* Page breadcrumbs */
.page-breadcrumbs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px 0;
}

/* ========= PRODUCT DETAIL PAGE (3-column Medikabazaar style) ========= */
.pdp-layout {
    display: grid;
    grid-template-columns: 380px 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* Gallery */
.pdp-gallery {
    position: sticky;
    top: 80px;
}
.pdp-main-image {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    position: relative;
}
.pdp-main-image img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}
.pdp-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.pdp-wishlist-btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.pdp-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pdp-thumbnails::-webkit-scrollbar { display: none; }
.pdp-thumb {
    width: 64px;
    height: 64px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: border-color 0.2s;
}
.pdp-thumb.active, .pdp-thumb:hover {
    border-color: var(--accent-teal);
}
.pdp-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* Details center column */
.pdp-details {
    min-width: 0;
}
.pdp-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0 0 10px;
    line-height: 1.35;
}
.pdp-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 2px;
}
.pdp-spec-chip {
    padding: 5px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Trust badges */
.pdp-trust-badges {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.pdp-badge {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    text-align: center;
    border-right: 1px solid var(--border-light);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}
.pdp-badge:last-child { border-right: none; }
.pdp-badge .material-icons {
    font-size: 22px;
    color: var(--accent-teal);
}

/* Collapsible sections */
.pdp-section {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 12px;
    background: white;
}
.pdp-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-navy);
}
.pdp-section > div:last-child:not(.pdp-section-title) {
    padding: 0 16px 16px;
}

/* Right sidebar */
.pdp-sidebar {
    position: sticky;
    top: 80px;
}
.pdp-sidebar-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
}
.pdp-delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(0,137,123,0.04);
    border: 1px solid rgba(0,137,123,0.12);
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Quantity selector */
.pdp-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}
.pdp-qty-btn {
    width: 40px;
    height: 40px;
    background: var(--accent-teal);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.pdp-qty-btn:hover { background: var(--accent-teal-dark); }
.pdp-qty-btn .material-icons { font-size: 18px; }
.pdp-qty-input {
    width: 56px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    -moz-appearance: textfield;
}
.pdp-qty-input::-webkit-inner-spin-button,
.pdp-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Bulk banner */
.pdp-bulk-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(0,137,123,0.04);
    border: 1px dashed rgba(0,137,123,0.3);
    border-radius: 8px;
    margin-bottom: 4px;
}

/* Action buttons */
.pdp-add-cart-btn {
    width: 100%;
    padding: 12px 0;
    background: var(--white);
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: background 0.2s;
}
.pdp-add-cart-btn:hover { background: var(--bg-light); }
.pdp-add-cart-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pdp-buy-now-btn {
    width: 100%;
    padding: 12px 0;
    background: var(--accent-teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: background 0.2s;
}
.pdp-buy-now-btn:hover { background: var(--accent-teal-dark); }
.pdp-buy-now-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* PDP Mobile responsive */
@media (max-width: 1024px) {
    .pdp-layout {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .pdp-gallery { position: static; }
    .pdp-sidebar {
        grid-column: 1 / -1;
        position: static;
    }
}
@media (max-width: 768px) {
    .pdp-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pdp-trust-badges { flex-wrap: wrap; }
    .pdp-badge { flex: 0 0 calc(50% - 1px); }
    .pdp-main-image { min-height: 240px; }
}

/* ========= AI CHAT WIDGET ========= */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,137,123,0.4);
    z-index: 1100;
    transition: transform 0.2s, box-shadow 0.2s;
}
.chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0,137,123,0.5);
}
.chat-fab .material-icons {
    color: white;
    font-size: 26px;
}
.chat-fab.hidden { display: none; }

.chat-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 520px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.25s ease-out;
}
@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-teal-dark));
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 8px;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-close-btn:hover {
    background: rgba(255,255,255,0.25);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fa;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.chat-bubble.user {
    align-self: flex-end;
    background: var(--accent-teal);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-bubble.assistant {
    align-self: flex-start;
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 4px;
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}
.chat-typing span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: chatDot 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-area {
    padding: 12px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    background: white;
}
.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 0.88rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.chat-input:focus {
    border-color: var(--accent-teal);
}
.chat-send-btn {
    width: 40px;
    height: 40px;
    background: var(--accent-teal);
    border: none;
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--accent-teal-dark); }
.chat-send-btn:disabled { background: #ccc; cursor: not-allowed; }
.chat-send-btn .material-icons { font-size: 20px; }

@media (max-width: 600px) {
    .chat-panel {
        width: calc(100vw - 16px);
        height: calc(100vh - 80px);
        bottom: 8px;
        right: 8px;
        border-radius: 12px;
    }
    .chat-fab { bottom: 16px; right: 16px; }
}
