/**
 * 91search Product Detail Page Styles (Lightweight & Modern Pricekeeda Style)
 */
:root {
    --pdp-primary: var(--primary-color, #ff6600);
    --pdp-primary-hover: #e55a00;
    --pdp-primary-light: rgba(255, 102, 0, 0.08);
    --pdp-text: #1f2937;
    --pdp-text-muted: #6b7280;
    --pdp-text-dark: #111827;
    --pdp-border: #e5e7eb;
    --pdp-bg-card: #ffffff;
    --pdp-bg-alt: #f9fafb;
    --pdp-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --pdp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --pdp-radius: 12px;
}

/* Base Container */
.pdp-page-wrapper {
    background: #f8fafc;
    min-height: 100vh;
    padding: 16px 0 40px;
    font-family: inherit; /* Preserves exact site-wide typography without change */
    color: var(--pdp-text);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.pdp-container {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Breadcrumbs */
.pdp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--pdp-text-muted);
    margin-bottom: 12px;
}

.pdp-breadcrumb a {
    color: var(--pdp-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.pdp-breadcrumb a:hover {
    color: var(--pdp-primary);
}

.pdp-breadcrumb .sep {
    color: #cbd5e1;
    font-size: 11px;
}

.pdp-breadcrumb .active {
    color: var(--pdp-text-dark);
    font-weight: 600;
}

/* Title & Header Section (Box Card) */
.pdp-header-section {
    background: var(--pdp-bg-card);
    border: 1px solid var(--pdp-border);
    border-radius: var(--pdp-radius);
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: var(--pdp-shadow);
}

.pdp-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.pdp-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pdp-text-dark);
    margin: 0;
    line-height: 1.3;
}

.pdp-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #ffffff;
    color: var(--pdp-primary);
    border: 1.5px solid var(--pdp-primary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pdp-compare-btn:hover {
    background: var(--pdp-primary);
    color: #ffffff;
}

.pdp-compare-btn.added {
    background: var(--pdp-primary);
    color: #ffffff;
}

.pdp-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--pdp-text-muted);
}

.pdp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pdp-meta-item strong {
    color: var(--pdp-text-dark);
}

.pdp-status-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdp-status-available {
    background: #ecfdf5;
    color: #059669;
}

.pdp-status-upcoming {
    background: #fef2f2;
    color: #dc2626;
}

.pdp-status-new {
    background: #f0fdf4;
    color: #16a34a;
}

.pdp-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-weight: 600;
}

