/* 
 * Fast & Fresh - Main Stylesheet
 * Primary Color: #1f7a3f (Success Green)
 * Secondary Color: #f8fafc (Light Gray)
 * Accent Color: #f4b400 (Warning Yellow)
 */

/* Global Styles */
:root {
    --primary-color: #1f7a3f;
    --primary-hover: #176533;
    --secondary-color: #f8fafc;
    --accent-color: #f4b400;
    --dark-color: #0f172a;
    --light-color: #ffffff;
    --danger-color: #dc3545;
    --success-color: #1f7a3f;
    --warning-color: #f4b400;
    --info-color: #17a2b8;
    --body-bg: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    --transition: all 0.3s ease;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--body-bg);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

main {
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 12px;
    border-color: var(--border-color);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(31, 122, 63, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(31, 122, 63, 0.15);
}

.input-group > .form-control,
.input-group > .form-select {
    border-radius: 12px 0 0 12px;
}

.input-group > .btn {
    border-radius: 0 12px 12px 0;
}

/* Buttons */
.btn {
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary, .btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-success:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 122, 63, 0.25);
}

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-success:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-success,
.btn-outline-success:hover {
    border-width: 1px;
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.top-bar {
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
}

.top-bar a {
    color: rgba(255,255,255,.92);
}

.top-bar a:hover {
    color: #ffffff;
    opacity: 0.95;
}

.top-bar .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.top-bar .social-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 60%;
}

/* Hero Section */
.hero-section {
    background: radial-gradient(1000px 600px at 15% 15%, rgba(255, 214, 102, 0.22), rgba(255, 214, 102, 0) 60%),
                radial-gradient(900px 520px at 85% 20%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%),
                linear-gradient(135deg, #0f5132 0%, #198754 55%, #146c43 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    max-width: 640px;
    height: auto;
    margin-left: auto;
    filter: drop-shadow(0 22px 50px rgba(0, 0, 0, 0.28));
    transform: translate(10px, 8px);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-buttons .btn {
    border-radius: 14px;
}

.hero-buttons .btn-light {
    background: #ffffff;
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    color: #0f5132;
    font-weight: 700;
}

.hero-buttons .btn-outline-light {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.55);
    color: rgba(255, 255, 255, 0.92);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.94;
    max-width: 520px;
}

/* Features Section */
.feature-box {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.section-header-wrapper {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.section-header-wrapper .section-title {
    margin-bottom: 1rem;
}

.section-header-wrapper p {
    margin-bottom: 0;
}

/* Products Section */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    padding-bottom: 0.75rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: none;
    letter-spacing: -0.02em;
}

.section-header p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: -0.5rem;
}

.category-card {
    background: #fff;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    border-color: rgba(25, 135, 84, 0.2);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 135, 84, 0.15);
}

.category-icon i {
    color: var(--primary-color);
}

/* Categories page styling */
.categories-page .card {
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.categories-page .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    border-left-color: #146c43;
}

.categories-page .text-dark {
    color: var(--text-color) !important;
    font-weight: 600;
}

.categories-page .badge {
    background: var(--primary-color) !important;
}

/* Products page sidebar categories */
.products-page .badge.bg-primary {
    background: var(--primary-color) !important;
}

.products-page .list-group-item {
    transition: var(--transition);
}

.products-page .list-group-item:hover {
    background: rgba(25, 135, 84, 0.05);
}

.products-page .list-group-item.active {
    background: rgba(25, 135, 84, 0.15);
    border-color: rgba(25, 135, 84, 0.3);
    color: var(--primary-color);
    font-weight: 600;
}

/* About page feature boxes enhancement */
.about-page .feature-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
}

.about-page .feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.15);
    border-color: rgba(25, 135, 84, 0.2);
}

/* Contact page cards enhancement */
.contact-page .card {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
}

.contact-page .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.15);
    border-color: rgba(25, 135, 84, 0.2);
}

/* Order page cards enhancement */
.order-page .card {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
}

.order-page .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.15);
    border-color: rgba(25, 135, 84, 0.2);
}

/* Receipt page cards enhancement */
.receipt-page .card {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
}

.receipt-page .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.15);
    border-color: rgba(25, 135, 84, 0.2);
}

.receipt-page .table {
    margin-bottom: 0;
}

