/* PhoneShone — shared modern UI design system */

:root {
    --ps-bg: #f6f9fc;
    --ps-surface: #ffffff;
    --ps-surface-soft: #f1f7fb;
    --ps-text: #14232e;
    --ps-muted: #5c6d7a;
    --ps-primary: #0b7285;
    --ps-primary-light: #2796a6;
    --ps-primary-dark: #0d5563;
    --ps-accent: #1ac7b7;
    --ps-accent-warm: #f59e0b;
    --ps-gradient-hero: linear-gradient(135deg, #0d5563 0%, #2796a6 50%, #1ac7b7 100%);
    --ps-gradient-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ps-gradient-footer: linear-gradient(90deg, #0b7285, #1f9fb1);
    --ps-gradient-rating: linear-gradient(135deg, #1ac7b7 0%, #2ad9c8 100%);
    --ps-gradient-btn: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    --ps-shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.1);
    --ps-shadow-md: 0 20px 40px rgba(0, 0, 0, 0.15);
    --ps-shadow-lg: 0 28px 80px rgba(16, 54, 88, 0.2);
    --ps-radius-lg: 1.5rem;
    --ps-radius-xl: 2rem;
    --ps-radius-pill: 999px;
}

/* Skip link */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 0.75rem 1.25rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--ps-primary);
    color: #fff;
    border-radius: var(--ps-radius-pill);
    font-weight: 600;
    box-shadow: var(--ps-shadow-md);
}

/* Page shell */
.site-content {
    /* padding: 1rem 0 2rem; */
    min-height: 60vh;
}

/* Hero banner */
.hero-banner {
    background: var(--ps-gradient-hero);
    border-radius: var(--ps-radius-xl);
    overflow: hidden;
    padding: 2rem 1.5rem;
    position: relative;
    box-shadow: var(--ps-shadow-lg);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 22%);
    pointer-events: none;
}

.hero-banner .hero-copy {
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    color: #ffffff;
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-banner .hero-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-self: center;
}

.hero-actions .btn {
    min-width: 140px;
    border-radius: var(--ps-radius-pill);
    font-weight: 700;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-visual .mainimg-card {
    border-radius: var(--ps-radius-xl);
    background: rgba(255, 255, 255, 0.18);
    padding: 1rem;
    display: inline-block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}

.hero-visual .mainimg {
    width: 100% !important;
    max-width: 420px;
    border-radius: var(--ps-radius-lg);
}

.hero-visual .obj2 {
    width: 40px;
    margin-top: 1rem;
    border-radius: 1.25rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

/* Price ticker (marquee wrapper) */
.price-ticker {
    background: var(--ps-surface);
    border-bottom: 1px solid rgba(11, 114, 133, 0.1);
    overflow: hidden;
}

.price-ticker marquee {
    display: block;
    font-weight: 600;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--ps-text);
}

.price-ticker marquee a {
    color: #e8590c;
    text-decoration: none;
}

.price-ticker marquee a:hover {
    text-decoration: underline;
}

/* Section headers */
.modern-section-header {
    background: var(--ps-gradient-header);
    color: white;
    padding: 0.85rem 1rem;
    border-radius: var(--ps-radius-lg);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: capitalize;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modern-section-header h1,
.modern-section-header h2,
.modern-section-header h3,
.modern-section-header h4 {
    margin: 0;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: white;
}

/* Product cards */
.modern-card,
.section_card .card.box,
.section_card .card:not(.dealcard):not(.used-mobile-card):not(.blog-card) {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(11, 114, 133, 0.1) !important;
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
    min-height: 290px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modern-card:hover,
.section_card .card.box:hover,
.section_card > a:hover .card:not(.dealcard):not(.used-mobile-card):not(.blog-card) {
    transform: translateY(-6px);
    box-shadow: var(--ps-shadow-md);
    border-color: rgba(11, 114, 133, 0.2) !important;
}

.modern-card .card-body,
.section_card .card .card-body {
    padding: 1rem;
}

.modern-card .card-title,
.section_card .card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.modern-card .card-text,
.section_card .card .card-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ps-primary-dark);
}

.modern-card img,
.section_card .card img {
    transition: transform 0.3s ease;
    object-fit: contain;
}

.modern-card:hover img,
.section_card > a:hover .card img {
    transform: scale(1.08);
}

.modern-rating,
.section_card .modern-rating {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ps-gradient-rating);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    border-bottom-left-radius: var(--ps-radius-lg);
    border-bottom-right-radius: var(--ps-radius-lg);
}

/* Deal cards */
.dealcard {
    border: none;
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: var(--ps-surface);
}

.dealcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--ps-shadow-md);
}

.dealcard .card-img-top,
.dealcard img {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.dealcard:hover img {
    transform: scale(1.05);
}

/* Legacy .box on detail pages — image panel */
.product-page .box:not(.section_card .box) {
    width: auto;
    max-width: 100%;
    border: 1px solid rgba(11, 114, 133, 0.1) !important;
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow-sm);
    background: var(--ps-surface);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-page .box:hover {
    transform: translateY(-4px);
    box-shadow: var(--ps-shadow-md);
    color: inherit;
}

.product-page .box img {
    border-radius: var(--ps-radius-lg);
    max-width: 100%;
    height: auto;
}

.section_card .card {
    min-height: 290px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section_card img {
    max-width: 70px;
    max-height: 90px;
    object-fit: contain;
}

/* Inline rating footer (legacy markup) */
.section_card small[style*="background-color: #2ad9c8"],
.section_card small[style*="2ad9c8"] {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    background: var(--ps-gradient-rating) !important;
    color: #fff !important;
    padding: 0.5rem !important;
    border-bottom-left-radius: var(--ps-radius-lg) !important;
    border-bottom-right-radius: var(--ps-radius-lg) !important;
}

.section_card small[style*="2ad9c8"] .text-danger {
    color: #fff !important;
    font-weight: 700;
}

/* Buttons — unified design system */
.modern-btn,
.site-content .btn-warning:not(.btncomparemob):not(.btncomparetab),
.site-content #loadmore,
.site-content #specifications,
.site-content #pictures,
.site-content .btncomparemob,
.site-content .btncomparetab {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-primary-light) 100%) !important;
    border: none !important;
    border-radius: var(--ps-radius-pill) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 4px 15px rgba(11, 114, 133, 0.25);
}

.modern-btn:hover,
.site-content .btn-warning:not(.btncomparemob):not(.btncomparetab):hover,
.site-content #loadmore:hover,
.site-content #specifications:hover,
.site-content #pictures:hover,
.site-content .btncomparemob:hover,
.site-content .btncomparetab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 114, 133, 0.35);
    color: #fff !important;
    filter: brightness(1.05);
}

.site-content .btn-primary {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-primary-light) 100%) !important;
    border: none !important;
    border-radius: var(--ps-radius-pill) !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(11, 114, 133, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 114, 133, 0.3);
}

.site-content .btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border: none !important;
    border-radius: var(--ps-radius-pill) !important;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-content .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
    color: #fff !important;
}

.site-content .btn-danger,
.site-content #openModel:not([style*="pointer-events: none"]),
.site-content #sendReviewMob:not([style*="pointer-events: none"]) {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    border: none !important;
    border-radius: var(--ps-radius-pill) !important;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-content .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
    color: #fff !important;
}

