/* ========================================
   TECH PINIK - COMPLETE STYLE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
}

/* ========== TOP BAR (Black) ========== */
.top-bar {
    background: #000000;
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
}
.top-bar .container {
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
}
.top-bar a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    transition: 0.3s;
}
.top-bar a:hover {
    color: #ffc107;
}
.top-bar i {
    margin-right: 5px;
}
.top-bar .social-icons a {
    margin-left: 12px;
    font-size: 14px;
}

/* ========== MIDDLE HEADER (White) ========== */
.middle-header {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}
.middle-header .container {
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
}
.logo img {
    max-height: 50px;
}
/* Search Box */
.search-box {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
.search-box form {
    display: flex;
    border: 2px solid #0d6efd;
    border-radius: 40px;
    overflow: hidden;
    background: #fff;
}
.search-box input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
    font-size: 14px;
}
.search-box button {
    background: #0d6efd;
    border: none;
    padding: 0 25px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}
.search-box button:hover {
    background: #0b5ed7;
}
/* Header Icons */
.header-icons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}
.icon-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    position: relative;
    transition: 0.3s;
}
.icon-item:hover {
    color: #0d6efd;
}
.icon-item i {
    font-size: 24px;
    display: block;
}
.icon-item span {
    font-size: 12px;
    display: block;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* ========== NAVBAR (Blue Sticky) ========== */
.main-navbar {
    background: #0d6efd;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.main-navbar .container {
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
}
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}
.nav-menu li a {
    display: block;
    padding: 15px 22px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
}
.nav-menu li a i {
    margin-right: 8px;
}
.nav-menu li a:hover {
    background: #0b5ed7;
}

/* ========== SLIDER ========== */
.hero-slider {
    width: 100%;
    overflow: hidden;
}
.carousel-item {
    height: 550px;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-caption {
    background: rgba(0,0,0,0.5);
    padding: 30px 40px;
    border-radius: 10px;
    bottom: 25%;
    left: 10%;
    right: auto;
    text-align: left;
    max-width: 450px;
}
.carousel-caption h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}
.carousel-caption p {
    font-size: 18px;
    margin-bottom: 20px;
}
.slider-btn {
    display: inline-block;
    background: #0d6efd;
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.slider-btn:hover {
    background: #ffc107;
    color: #000;
}
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

/* ========== SECTION TITLES ========== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    display: inline-block;
    padding-bottom: 15px;
    position: relative;
}
.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0d6efd;
}

/* ========== CATEGORY CARD ========== */
.cat-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: 0.3s;
    text-decoration: none;
    display: block;
}
.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #0d6efd;
}
.cat-card i {
    font-size: 45px;
    color: #0d6efd;
    margin-bottom: 12px;
}
.cat-card h5 {
    color: #333;
    font-size: 16px;
    margin: 0;
}
.cat-card:hover i,
.cat-card:hover h5 {
    color: #0d6efd;
}

/* ========== PRODUCT CARD ========== */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.product-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.product-body {
    padding: 18px;
}
.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.product-title a {
    text-decoration: none;
    color: #333;
}
.product-title a:hover {
    color: #0d6efd;
}
.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 12px;
}
.product-price small {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}
.product-buttons {
    display: flex;
    gap: 10px;
}
.btn-cart {
    flex: 1;
    background: #0d6efd;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 13px;
}
.btn-cart:hover {
    background: #0b5ed7;
}
.btn-view {
    flex: 1;
    background: #f0f0f0;
    color: #333;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}
.btn-view:hover {
    background: #e0e0e0;
}

/* ========== FEATURE BOX ========== */
.feature-box {
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    transition: 0.3s;
}
.feature-box:hover {
    background: #0d6efd;
    transform: translateY(-5px);
}
.feature-box i {
    font-size: 40px;
    color: #0d6efd;
    margin-bottom: 15px;
}
.feature-box h5 {
    font-size: 18px;
    margin-bottom: 5px;
}
.feature-box p {
    font-size: 13px;
    color: #666;
    margin: 0;
}
.feature-box:hover i,
.feature-box:hover h5,
.feature-box:hover p {
    color: white;
}

/* ========== OFFER BANNER ========== */
.offer-banner {
    background: linear-gradient(135deg, #0d6efd, #00c6ff);
    padding: 60px 0;
    text-align: center;
    color: white;
}
.offer-banner h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
}
.offer-banner p {
    font-size: 18px;
    margin-bottom: 25px;
}
.offer-btn {
    display: inline-block;
    background: white;
    color: #0d6efd;
    padding: 12px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.offer-btn:hover {
    background: #ffc107;
    color: #000;
}

/* ========== FOOTER ========== */
footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 60px 0 20px;
    margin-top: 50px;
}
footer h4, footer h5 {
    color: white;
    margin-bottom: 20px;
}
footer .footer-links {
    list-style: none;
    padding: 0;
}
footer .footer-links li {
    margin-bottom: 10px;
}
footer .footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}
footer .footer-links a:hover {
    color: #0d6efd;
    padding-left: 5px;
}
.social-icons-footer a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: white;
    margin-right: 8px;
    transition: 0.3s;
}
.social-icons-footer a:hover {
    background: #0d6efd;
}
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .carousel-item {
        height: 400px;
    }
    .carousel-caption {
        bottom: 15%;
        padding: 20px;
        max-width: 350px;
    }
    .carousel-caption h2 {
        font-size: 28px;
    }
    .nav-menu {
        flex-wrap: wrap;
    }
    .nav-menu li a {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    .carousel-caption {
        display: none;
    }
    .section-title h2 {
        font-size: 24px;
    }
    .header-icons {
        justify-content: center;
        margin-top: 15px;
    }
    .search-box {
        margin: 15px auto;
        max-width: 90%;
    }
    .logo {
        text-align: center;
        display: block;
    }
    .nav-menu {
        flex-direction: column;
        text-align: center;
    }
    .feature-box {
        margin-bottom: 15px;
    }
}