/* ==========================================================================
   1. VARIABLE & DESIGN SYSTEM
   (Pusat pengaturan warna, font, dan ukuran global)
   ========================================================================== */
   :root {
    /* --- Palet Warna Utama --- */
    --primary: #EC4899;       /* Pink Utama */
    --primary-surface: #FCE7F3; /* Pink Sangat Muda (Background elemen aktif) */
    --primary-hover: #DB2777;   /* Pink Gelap (Saat hover) */
    --secondary: #AB54F2;       /* Ungu */
    
    /* --- Gradients --- */
    --hero-gradient: linear-gradient(180deg, #d12888 0%, #4a148c 100%);
    --cta-gradient: linear-gradient(180deg, #EC4899 0%, #6D28D9 100%);
    
    /* --- Warna Teks --- */
    --title: #1E293B;       /* Hitam Kebiruan (Judul) */
    --text-primary: #334155; /* Abu Gelap (Teks biasa) */
    --text-secondary: #64748B; /* Abu Terang (Keterangan) */
    
    /* --- Warna Sistem --- */
    --border: #E2E8F0;      /* Garis Batas */
    --background: #F8FAFC;  /* Latar Belakang Halaman */
    --white: #FFFFFF;
    --success: #22C55E;     /* Hijau (Sukses/Baru) */
    --warning: #F59E0B;     /* Kuning (Peringatan/Best Seller) */
    
    /* --- Typography --- */
    --font-heading: 'Merriweather', serif; 
    --font-body: 'Poppins', sans-serif;       
    
    /* --- Ukuran --- */
    --container-width: 1200px;
    --radius-card: 16px;
    --radius-btn: 8px;
}

/* ==========================================================================
   2. GLOBAL RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 14px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--title);
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* --- Utilities (Kelas Bantuan) --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-pad {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.mb-40 {
    margin-bottom: 40px;
}

/* ==========================================================================
   3. COMPONENTS (BUTTONS)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Tombol Putih (Biasanya di Hero) */
.btn-white {
    background: var(--white);
    color: #d12888;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Tombol Pink Utama (CTA) */
.btn-pink {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.4);
}

.btn-pink:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.5);
}

.btn-block {
    width: 100%;
    border-radius: 8px;
}

.btn-white-outline {
    background: #fff;
    border: 1px solid #E2E8F0;
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-white-outline:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
}

.btn-grey {
    background: #E2E8F0;
    border: none;
    padding: 10px 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 6px;
}

/* ==========================================================================
   4. NAVBAR (DESKTOP)
   ========================================================================== */
.navbar {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--title);
    font-size: 0.95rem;
}

.sub-brand {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.search-bar {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 20px;
    padding-right: 45px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: var(--white);
    outline: none;
    transition: 0.3s;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
}

.nav-catalog {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--title);
    white-space: nowrap;
}

.nav-catalog:hover {
    color: var(--primary);
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cart-btn {
    position: relative;
    font-size: 1.6rem;
    color: var(--title);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.cart-btn:hover {
    transform: scale(1.05);
    color: var(--primary);
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid #fff;
}

/* ==========================================================================
   5. HERO SECTION (DESKTOP)
   (Bagian Banner Utama di Halaman Depan)
   ========================================================================== */
.hero {
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
    height: 550px;
    display: flex;
    align-items: center;
    padding: 0;
}

/* Pattern Doodle di Background */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../assets/Doodles.png');
    background-size: 380px auto;
    background-repeat: repeat;
    background-position: center top;
    opacity: 0.2;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.hero-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    z-index: 2;
}

/* SLIDE 1 (Ada Teks & Gambar Buku) */
.hero-item.standard-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 0 24px;
}