.site-content .btn-secondary {
    background: var(--ps-surface-soft) !important;
    border: 1px solid rgba(11, 114, 133, 0.16) !important;
    border-radius: var(--ps-radius-pill) !important;
    color: var(--ps-text) !important;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-content .btn-secondary:hover {
    background: #fff !important;
    transform: translateY(-1px);
}

.site-content .btn-info,
.site-content .btn-outline-info {
    border-radius: var(--ps-radius-pill) !important;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-content .btn-outline-info {
    border: 2px solid var(--ps-primary) !important;
    color: var(--ps-primary) !important;
}

.site-content .btn-outline-info:hover {
    background: var(--ps-primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn_price .modern-btn,
.btn_price a.modern-btn {
    width: 100%;
    display: block;
    text-align: center;
}

/* Forms */
.site-content .form-control {
    border-radius: 0.75rem;
    border: 1px solid rgba(11, 114, 133, 0.18);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-content .form-control:focus {
    border-color: rgba(11, 114, 133, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(11, 114, 133, 0.12);
}

.review-panel,
.site-content .divreview .review,
.site-content .content-panel--review {
    background: var(--ps-surface);
    border-radius: var(--ps-radius-lg);
    border: 1px solid rgba(11, 114, 133, 0.1);
    box-shadow: var(--ps-shadow-sm);
}

/* Sidebar panel headers (deals, used mobile) */
.sidebar-panel-header {
    background: var(--ps-gradient-header);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--ps-radius-lg);
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-panel-header h1,
.sidebar-panel-header h2,
.sidebar-panel-header h4,
.sidebar-panel-header h5 {
    margin: 0;
    color: #fff;
    font-size: inherit;
    font-weight: inherit;
}

/* Accessory / product detail layout */
.product-page {
    padding-bottom: 2rem;
}

.product-page .product-detail-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(11, 114, 133, 0.1);
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-page .product-detail-hero .rating {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.product-page .product-detail-hero .star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-page .product-detail-hero .star.selected,
.product-page .product-detail-hero .star:hover {
    color: #ffc107;
    transform: scale(1.15);
}

.product-page .spec-table-wrap {
    background: var(--ps-surface);
    border-radius: var(--ps-radius-lg);
    padding: 0.5rem;
    box-shadow: var(--ps-shadow-sm);
}

.product-page .spec-table-wrap .table-modern th {
    background: var(--ps-surface-soft);
    color: var(--ps-text);
    font-weight: 700;
    width: 35%;
}

/* Override legacy coral table hovers from page CSS */
.site-content .table-modern tbody tr:hover td,
.site-content #rltdtable tbody tr:hover td,
.site-content table.table-modern tbody tr:hover {
    background: rgba(11, 114, 133, 0.06) !important;
}

.site-content .table-modern tbody tr:hover td a,
.site-content #rltdtable tbody tr:hover td a {
    color: var(--ps-primary) !important;
}

.site-content .table-modern thead.bg-warning,
.site-content table.table-modern thead {
    background: var(--ps-gradient-header) !important;
    color: #fff !important;
}

.site-content .table-modern thead.bg-warning th,
.site-content table.table-modern thead th {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* City / budget link grids */
.city-links-panel,
.site-content .content-panel--links {
    background: var(--ps-surface);
    border-radius: var(--ps-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--ps-shadow-sm);
}

.city-links-panel h3 {
    color: var(--ps-primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Nav tabs — bootstrap override */
.site-content .nav-tabs:not(.nav-tabs-modern) {
    border-bottom: 2px solid rgba(11, 114, 133, 0.12);
    justify-content: center;
}

.site-content .nav-tabs:not(.nav-tabs-modern) .nav-link {
    border: none;
    border-radius: var(--ps-radius-pill) var(--ps-radius-pill) 0 0;
    color: var(--ps-muted);
    font-weight: 600;
    transition: all 0.2s ease;
}

.site-content .nav-tabs:not(.nav-tabs-modern) .nav-link.active {
    background: var(--ps-gradient-header);
    color: #fff;
}

.site-content .nav-tabs:not(.nav-tabs-modern) .nav-link:hover:not(.active) {
    background: rgba(11, 114, 133, 0.08);
    color: var(--ps-primary);
}

/* Page section spacing */
.site-content > section,
.site-content section + section {
    margin-bottom: 0.5rem;
}

.site-content .container {
    padding-left: 12px;
    padding-right: 12px;
}

@media (max-width: 768px) {
    .product-page .product-detail-hero {
        padding: 1rem;
    }

    .compare-panel {
        margin-bottom: 1rem;
    }

    .dealcard .row.no-gutters {
        flex-direction: column;
    }
}

/* Brand scroll */
.brand {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 1rem;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
}

.brand::-webkit-scrollbar {
    height: 8px;
}

.brand::-webkit-scrollbar-thumb {
    background: rgba(11, 114, 133, 0.35);
    border-radius: var(--ps-radius-pill);
}

.brand-scroll-hint {
    display: none;
    color: var(--ps-muted);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    text-align: center;
}

.brand-item {
    min-width: 110px;
    flex: 0 0 auto;
    background: var(--ps-surface);
    border: 1px solid rgba(11, 114, 133, 0.14);
    border-radius: 22px;
    padding: 0.9rem 0.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    scroll-snap-align: start;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-item:hover,
.brand-item:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 89, 111, 0.12);
    border-color: rgba(11, 114, 133, 0.28);
    outline: none;
}

.brand-item img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 18px;
    background: #f8f9fa;
    padding: 0.35rem;
}

.brand-item span {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.82rem;
    color: #444;
    font-weight: 600;
}

/* Breadcrumbs */
.breadcrumb-modern {
    background: var(--ps-surface);
    border-radius: var(--ps-radius-pill);
    padding: 0.65rem 1.25rem;
    box-shadow: 0 4px 16px rgba(15, 39, 63, 0.06);
    margin-bottom: 1rem;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    color: var(--ps-muted);
}

/* Content panels */
.content-panel {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--ps-radius-lg);
    border: 1px solid rgba(11, 114, 133, 0.1);
    box-shadow: var(--ps-shadow-sm);
    padding: 1.5rem;
}

.content-panel--seo {
    margin-top: 1.5rem;
}

.content-panel--seo p {
    text-align: justify;
    line-height: 1.7;
    color: var(--ps-text);
}

/* Used mobile cards */
.used-mobile-card {
    border: none;
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.used-mobile-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ps-shadow-md);
}

.used-mobile-card .card-img-wrap {
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 155px;
}

.used-mobile-card .card-img-wrap img {
    height: 155px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.used-mobile-card .card-title {
    font-weight: 700;
    color: var(--ps-text);
}

/* Sidebar tables */
.sidebar-table {
    background: var(--ps-surface);
    border-radius: var(--ps-radius-lg);
    overflow: hidden;
    box-shadow: var(--ps-shadow-sm);
}

.sidebar-table thead {
    background: var(--ps-gradient-header);
    color: white;
}

.sidebar-table tbody tr {
    transition: background 0.2s ease;
}

.sidebar-table tbody tr:hover {
    background: rgba(11, 114, 133, 0.08);
}

.sidebar-table tbody tr:hover td a {
    color: var(--ps-primary) !important;
}

/* Compare page */
.compare-page-header {
    text-align: center;
    margin: 1.5rem 0;
}

.compare-page-header h1 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--ps-primary-dark);
}

.compare-panel {
    background: var(--ps-surface);
    border-radius: var(--ps-radius-lg);
    padding: 1.25rem;
    box-shadow: var(--ps-shadow-sm);
    height: 100%;
}

.compare-panel .form-control {
    border-radius: var(--ps-radius-pill);
    border: 1px solid rgba(11, 114, 133, 0.18);
}

.compare-panel img {
    display: block;
    margin: 0.75rem auto;
    height: 160px;
    object-fit: contain;
}

/* Product detail page */
.product-page .product-hero article {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(11, 114, 133, 0.1);
    border-radius: var(--ps-radius-lg);
    box-shadow: 0 10px 40px rgba(15, 89, 111, 0.12);
}

.product-specs {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--ps-radius-lg);
    padding: 2rem;
    box-shadow: var(--ps-shadow-sm);
}

.product-specs h2 {
    color: var(--ps-primary-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.product-specs table thead {
    background: var(--ps-gradient-header);
    color: white;
}

.product-specs table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.08);
}

.rating-block {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.rating-block .star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-block .star.selected,
.rating-block .star:hover {
    color: #ffc107;
    transform: scale(1.15);
}

/* Blog cards */
.blog-card {
    border: none;
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ps-shadow-md);
}

.blog-card .card-img-top {
    width: 100%;
    height: 213px;
    object-fit: cover;
}

.blog-card .card-title {
    color: var(--ps-text);
    font-weight: 700;
}

/* Write for us */
.write-hero img {
    border-radius: 0 0 var(--ps-radius-xl) var(--ps-radius-xl);
    max-height: 320px;
    object-fit: cover;
}

.write-card {
    border-radius: var(--ps-radius-lg);
    background: linear-gradient(135deg, #0401cf, #00dbff);
    box-shadow: var(--ps-shadow-md);
}

.write-form-panel {
    background: var(--ps-surface);
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow-sm);
    padding: 2rem;
}

/* Error pages */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}

.error-page__inner {
    max-width: 520px;
    text-align: center;
}

.error-page__code {
    font-size: clamp(6rem, 20vw, 10rem);
    font-weight: 900;
    line-height: 1;
    color: var(--ps-primary-dark);
    letter-spacing: -0.05em;
    margin: 0;
}

.error-page__code span {
    display: inline-block;
    text-shadow: -4px 0 0 var(--ps-surface);
}

.error-page__title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ps-muted);
    margin-bottom: 0.5rem;
}