/* 2-Column Hero Layout */
.pdp-hero-grid {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

/* Left Column: Gallery */
.pdp-gallery-card {
    background: var(--pdp-bg-card);
    border: 1px solid var(--pdp-border);
    border-radius: var(--pdp-radius);
    padding: 16px;
    box-shadow: var(--pdp-shadow);
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.pdp-main-img-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    box-sizing: border-box;
}

.pdp-main-img {
    max-width: 92%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.pdp-main-img-wrap:hover .pdp-main-img {
    transform: scale(1.03);
}

.pdp-gallery-badge-top {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.pdp-360-trigger {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(17, 24, 39, 0.85);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.pdp-360-trigger:hover {
    background: var(--pdp-primary);
    transform: translateY(-1px);
}

/* Thumbnail Strip */
.pdp-thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pdp-thumb-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--pdp-border);
    background: #ffffff;
    color: var(--pdp-text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.pdp-thumb-nav-btn:hover {
    background: var(--pdp-primary);
    color: #ffffff;
    border-color: var(--pdp-primary);
}

.pdp-thumbs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    flex: 1 1 0;
    min-width: 0; /* CRITICAL: Prevents flex container blow-out */
    padding: 2px 0;
}

.pdp-thumbs-scroll::-webkit-scrollbar {
    display: none;
}

.pdp-thumb {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    border: 1.5px solid var(--pdp-border);
    background: #ffffff;
    padding: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pdp-thumb:hover {
    border-color: var(--pdp-primary);
}

.pdp-thumb.active {
    border-color: var(--pdp-primary);
    box-shadow: 0 0 0 2px var(--pdp-primary-light);
}

/* Gallery Action Buttons (Photos & 360 View) */
.pdp-gallery-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pdp-view-all-photos-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: #ffffff;
    border: 1.5px solid var(--pdp-border);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pdp-view-all-photos-btn i {
    color: var(--pdp-primary);
    font-size: 14px;
    transition: transform 0.2s ease;
}

.pdp-view-all-photos-btn:hover {
    background: #fff7ed;
    border-color: var(--pdp-primary);
    color: var(--pdp-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15);
}

.pdp-view-all-photos-btn:hover i {
    transform: scale(1.15);
}

.pdp-view-all-photos-btn.pdp-btn-360 {
    background: #fff7ed;
    border-color: rgba(255, 102, 0, 0.35);
    color: var(--pdp-primary);
    font-weight: 700;
}

.pdp-view-all-photos-btn.pdp-btn-360:hover {
    background: var(--pdp-primary);
    border-color: var(--pdp-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
}

.pdp-view-all-photos-btn.pdp-btn-360:hover i {
    color: #ffffff;
}

/* Right Column: Key Specs & Prices */
.pdp-details-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Style */
.pdp-card {
    background: var(--pdp-bg-card);
    border: 1px solid var(--pdp-border);
    border-radius: var(--pdp-radius);
    padding: 20px;
    box-shadow: var(--pdp-shadow);
}

.pdp-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--pdp-text-dark);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Key Specifications Grid */
.pdp-key-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
}

.pdp-key-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pdp-key-spec-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: var(--pdp-bg-alt);
    border: 1px solid var(--pdp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pdp-primary);
    font-size: 15px;
}

.pdp-key-spec-content {
    min-width: 0;
}

.pdp-key-spec-label {
    font-size: 12px;
    color: var(--pdp-text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.pdp-key-spec-value {
    font-size: 14px;
    color: var(--pdp-text-dark);
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.pdp-jump-specs-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pdp-primary);
    margin-top: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: gap 0.2s;
}

.pdp-jump-specs-link:hover {
    gap: 8px;
    text-decoration: underline;
}

/* Pricing Section */
.pdp-price-hero-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.pdp-price-hero-amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--pdp-primary);
}

.pdp-price-hero-sub {
    font-size: 13px;
    color: var(--pdp-text-muted);
}

/* Variants & Store Offers Accordion */
.pdp-variant-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdp-variant-item {
    border: 1px solid var(--pdp-border);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.pdp-variant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--pdp-bg-alt);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.pdp-variant-header:hover {
    background: #f1f5f9;
}

.pdp-variant-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-variant-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--pdp-text-dark);
}

.pdp-variant-start-price {
    font-size: 12px;
    color: var(--pdp-text-muted);
}

.pdp-variant-start-price strong {
    color: var(--pdp-text-dark);
}

.pdp-variant-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--pdp-text-muted);
    font-weight: 500;
}

.pdp-variant-toggle svg {
    transition: transform 0.2s ease;
}

.pdp-variant-item.open .pdp-variant-toggle svg {
    transform: rotate(180deg);
}

.pdp-variant-content {
    padding: 8px 16px;
    border-top: 1px solid var(--pdp-border);
    display: none;
}

.pdp-variant-item.open .pdp-variant-content {
    display: block;
}

.pdp-store-offer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.pdp-store-offer-row:last-child {
    border-bottom: none;
}

.pdp-store-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdp-store-logo {
    height: 22px;
    max-width: 90px;
    object-fit: contain;
}

.pdp-store-name {
    font-size: 13px;
    color: var(--pdp-text);
    font-weight: 500;
}

.pdp-store-action {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pdp-store-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--pdp-text-dark);
}