.receipt-page .table th {
    background: rgba(25, 135, 84, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #146c43);
    border-radius: 2px;
}

.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 30px;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.row.product-card {
    border: 0;
    box-shadow: none;
    background: transparent;
    margin-bottom: 0;
    height: auto;
    overflow: visible;
    flex-direction: row;
}

.product-card {
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    border-color: rgba(25, 135, 84, 0.2);
}

.row.product-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.product-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.wishlist-btn {
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.sale {
    background: var(--danger-color);
}

.product-badge.new {
    background: var(--info-color);
}

.product-detail-page .product-title {
    font-size: 1.75rem;
    line-height: 1.25;
}

.product-detail-page .price {
    font-size: 1.35rem;
}

.product-detail-page .btn {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
}

.product-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price del {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text:before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    left: -1rem;
    top: -1rem;
    color: rgba(40, 167, 69, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    padding: 2px;
}

.author-info h5 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Products page cards - Base styles */
.products-page .card-img-top {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

/* Category page cards */
.category-page .card-img-top {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.products-page .card-body {
    padding: 1.25rem;
}

.products-page .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

.products-page .card-text {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    height: 3.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

.products-page .h5 {
    font-size: 1.25rem;
}

/* Override Bootstrap spacing for products page */
.products-page .mt-auto {
    margin-top: 0.5rem !important;
}

.products-page .mb-2 {
    margin-bottom: 0.5rem !important;
}

.products-page .card-body .d-flex {
    margin-bottom: 0.25rem !important;
}

/* How It Works Section */
#how-it-works .text-center {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: var(--transition);
    height: 100%;
}

#how-it-works .text-center:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #146c43);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.25);
    transition: var(--transition);
}

#how-it-works .text-center:hover .step-number {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.35);
}

#how-it-works h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

#how-it-works p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.95), rgba(33, 37, 41, 0.85));
    color: white;
    padding: 4rem 0;
    background-attachment: fixed;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    height: 55px;
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 0 1.5rem;
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.5rem 2rem;
    height: 55px;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.newsletter-form .btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0 0;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    margin-right: 1rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.back-to-top:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-3px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }

    .navbar .navbar-nav .btn {
        width: 100%;
    }

    .product-detail-page .product-title {
        font-size: 1.5rem;
    }

    .product-detail-page .price {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 5rem 0;
        text-align: center;
    }

    .hero-image img {
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .product-img {
        height: 90px;
    }

    .product-body {
        padding: 0.5rem !important;
    }

    .product-title {
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
    }

    .product-price {
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }

    /* Products page cards */
    .products-page .card-img-top {
        height: 130px;
        object-fit: cover;
        width: 100%;
    }

    /* Category page cards */
    .category-page .card-img-top {
        height: 130px;
        object-fit: cover;
        width: 100%;
    }

    .products-page .card-body {
        padding: 0.6rem;
    }

    .products-page .card-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
        height: 2rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        box-orient: vertical;
    }

    .products-page .card-text {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        height: 2.4rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        box-orient: vertical;
    }

    .products-page .h5 {
        font-size: 0.95rem;
    }

    /* Override Bootstrap spacing for mobile */
    .products-page .mt-auto {
        margin-top: 0.25rem !important;
    }

    .products-page .mb-2 {
        margin-bottom: 0.25rem !important;
    }

    .products-page .card-body .d-flex {
        margin-bottom: 0.15rem !important;
    }

    .top-bar .contact-info {
        justify-content: center;
    }

    .top-bar .text-end {
        text-align: center !important;
    }

    .top-bar .social-links {
        justify-content: center;
    }

    .newsletter-section {
        background-attachment: scroll;
    }

    .product-img {
        height: 170px;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.82rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 50px;
        margin: 5px 0;
        width: 100%;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .product-img {
        height: 80px;
    }

    .product-body {
        padding: 0.4rem !important;
    }

    .product-title {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 0.75rem;
    }

    /* Products page cards */
    .products-page .card-img-top {
        height: 100px;
        object-fit: cover;
    }

    /* Category page cards */
    .category-page .card-img-top {
        height: 100px;
        object-fit: cover;
    }

    .products-page .card-body {
        padding: 0.5rem;
    }

    .products-page .card-title {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        line-height: 1.1;
        height: 1.8rem;
    }

    .products-page .card-text {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
        height: 2.2rem;
    }

    .products-page .h5 {
        font-size: 0.85rem;
    }

    /* Override Bootstrap spacing for very small mobile */
    .products-page .mt-auto {
        margin-top: 0.15rem !important;
    }

    .products-page .mb-2 {
        margin-bottom: 0.15rem !important;
    }

    .products-page .card-body .d-flex {
        margin-bottom: 0.1rem !important;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        background: #fff;
    }

    .cart-table td {
        border: 0;
        padding: 0.35rem 0;
    }

    .cart-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        opacity: 0.7;
        margin-bottom: 0.25rem;
    }

    .cart-table td[data-label="Product"]::before {
        display: none;
    }

    .cart-table td[data-label="Qty"] input {
        max-width: 140px;
        width: 100%;
    }

    .product-detail-page .product-title {
        font-size: 1.35rem;
    }

    .product-detail-page .price {
        font-size: 1.1rem;
    }

    .product-detail-page .btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}
/* Product image improvements */
.product-img img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Hover effect (desktop only) */
@media (min-width: 992px) {
    .product-card:hover .product-img img {
        transform: scale(1.05);
    }
}

/* PRODUCT IMAGE DEFAULT */
.product-img-main {
    width: 100%;
    height: 220px;
    object-fit: contain;
}

/* MOBILE: BIGGER PRODUCT IMAGE */
@media (max-width: 576px) {
    .product-img-main {
        height: 300px;
    }
}