.error-page__message {
    font-size: 1.125rem;
    color: var(--ps-text);
    margin-bottom: 1.5rem;
}

/* Nav tabs modern */
.nav-tabs-modern {
    border-bottom: 2px solid rgba(11, 114, 133, 0.12);
    gap: 0.25rem;
}

.nav-tabs-modern .nav-link {
    border: none;
    border-radius: var(--ps-radius-pill) var(--ps-radius-pill) 0 0;
    color: var(--ps-muted);
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    transition: all 0.2s ease;
}

.nav-tabs-modern .nav-link.active {
    background: var(--ps-gradient-header);
    color: white;
}

.nav-tabs-modern .nav-link:hover:not(.active) {
    background: rgba(11, 114, 133, 0.08);
    color: var(--ps-primary);
}

/* Data tables */
.table-modern {
    background: var(--ps-surface);
    border-radius: var(--ps-radius-lg);
    overflow: hidden;
    box-shadow: var(--ps-shadow-sm);
}

.table-modern thead {
    background: var(--ps-gradient-header);
    color: white;
}

.table-modern tbody tr {
    transition: background 0.2s ease;
}

.table-modern tbody tr:hover {
    background: rgba(11, 114, 133, 0.06);
}

/* Full-page image overlay */
#fullpage {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: rgba(255, 255, 255, 0.97);
    display: none;
}