.pdp-go-store-btn {
    display: inline-block;
    padding: 6px 14px;
    background: var(--pdp-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pdp-go-store-btn:hover {
    background: var(--pdp-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.25);
}

/* Product Summary Card */
.pdp-summary-card {
    background: var(--pdp-bg-card);
    border: 1px solid var(--pdp-border);
    border-radius: var(--pdp-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--pdp-shadow);
}

.pdp-summary-text {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    position: relative;
}

.pdp-summary-text p {
    margin-bottom: 10px;
}

.pdp-summary-text.collapsed {
    max-height: 110px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.pdp-summary-toggle-btn {
    background: none;
    border: none;
    color: var(--pdp-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pdp-summary-toggle-btn:hover {
    text-decoration: underline;
}

/* Benchmarks / Spec Score Breakdown */
.pdp-score-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.pdp-score-item {
    background: var(--pdp-bg-alt);
    border: 1px solid var(--pdp-border);
    border-radius: 8px;
    padding: 12px 14px;
}

.pdp-score-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.pdp-score-item-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pdp-text-dark);
}

.pdp-score-item-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    color: #ffffff;
}

.pdp-score-item-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.pdp-score-item-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.pdp-score-item-rating {
    font-size: 11px;
    color: var(--pdp-text-muted);
}

/* Specifications Card & Vertical Sticky Tabs */
.pdp-specs-card {
    background: var(--pdp-bg-card);
    border: 1px solid var(--pdp-border);
    border-radius: var(--pdp-radius);
    box-shadow: var(--pdp-shadow);
    margin-bottom: 24px;
    overflow: visible; /* Required so sticky navigation stays attached on scroll */
}

.pdp-specs-header-bar {
    padding: 18px 24px;
    border-bottom: 1px solid var(--pdp-border);
    background: #ffffff;
    border-radius: var(--pdp-radius) var(--pdp-radius) 0 0;
}

/* 2-Column Specifications Layout */
.pdp-specs-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    position: relative;
}

/* Left Column: Vertical Sticky Sidebar */
.pdp-specs-sidebar {
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 75px; /* Sticks right below sticky header on scroll */
    align-self: flex-start;
    max-height: calc(100vh - 95px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    z-index: 15;
}

.pdp-specs-sidebar::-webkit-scrollbar {
    width: 4px;
}
.pdp-specs-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.pdp-specs-vertical-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--pdp-border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.pdp-spec-vtab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4b5563;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.pdp-spec-vtab i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: #9ca3af;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.pdp-spec-vtab span.pdp-vtab-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdp-vtab-count {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pdp-spec-vtab:hover {
    background: #f8fafc;
    color: var(--pdp-primary);
    border-color: rgba(255, 102, 0, 0.15);
}

.pdp-spec-vtab:hover i {
    color: var(--pdp-primary);
    transform: scale(1.1);
}

.pdp-spec-vtab.active {
    background: #fff7ed;
    color: var(--pdp-primary);
    border-color: rgba(255, 102, 0, 0.35);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(255, 102, 0, 0.08);
}

.pdp-spec-vtab.active i {
    color: var(--pdp-primary);
}

.pdp-spec-vtab.active .pdp-vtab-count {
    background: var(--pdp-primary);
    color: #ffffff;
}

/* Right Column: Specification Details */
.pdp-specs-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pdp-spec-section-box {
    background: var(--pdp-bg-alt);
    border: 1px solid var(--pdp-border);
    border-radius: 10px;
    overflow: hidden;
    scroll-margin-top: 85px; /* Offset for smooth scroll on desktop */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdp-spec-section-box:hover {
    border-color: #cbd5e1;
}

.pdp-spec-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    border-bottom: 1px solid var(--pdp-border);
    transition: background-color 0.15s ease;
}

.pdp-spec-section-header:hover {
    background: #fafafa;
}

.pdp-spec-section-header h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--pdp-text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdp-section-count-badge {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    margin-left: auto;
    margin-right: 12px;
}

.pdp-spec-section-header svg.chevron {
    color: var(--pdp-text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.pdp-spec-section-box.collapsed .pdp-spec-section-header svg.chevron {
    transform: rotate(-90deg);
}

.pdp-spec-section-content {
    padding: 8px 20px;
    background: #ffffff;
}

.pdp-spec-section-box.collapsed .pdp-spec-section-content {
    display: none;
}

.pdp-spec-row {
    display: flex;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
}

.pdp-spec-row:last-child {
    border-bottom: none;
}

.pdp-spec-label {
    flex: 0 0 35%;
    max-width: 35%;
    color: #64748b;
    font-weight: 500;
    padding-right: 14px;
    line-height: 1.4;
}

.pdp-spec-val {
    flex: 1;
    color: var(--pdp-text-dark);
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
}

.pdp-disclaimer-text {
    font-size: 12px;
    color: var(--pdp-text-muted);
    margin-top: 14px;
    line-height: 1.5;
}

/* Full Price Table */
.pdp-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.pdp-price-table th {
    background: var(--pdp-bg-alt);
    padding: 10px 16px;
    text-align: left;
    color: var(--pdp-text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--pdp-border);
}

.pdp-price-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--pdp-border);
    vertical-align: middle;
}

.pdp-price-table tr:last-child td {
    border-bottom: none;
}

/* 360 Degree Viewer (Lightweight & Modern) */
.pdp-360-container {
    background: #0f172a;
    border-radius: var(--pdp-radius);
    overflow: hidden;
    color: #ffffff;
    margin-bottom: 24px;
    position: relative;
}

.pdp-360-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pdp-360-badge {
    background: var(--pdp-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.pdp-360-frame-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.pdp-360-stage {
    position: relative;
    width: 100%;
    height: clamp(260px, 45vw, 460px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    overflow: hidden;
    background: radial-gradient(circle at 50% 60%, #1e293b 0%, #0f172a 100%);
}

.pdp-360-stage.dragging {
    cursor: grabbing;
}

.pdp-360-img {
    max-width: 75%;
    max-height: 80%;
    object-fit: contain;
    pointer-events: none;
}

.pdp-360-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    transition: opacity 0.3s;
}

.pdp-360-hint.hidden {
    opacity: 0;
}

.pdp-360-controls {
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pdp-360-scrubber {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.pdp-360-scrubber-fill {
    height: 100%;
    background: var(--pdp-primary);
    border-radius: 3px;
    width: 0%;
}

/* Competitor Cards Grid */
.pdp-competitors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.pdp-competitor-card {
    background: #ffffff;
    border: 1px solid var(--pdp-border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.pdp-competitor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pdp-shadow-md);
    border-color: rgba(255, 102, 0, 0.4);
}

.pdp-competitor-top {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
}

.pdp-competitor-img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

.pdp-competitor-card:hover .pdp-competitor-img {
    transform: scale(1.03);
}

.pdp-competitor-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--pdp-text-dark);
    margin-bottom: 6px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.pdp-competitor-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--pdp-primary);
    margin-top: auto;
    padding-bottom: 4px;
}

/* Competitor Actions: 2 buttons in same row + direct compare below */
.pdp-competitor-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.pdp-competitor-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pdp-comp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 6px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.pdp-comp-btn-view {
    background: #ffffff;
    border: 1px solid var(--pdp-border);
    color: var(--pdp-text-dark);
}

.pdp-comp-btn-view:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--pdp-primary);
}

.pdp-comp-btn-compare {
    background: #fff7ed;
    border: 1px solid rgba(255, 102, 0, 0.35);
    color: var(--pdp-primary);
}

.pdp-comp-btn-compare:hover {
    background: var(--pdp-primary);
    border-color: var(--pdp-primary);
    color: #ffffff;
}

.pdp-comp-btn-compare.added {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
}

.pdp-comp-btn-compare.added:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
}