.hero-text {
    z-index: 5;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 45px;
    opacity: 0.95;
    max-width: 90%;
    color: var(--white);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-image {
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Ukuran Gambar Hero (Desktop) */
.img-tall {
    max-height: 450px;
    max-width: 550px;
}

/* SLIDE 2 & 3 (Banner Full Image) */
.hero-item.hero-full-img {
    display: block;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

/* Indikator Slider (Titik/Garis Bawah) */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 20;
}

.indicator {
    width: 20px;
    height: 6px;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.indicator.active {
    width: 40px;
    background: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   6. HOME PAGE SECTIONS
   (Kategori, Produk, Call to Action)
   ========================================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cat-card {
    height: 160px;
    border-radius: var(--radius-card);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    color: #fff;
    font-weight: 700;
    position: relative;
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 1;
}

.cat-card h5 {
    position: relative;
    z-index: 2;
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.split-section {
    display: flex;
    gap: 40px;
    align-items: stretch;
    width: 100%;
    margin-bottom: 60px;
    position: relative;
}

.split-info {
    flex: 0 0 350px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

/* Efek Blob (Bulatan Abstrak) */
.blob {
    position: absolute;
    background-color: #EC4899;
    border-radius: 50%;
    opacity: 0.08;
    z-index: -1;
}

.blob-1 {
    width: 250px;
    height: 250px;
    top: -30px;
    left: -50px;
}

.blob-2 {
    width: 150px;
    height: 150px;
    bottom: 10px;
    right: 20px;
}

.blob-3 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: 10px;
}

.split-info h3 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.1;
    color: #1E293B;
    margin-bottom: 5px;
    font-weight: 700;
}

.split-info h3 span {
    color: #EC4899;
    display: block;
    font-weight: 700;
}

.split-info p {
    color: #64748B;
    margin-top: 20px;
    margin-bottom: 35px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-products {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.scroll-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.scroll-btn.prev {
    left: -22px;
}

.scroll-btn.next {
    right: -10px;
}

.product-grid.horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 30px 10px 50px 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
}

.product-grid.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.product-grid.horizontal-scroll .card {
    flex: 0 0 auto;
    width: 260px;
    min-width: 260px;
}

/* ==========================================================================
   7. PRODUCT CARD STYLE
   (Tampilan Kotak Produk Buku)
   ========================================================================== */
.card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-card);
    padding: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -10px rgba(236, 72, 153, 0.25);
}

/* Badge (Pojok Kiri Atas) */
.badge {
    position: absolute;
    top: 20px;
    left: -32px;
    width: 120px;
    padding: 6px 0;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-new {
    background-color: var(--success);
}

.badge-best {
    background-color: var(--warning);
}

/* Gambar Buku di Card */
.card-img {
    height: 300px;
    background: #F8FAFC;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 14px;
    overflow: hidden;
}

.card-img img {
    max-height: 100%;
    width: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Typography Card */
.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--title);
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-author {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 8px;
    font-weight: 500;
}

.card-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.15rem;
    margin-top: auto;
    margin-bottom: 16px;
}

/* Tombol Aksi di Card */
.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
}

.btn-detail {
    flex: 1;
    background: var(--primary);
    color: #fff;
    padding: 10px 0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: 0.3s;
    border: none;
    display: block;
}

.btn-detail:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1.3rem;
}

.btn-card-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: rotate(10deg);
}

.card-actions .btn-sm {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-btn);
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.card-actions .btn-sm:hover {
    background: var(--primary-hover);
}

/* --- CALL TO ACTION BOX --- */
.cta-box {
    background: var(--cta-gradient);
    border-radius: 20px;
    padding: 80px 30px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.cta-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../assets/pattern-cubes.png');
    opacity: 0.1;
    pointer-events: none;
}

.cta-box h2,
.cta-box p {
    color: #ffffff !important;
    position: relative;
    z-index: 5;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--border);
    padding-top: 60px;
    margin-top: 60px;
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    border-top: 1px solid var(--border);
    padding: 25px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ==========================================================================
   9. KERANJANG & CHECKOUT (LAYOUT UMUM)
   ========================================================================== */
