/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Product Card Styles */
.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    margin-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image {
    height: 250px;
    object-fit: cover;
}

.product-title {
    font-weight: 500;
    margin: 10px 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1em;
    margin: 10px 0;
}

/* Category Card Styles */
.category-card {
    text-align: center;
    padding: 20px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.category-card:hover {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
}

.category-card h5 {
    margin: 10px 0 0 0;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Badge Styles */
.badge-new {
    background: #28a745;
    color: white;
    font-size: 0.8rem;
}

.badge-sale {
    background: #dc3545;
    color: white;
    font-size: 0.8rem;
}

/* Feature Box */
.feature-box {
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

/* Testimonial Card */
.testimonial-card {
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.testimonial-text {
    font-style: italic;
    color: #666;
}

.stars {
    color: #ffc107;
}

/* Cart Count Badge */
#cart-count {
    font-size: 0.7rem;
}

/* Cart Quantity Column */
.cart-qty-col {
    width: 140px;
    white-space: nowrap;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.quantity-control .qty-minus {
    order: 1;
}

.quantity-control .form-control {
    order: 2;
}

.quantity-control .qty-plus {
    order: 3;
}

.quantity-control .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quantity-control .form-control {
    width: 70px;
    min-width: 60px;
}

/* Cart Page */
.cart-page .cart-item-image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    background: #f8f9fa;
}

.cart-page .cart-product {
    width: 100%;
}

.cart-page .cart-product-info {
    min-width: 0;
}

.cart-page .cart-product-info h6 {
    line-height: 1.3;
}

.cart-page .quantity-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.cart-page .quantity-control .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-page .quantity-control .form-control {
    width: 70px;
    min-width: 60px;
}

.cart-page .cart-table th,
.cart-page .cart-table td {
    vertical-align: middle;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.whatsapp-float i {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .hero-image {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .product-image {
        height: 160px;
    }
    
    .col-md-4.mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }

    .cart-qty-col {
        width: auto;
    }

    .cart-page .cart-table thead {
        display: none;
    }

    .cart-page .cart-table tbody,
    .cart-page .cart-table tr,
    .cart-page .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-page .cart-table tbody tr {
        border: 1px solid #e6e6e6;
        border-radius: 10px;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        background: #ffffff;
    }

    .cart-page .cart-table tbody td {
        border: 0;
        padding: 0.35rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }

    .cart-page .cart-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
        flex: 0 0 40%;
    }

    .cart-page .cart-table tbody td.cart-product-cell {
        padding-top: 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-page .cart-table tbody td.cart-product-cell::before {
        display: none;
    }

    .cart-page .cart-table tbody td.cart-product-cell .cart-product {
        width: 100%;
    }

    .cart-page .cart-table tbody td.cart-action-cell {
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-section h1 {
        font-size: 1.3rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-title {
        font-size: 0.9rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .feature-box,
    .testimonial-card {
        padding: 15px;
    }
    
    .category-card {
        padding: 15px 5px;
    }
    
    .category-card i {
        font-size: 1.5rem;
    }
    
    .category-card h5 {
        font-size: 0.8rem;
    }
    
    .nav-item {
        margin-bottom: 5px;
    }

    .navbar-brand h4 {
        font-size: 1.1rem;
        white-space: normal;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
    
    .col-md-3, .col-md-4, .col-md-6, .col-lg-2, .col-lg-3, .col-lg-4 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Additional Styles for Forms */
.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button Styles */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
}

/* Navbar Styles */
.navbar-brand h4 {
    font-weight: bold;
}

.app-header .navbar-brand {
    white-space: normal;
    max-width: 100%;
}

.app-header .navbar-brand h4 {
    line-height: 1.2;
    white-space: normal;
}

/* Navigation Link Hover Effect */
.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff !important;
}

/* Footer Styles */
footer a:hover {
    color: #007bff !important;
    text-decoration: underline;
}

/* Product Grid Adjustments */
.product-grid .product-item {
    margin-bottom: 20px;
}

/* Pagination Styles */
.pagination .page-link {
    color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Badge Styles */
.badge {
    font-weight: normal;
}

/* Alert message styles for web */
.alert {
    z-index: 1050;
    position: relative;
    margin-top: 10px;
}