/* Popular VS Comparisons Grid (Side-by-side VS layout) */
.pdp-vs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.pdp-vs-card {
    background: #ffffff;
    border: 1px solid var(--pdp-border);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pdp-vs-card:hover {
    border-color: var(--pdp-primary);
    box-shadow: var(--pdp-shadow-md);
    transform: translateY(-2px);
}

.pdp-vs-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
}

.pdp-vs-left {
    justify-content: flex-start;
}

.pdp-vs-right {
    justify-content: flex-end;
    text-align: right;
}

.pdp-vs-thumb {
    width: 36px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pdp-vs-card:hover .pdp-vs-thumb {
    transform: scale(1.06);
}

.pdp-vs-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pdp-text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    transition: color 0.2s;
}

.pdp-vs-card:hover .pdp-vs-title {
    color: var(--pdp-primary);
}

.pdp-vs-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.pdp-vs-card:hover .pdp-vs-badge {
    background: var(--pdp-primary);
    transform: scale(1.12);
}

@media (max-width: 768px) {
    .pdp-vs-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* User Reviews Box */
.pdp-reviews-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--pdp-bg-alt);
    border-radius: 10px;
    padding: 18px 24px;
}

.pdp-review-score-big {
    font-size: 32px;
    font-weight: 800;
    color: var(--pdp-primary);
    line-height: 1;
}