.cart-page-header,
.page-header-wrapper {
    margin-bottom: 30px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--title);
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

/* Layout Grid Desktop (Kiri: Item, Kanan: Summary) */
.cart-layout,
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* --- Tampilan Item di Keranjang (List Mode) --- */
.cart-control-bar {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-text-delete {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.btn-text-delete:hover {
    color: #ef4444;
}

.cart-item-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    transition: 0.2s;
    position: relative;
}

.cart-item-card.selected {
    border: 2px solid var(--primary) !important;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
}

.item-img {
    width: 80px;
    height: 100px;
    background: #F8FAFC;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.item-img img {
    max-height: 100%;
    width: auto;
}

.item-details,
.co-details {
    flex: 1;
}

.badge-mini {
    display: inline-block;
    border: 1px solid var(--success);
    color: var(--success);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 5px;
}

.item-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--title);
    margin-bottom: 4px;
    line-height: 1.2;
}

.item-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    margin-left: auto;
}

.icon-trash {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.2s;
}

.icon-trash:hover {
    color: #ef4444;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    background: #fff;
    border: none;
    width: 28px;
    height: 28px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #F1F5F9;
}

.qty-val {
    width: 30px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--title);
    border: none;
    outline: none;
}

/* --- Box Ringkasan (Kanan) --- */
.cart-summary-box,
.checkout-summary-box,
.checkout-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.checkout-sidebar {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.summary-title,
.cart-summary-box h3,
.checkout-summary-box h3,
.checkout-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-row.total,
.total-row {
    font-weight: 700;
    color: var(--title) !important;
    font-size: 1.1rem;
    border-top: 1px dashed #E2E8F0;
    padding-top: 15px;
    margin-top: 10px;
}

.price-total,
.final-price {
    font-size: 1.3rem;
    font-weight: 700 !important;
    color: var(--primary) !important;
}

/* ==========================================================================
   10. FORM & INPUT STYLE
   ========================================================================== */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--title);
}

.form-input,
.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
}

.form-input:focus,
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

textarea.form-control,
textarea.form-input {
    resize: vertical;
}

/* ==========================================================================
   11. CHECKOUT SPECIFIC STYLE
   ========================================================================== */
.co-item {
    display: flex;
    gap: 15px;
    border-bottom: 1px dashed #E2E8F0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.co-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.co-img {
    width: 70px;
    height: 90px;
    background: #F8FAFC;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.co-img img {
    max-height: 100%;
    width: auto;
}

.co-details h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.co-author {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.co-price {
    color: var(--primary);
    font-weight: 700;
}

.co-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 0.9rem;
}

.co-subtotal b {
    color: var(--primary);
}

/* Opsi Pembayaran (Bank) */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-option {
    cursor: pointer;
    position: relative;
}

.payment-option input {
    display: none;
}

.payment-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: 0.2s;
    background: #fff;
    text-align: center;
}

.payment-option input:checked+.payment-box {
    border-color: var(--primary);
    background: var(--primary-surface);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.15);
}

.payment-option:hover .payment-box {
    border-color: var(--primary);
}

