:root {
    --primary-color: #060e24;
    --secondary-color: #17b978;
    --navy-light: #0d1b3d;
    --light-color: #faf9f6;
    --white: #ffffff;
    --text-dark: #1e293b;
    --gray-text: #64748b;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- Hero Section with Background Image (Imerejeshwa kama mwanzo) --- */
.printing-hero {
    position: relative;
    background: var(--primary-color) url('https://images.unsplash.com/photo-1513151233558-d860c5398176?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 90px 20px;
    overflow: hidden;
}

.printing-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(6, 14, 36, 0.88), rgba(6, 14, 36, 0.94));
}

.hero-content {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 25px;
    border-radius: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-tag {
    display: inline-block;
    background: rgba(23, 185, 120, 0.2);
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(23, 185, 120, 0.4);
}

.printing-hero h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.printing-hero p {
    font-size: 14px;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Catalog Section --- */
.catalog-section {
    background-color: var(--light-color);
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.catalog-title-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 700;
}

.section-subtitle {
    font-size: 12px;
    color: var(--gray-text);
}

.bag-count {
    font-size: 12px;
    background: #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Gridi ya Bidhaa (Alibaba Style kwenye Simu) */
.bags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.bag-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(23, 185, 120, 0.2);
}

.bag-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-color);
}

.bag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
}

.bag-img-container {
    width: 100%;
    height: 150px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bag-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.bag-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bag-size {
    font-size: 11px;
    color: var(--secondary-color);
    font-weight: 600;
}

.bag-info h3 {
    font-size: 13px;
    color: var(--text-dark);
    margin: 5px 0 8px 0;
    font-weight: 600;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bag-price-wrap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    margin-top: auto;
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 6px;
}

.price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.pieces {
    font-size: 10px;
    color: var(--gray-text);
    font-weight: 600;
}

.btn-quick-view {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

.btn-quick-view:hover {
    background: var(--secondary-color);
}

/* --- Why Choose Us Section --- */
.why-us-section {
    background-color: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.center-title-area {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 35px auto;
}

.center-title-area h2 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 6px;
}

.center-title-area p {
    font-size: 12px;
    color: var(--gray-text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--light-color);
    padding: 25px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(23, 185, 120, 0.1);
    color: var(--secondary-color);
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
}

.feature-card h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-card p {
    font-size: 12px;
    color: var(--gray-text);
}

/* --- How It Works Section --- */
.how-it-works-section {
    background-color: var(--primary-color);
    padding: 60px 0;
    color: var(--white);
}

.how-it-works-section .center-title-area h2 {
    color: var(--white);
}

.how-it-works-section .center-title-area p {
    color: #cbd5e1;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.step-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 12px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    font-weight: 800;
    color: rgba(23, 185, 120, 0.2);
}

.step-card h4 {
    font-size: 15px;
    color: var(--white);
    margin-bottom: 6px;
    font-weight: 600;
}

.step-card p {
    font-size: 12px;
    color: #cbd5e1;
}

/* --- Ultimate CTA Section --- */
.ultimate-cta-section {
    background-color: var(--light-color);
    padding: 50px 0;
}

.ultimate-cta-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--navy-light));
    border-radius: 16px;
    padding: 40px 30px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta-badge {
    display: inline-block;
    background: rgba(23, 185, 120, 0.2);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.cta-content-left h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cta-content-left p {
    font-size: 12px;
    color: #cbd5e1;
}

.btn-ultimate-wa {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* --- Footer --- */
.printing-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 5% 20px 5%;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--white);
}

.footer-brand h3 span {
    color: var(--secondary-color);
}

.footer-brand p {
    font-size: 12px;
    color: #94a3b8;
}

.footer-links h4 {
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 5px;
}

.footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    font-size: 11px;
    color: #94a3b8;
}

