/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- Variabel Warna dan Spasi Global --- */
:root {
    --primary-color: #28a745; /* Hijau */
    --secondary-color: #007bff; /* Biru */
    --danger-color: #dc3545; /* Merah */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --border-color: #ddd;
}

/* --- Notifikasi Toast (DIPINDAHKAN KE ATAS UNTUK PRIORITAS PARSING) --- */
#toast-container {
    position: fixed; /* Ini yang membuatnya tetap di layar */
    bottom: 20px;    /* 20px dari bawah layar */
    right: 20px;     /* 20px dari kanan layar */
    z-index: 1000;   /* Pastikan di atas elemen lain */
    display: flex;
    flex-direction: column-reverse; /* Agar toast baru muncul di atas yang lama */
    gap: 10px;       /* Jarak antar toast */
}

.toast {
    background-color: #333; /* Warna latar belakang default yang lebih gelap */
    color: white;
    padding: 14px 18px; /* Sedikit lebih kecil dari 15px 20px sebelumnya */
    border-radius: 6px; /* Sedikit lebih kecil dari 8px untuk kesan modern */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); /* Bayangan lebih kuat */
    opacity: 0; /* Mulai dengan transparan */
    transform: translateY(20px); /* Mulai dari bawah sedikit */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out; /* Animasi masuk */
    min-width: 280px; /* Sedikit lebih lebar */
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 12px; /* Jarak antar ikon dan teks */
    font-size: 0.95em; /* Ukuran font umum toast */
}

.toast.show {
    opacity: 1; /* Tampilkan */
    transform: translateY(0); /* Geser ke posisi akhir */
}

.toast.hide {
    opacity: 0; /* Sembunyikan */
    transform: translateY(20px); /* Geser ke bawah saat hilang */
    pointer-events: none; /* Agar tidak bisa diklik saat menghilang */
}

/* Tipe-tipe Toast (warna berbeda) */
.toast.success { background-color: var(--primary-color); }
.toast.error { background-color: var(--danger-color); }
.toast.info { background-color: var(--secondary-color); }

.toast i {
    font-size: 1.1em;
    flex-shrink: 0;
}


/* --- Reset CSS dan Gaya Dasar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Utama (Navbar) --- */
.main-header {
    background-color: #fff; /* Latar putih untuk header */
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-header .container {
    padding: 0 20px; /* Pastikan padding di dalam container header */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Izinkan wrap pada layar kecil */
}

.logo img {
    height: 50px; /* Sesuaikan ukuran logo */
    max-width: 180px; /* Batasi lebar maksimum logo */
    object-fit: contain; /* Jaga rasio aspek */
}

/* Navigasi Desktop */
.desktop-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.desktop-nav ul li {
    margin-left: 25px; /* Jarak antar item menu */
}

.desktop-nav ul li a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 10px; /* Padding untuk area klik */
    border-radius: 5px;
}

.desktop-nav ul li a:hover {
    color: var(--primary-color);
    background-color: var(--light-gray);
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    margin-left: 20px; /* Jarak dari menu desktop */
}

.cart-icon a {
    font-size: 1.2em;
    color: var(--dark-gray);
    text-decoration: none;
}

.cart-icon a:hover {
    color: var(--primary-color);
}

#cart-item-count {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7em;
    padding: 3px 6px;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Tombol Toggle Mobile (Hamburger Menu) */
.mobile-nav-toggle {
    display: none; /* Sembunyikan di desktop */
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 15px; /* Jarak dari ikon keranjang */
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.mobile-nav-toggle:hover {
    color: var(--primary-color);
}

/* Navigasi Mobile */
.mobile-nav {
    display: none; /* Sembunyikan secara default */
    width: 100%;
    background-color: #fff; /* Latar putih untuk menu mobile */
    border-top: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 0; /* Reset padding */
    position: relative; /* Agar tidak tumpang tindih dengan header */
}

.mobile-nav[data-visible="true"] {
    display: block; /* Tampilkan saat data-visible="true" */
}

.mobile-nav-list {
    list-style: none;
    padding: 20px; /* Padding di dalam menu mobile */
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color); /* Garis pemisah */
    padding-bottom: 10px;
}