.payment-detail-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.upload-zone {
    border: 2px dashed #E2E8F0;
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.check-row input {
    margin-top: 4px;
    accent-color: var(--primary);
}

.btn-checkout {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-checkout:hover {
    background: var(--primary-hover);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   12. RESPONSIVE MOBILE (MAX 900PX)
   ========================================================================== */
@media (max-width: 900px) {

    /* --- HIDE FOOTER ONLY ON CART PAGE --- */
    body:has(.cart-layout) footer {
        display: none !important;
    }

    /* --- NAVBAR MOBILE --- */
    .navbar {
        padding: 10px 0;
        background: #fff;
        overflow: hidden;
    }

    .nav-container {
        display: flex;
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 8px;
        padding: 0 12px;
        width: 100%;
        justify-content: space-between;
    }

    .nav-left {
        flex: 0 0 auto;
        margin: 0;
    }

    .logo-img {
        height: 32px;
        width: auto;
    }

    .logo-text {
        display: none;
    }

    .nav-center {
        display: flex;
        flex: 1;
        margin: 0;
        padding: 0;
        min-width: 0;
        align-items: center;
        gap: 5px;
    }

    .search-bar {
        width: 100%;
        flex: 1;
    }

    .search-input {
        width: 100%;
        height: 36px;
        padding: 6px 30px 6px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .search-icon {
        right: 8px;
        font-size: 1rem;
    }

    .nav-catalog span {
        display: none;
    }

    .nav-right {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        margin-left: 0;
    }

    .cart-btn {
        font-size: 1.4rem;
    }

    .badge-count {
        top: -4px;
        right: -6px;
        width: 14px;
        height: 14px;
        font-size: 0.6rem;
    }

    /* --- HERO MOBILE FIX --- */
    .hero {
        height: auto;
        margin-bottom: 40px;
        background: var(--hero-gradient);
        display: block;
        position: relative;
    }

    .hero::before {
        display: block;
        opacity: 0.2;
    }

    .hero-slider {
        position: relative;
        width: 100%;
        min-height: 220px;
        overflow: hidden;
    }

    .hero-item.standard-slide {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        align-items: center;
        padding: 20px;
        background: transparent;
    }

    .hero-text h1 {
        font-size: 0.9rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .hero-text .btn {
        padding: 5px 12px;
        font-size: 0.65rem;
        border-radius: 6px;
        height: auto;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
    }

    .img-tall {
        max-height: 110px; /* Ukuran Gambar Hero di Mobile */
        width: auto;
        object-fit: contain;
    }

    .hero-text {
        width: 65%;
        margin: 0;
        text-align: left;
        z-index: 5;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-text p {
        display: block;
        font-size: 0.6rem;
        margin-bottom: 8px;
        line-height: 1.2;
        opacity: 0.9;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-item.hero-full-img {
        padding: 0 !important;
    }

    .banner-full {
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 0;
    }

    .slider-indicators {
        bottom: 8px;
    }

    .indicator {
        width: 15px;
        height: 4px;
    }

    .indicator.active {
        width: 30px;
    }

    /* --- HOME SECTIONS MOBILE --- */
    .category-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 5px 15px 15px 15px;
    }

    .category-grid::-webkit-scrollbar {
        display: none;
    }

    .cat-card {
        min-width: 200px;
        width: 230px;
        height: 150px;
        flex: 0 0 auto;
        border-radius: 12px;
        scroll-snap-align: start;
    }

    .cat-card h5 {
        font-size: 0.95rem;
    }

    .section-products {
        width: 100%;
    }

    .scroll-btn {
        display: none;
    }

    .product-grid.horizontal-scroll {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        padding: 10px 15px 30px 15px;
        scroll-snap-type: x mandatory;
        width: 100%;
    }

    .product-grid.horizontal-scroll .card {
        min-width: 210px;
        width: 210px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .card-img {
        height: 220px;
    }

    .cta-box {
        padding: 40px 20px;
        margin-bottom: 30px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .split-section {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .split-info {
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    /* --- LAYOUT UTAMA FULL WIDTH --- */
    .section-pad {
        padding: 0 15px !important;
    }

    .cart-page-header {
        display: block;
        text-align: center;
        margin-bottom: 20px;
        padding-top: 10px;
    }

    .page-title {
        font-size: 18px;
        border-bottom: none;
        display: inline-block;
        position: relative;
        padding-bottom: 5px;
    }

    .page-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background-color: var(--primary);
    }

    .cart-layout,
    .checkout-container {
        display: block !important;
        width: 100% !important;
        padding-bottom: 220px !important; /* Space extra untuk panel sticky */
        gap: 15px;
    }

    .checkout-left,
    .checkout-sidebar {
        width: 100%;
        margin: 0;
    }

    .checkout-sidebar {
        margin-top: 20px;
        position: static !important;
    }

    /* --- ITEM KERANJANG (GAMBAR BESAR MOBILE) --- */
    .cart-control-bar {
        border-radius: 10px;
        margin-bottom: 15px;
        padding: 12px 15px;
        border: 1px solid #eee;
        box-shadow: none;
    }

    .cart-item-card {
        padding: 15px;
        margin-bottom: 15px;
        border: 1px solid #eee;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
        display: grid;
        grid-template-columns: 30px 110px 1fr; /* Kolom Gambar 110px */
        gap: 15px;
        align-items: flex-start;
        position: relative;
        width: 100%;
        box-sizing: border-box;
        padding-bottom: 50px;
    }

    .checkbox-wrapper {
        grid-column: 1;
        margin-top: 35px;
    }

    .item-img {
        grid-column: 2;
        width: 110px; /* Gambar Besar */
        height: 150px;
        background: #F8FAFC;
        border-radius: 6px;
        flex-shrink: 0;
        overflow: hidden;
    }

    .item-details {
        grid-column: 3;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .item-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .item-author {
        font-size: 0.8rem;
        color: #94A3B8;
        margin-bottom: 8px;
    }

    .item-price {
        font-size: 1rem;
        color: var(--primary);
        font-weight: 700;
        margin-bottom: 5px;
        display: block;
    }

    .item-actions {
        position: absolute;
        bottom: 15px;
        right: 15px;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-direction: row-reverse;
        width: auto;
    }

    .icon-trash {
        font-size: 1.2rem;
        color: #1E293B;
        margin-right: 5px;
        background: none;
        border: none;
    }

    .qty-control {
        height: auto;
        width: auto;
        margin: 0;
        border: none;
        background: transparent;
        gap: 8px;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
        padding: 0;
        border-radius: 50%;
        border: 1px solid #CBD5E1;
        background: #fff;
        color: #64748B;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .qty-val {
        width: 25px;
        font-size: 14px;
        border: none;
        background: transparent;
    }

    /* --- STICKY SUMMARY BOTTOM --- */
    .cart-summary-box {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 1000;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        margin: 0;
        border-top: 1px solid #eee;
    }

    .cart-summary-box h3 {
        font-size: 1rem;
        margin-bottom: 15px;
        border: none;
        padding: 0;
        display: block;
    }

    .cart-summary-box .summary-row {
        display: none;
    }

    .cart-summary-box .summary-row.total,
    .cart-summary-box .summary-row.total-row {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        border: none !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 15px;
    }

    .cart-summary-box .summary-row.total span:first-child {
        font-weight: 400;
        color: #64748B;
        font-size: 0.95rem;
    }

    .price-total {
        font-size: 1.2rem;
        font-weight: 700;
        color: #000 !important;
    }

    .btn-checkout {
        padding: 14px;
        width: 100%;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* --- CHECKOUT PAGE MOBILE --- */
    .checkout-summary-box,
    .checkout-card {
        position: static;
        margin-top: 20px;
        border-radius: 12px;
        box-shadow: none;
        border: 1px solid #E2E8F0;
    }

    .checkout-container {
        padding-bottom: 40px !important;
    }

    /* Gambar Besar di Checkout */
    .co-item {
        display: grid;
        grid-template-columns: 100px 1fr; /* Kolom Gambar 100px */
        gap: 15px;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .co-img {
        width: 100px;
        height: 140px;
        flex-shrink: 0;
        border-radius: 8px;
        background: #F8FAFC;
    }

    .co-details h4 {
        font-size: 0.95rem;
    }

    .co-author {
        font-size: 0.8rem;
    }

    .co-price {
        font-size: 0.9rem;
    }

    .co-meta {
        grid-column: 2;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }

    .co-qty,
    .co-subtotal {
        font-size: 0.85rem;
    }

    .payment-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .payment-box {
        font-size: 0.9rem;
        padding: 10px;
    }
}