@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&display=swap');

/* Phone Directory Pro - Frontend CSS */
/* Beautiful, modern, mobile-first design */

* {
    box-sizing: border-box;
}

.pdp-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pdp-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.pdp-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.pdp-breadcrumb a:hover {
    text-decoration: underline;
}

/* Single Phone Layout */
.pdp-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 20px;
}

.pdp-phone-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.2;
}

.pdp-release {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    padding: 8px 15px;
    background: #f0f7ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.pdp-phone-image-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.pdp-phone-image {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Sections */
.pdp-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.pdp-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
    color: #1a202c;
    letter-spacing: 0.5px;
}

/* Key Specs - Dark Premium */
.pdp-key-specs {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.pdp-key-specs h2 {
    color: #ffffff;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.pdp-key-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pdp-key-spec-item {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.pdp-key-spec-item:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.25);
}

.key-spec-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.key-spec-label {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8892b0;
    margin-bottom: 6px;
}

.key-spec-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.key-spec-sub {
    font-size: 11px;
    color: #8892b0;
    margin-top: 5px;
    line-height: 1.3;
}

/* Spec Table */
.pdp-spec-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

.pdp-spec-table tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.pdp-spec-table tr:hover {
    background: linear-gradient(90deg, #f8f9ff 0%, #fff 100%);
}

.pdp-spec-table tr:last-child {
    border-bottom: none;
}

.pdp-spec-table td {
    padding: 18px 15px;
    vertical-align: middle;
}

.spec-label {
    font-weight: 600;
    width: 160px;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    color: #667eea;
}

.spec-value {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.spec-value strong {
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.spec-value small {
    color: #888;
    font-size: 12px;
    display: block;
    margin-top: 2px;
    font-weight: 400;
}

/* Content */
.pdp-content {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.pdp-content h2, .pdp-content h3 {
    color: #1a1a1a;
    margin: 25px 0 15px;
}

/* Related Phones */
.pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.pdp-related-card {
    display: block;
    text-decoration: none;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.pdp-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #0073aa;
    text-decoration: none;
}

.pdp-related-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 10px;
}

.pdp-related-card h4 {
    font-size: 14px;
    color: #333;
    margin: 8px 0 5px;
}

.pdp-related-card small {
    color: #888;
    font-size: 12px;
}

/* Sidebar */
.pdp-sidebar {
    position: sticky;
    top: 30px;
}

.pdp-sidebar-box {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.pdp-sidebar-box h3 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pdp-quick-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdp-quick-specs li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.pdp-quick-specs li strong {
    display: block;
    font-size: 15px;
    color: #1a202c;
    margin-top: 2px;
}

.pdp-quick-specs li:last-child {
    border-bottom: none;
}

.pdp-view-count {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    text-align: center;
}

.pdp-sidebar-box small {
    display: block;
    text-align: center;
    color: #999;
    margin-top: 5px;
}

/* Brand Page */
.pdp-brand-container, .pdp-brands-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pdp-brand-container h1, .pdp-brands-container h1 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pdp-brand-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.pdp-brand-count {
    color: #888;
    margin-bottom: 25px;
}

/* Phone Cards Grid */
.pdp-phones-grid, .pdp-brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.pdp-phone-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.pdp-phone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    text-decoration: none;
}

.pdp-phone-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 20px;
}

.pdp-phone-card .pdp-no-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: #f8f9fa;
}

.pdp-phone-card h3 {
    font-size: 18px;
    margin: 0;
    padding: 15px 20px 5px;
    color: #1a1a1a;
}

.pdp-card-specs {
    padding: 0 20px 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pdp-card-specs span {
    font-size: 12px;
    background: #f0f7ff;
    padding: 4px 10px;
    border-radius: 20px;
    color: #0073aa;
}

.pdp-badge {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Brand Cards */
.pdp-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border-radius: 16px;
    padding: 50px 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.pdp-brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    text-decoration: none;
    border-color: #667eea;
}

.pdp-brand-card img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 8px;
}

.pdp-brand-card h3 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px;
    text-align: center;
    text-transform: uppercase;
}

.pdp-brand-card .pdp-badge {
    font-size: 16px;
    padding: 8px 20px;
}

/* Shortcode Grid */
.pdp-shortcode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Popular Brands Widget */
.pdp-popular-brands {
    padding: 0;
}

.pdp-brand-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.pdp-brand-list li {
    padding: 0;
    border: none;
}

.pdp-brand-list li a {
    display: block;
    padding: 8px 6px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdp-brand-list li a:hover {
    background: #667eea;
    color: #fff;
    text-decoration: none;
}

.pdp-all-brands-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #667eea;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 10px;
}

.pdp-all-brands-btn:hover {
    background: #5a67d8;
    text-decoration: none;
}

/* Related Devices Widget */
.pdp-related-widget {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdp-related-widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.pdp-related-widget-item:hover {
    background: #e8f4fd;
    border-color: #667eea;
    text-decoration: none;
}

.pdp-related-widget-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.pdp-no-img-small {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #e9ecef;
    border-radius: 4px;
}

.pdp-related-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    flex: 1;
}

/* Hide Quick Specs & Views on mobile */
@media (max-width: 768px) {
    .pdp-desktop-only {
        display: none !important;
    }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .pdp-single-layout {
        grid-template-columns: 1fr;
    }
    
    .pdp-sidebar {
        position: static;
    }
    
    .pdp-phone-title {
        font-size: 24px;
    }
    
    .pdp-phone-image-box {
        padding: 20px;
    }
    
    .pdp-section {
        padding: 20px;
    }
    
    .pdp-key-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .pdp-key-spec-item {
        padding: 15px 10px;
    }
    
    .key-spec-value {
        font-size: 16px;
    }
    
    .key-spec-icon {
        font-size: 24px;
    }
    
    .pdp-spec-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .spec-label {
        width: 100%;
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .spec-value {
        font-size: 14px;
        padding-left: 0;
    }
    
    .pdp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .pdp-related-card {
        padding: 12px;
    }
    
       .pdp-phones-grid, .pdp-brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .pdp-shortcode-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pdp-brand-card {
        padding: 30px 20px;
    }
    
    .pdp-brand-card img {
        width: 140px;
        height: 140px;
        margin-bottom: 15px;
    }
    
    .pdp-brand-card h3 {
        font-size: 18px;
    }
    
    .pdp-brand-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    
    .pdp-brand-list li a {
        font-size: 10px;
        padding: 6px 4px;
    }
}

@media (max-width: 480px) {
    .pdp-single-container {
        padding: 10px;
    }
    
    .pdp-phone-title {
        font-size: 20px;
    }
    
    .pdp-section {
        padding: 15px;
    }
    
    .pdp-key-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .pdp-key-spec-item {
        padding: 12px 8px;
    }
    
    .key-spec-value {
        font-size: 14px;
    }
    
    .spec-label {
        font-size: 16px;
    }
    
    .spec-value {
        font-size: 13px;
    }
    
    .pdp-related-grid {
        grid-template-columns: 1fr;
    }
    
       .pdp-phones-grid, .pdp-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pdp-shortcode-grid {
        grid-template-columns: 1fr;
    }

    .pdp-brand-card img {
        width: 120px;
        height: 120px;
    }
    
    .pdp-brand-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .pdp-brand-list li a {
        font-size: 10px;
        padding: 5px 3px;
    }
}
.pdp-toggle-buttons{display:flex;gap:10px;margin-bottom:20px;background:#f5f6fa;padding:6px;border-radius:14px;width:fit-content}
.pdp-toggle-btn{display:flex;align-items:center;gap:8px;padding:12px 24px;border:none;border-radius:10px;font-size:15px;font-weight:600;cursor:pointer;transition:all .3s;background:transparent;color:#888}
.pdp-toggle-btn:hover{color:#555;background:rgba(255,255,255,0.5)}
.pdp-toggle-btn.active{background:#fff;color:#667eea;box-shadow:0 4px 15px rgba(0,0,0,0.08)}
.toggle-icon{font-size:18px}
.pdp-toggle-section{animation:pdp-fadeSlide .35s ease}
@keyframes pdp-fadeSlide{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:768px){.pdp-toggle-buttons{width:100%;justify-content:center}.pdp-toggle-btn{padding:10px 18px;font-size:14px;flex:1;justify-content:center}}