.mobile-nav-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-nav-list li a {
    display: block; /* Agar link mengisi seluruh lebar item */
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px; /* Padding untuk area klik */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-nav-list li a:hover {
    background-color: var(--light-gray);
}

.cart-link-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Untuk spasi antara ikon dan teks/jumlah */
}

.cart-link-mobile i {
    margin-right: 10px;
}


/* --- Hero Section --- */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay gelap */
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* --- Tombol Umum --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #0069d9;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}
.btn-danger:hover {
    background-color: #c82333;
}

/* --- Bagian Umum Halaman --- */
section {
    padding: 60px 0;
}

section h1, section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: var(--dark-gray);
}

.page-title {
    background-color: var(--light-gray);
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.page-title h1 {
    margin-bottom: 0;
}

/* --- Grid Produk & Postingan --- */
.product-grid, .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Default untuk desktop */
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column; /* Susun item secara vertikal */
    height: 100%; /* Penting agar kartu memenuhi tinggi sel grid */
}

.product-card:hover, .post-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

/* Tambahkan gaya untuk pembungkus info produk yang baru */
.product-info-wrapper {
    flex-grow: 1; /* Ini akan membuat bagian info tumbuh dan mendorong tombol ke bawah */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Agar konten di dalamnya tetap di atas */
    padding: 15px 10px 10px; /* Padding di sekitar judul, kategori, harga */
}

/* Sesuaikan margin untuk elemen di dalam product-info-wrapper agar tidak ada margin atas/bawah yang aneh */
.product-info-wrapper h3,
.product-info-wrapper .category-name,
.product-info-wrapper .price {
    margin: 0; /* Reset margin */
}
.product-info-wrapper h3 {
    margin-bottom: 5px; /* Jarak bawah dari judul ke kategori */
}
.product-info-wrapper .category-name {
    margin-bottom: 5px; /* Jarak bawah dari kategori ke harga */
}
.product-info-wrapper .price {
    margin-bottom: 0; /* Harga akan jadi elemen terakhir di wrapper, jadi margin bawahnya 0 */
}


.product-card h3 a {
    text-decoration: none;
    color: var(--text-color);
}

.product-card .price {
    font-size: 1.1em;
    color: var(--primary-color);
    font-weight: 700;
}

.product-card .category-name {
    font-size: 0.9em;
    color: #666;
}

.btn-add-to-cart {
    margin-top: auto; /* Ini akan mendorong tombol ke bagian paling bawah */
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    width: 100%;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    font-weight: 600;
    display: block;
}

.btn-add-to-cart:hover {
    background-color: #218838;
}

.post-card { /* Tambahan untuk post-card agar konsisten dengan product-card */
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.post-card img {
    width: 100%;
    height: 180px; /* atau 150px jika ingin lebih kecil */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}
.post-card .post-date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.post-card p {
    font-size: 0.95em;
    padding: 0 15px 15px;
    flex-grow: 1; /* Agar konten postingan juga mengisi ruang */
}

.post-card .read-more {
    display: block;
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    border-radius: 0 0 8px 8px;
    text-align: right;
    margin-top: auto; /* Mendorong tombol ke bawah */
}
.post-card .read-more:hover {
    background-color: #0069d9;
}

.text-center {
    text-align: center;
    margin-top: 30px;
}

/* --- Halaman Daftar Produk --- */
.product-list .container {
    display: flex;
    gap: 30px;
}
.product-list .filter-sidebar {
    flex: 0 0 250px;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.product-list .filter-sidebar h3 {
    text-align: left;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--dark-gray);
}
.product-list .filter-sidebar ul {
    list-style: none;
}
.product-list .filter-sidebar ul li {
    margin-bottom: 10px;
}
.product-list .filter-sidebar ul li a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.product-list .filter-sidebar ul li a:hover,
.product-list .filter-sidebar ul li a.active {
    background-color: var(--primary-color);
    color: white;
}
.product-list .main-content {
    flex-grow: 1;
}

/* --- Halaman Kontak --- */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding-bottom: 60px;
}

