:root {
    --primary-color: #28a745;
    --secondary-color: #218838;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --font-color: #495057;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white-color);
    color: var(--font-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    line-height: 1.2;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s ease infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--white-color);
    z-index: 1000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.navbar-container {
    background: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--font-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-extra .cart-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}

.cart-counter {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    padding-top: 80px;
}

.hero-fullscreen {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlideshow 18s linear infinite;
}
.hero-slider .slide:nth-child(2) { animation-delay: 6s; }
.hero-slider .slide:nth-child(3) { animation-delay: 12s; }

@keyframes fadeSlideshow {
    0% { opacity: 0; transform: scale(1.1); }
    8.33% { opacity: 1; transform: scale(1); }
    33.33% { opacity: 1; transform: scale(1); }
    41.66% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; }
}

.hero-fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--white-color);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white-color);
    font-size: 2rem;
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -15px); }
    60% { transform: translate(-50%, -8px); }
}

.operating-hours {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}
.operating-hours ul {
    list-style: none;
    padding: 0;
}
.operating-hours ul li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.operating-hours ul li:last-child {
    border-bottom: none;
}

.facility-slider {
    width: 100%;
    height: 400px;
}
.facility-slider .swiper-slide {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.facility-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.facility-slider .swiper-slide:hover img {
    transform: scale(1.05);
}
.facility-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white-color);
    padding: 20px 15px 15px;
    font-weight: 500;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 50px 0 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer-column p {
    color: #ccc;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #495057;
}


.profile-bibit-page {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.bibit-profile-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 3rem;
    align-items: stretch;
}

.bibit-profile-card.reverse {
    flex-direction: row-reverse;
}

.bibit-photo {
    flex-basis: 40%;
}

.bibit-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bibit-details {
    flex-basis: 60%;
    padding: 2.5rem;
}

.bibit-details h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.bibit-details .common-name {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: -5px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.bibit-details .description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.quality-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.quality-list {
    list-style: none;
    padding: 0;
}

.quality-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 0.75rem;
}

.quality-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

@media (max-width: 992px) {
    .bibit-profile-card,
    .bibit-profile-card.reverse {
        flex-direction: column;
    }
}


.partnership-page {
    padding: 80px 0;
}

.partnership-intro {
    margin-bottom: 4rem;
}

.benefits-container {
    margin-top: 3rem;
}

.benefit-card {
    padding: 2rem;
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.partner-types-section {
    margin-top: 4rem;
    padding: 2.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.partner-types-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.partner-list {
    list-style: none;
    padding-left: 0;
}

.partner-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 1rem;
}

.partner-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 4px;
}

.partnership-form-section .form-wrapper {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.documentation-page {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.documentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.doc-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.doc-media {
    position: relative;
    height: 220px;
}

.doc-media img,
.doc-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.doc-item:hover .doc-overlay {
    opacity: 1;
}

.doc-item:hover .doc-overlay.video {
    opacity: 0;
}

.doc-content {
    padding: 1.5rem;
}

.doc-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.doc-content p {
    font-size: 0.95rem;
    color: #6c757d;
}


.doc-item .swiper {
    width: 100%;
    height: 250px;
}

.doc-item .swiper-slide img,
.doc-item .swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-item .swiper-button-next,
.doc-item .swiper-button-prev {
    color: #ffffff;
    background-color: rgba(0,0,0,0.3);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.doc-item .swiper-button-next:hover,
.doc-item .swiper-button-prev:hover {
    background-color: rgba(0,0,0,0.6);
}

.doc-item .swiper-button-next::after,
.doc-item .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 900;
}

.doc-item .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.7;
}

.doc-item .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}


.about-page {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
}

