/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333333;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

/* Header Section */

/* Brand Section */
.brand-logo {
    width: 75px;
    height: 75px;
}

.navbar {
    background: #E8E1D0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-nav {
    display: flex;
    justify-content: center;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 600;
}

.nav-link {
    color: #666666;
    text-decoration: none;
    font-size: 16px;
    margin-left: 40px;
}

    .nav-link:hover {
        color: #000000;
        font-weight: 500;
    }

/* Profile Icon */
.profile-icon-link img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: 0.3s ease;
    object-fit: cover;
}

.profile-icon-link img:hover {
    opacity: 0.8;
    cursor: pointer;
}

.signin-btn {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
}

/* Updated Filter Section */
.filter-section .row {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.filter-section .col-auto:last-child {
    margin-left: auto;
}

.filter-btn {
    border: 1px solid #dee2e6;
    color: #000000;
    font-size: 14px;
    padding: 8px 12px;
}

.filter-btn:hover, .dropdown-item:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #000000;
}

.filter-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, .1);
    border-color: #adb5bd;
}

.btn-outline-dark {
    background-color: #d4c4a8 !important; /* Beige background */
    border-color: #d4c4a8 !important; /* Brown border */
    color: #6b5b4d !important; /* Brown text */
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark.show {
    background-color: #8b7355 !important; /* Brown background on hover/active */
    border-color: #8b7355 !important;
    color: #ffffff !important; /* White text on hover/active */
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #000000;
    transition: background-color 0.15s ease-in-out;
}

    .dropdown-item.active {
        background-color: #000000;
        color: #ffffff;
    }

/* Search Filter */

/* Custom Input Group for Rounded Design */
.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    width: 250px;
}

.search-input {
    border: none;
    outline: none;
    padding: 4px 8px;
    font-size: 14px;
}

.search-button {
    background: none;
    border: none;
    outline: none;
    padding: 8px 8px;
    display: flex;
}

.search-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* Products Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    padding: 20px;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-color: #e0e0e0;
    }

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

    .product-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        border-radius: 6px;
        transition: transform 0.3s ease;
    }

.product-info {
    text-align: center;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
    line-height: 1.4;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
}

.product-description {
    font-size: 15px;
    color: #666666;
    margin-bottom: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* No products message */
.no-products {
    text-align: center;
    padding: 60px 0;
    color: #666666;
    grid-column: 1 / -1;
}

.no-products h3 {
    margin-bottom: 16px;
    color: #000000;
    font-weight: 600;
}

/*#ffffff,     !* white *!
#E8E1D0,     !* beige *!
#7d522f      !* brown *!*/
    
/* Footer section */
.footer {
    color: #000;
    border-top: 1px #fff solid;
    font-size: 12px;
    padding: 40px 20px;
    background-color: #E8E1D0
}

.footer-brand {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
}

.footer-link {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    margin-left: 20px;
}

    .footer-link:hover {
        color: #000000;
        font-weight: 500;
    }


/* Cart Page Styles */
/* Back Arrow Button */

.cart-back-link {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cart-back-link:hover {
    color: #333;
    text-decoration: none;
}

.cart-back-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Cart Page Title */
.cart-back-link {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cart-back-link:hover {
    color: #333;
    text-decoration: none;
}

.cart-back-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Cart Page Title */
.cart-page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
}

/* Empty Cart Styles */
.cart-empty-state {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 3rem;
    margin: 2rem 0;
}

/* Cart Product Card */
.cart-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.cart-product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Cart Product Image */
.cart-product-image {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Cart Product Details */
.cart-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.cart-product-category {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.cart-product-size {
    font-size: 0.9rem;
    color: #666;
}

/* Cart Quantity Controls */
.cart-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: white;
    transition: all 0.2s ease;
}

.cart-quantity-btn:hover {
    background-color: #f8f9fa;
    border-color: #999;
}

.cart-quantity-btn:focus {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.cart-quantity-display {
    font-weight: 500;
    min-width: 30px;
    text-align: center;
    font-size: 1rem;
}

/* Cart Price Section */
.cart-price-section {
    text-align: right;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.cart-item-subtotal {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.cart-remove-btn {
    font-size: 1.2rem;
    color: #dc3545;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-remove-btn:hover {
    color: #a71d2a;
}

/* Cart Order Summary Card */
.cart-summary-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.cart-summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.cart-summary-line {
    font-size: 0.95rem;
    color: #666;
}

.cart-summary-total {
    font-size: 1.1rem;
    color: #333;
}

/* Cart Checkout Button */
.cart-checkout-button {
    background-color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.cart-checkout-button:hover:not(:disabled) {
    background-color: #333;
}

.cart-checkout-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .product-card {
        padding: 15px;
    }

    .product-image {
        height: 180px;
        margin-bottom: 15px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-price {
        font-size: 18px;
    }

    .filter-section .col-md-2 {
        margin-bottom: 10px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .cart-product-card {
        padding: 1rem;
    }

    .cart-product-image {
        max-width: 80px;
    }

    .cart-page-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .cart-back-arrow {
        text-align: center;
    }

    .cart-quantity-controls {
        margin: 1rem 0;
    }

    .cart-price-section {
        text-align: center;
        margin-top: 1rem;
    }

    .cart-summary-card {
        margin-top: 2rem;
        position: static;
    }
}

@media (max-width: 576px) {
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-image {
        height: 160px;
    }

    .cart-product-card .row > div {
        text-align: center;
        margin-bottom: 1rem;
    }

    .cart-product-card .row > div:last-child {
        margin-bottom: 0;
    }

    .cart-quantity-controls {
        justify-content: center;
    }

    .cart-back-link {
        font-size: 0.9rem;
    }
}
/* Some Animations !! */
.cart-product-card,
.cart-summary-card {
    animation: cartFadeInUp 0.3s ease;
}

@keyframes cartFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-back-arrow {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}