#fullpage .close-btn {
    color: var(--ps-text);
    position: absolute;
    right: 30px;
    top: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    z-index: 10000;
}

/* Accordion / FAQ */
.accordion-modern .card {
    border: none;
    border-radius: var(--ps-radius-lg) !important;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 16px rgba(15, 39, 63, 0.06);
    overflow: hidden;
}

.accordion-modern .card-header {
    background: var(--ps-surface);
    border-bottom: 1px solid rgba(11, 114, 133, 0.08);
    padding: 0;
}

.accordion-modern .card-header button {
    font-weight: 600;
    color: var(--ps-text);
    padding: 1rem 1.25rem;
}

.accordion-modern .card-header button:hover {
    color: var(--ps-primary);
}

/* Modal */
.modal-content {
    border-radius: var(--ps-radius-lg);
    border: 1px solid rgba(11, 114, 133, 0.1);
    box-shadow: var(--ps-shadow-md);
    overflow: hidden;
}

.modal-header {
    background: var(--ps-gradient-header);
    color: white;
    border: none;
}

.modal-header .modal-title,
.modal-header .close {
    color: white;
}

/* Button price grid */
.btn_price .col-md-3,
.btn_price .col-12 {
    margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .brand-scroll-hint {
        display: block;
    }

    .brand-item {
        min-width: 100px;
        padding: 0.75rem 0.65rem;
    }

    .hero-banner {
        padding: 1.5rem 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .modern-section-header {
        padding: 0.75rem 0.5rem;
        margin-bottom: 1rem;
    }

    .modern-card {
        min-height: 250px;
    }

    .product-specs {
        padding: 1rem;
    }

    .btn_price .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Accessory detail pages — style common markup without per-file rewrites */
section:has(#sec2) .row.justify-content-center:has(.box) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(11, 114, 133, 0.1);
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

section:has(#sec2) #sec2 {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--ps-radius-lg);
    padding: 1.25rem;
}

section:has(#sec2) #sec2 .rating {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

section:has(#sec2) #sec2 .star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

section:has(#sec2) #sec2 .star.selected,
section:has(#sec2) #sec2 .star:hover {
    color: #ffc107;
    transform: scale(1.15);
}

section:has(#sec2) #price {
    color: var(--ps-primary-dark);
    font-weight: 800;
}

section:has(#sec2) .spec-table-wrap,
section:has(#sec2) .row.justify-content-center:has(.table-modern) {
    border-radius: var(--ps-radius-lg);
    padding: 0.5rem;
    margin-bottom: 1.5rem;
}

section:has(#sec2) .table-modern th {
    background: var(--ps-surface-soft);
    color: var(--ps-text);
    font-weight: 700;
    width: 35%;
}

section:has(#sec2) .modern-section-header h1,
section:has(#sec2) .modern-section-header h2 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
}

/* Tablet / category link buttons */
.btn_price a.btn-warning,
.btn_price .btn-warning {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
}

/* Deal card layout fix */
.dealcard .card-body {
    padding: 1.25rem;
}

.dealcard .card-title {
    color: var(--ps-primary-dark);
    font-weight: 700;
}

/* Product card link wrapper — enable hover on parent */
.section_card > a {
    display: block;
    height: 100%;
    text-decoration: none !important;
}

.section_card > a:focus-visible {
    outline: 2px solid var(--ps-primary);
    outline-offset: 4px;
    border-radius: var(--ps-radius-lg);
}

/* Brand name scroll (accessory pages) */
.brandname {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
}

.brandname a {
    min-width: 100px;
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    /* padding: 0.75rem; */
    /* background: var(--ps-surface); */
    border: 1px solid rgba(11, 114, 133, 0.14);
    border-radius: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.brandname a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 89, 111, 0.12);
}

/* Write for us page */
.write-for-us-page .write-card {
    border-radius: var(--ps-radius-lg);
    padding: 2rem;
}

.write-for-us-page .write-form-panel {
    margin-top: 1.5rem;
}

/* Error page button */
.error-page .btn-info {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-primary-light) 100%) !important;
    border: none !important;
    border-radius: var(--ps-radius-pill) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

@media (max-width: 768px) {
    section:has(#sec2) .row.justify-content-center:has(.box) {
        padding: 1rem;
    }

    section:has(#sec2) .col-md-4.box,
    section:has(#sec2) .col-md-5 {
        margin-bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
