:root {
    --dark: #020617;
    --mid: #090909;
    --light: #f6f7f9;
    --border: #1f2933;
    --blue: #2563eb;
    --green: #16a34a;
    --text: #111;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
    opacity: 1;
    transition: opacity 0.6s ease;
}

body.fade-out {
    opacity: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

html {
    scroll-behavior: smooth;
}

/* HEADER */

header {
    background: var(--mid);
    color: #fff;
    padding: 18px 5%;
    text-align: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

/* SCROLL MENU */

.scroll-menu {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    background: #000;
}

.scroll-menu::-webkit-scrollbar {
    display: none;
}

.scroll-menu .inner {
    display: inline-flex;
    width: max-content;
}

.scroll-menu a {
    padding: 8px 18px;
    flex-shrink: 0;
    color: #fff;
    opacity: 0.85;
}

/* PRODUCT HERO */

.product-hero {
    padding: 80px 5%;
    background: white;
}

.product-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    align-items: center;
}

.product-image img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.product-content h1 {
    font-size: 30px;
    margin-bottom: 14px;
}

.short-desc {
    font-size: 14px;
    color: #444;
    margin-bottom: 18px;
}

.rating {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

.price-box {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
}

.buy-btn {
    width: 100%;
    background: var(--green);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.meta-info {
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    font-size: 13px;
    color: #444;
}

.meta-info div {
    margin-bottom: 6px;
}

/* ================= TRUST ================= */

.trust-bar {
    background: #fff;
    padding: 35px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.trust-box h3 {
    color: var(--green);
    font-size: 18px;
}

.trust-box p {
    font-size: 13px;
    color: #444;
}

/* DETAILS SECTION */

.details {
    background: var(--light);
    padding: 80px 5%;
}

.details-wrap {
    max-width: 900px;
    margin: auto;
    padding: 40px;
}

.details h2 {
    font-size: 24px;
    margin: 24px 0 12px;
}

.details p,
.details li {
    font-size: 14px;
    color: #444;
}

.details ul {
    padding-left: 18px;
}

/* FAQ */

.faq {
    background: #fff;
    padding: 80px 5%;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.faq h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.faq-item {
    max-width: 800px;
    margin: auto;
    padding: 16px 0;
    border-bottom: 1px solid #ddd;
}

.faq-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.faq-item p {
    font-size: 14px;
    color: #444;
}

.faq-item-last {
    border-bottom: none;
}

/* ================= SUGGESTED PRODUCTS ================= */

.suggested {
    background: var(--light);
    padding: 80px 5%;
}

.suggested h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.suggested-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
}

.suggested-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.suggested-card img {
    width: 100%;
    border-radius: 8px;
}

.suggested-card h3 {
    margin: 12px 0 6px;
    font-size: 16px;
}

.suggested-card p {
    font-size: 13px;
    color: #444;
}

.suggested-price {
    margin-top: 10px;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 10px;
}

.view-btn {
    margin-top: auto;
    display: block;
    background: var(--blue);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
}

/* FOOTER */

footer {
    background: #000;
    color: #bbb;
    padding: 32px 5%;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

footer h4 {
    color: #fff;
}

footer a {
    display: block;
    margin-bottom: 6px;
}

.copyright {
    text-align: center;
    margin-top: 22px;
    border-top: 1px solid #222;
    padding-top: 16px;
}

/* INPUT */

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* MOBILE */

@media (max-width: 700px) {
    .product-content h1 {
        font-size: 24px;
    }

    .details-wrap {
        padding: 26px 18px;
    }
}

/* STICKY MOBILE BUY BAR */

.mobile-buy-bar {
    display: none;
}

@media (max-width: 700px) {
    .mobile-buy-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #000;
        padding: 12px;
        justify-content: space-between;
        align-items: center;
        z-index: 999;
    }

    .mobile-buy-bar span {
        color: #fff;
        font-weight: bold;
    }

    .mobile-buy-bar button {
        background: var(--green);
        color: #fff;
        border: none;
        padding: 10px 18px;
        border-radius: 6px;
    }
}

/* THIN SCROLLBAR */

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background: #b5b5b5;
    border-radius: 2px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* ==================================================
   ✅ CONTENT TAG SUPPORT (NEW - SAFE)
================================================== */

/* PARAGRAPH SPACING */
.details p {
    margin-bottom: 14px;
}

/* IMAGES */
.details img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
    border: 1px solid #e5e7eb;
}

/* HR */
.details hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 30px 0;
}

/* BLOCKQUOTE */
.details blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--blue);
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 14px;
    color: #444;
    border-radius: 6px;
}

/* INLINE CODE */
.details code {
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #0f172a;
}

/* CODE BLOCK */
.details pre {
    background: #020617;
    color: #f8fafc;
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 13px;
    margin: 20px 0;
}

.details pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* STRONG & EMPHASIS */
.details strong {
    color: #000;
}

.details em {
    font-style: italic;
}

/* MARK */
.details mark {
    background: #fde68a;
    padding: 2px 6px;
    border-radius: 4px;
}

/* SMALL */
.details small {
    font-size: 12px;
    color: #666;
}

/* KBD */
.details kbd {
    background: #020617;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

/* DEFINITION LIST */
.details dl {
    margin: 20px 0;
}

.details dt {
    font-weight: bold;
    margin-bottom: 6px;
}

.details dd {
    margin-bottom: 16px;
    font-size: 14px;
    color: #444;
}

/* ============================
   ✅ RESPONSIVE TABLE SUPPORT
============================ */

.details table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 14px;
}

.details table th,
.details table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.details table thead {
    background: var(--mid);
    color: #fff;
}

/* RESPONSIVE WRAPPER */
.details .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.details .table-responsive::-webkit-scrollbar {
    display: none;
}

.details .table-responsive {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ===============================
   ✅ BUY SECTION (NEW)
=============================== */

.buy-section {
    background: var(--light);
    padding: 80px 5%;
    border-top: 1px solid #e5e7eb;
}

.buy-wrapper {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.buy-wrapper h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.buy-wrapper p {
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
}

.buy-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

/* ORDER SUMMARY */

.buy-summary {
    text-align: left;
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.buy-summary h3 {
    font-size: 18px;
    margin-bottom: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.summary-row:last-child {
    border-bottom: none;
}

/* CHECKOUT FORM */

.checkout-form {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.checkout-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.checkout-form input:focus {
    outline: none;
    border-color: var(--green);
}

.checkout-form .buy-btn {
    margin-top: 8px;
    font-size: 15px;
}

.secure-note {
    margin-top: 12px;
    font-size: 12px;
    color: #555;
    text-align: center;
}

/* ===============================
   ✅ BUY SECTION MOBILE TUNING
=============================== */

@media (max-width: 700px) {

    .buy-section {
        padding: 60px 5%;
    }

    .buy-card {
        padding: 18px;
    }

    .buy-wrapper h2 {
        font-size: 24px;
    }

    .buy-summary,
    .checkout-form {
        padding: 18px;
    }

}

/* ===============================
   ✅ BUTTON HOVER ENHANCEMENT
=============================== */

.buy-btn:hover,
.view-btn:hover,
.mobile-buy-bar button:hover {
    opacity: 0.92;
}