.pdp-review-stars {
    color: #f59e0b;
    font-size: 18px;
    margin: 4px 0;
}

/* Lightbox Modal */
.pdp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.84);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px;
    box-sizing: border-box;
}

.pdp-modal-container {
    background: #ffffff;
    border-radius: 16px;
    max-width: 860px;
    width: 100%;
    height: min(88vh, 660px);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px 24px 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    overflow: hidden;
}

.pdp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
    flex: 0 0 auto;
}

.pdp-modal-counter {
    font-size: 13px;
    font-weight: 700;
    color: var(--pdp-text-muted);
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    border: 1px solid #e2e8f0;
}

.pdp-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.pdp-modal-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.2s ease;
}

.pdp-modal-action-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: scale(1.08);
}

.pdp-modal-action-btn.pdp-modal-close {
    font-size: 16px;
    font-weight: 700;
}

.pdp-modal-action-btn.pdp-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Fullscreen support */
.pdp-modal-container.is-fullscreen,
:fullscreen .pdp-modal-container {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    padding: 16px 24px !important;
}

.pdp-modal-overlay.is-fullscreen {
    padding: 0 !important;
}

.pdp-modal-body {
    position: relative;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.pdp-modal-img-stage {
    position: absolute;
    inset: 4px 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pdp-modal-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.15s ease;
}

.pdp-modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--pdp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #1e293b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    z-index: 8;
}

.pdp-modal-nav-btn:hover {
    background: var(--pdp-primary);
    color: #ffffff;
    border-color: var(--pdp-primary);
    transform: translateY(-50%) scale(1.08);
}

.pdp-modal-prev { left: 4px; }
.pdp-modal-next { right: 4px; }

.pdp-modal-thumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 6px 4px;
    border-top: 1px solid var(--pdp-border);
    margin-top: 8px;
    flex: 0 0 auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    -webkit-overflow-scrolling: touch;
}

.pdp-modal-thumbs::before,
.pdp-modal-thumbs::after {
    content: '';
    margin: auto;
}

.pdp-modal-thumbs::-webkit-scrollbar {
    height: 5px;
}
.pdp-modal-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.pdp-modal-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.pdp-modal-thumbs::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.pdp-modal-thumb {
    width: 74px;
    height: 74px;
    min-width: 74px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    padding: 5px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.pdp-modal-thumb:hover {
    border-color: var(--pdp-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.18);
}

.pdp-modal-thumb.active {
    border-color: var(--pdp-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.28);
    transform: translateY(-1px);
}

.pdp-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

/* Toast Notifications */
.pdp-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #10b981;
    color: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: pdpSlideIn 0.3s ease-out;
}