/* --- Mobile Adjustments: Alibaba Gridi & Header Safi --- */
@media(max-width: 900px) {
    .bags-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bag-img-container {
        height: 120px;
    }

    .bag-info {
        padding: 8px;
    }

    .bag-info h3 {
        font-size: 11px;
        margin: 2px 0 4px 0;
    }

    .bag-price-wrap {
        padding: 4px 6px;
        margin-bottom: 6px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .price {
        font-size: 12px;
    }

    .pieces {
        font-size: 9px;
    }

    .btn-quick-view {
        padding: 6px;
        font-size: 10px;
    }

    .ultimate-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }

    .btn-ultimate-wa {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
}

/* --- Muonekano Rasmi wa Header ya includes/header.php --- */
.printing-header {
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.header-logo h1 span {
    color: var(--secondary-color);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-nav > a, .dropbtn {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header-nav > a:hover, .header-nav a:hover, .dropbtn:hover {
    color: var(--secondary-color);
}

/* Dropdown Menu Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
}

.dropdown-content a {
    color: #cbd5e1;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: rgba(23, 185, 120, 0.15);
    color: var(--secondary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Kitufe cha Order Now kwenye Header */
.header-btn .btn-order-now {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
}

.header-btn .btn-order-now:hover {
    background-color: #129c65;
}

/* Responsive ya Header kwenye Simu */
@media(max-width: 900px) {
    .printing-header {
        flex-direction: column;
        gap: 15px;
        padding: 12px 20px;
    }
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* --- Mobile Hamburger Menu & Dropdown Fix --- */

/* Kitufe cha vimistari vitatu (Kinajificha kwenye Laptop/PC) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    padding: 0;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Responsive ya Simu (chini ya 900px) */
@media(max-width: 900px) {
    .printing-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        position: relative;
    }

    /* Onyesha kitufe cha vimistari vitatu kwenye simu */
    .menu-toggle {
        display: flex;
    }

    /* Ficha menyu ya kawaida kwenye simu mpaka pale kitufe kitakapobonyezwa au tumia click dropdown */
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: none; /* Inajificha mpaka iitwe */
    }

    /* Hapa tunawezesha menyu kuonekana ikiwa active au kwa kugusa */
    .header-nav.active {
        display: flex;
    }

    /* Kitufe cha Order Now kinakaa ndani ya menu kwenye simu au pembeni ya toggle */
    .header-btn {
        display: none; /* Kikiwa kimejumuishwa kwenye nav au unaweza kukiacha */
    }

    /* Kurekebisha Dropdown kwenye Simu (Iweze kufunguka kwa urahisi) */
    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: relative;
        top: 0;
        left: 0;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.03);
        border: none;
        padding-left: 15px;
        margin-top: 8px;
        display: none; /* Itafunguka ukigusa au kikiwa active */
    }

    /* Kwenye simu tunafanya dropdown ionekane ikibonyezwa au tukitumia toggle ya JS */
    .dropdown.active .dropdown-content,
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* --- Muonekano Safi wa Ukurasa wa Quick View / Order (PC & Mobile) --- */
.order-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    align-items: center;
}

.order-img-box {
    width: 100%;
    height: 380px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.order-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.order-details-box {
    display: flex;
    flex-direction: column;
}

.order-details-box .bag-badge {
    display: inline-block;
    background: rgba(23, 185, 120, 0.15);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
    text-transform: uppercase;
}

.order-details-box h2 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

/* Gridi ya Taarifa za Bidhaa (Specs) */
.spec-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}

.spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-item span {
    color: var(--gray-text);
}

.spec-item strong {
    color: var(--text-dark);
}

.order-instruction {
    font-size: 12px;
    color: var(--gray-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Vifungo vya kuchukua hatua (Actions) */
.order-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-whatsapp-order {
    background-color: #25D366;
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-order:hover {
    background-color: #1ebe57;
}

.btn-back-catalog {
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    transition: background 0.3s;
}

.btn-back-catalog:hover {
    background-color: #f1f5f9;
}

/* --- Responsive ya Simu (Mobile View) --- */
@media(max-width: 900px) {
    .order-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .order-img-box {
        height: 250px;
    }

    .order-details-box h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .spec-grid {
        padding: 15px;
    }
}

.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    z-index: 1002;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: 0.3s;
}

@media(max-width: 900px) {
    .printing-header {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .menu-icon {
        display: flex;
    }

    .header-btn {
        display: none;
    }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color, #0f172a);
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        max-height: 0;
        overflow: hidden;
        padding: 0 20px;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    /* Hapa ndipo menyu inashuka ukibonyeza vimistari */
    .header-nav.active {
        max-height: 400px;
        padding: 20px;
    }
}