/* static/css/main.css */

/* General and Header */
.navbar.nav { background-color: #AC030F; }
.top-bar { margin-top: 11px; }
.dropdown-item:hover, .dropdown-item:focus { color: #fff; text-decoration: none; background-color: #AB020E; }
.downloadapp img { width: 110px; }
.apple-icon { width: 86px; }

/* Product Grid and Carousel */
.product-grid4 {
    border: 1px solid #eee;
    margin-bottom: 20px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s;
}
.product-grid4:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product-grid4 .product-image4 {
    position: relative;
    overflow: hidden;
}
.product-grid4 .product-image4 img {
    width: 100%;
    height: auto;
    transition: all 0.5s;
}
.product-grid4:hover .pic-1 {
    transform: scale(1.1);
}
.product-grid4 .product-discount-label {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 13px !important;
    height: 40px !important;
    width: 40px !important;
    border-radius: 50% !important;
    background-color: #AC030F !important;
    color: #fff !important;
    line-height: 40px;
    text-align: center;
}
.product-grid4 .product-content {
    padding: 15px 10px;
}
.product-grid4 .title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
    height: 40px; /* Fixed height for title */
    overflow: hidden;
}
.product-grid4 .title a {
    color: #333;
}
.product-grid4 .price {
    color: #AC030F;
    font-size: 1.1rem;
    font-weight: 700;
}
.product-grid4 .price span {
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: line-through;
    margin-left: 5px;
}
.add-to-cart {
    background: #AC030F;
    color: #fff;
    padding: 8px 15px;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 3px;
    transition: all 0.3s;
}
.add-to-cart:hover {
    background: #8e010c;
    color: #fff;
    text-decoration: none;
}

/* Categories */
.category-images .border-all {
    border: 1px solid #AB020E;
    transition: all 0.3s;
}
.category-images .border-all:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.category-images a {
    color: #A9000B;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}
.category-image {
    width: 100%;
    height: 110px;
    object-fit: contain;
    padding: 10px;
}

/* Owl Carousel Navigation */
.owl-prev, .owl-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3) !important;
    color: #fff !important;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px !important;
    text-align: center;
}
.owl-prev { left: -15px; }
.owl-next { right: -15px; }
.owl-prev:hover, .owl-next:hover {
    background: #AC030F !important;
}

/* Product Detail Page */
.quantity-input {
    width: 60px;
    text-align: center;
}

/* Cart & Checkout */
.cart-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}
.form-control:focus {
    border-color: #AC030F;
    box-shadow: 0 0 0 0.2rem rgba(172, 3, 15, 0.25);
}

/* Footer and Promo */
.promo .text-icon i { font-size: 32px; color: #AC030F; }
.promo .text-wrapper h5 { font-weight: bold; }
.footer { background-color: #f8f9fa; padding: 40px 0; font-size: 0.9rem; }
.footer-block h3 { font-size: 1rem; font-weight: bold; border-bottom: 2px solid #AC030F; padding-bottom: 10px; margin-bottom: 15px; }
.footer-block a { color: #555; }
.footer-page { padding: 15px 0; border-top: 1px solid #eee; background-color: #f8f9fa; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-image { height: 80px; }
}
@media (max-width: 425px) {
    .slider-img { height: 150px; object-fit: cover; }
    .category-image { height: 60px; }
    .product-grid4 .title { font-size: 0.9rem; height: 36px; }
}


/* static/css/main.css */
/* ... (at the end of the file) */

/* Live Search Results Styling */
#search-results-container {
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.search-result-item {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.search-result-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #AC030F;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
}
.search-result-item .product-info {
    display: flex;
    flex-direction: column;
}
.search-result-item .product-name {
    font-weight: 600;
}
.search-result-item .product-price {
    font-size: 0.9rem;
    color: #555;
}