/* css/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* Light background for contrast */
}

:root {
    --theme-color: #4b0b0b;
    --theme-color-rgb: 75, 11, 11;
    --theme-color-darker: #3a0808;
    --theme-color-lighter: #5c0e0e;
    --text-light: #f8f9fa;
    --text-dark: #212529;
}

/* Navbar */
.navbar-custom {
    background-color: var(--theme-color);
    transition: background-color 0.3s ease;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .navbar-brand:hover {
    color: #e0e0e0;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.search-bar-custom {
    width: 100%;
}

.search-bar-custom .form-control {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-bar-custom .btn-search {
    background-color: var(--theme-color-lighter);
    color: var(--text-light);
    border: 1px solid var(--theme-color-lighter);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.search-bar-custom .btn-search:hover {
    background-color: var(--theme-color-darker);
    color: var(--text-light);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(var(--theme-color-rgb), 0.8), rgba(var(--theme-color-rgb), 0.8)), url('https://via.placeholder.com/1920x800.png?text=Laptop+Showcase') no-repeat center center;
    background-size: cover;
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
}
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.hero-section .btn-primary {
    background-color: var(--theme-color-lighter);
    border-color: var(--theme-color-lighter);
    padding: 12px 30px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.hero-section .btn-primary:hover {
    background-color: var(--theme-color-darker);
    border-color: var(--theme-color-darker);
}

/* Section Styling */
.section-title {
    color: var(--theme-color);
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 70px;
    height: 4px;
    background-color: var(--theme-color-lighter);
    border-radius: 2px;
}

.section-padding {
    padding: 60px 0;
}

/* Product Card */
.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.product-card img {
    width: 100%;
    height: 200px; /* Fixed height for product images */
    object-fit: contain; /* Use 'contain' to show whole image, or 'cover' to fill */
    padding: 10px;
}
.product-card .card-body {
    padding: 1.25rem;
}
.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-color);
    min-height: 44px; /* Ensure consistent title height */
}
.product-card .card-text.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--theme-color-darker);
}
.product-card .btn-call {
    background-color: var(--theme-color);
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}
.product-card .btn-call:hover {
    background-color: var(--theme-color-darker);
}
.product-card .btn-view-details {
    background-color: transparent;
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
}
.product-card .btn-view-details:hover {
    background-color: var(--theme-color);
    color: white;
}


/* Brand Section */
.brand-item {
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.brand-item img {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}
.brand-item p {
    margin-bottom: 0;
    color: var(--theme-color);
    font-weight: 500;
}

/* Category Section */
.category-item {
    background-color: var(--theme-color);
    color: var(--text-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: block;
}
.category-item:hover {
    background-color: var(--theme-color-darker);
    color: var(--text-light);
    transform: translateY(-5px);
}
.category-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* Contact Section */
.contact-section {
    background-color: #f1f1f1;
}
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.contact-info-item i {
    font-size: 1.8rem;
    color: var(--theme-color);
    margin-right: 15px;
    width: 40px; /* Fixed width for icons */
    text-align: center;
}
.contact-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Footer */
.footer-custom {
    background-color: var(--theme-color-darker);
    color: var(--text-light);
    padding: 30px 0;
}
.footer-custom p {
    margin-bottom: 0;
}
.footer-custom a {
    color: #f0f0f0;
    text-decoration: none;
}
.footer-custom a:hover {
    color: white;
    text-decoration: underline;
}

/* Search Results Dropdown (Example) */
#search-results-dropdown {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 1000;
    width: calc(100% - 2.25rem); /* Adjust based on button width */
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
#search-results-dropdown .list-group-item {
    cursor: pointer;
}
#search-results-dropdown .list-group-item:hover {
    background-color: #f0f0f0;
}
.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
}