.team-member-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.member-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.member-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.member-info .member-role {
    color: var(--primary-color);
    font-weight: 500;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== PRODUCTS STYLING ===== */
.container-fluid.py-5 {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4a9c5f;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4a9c5f;
}

.product-stock {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-actions .btn-outline {
    border: 2px solid #4a9c5f;
    color: #4a9c5f;
    background: transparent;
}

.product-actions .btn-outline:hover {
    background: #4a9c5f;
    color: white;
}

.product-actions .btn-primary {
    background: #4a9c5f;
    border: 2px solid #4a9c5f;
    color: white;
}

.product-actions .btn-primary:hover {
    background: #3a7c4f;
    border-color: #3a7c4f;
    transform: translateY(-2px);
}

.alert-info {
    background-color: #e8f4fd;
    border: 1px solid #b8daff;
    color: #004085;
    border-radius: 8px;
    padding: 1.25rem;
}

/* ===== CART/CHECKOUT STYLING ===== */
.checkout-page {
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.checkout-form, .order-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.checkout-form h4, .order-summary h4 {
    color: #2c5530;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #4a9c5f;
    box-shadow: 0 0 0 0.2rem rgba(74, 156, 95, 0.25);
}

.btn-primary {
    background: #4a9c5f;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #3a7c4f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item strong {
    color: #2c5530;
    font-weight: 600;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 0;
    margin-top: 1.5rem;
    border-top: 2px solid #e9ecef;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c5530;
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #4a9c5f;
    margin-bottom: 1.5rem;
}

.success-title {
    color: #2c5530;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===== CART DRAWER STYLING ===== */
#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    transition: opacity 0.3s ease;
}

#cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: white;
    z-index: 1050;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.cart-header h3 {
    margin: 0;
    color: #2c5530;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: #2c5530;
}

.cart-content {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    margin-left: 1rem;
    flex-grow: 1;
}

.cart-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #2c5530;
    font-weight: 600;
}

.cart-item-price {
    color: #4a9c5f;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item-controls button:hover {
    background: #e9ecef;
}

.cart-item-quantity {
    margin: 0 0.5rem;
    font-weight: 600;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5530;
}

.checkout-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

/* ===== TOAST STYLING ===== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: #4a9c5f;
    color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 300px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: #dc3545;
}

/* ===== RESPONSIVE STYLING ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .checkout-form, .order-summary {
        padding: 1.5rem;
    }
    
    #cart-drawer {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 576px) {
    .container-fluid.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .checkout-page .row {
        flex-direction: column-reverse;
    }
    
    .checkout-page .col-lg-8 {
        margin-bottom: 1.5rem;
    }
}

/* ===== CART DRAWER STYLING ===== */
#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    transition: opacity 0.3s ease;
}

#cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: white;
    z-index: 1050;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.cart-header h3 {
    margin: 0;
    color: #2c5530;
    font-weight: 600;
    font-size: 1.4rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    background: #e9ecef;
    color: #2c5530;
}

.cart-content {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    overflow-y: auto;
}

.cart-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.cart-empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.cart-empty-state p {
    margin: 0;
    font-size: 1.1rem;
}

.cart-item {
    display: flex;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-details {
    margin-left: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #2c5530;
    font-weight: 600;
    line-height: 1.3;
}

.cart-item-price {
    color: #4a9c5f;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.quantity-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #495057;
}

.quantity-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.quantity-btn:disabled {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #adb5bd;
    cursor: not-allowed;
}

.cart-item-quantity {
    margin: 0 0.5rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: #2c5530;
}

.remove-item-btn {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #e53e3e;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.remove-item-btn:hover {
    background: #fed7d7;
    border-color: #feb2b2;
}

.cart-item-stock {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #495057;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c5530;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.checkout-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: #4a9c5f;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn:hover {
    background: #3a7c4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 156, 95, 0.3);
}

.checkout-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.continue-shopping {
    text-align: center;
    margin-top: 1rem;
}

.continue-shopping-btn {
    background: none;
    border: none;
    color: #4a9c5f;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.continue-shopping-btn:hover {
    color: #3a7c4f;
}

/* Cart counter badge */
.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Animation for cart items */
.cart-item-enter {
    opacity: 0;
    transform: translateX(20px);
}

.cart-item-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.cart-item-exit {
    opacity: 1;
    transform: translateX(0);
}

.cart-item-exit-active {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    #cart-drawer {
        width: 100%;
        right: -100%;
    }
    
    .cart-header {
        padding: 1.25rem;
    }
    
    .cart-content {
        padding: 1rem;
    }
    
    .cart-item {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-footer {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .cart-header h3 {
        font-size: 1.25rem;
    }
    
    .cart-item-name {
        font-size: 0.95rem;
    }
    
    .cart-total {
        font-size: 1.2rem;
    }
    
    .checkout-btn {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

/* Scrollbar styling for cart content */
.cart-content::-webkit-scrollbar {
    width: 6px;
}

.cart-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cart-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.cart-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}