/* Mobile Detail Page — md-style.css */
:root {
    --md-primary:   #0073aa;
    --md-primary-d: #005f8e;
    --md-dark:      #0a1628;
    --md-accent:    #f0a500;
    --md-border:    #e0e0e0;
    --md-bg:        #f7f9fb;
    --md-radius:    10px;
    --md-success:   #27ae60;
    --md-danger:    #c0392b;
}

.md-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    font-family: 'Segoe UI', sans-serif;
}

/* Breadcrumb */
.md-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.md-breadcrumb a { color: var(--md-primary); text-decoration: none; }
.md-breadcrumb a:hover { text-decoration: underline; }
.md-breadcrumb span:last-child { color: #555; font-weight: 500; }

/* -------------------------------------------------------
   HERO
------------------------------------------------------- */
.md-hero {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 36px;
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 24px;
    align-items: start;
}

/* Hero left */
.md-hero-img-wrap {
    position: relative;
    background: var(--md-bg);
    border-radius: 12px;
    overflow: hidden;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.md-hero-img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    padding: 16px;
}
.md-hero-no-img { font-size: 80px; color: #ddd; }

.md-hero-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}
.md-5g { background: #185FA5; color: #B5D4F4; }
.md-4g { background: var(--md-success); color: #fff; }

/* Share */
.md-share {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.md-share span { font-size: 12px; color: #888; font-weight: 600; }
.md-share-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity 0.2s;
}
.md-share-btn:hover { opacity: 0.85; }
.md-fb   { background: #1877f2; color: #fff; }
.md-tw   { background: #1da1f2; color: #fff; }
.md-wa   { background: #25d366; color: #fff; }
.md-copy { background: #f0f0f0; color: #555; }

/* Hero right */
.md-hero-brand {
    font-size: 12px;
    font-weight: 700;
    color: var(--md-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.md-hero-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin: 0 0 8px;
}
.md-hero-release {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 12px;
}

/* Rating stars */
.md-hero-rating { margin-bottom: 16px; }
.md-stars { display: flex; align-items: center; gap: 3px; }
.md-star { font-size: 20px; }
.md-star.full  { color: var(--md-accent); }
.md-star.half  { color: var(--md-accent); opacity: 0.6; }
.md-star.empty { color: #ddd; }
.md-rating-num {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    margin-left: 8px;
}

/* Price */
.md-hero-price {
    background: var(--md-bg);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.md-price-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; }
.md-price-val   { font-size: 26px; font-weight: 700; color: var(--md-primary); }

/* Quick specs */
.md-quick-specs {
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    flex-direction: column;
}
.md-qs-item {
   
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 15px;
}
.md-qs-icon  { font-size: 18px; display: block; margin-bottom: 3px; width:30px; }
.md-qs-icon img {width:30px;}
/*.md-qs-label { font-size: 9px; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; display: block; }*/
.md-qs-val   { font-size: 12px; font-weight: 700; color: #1a1a2e; display: block; margin-top: 2px; }

/* Hero actions */
.md-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.md-compare-trigger {
    flex: 1;
    padding: 11px 16px;
    background: var(--md-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.md-compare-trigger:hover { background: #1a3a5c; }
.md-browse-btn {
    padding: 11px 16px;
    background: #fff;
    color: var(--md-primary);
    border: 1.5px solid var(--md-primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.md-browse-btn:hover { background: var(--md-primary); color: #fff; }

/* Compare box */
.md-compare-box {
    background: var(--md-bg);
    border: 1px solid var(--md-border);
    border-radius: 10px;
    padding: 14px;
    margin-top: 8px;
}
.md-compare-box p { font-size: 13px; color: #666; margin-bottom: 10px; }
#md-compare-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--md-border);
    border-radius: 7px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
#md-compare-input:focus { border-color: var(--md-primary); }
.md-compare-results { margin-top: 8px; }
.md-cr-item {
    padding: 9px 12px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    color: #333;
    display: block;
    text-decoration: none;
}
.md-cr-item:hover { background: #f0f6fa; color: var(--md-primary); }

/* -------------------------------------------------------
   PROS & CONS
------------------------------------------------------- */
.md-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.md-pros, .md-cons {
    border-radius: 12px;
    padding: 20px 22px;
}
.md-pros { background: #f0fff4; border: 1px solid #b7efc8; }
.md-cons { background: #fff5f5; border: 1px solid #f5c6c6; }
.md-pros h3 { color: #1e7e34; font-size: 15px; margin: 0 0 12px; }
.md-cons h3 { color: #c0392b; font-size: 15px; margin: 0 0 12px; }
.md-pros ul, .md-cons ul { list-style: none; padding: 0; margin: 0; }
.md-pros li, .md-cons li { font-size: 13px; padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.05); line-height: 1.5; }
.md-pros li:last-child, .md-cons li:last-child { border-bottom: none; }
.md-pros li::before { content: '✓ '; color: #1e7e34; font-weight: 700; }
.md-cons li::before { content: '✗ '; color: #c0392b; font-weight: 700; }

/* -------------------------------------------------------
   SPECS TABLE
------------------------------------------------------- */
.md-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--md-border);
}
.md-specs-section { margin-bottom: 32px; }
.md-specs-table-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--md-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.md-specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.md-group-row td {
    background: var(--md-dark);
    color: #7ab8f5;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 10px 18px;
}
.md-spec-row td { padding: 11px 18px; border-bottom: 1px solid #f5f5f5; vertical-align: top; }
.md-spec-row:last-child td { border-bottom: none; }
.md-spec-row:nth-child(even) td { background: var(--md-bg); }
.md-spec-row:hover td { background: #eaf5fb !important; }
.md-spec-key { font-weight: 600; color: #555; width: 180px; white-space: nowrap; }
.md-spec-val { color: #333; line-height: 1.5; }

/* -------------------------------------------------------
   RELATED MOBILES
------------------------------------------------------- */
.md-related { margin-bottom: 32px; }
.md-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.md-rel-card {
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.md-rel-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.md-rel-img-wrap {
    display: block;
    height: 160px;
    background: var(--md-bg);
    overflow: hidden;
}
.md-rel-img { width: 100%; height: 100%; object-fit: contain; padding: 12px; display: block; transition: transform 0.3s; }
.md-rel-card:hover .md-rel-img { transform: scale(1.05); }
.md-rel-no-img { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 44px; color: #ddd; }
.md-rel-body { padding: 12px 14px; }
.md-rel-title { font-size: 13px; font-weight: 600; margin: 0 0 5px; line-height: 1.3; }
.md-rel-title a { color: #1a1a2e; text-decoration: none; }
.md-rel-title a:hover { color: var(--md-primary); }
.md-rel-price { font-size: 13px; font-weight: 700; color: var(--md-primary); margin-bottom: 3px; }
.md-rel-ram   { font-size: 11px; color: #888; margin-bottom: 8px; }
.md-rel-actions { display: flex; gap: 7px; }
.md-rel-view {
    flex: 1; padding: 7px 0; background: var(--md-primary); color: #fff;
    border-radius: 6px; font-size: 11px; font-weight: 600; text-align: center; text-decoration: none;
}
.md-rel-view:hover { background: var(--md-primary-d); color: #fff; }
.md-rel-compare {
    flex: 1; padding: 7px 0; background: #fff; color: var(--md-primary);
    border: 1.5px solid var(--md-primary); border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer;
}
.md-rel-compare:hover, .md-rel-compare.added { background: var(--md-primary); color: #fff; }

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */
@media (max-width: 860px) {
    .md-hero { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
    /*.md-hero-img-wrap { height: 260px; }*/
    .md-hero-title { font-size: 22px; }
    .md-quick-specs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .md-pros-cons { grid-template-columns: 1fr; }
    .md-quick-specs { grid-template-columns: repeat(2, 1fr); }
    .md-related-grid { grid-template-columns: repeat(2, 1fr); }
    .md-spec-key { width: 120px; font-size: 12px; }
    .md-spec-val { font-size: 12px; }
}



/* -------------------------------------------------------
   POPULAR COMPARISONS
------------------------------------------------------- */
.md-pop-compare { margin-bottom: 32px; }
.md-pc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.md-pc-card {
    background: #fff;
    border: 2px solid var(--md-border);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.25s ease;
}
.md-pc-card:hover {
    border-color: var(--md-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,115,170,0.12);
}
.md-pc-imgs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}
.md-pc-img-box {
    width: 80px;
    height: 100px;
    background: var(--md-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ddd;
}
.md-pc-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.md-pc-vs {
    background: var(--md-dark);
    color: var(--md-accent);
    font-weight: 800;
    font-size: 13px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.md-pc-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
    margin: 12px 0 6px;
    line-height: 1.3;
}
.md-pc-cta {
    font-size: 11px;
    font-weight: 600;
    color: var(--md-primary);
    border: 1.5px solid var(--md-primary);
    border-radius: 6px;
    padding: 4px 16px;
    transition: all 0.2s;
}
.md-pc-card:hover .md-pc-cta {
    background: var(--md-primary);
    color: #fff;
}


/* -------------------------------------------------------
   COMMENTS / USER REVIEWS
------------------------------------------------------- */
.comments-area { margin-top: 32px; }

.comments-area .comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--md-border);
}

.comments-area ol.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.comments-area ol.comment-list li.comment {
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.comments-area ol.comment-list li.comment:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.comment .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.comment .comment-author img.avatar {
    border-radius: 50%;
    border: 2px solid var(--md-border);
}
.comment .comment-author .fn {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 15px;
}
.comment .comment-metadata {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}
.comment .comment-content {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}
.comment .reply { margin-top: 12px; }
.comment .reply a {
    font-size: 12px;
    font-weight: 600;
    color: var(--md-primary);
    text-decoration: none;
    border: 1.5px solid var(--md-primary);
    border-radius: 6px;
    padding: 5px 14px;
    display: inline-block;
    transition: all 0.2s;
}
.comment .reply a:hover { background: var(--md-primary); color: #fff; }

.children { list-style: none; margin-left: 32px; padding: 0; }

.md-page .comment-respond {
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 14px;
    padding: 28px;
    margin-top: 24px;
}
.md-page .comment-form label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 6px;
}
.md-page .comment-form input[type="text"],
.md-page .comment-form input[type="email"],
.md-page .comment-form input[type="url"],
.md-page .comment-form textarea {
    width: 100%;
    border: 1.5px solid var(--md-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.md-page .comment-form input[type="text"]:focus,
.md-page .comment-form input[type="email"]:focus,
.md-page .comment-form input[type="url"]:focus,
.md-page .comment-form textarea:focus { border-color: var(--md-primary); }
.md-page .comment-form textarea { min-height: 120px; resize: vertical; }
.md-page .comment-form input[type="submit"] {
    background: var(--md-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.md-page .comment-form input[type="submit"]:hover { background: var(--md-primary-d); }
.md-page .comment-notes { font-size: 13px; color: #888; margin-bottom: 16px; }

@media (max-width: 860px) {
    .md-page .comment-respond { padding: 20px; }
    .md-page .comment-form input[type="submit"] { width: 100%; }
}

/* Faqs Style */
/*.faq-section {*/
/*    margin-top: 60px;*/
    /*padding: 40px 20px;*/
/*    background: #f9fafb;*/
/*}*/

/*.faq-container {*/
    /*max-width: 800px;*/
/*    margin: auto;*/
/*}*/

/*.faq-title {*/
/*    font-size: 28px;*/
/*    margin-bottom: 5px;*/
/*}*/

/*.faq-subtitle {*/
/*    color: #666;*/
/*    margin-bottom: 25px;*/
/*}*/

/*.faq-item {*/
/*    background: #fff;*/
/*    border-radius: 12px;*/
/*    margin-bottom: 12px;*/
/*    overflow: hidden;*/
/*    border: 1px solid #eee;*/
/*    transition: 0.3s;*/
/*}*/

/*.faq-item:hover {*/
/*    box-shadow: 0 5px 20px rgba(0,0,0,0.05);*/
/*}*/

/*.faq-question {*/
/*    width: 100%;*/
/*    padding: 18px 20px;*/
/*    font-size: 16px;*/
/*    font-weight: 600;*/
/*    border: none;*/
/*    background: none;*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    cursor: pointer;*/
/*}*/

/*.faq-question .icon {*/
/*    width: 18px;*/
/*    height: 18px;*/
/*    border-right: 2px solid #333;*/
/*    border-bottom: 2px solid #333;*/
/*    transform: rotate(45deg);*/
/*    transition: 0.3s;*/
/*}*/

/*.faq-question.active .icon {*/
/*    transform: rotate(-135deg);*/
/*}*/

/*.faq-answer {*/
/*    max-height: 0;*/
/*    overflow: hidden;*/
/*    transition: max-height 0.3s ease;*/
/*}*/

/*.faq-answer-inner {*/
/*    padding: 0 20px 20px;*/
/*    color: #444;*/
/*    line-height: 1.6;*/
/*}*/



.faq-section {
    margin-top: 60px;
    /*padding: 48px 20px;*/
    background: #f9fafb;
}

.faq-container {
    /*max-width: 780px;*/
    margin: auto;
}

/* Header */
.faq-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3b82f6;
    margin: 0 0 8px;
}

.faq-title {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px;
}

.faq-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 28px;
}

/* Divider */
.faq-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.faq-divider::before,
.faq-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Items */
.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #d1d5db;
}

.faq-item.active {
    border-color: #93c5fd;
}

/* Question button */
.faq-question {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    border: none;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
}

/* Icon — plus/cross style */
.faq-question .icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    position: relative;
    transition: background 0.2s, transform 0.3s;
}

.faq-question .icon::before,
.faq-question .icon::after {
    content: '';
    position: absolute;
    background: #6b7280;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s, background 0.2s;
}

.faq-question .icon::before {
    width: 10px;
    height: 1.5px;
}

.faq-question .icon::after {
    width: 1.5px;
    height: 10px;
}

.faq-question.active .icon {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: rotate(45deg);
}

.faq-question.active .icon::before,
.faq-question.active .icon::after {
    background: #3b82f6;
}

/* Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    margin: 0 20px;
    padding: 0 0 18px;
    border-top: 1px solid #f3f4f6;
    padding-top: 14px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.75;
}