/* ============================================================
   PINECONEBOX — Modern Dark Homepage Theme
   ============================================================ */

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: #58a6ff; text-decoration: none; }
a:hover { color: #79c0ff; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
    background: #161b22 !important;
    border-bottom: 1px solid #30363d;
    padding: 0;
    margin-bottom: 0;
    height: 60px;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand img.logo-img {
    height: 36px;
    width: auto;
}
.navbar-brand span {
    color: #f0f6fc;
    font-size: 14px;
    font-weight: 700;
}
.nav-link {
    color: #c9d1d9 !important;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: background 0.2s;
}
.nav-link:hover { background: #21262d; color: #f0f6fc !important; }
.cart-icon {
    font-size: 1.4rem;
    color: #c9d1d9;
    position: relative;
}
.cart-icon:hover { color: #f7931a; }
.cart-badge {
    background: #f7931a;
    color: #0d1117;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -12px;
    padding: 2px;
}
.navbar-toggler { border: none; color: #c9d1d9; font-size: 1.5rem; }

/* ── SLIDER ──────────────────────────────────────────────── */
.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px 0;
}
.carousel-inner img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
}
.carousel { border-radius: 12px; overflow: hidden; }
.slider-thumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.slider-thumbs img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}
.slider-thumbs img:hover,
.slider-thumbs img.active {
    opacity: 1;
    border-color: #f7931a;
}

@media (min-width: 769px) {
    .slider-container {
        max-width: 700px;
    }
    .carousel-inner img.slide-tall {
        object-position: center 80%;
    }
}

/* ── BANNER ──────────────────────────────────────────────── */
.banner-section {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 32px;
    margin: 32px auto;
    max-width: 1140px;
    text-align: center;
}
.banner-section h2 {
    color: #f0f6fc;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.banner-section p {
    color: #8b949e;
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── BRAND SECTIONS ──────────────────────────────────────── */
.brand-section {
    margin: 48px auto;
    max-width: 1140px;
    padding: 0 15px;
}
.manufacturer-title {
    color: #f0f6fc;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* ── PRODUCT CARDS ───────────────────────────────────────── */
.brand-card { margin-bottom: 40px; height: 100%; display: flex; flex-direction: column; }
.brand-card .carousel,
.brand-card .carousel-inner,
.brand-card .carousel-item,
.brand-card .product-card { height: 100%; }
.product-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
    height: auto;
    min-height: 440px;
    display: flex;
    flex-direction: column;
}
.product-card:hover { border-color: #f7931a; }
.image-wrapper { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.product-image img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin: 0 auto;
}
.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f0f6fc;
    margin: 8px 0 4px;
    text-align: center;
}
.efficiency {
    text-align: center;
    font-size: 0.8rem;
    color: #8b949e;
    margin-bottom: 8px;
}

/* ── ALGO / COIN BADGES ──────────────────────────────────── */
.algo-coin-line {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 3;
}
.algo-badge, .coin-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}
.algo-badge { background: #1a2332; color: #58a6ff; border: 1px solid #1f6feb33; }
.coin-badge  { background: #1a231a; color: #3fb950; border: 1px solid #3fb95033; }

/* ── COOLING BADGE ───────────────────────────────────────── */
.product-card { position: relative !important; }
.cooling-badge {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 5px;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    background: rgba(22, 27, 34, 0.95) !important;
    border: 1px solid #30363d !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #e6edf3 !important;
    z-index: 5 !important;
}
.cooling-badge img { width: 18px !important; height: 18px !important; flex-shrink: 0 !important; filter: brightness(0) invert(1) !important; }

/* ── PRICE ───────────────────────────────────────────────── */
.price { text-align: center; margin: 12px 0 8px; }
.price-value {
    display: block;
    color: #f7931a;
    font-size: 1.3rem;
    font-weight: 800;
}
.price-per-unit {
    display: block;
    color: #8b949e;
    font-size: 0.78rem;
    margin-top: 2px;
}
.price-per-unit .unit-text { color: #8b949e; }
.price-per-unit .unit-value { color: #c9d1d9; font-weight: 600; }

/* ── GLOBAL DISCOUNT / SALE PRICE ────────────────────────── */
.sale-price { color: #ff6b6b; display: inline !important; }
.old-price {
    font-size: 1rem;
    color: #b0b8c0;
    text-decoration: line-through;
    margin-left: 8px;
}
.discount-badge {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.img-badge-left {
    position: absolute;
    z-index: 4;
    top: -36px;
    left: -24px;
    font-size: 1.2rem;
    padding: 4px 10px;
}
/* Small cards (desktop only: min-width 992px) */
@media (min-width: 992px) {
    .col-lg-3 .img-badge-left {
        top: -30px;
        left: -16px;
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-add-to-cart,
.btn-details {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f7931a;
    color: #0d1117;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    transition: background 0.2s;
}
.btn-add-to-cart:hover,
.btn-details:hover { background: #e08810; }

/* ── CAROUSEL CONTROLS ───────────────────────────────────── */
.carousel-control-prev,
.carousel-control-next { width: 40px; opacity: 0.8; }
.carousel { position: relative; }
.carousel-control-prev,
.carousel-control-next {
    display: flex !important;
    align-items: center;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #f7931a !important;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

/* ── WHY CHOOSE US ───────────────────────────────────────── */
.bg-light {
    background: #161b22 !important;
    border-top: 1px solid #30363d;
    border-bottom: 1px solid #30363d;
    padding: 60px 0;
    margin: 48px 0;
}
.bg-light h2, .bg-light h4 {
    color: #f0f6fc !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}
.bg-light .text-muted,
.bg-light p.lead {
    color: #8b949e !important;
    font-size: 1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}
.feature-card {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    height: 100%;
    transition: border-color 0.2s;
}
.feature-card:hover { border-color: #f7931a; }
.feature-card .fa {
    font-size: 1.4rem;
    color: #f7931a;
    margin-bottom: 8px;
}
.feature-card h5 {
    color: #f0f6fc;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.feature-card p {
    color: #8b949e;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
    background: #161b22;
    border-top: 1px solid #30363d;
    padding: 48px 0 24px;
    color: #8b949e;
    font-size: 0.9rem;
}
footer h5, footer strong {
    color: #f0f6fc;
    font-size: 1rem;
    font-weight: 700;
}
footer p { color: #8b949e; line-height: 1.7; font-size: 0.85rem; }
footer a { color: #8b949e; }
footer a:hover { color: #f7931a; }
footer .list-unstyled li { margin-bottom: 6px; }
footer .list-unstyled li i { color: #f7931a; width: 20px; }

.copyright-bar {
    background: #0d1117;
    border-top: 1px solid #30363d;
    padding: 16px 0;
    text-align: center;
    color: #8b949e;
    font-size: 0.85rem;
}
.copyright-bar a { color: #8b949e; margin: 0 8px; }
.copyright-bar a:hover { color: #f7931a; }

/* ── CONTAINER ───────────────────────────────────────────── */
.container { max-width: 1200px; }

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 992px) {
    .navbar .container { flex-wrap: wrap; }
    .navbar-brand { order: 0; margin-right: auto; }
    .navbar-toggler { order: 1; margin-left: 10px; }
    .cart-icon { order: 2; margin-left: auto; }
    .navbar-collapse {
        order: 3;
        width: 100%;
        text-align: center;
        background: #161b22;
    }
    .navbar-nav { flex-direction: column; gap: 4px; padding: 10px 0; }
    .carousel-inner img { height: 280px; }
}

@media (max-width: 768px) {
    .cooling-badge { font-size: 0.65rem; padding: 2px 6px; gap: 2px; top: 6px; right: 6px; }
    .cooling-badge img { width: 12px; height: 12px; filter: brightness(0) invert(1) !important; }
    .carousel-inner img { height: 220px; }
    .banner-section { padding: 20px; margin: 20px 10px; }
    .banner-section h2 { font-size: 1.2rem; }
    .product-card { min-height: 380px; }
    .product-title { font-size: 0.9rem; }
    .bg-light { padding: 40px 0; }
    footer .col-md-4 { margin-bottom: 24px; }
    .navbar-brand img.logo-img { height: 28px; }
}