.contact-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    flex: 1 1 300px; /* Fleksibel, dengan min-width 300px */
    max-width: 350px;
}

.contact-card .contact-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.contact-card p {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

.contact-card p a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-card p a:hover {
    text-decoration: underline;
}

.contact-card .btn {
    margin-top: 15px;
}

.map-container {
    margin-top: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.contact-form-section {
    background-color: var(--light-gray);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
}
.contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form .btn-primary {
    width: auto;
    display: block;
    margin-left: auto;
}

/* --- Halaman Not Found --- */
.page-not-found {
    text-align: center;
    padding: 80px 20px;
}
.page-not-found h1 {
    font-size: 3em;
    color: var(--danger-color);
}
.page-not-found p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* --- Footer Utama --- */
.main-footer {
    background-color: var(--dark-gray);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}


/* --- Responsiveness (Media Queries) --- */

/* Untuk layar sedang hingga besar (misal: tablet portrait ke atas) */
@media (max-width: 992px) {
    /* Navbar */
    .desktop-nav {
        display: none; /* Sembunyikan navigasi desktop */
    }
    .mobile-nav-toggle {
        display: block; /* Tampilkan tombol toggle mobile */
    }
    .header-inner {
        /* Mengatur tata letak elemen header agar responsif */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .logo {
        order: 1; /* Logo di kiri */
    }
    .header-actions {
        order: 2; /* Aksi (keranjang, toggle) di kanan */
    }
    .mobile-nav {
        /* Navigasi mobile muncul di bawah header-inner */
        display: none; /* Tetap disembunyikan sampai toggle diklik JS */
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: none;
        border-top: none;
    }
    .mobile-nav[data-visible="true"] {
        display: block; /* Tampilkan saat aktif oleh JS */
    }
    .mobile-nav-list {
        padding: 15px 20px;
    }
    .mobile-nav-list li {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    /* Product Grid: 2 kolom di mobile/tablet */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Kurangi jarak antar produk */
    }
    /* Penyesuaian card produk agar gambar dan teks tidak terlalu besar di 2 kolom */
    .product-card img {
        height: 150px;
    }
    .product-card h3 {
        font-size: 1em; /* Sedikit lebih kecil dari 1.1em sebelumnya */
        margin: 10px 5px 5px;
    }
    .product-card h3 a { /* <<<--- TAMBAHKAN INI UNTUK MENGHILANGKAN GARIS BAWAH */
        text-decoration: none;
        color: inherit; /* Mengambil warna dari parent atau default */
    }
    .product-card .category-name { /* <<<--- PENYESUAIAN TAMBAHAN */
        font-size: 0.8em; /* Sedikit lebih kecil */
        margin-bottom: 5px;
    }
    .product-card .price {
        font-size: 0.95em; /* Sedikit lebih kecil dari 1em sebelumnya */
        margin-bottom: 10px;
    }
    .btn-add-to-cart {
        padding: 8px 10px;
        font-size: 0.9em;
    }

    /* Penyesuaian umum untuk layar kecil */
    section {
        padding: 40px 0; /* Kurangi padding vertikal section */
    }
    section h1, section h2 {
        font-size: 2em; /* Kurangi ukuran font judul section */
        margin-bottom: 30px;
    }
    .hero-section {
        padding: 60px 20px;
        min-height: 250px; /* Kurangi tinggi hero */
    }
    .hero-section h1 {
        font-size: 2.2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .product-list .container {
        flex-direction: column; /* Sidebar di atas konten */
    }
    .product-list .filter-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    .product-detail .product-content {
        flex-direction: column; /* Ubah ke kolom untuk mobile */
        align-items: center;
    }
    .product-detail .product-info,
    .product-detail .product-image-gallery { /* Sesuaikan lebar di mobile */
        min-width: unset;
        width: 100%; /* Default ke lebar penuh */
    }
    /* Tambahan spesifik untuk gambar utama produk di mobile */
    .product-detail .product-image-gallery {
        width: 90%; /* Contoh: 90% lebar untuk kontainer gambar */
        max-width: 350px; /* Batasi lebar absolut agar tidak terlalu besar */
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }
    .product-detail .main-image-display img {
        width: 100%; /* Gambar mengisi container barunya */
    }

    .product-detail .product-info {
        width: 90%; /* Sesuaikan lebar info produk agar serasi */
        margin-left: auto;
        margin-right: auto;
        text-align: center; /* Pusatkan teks info produk */
    }
    .product-detail h1,
    .product-detail .product-description h3 {
        text-align: center;
    }

    .product-detail .product-actions {
        flex-direction: column; /* Tombol jadi vertikal */
        align-items: center;
    }
    .product-detail .product-actions .btn {
        width: 100%;
        max-width: 300px; /* Batasi lebar maksimum tombol */
    }

    .cart-summary .btn-lg {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    .cart-summary {
        text-align: center;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .cart-item img {
        width: 80px;
        height: 80px;
    }
    .cart-item .item-total {
        width: 100%;
        text-align: right;
        margin-top: 10px;
    }
}

/* Untuk layar ponsel yang lebih kecil */
@media (max-width: 768px) {
    /* Navbar */
    .main-header .logo img {
        height: 40px;
    }
    .main-header .cart-icon a {
        font-size: 1.1em;
    }
    .mobile-nav-toggle {
        font-size: 1.3em;
    }

    /* Product Grid: Penyesuaian lebih lanjut untuk 2 kolom di layar sangat kecil */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card img {
        height: 120px;
    }
    .product-card h3 {
        font-size: 0.9em;
        margin: 8px 5px 5px;
    }
    .product-card h3 a {
        text-decoration: none;
        color: inherit;
    }
    .product-card .category-name {
        font-size: 0.75em;
        margin-bottom: 3px;
    }
    .product-card .price {
        font-size: 0.85em;
        margin-bottom: 8px;
    }
    .btn-add-to-cart {
        padding: 6px 8px;
        font-size: 0.8em;
    }

    /* Contact Page */
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    .contact-card {
        max-width: 100%;
    }
    .contact-form {
        margin: 0 10px;
        padding: 20px;
    }

    /* Penyesuaian spesifik untuk Halaman Detail Produk */
    .product-detail .price {
        font-size: 1.3em;
    }
    .product-detail .product-actions .btn {
        padding: 12px 20px;
        font-size: 1em;
    }
    .product-detail .product-description p {
        font-size: 0.95em;
    }
    .product-detail .thumbnail-gallery .thumbnail {
        width: 60px;
        height: 60px;
    }
    /* Untuk gambar postingan (blog) */
    .post-detail .post-hero-image {
        max-height: 200px;
    }
    .post-detail .post-content img {
        margin-bottom: 0.8em;
    }
}
.product-detail .product-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.product-gallery {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.product-gallery .main-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.thumbnail-list {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.thumbnail-list .thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border 0.3s ease;
}

.thumbnail-list .thumbnail.active,
.thumbnail-list .thumbnail:hover {
  border-color: var(--primary-color);
}

.product-details {
  flex: 1;
  min-width: 300px;
}

.product-title {
  font-size: 2em;
  margin: 10px 0;
}

.product-price {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.product-description h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.stock-info {
  margin-top: 10px;
  font-weight: bold;
}

.stock-info.in-stock {
  color: var(--primary-color);
}

.stock-info.out-of-stock {
  color: var(--danger-color);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}
/* --- Styling untuk Halaman Cart --- */
.cart-content {
    background-color: #fefefe;
    padding: 40px 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.cart-item .item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.cart-item .item-details {
    display: flex;
    flex-direction: column;
}

.cart-item .item-details h4 {
    margin: 0;
    font-size: 1.1em;
    color: var(--dark-gray);
}

.cart-item .item-details .price {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 5px;
}

.cart-item .item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-summary {
    text-align: right;
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.cart-summary h3 {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 10px;
}

.cart-summary .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item .item-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-summary {
        align-items: center;
        text-align: center;
    }
}