.pdp-toast.error {
    background: #ef4444;
}

@keyframes pdpSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Table Responsive Container */
.pdp-table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
    box-sizing: border-box;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */

/* Large Tablets / Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .pdp-container {
        padding: 0 16px;
    }

    .pdp-hero-grid {
        grid-template-columns: 340px 1fr;
        gap: 20px;
    }

    .pdp-main-img-wrap {
        height: 330px;
    }
}

/* Medium Tablets & Foldables (<= 860px) */
@media (max-width: 860px) {
    .pdp-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pdp-gallery-card {
        padding: 14px;
    }

    .pdp-main-img-wrap {
        height: 320px;
    }

    .pdp-key-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .pdp-specs-layout {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .pdp-specs-sidebar {
        width: 100%;
        min-width: 0;
        position: sticky;
        top: 0;
        max-height: none;
        overflow-y: visible;
        background: #ffffff;
        padding: 4px 0;
        z-index: 25;
        border-bottom: 1px solid var(--pdp-border);
    }

    .pdp-specs-vertical-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 4px;
        gap: 6px;
        border: none;
        box-shadow: none;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .pdp-specs-vertical-nav::-webkit-scrollbar {
        display: none;
    }

    .pdp-spec-vtab {
        width: auto;
        padding: 7px 14px;
        border-radius: 20px;
        font-size: 12.5px;
        flex-shrink: 0;
        background: var(--pdp-bg-alt);
        border: 1px solid var(--pdp-border);
    }

    .pdp-spec-vtab.active {
        background: var(--pdp-primary);
        color: #ffffff;
        border-color: var(--pdp-primary);
    }

    .pdp-spec-vtab.active i {
        color: #ffffff;
    }

    .pdp-vtab-count {
        display: none;
    }

    .pdp-specs-content {
        width: 100%;
        min-width: 0;
    }
}

/* Tablets / Small Screens (<= 768px) */
@media (max-width: 768px) {
    .pdp-vs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pdp-spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding: 9px 0;
    }

    .pdp-spec-label {
        flex: 0 0 100%;
        max-width: 100%;
        font-size: 12.5px;
        padding-right: 0;
    }

    .pdp-spec-val {
        font-size: 13.5px;
    }

    .pdp-competitors-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .pdp-price-table {
        min-width: 480px;
    }
}

/* Mobile Phones (<= 640px) */
@media (max-width: 640px) {
    .pdp-page-wrapper {
        padding-top: 10px;
        padding-bottom: 30px;
    }

    .pdp-container {
        padding: 0 12px;
    }

    .pdp-header-section {
        padding: 14px 16px;
        margin-bottom: 16px;
    }

    .pdp-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pdp-title {
        font-size: 18px;
        line-height: 1.35;
        word-break: break-word;
    }

    .pdp-compare-btn {
        width: 100%;
        justify-content: center;
        padding: 9px 16px;
    }

    .pdp-meta-row {
        gap: 6px 10px;
        font-size: 12.5px;
    }

    .pdp-card {
        padding: 15px;
        margin-bottom: 18px;
    }

    .pdp-card-title {
        font-size: 16px;
        margin-bottom: 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .pdp-main-img-wrap {
        height: 270px;
    }

    .pdp-main-img {
        max-width: 90%;
        max-height: 90%;
    }

    .pdp-thumbs-wrapper {
        margin-top: 10px;
        gap: 4px;
    }

    .pdp-thumb-nav-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .pdp-thumb {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        padding: 2px;
    }

    .pdp-gallery-actions {
        margin-top: 10px;
        gap: 8px;
    }

    .pdp-view-all-photos-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .pdp-key-specs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pdp-key-spec-item {
        gap: 10px;
    }

    .pdp-key-spec-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 13px;
    }

    .pdp-key-spec-value {
        font-size: 13px;
    }

    .pdp-price-hero-amount {
        font-size: 22px;
    }

    .pdp-price-hero-sub {
        font-size: 12px;
    }

    .pdp-variant-header {
        padding: 10px 12px;
    }

    .pdp-variant-name {
        font-size: 13px;
    }

    .pdp-variant-start-price {
        font-size: 11px;
    }

    .pdp-variant-content {
        padding: 6px 12px;
    }

    .pdp-store-offer-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 0;
    }

    .pdp-store-info {
        flex: 1 1 auto;
        min-width: 0;
    }

    .pdp-store-logo {
        max-height: 20px;
        max-width: 80px;
    }

    .pdp-store-action {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .pdp-store-price {
        font-size: 14px;
    }

    .pdp-go-store-btn {
        padding: 5px 12px;
        font-size: 11.5px;
    }

    .pdp-summary-card {
        padding: 16px;
        margin-bottom: 18px;
    }

    .pdp-summary-text {
        font-size: 13.5px;
        line-height: 1.6;
    }

    .pdp-score-breakdown-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pdp-specs-header-bar {
        padding: 14px 16px;
    }

    .pdp-specs-layout {
        padding: 12px;
        gap: 12px;
    }

    .pdp-spec-section-header {
        padding: 10px 14px;
    }

    .pdp-spec-section-header h3 {
        font-size: 14px;
    }

    .pdp-section-count-badge {
        font-size: 11px;
        padding: 2px 6px;
        margin-right: 8px;
    }

    .pdp-spec-section-content {
        padding: 6px 14px;
    }

    .pdp-competitors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pdp-competitor-card {
        padding: 10px;
    }

    .pdp-competitor-img {
        height: 100px;
        margin-bottom: 8px;
    }

    .pdp-competitor-name {
        font-size: 12.5px;
        min-height: 36px;
        line-height: 1.35;
    }

    .pdp-competitor-price {
        font-size: 14px;
    }

    .pdp-competitor-btn-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .pdp-comp-btn {
        width: 100%;
        padding: 6px 4px;
        font-size: 11px;
        white-space: normal;
        text-align: center;
    }

    .pdp-vs-card {
        padding: 10px 12px;
        gap: 8px;
    }

    .pdp-vs-thumb {
        width: 28px;
        height: 38px;
    }

    .pdp-vs-title {
        font-size: 12px;
    }

    .pdp-vs-badge {
        width: 22px;
        height: 22px;
        font-size: 9.5px;
    }

    .pdp-360-container {
        border-radius: 8px;
        margin-bottom: 18px;
    }

    .pdp-360-top-bar {
        padding: 10px 14px;
    }

    .pdp-360-stage {
        height: 240px;
    }

    .pdp-reviews-box {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pdp-modal-overlay {
        padding: 8px;
    }

    .pdp-modal-container {
        width: 100%;
        height: 85vh;
        max-height: 560px;
        padding: 12px 10px 10px;
        border-radius: 12px;
    }

    .pdp-modal-img-stage {
        inset: 0 34px;
    }

    .pdp-modal-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .pdp-modal-prev { left: 0; }
    .pdp-modal-next { right: 0; }

    .pdp-modal-thumbs {
        padding: 8px 0 2px;
        gap: 6px;
    }

    .pdp-modal-thumb {
        width: 48px;
        height: 48px;
        min-width: 48px;
        padding: 2px;
        border-radius: 6px;
    }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
    .pdp-container {
        padding: 0 8px;
    }

    .pdp-header-section,
    .pdp-card,
    .pdp-summary-card {
        padding: 12px;
    }

    .pdp-title {
        font-size: 16.5px;
    }

    .pdp-main-img-wrap {
        height: 220px;
    }

    .pdp-competitors-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pdp-spec-vtab {
        padding: 5px 10px;
        font-size: 11.5px;
    }
}
