:root {
    --primary-color: #212121;
    --secondary-color: #424242;
    --accent-color: #ff9800;
    --text-color: #f5f5f5;
    --text-secondary: #bdbdbd;
    --card-bg: #282828;
    --border-color: #424242;
    --header-bg: #111111;
    --footer-bg: #111111;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 0.9rem; /* Reduced base font size */
}

/* Header */
.header {
    background-color: var(--header-bg);
    padding: 12px 0; /* Slightly reduced padding */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.6rem; /* Reduced from 1.8rem */
    letter-spacing: 1px;
}

.navbar-brand .subtitle {
    font-size: 0.9rem; /* Reduced from 1rem */
    color: var(--accent-color);
    display: block;
    font-weight: 300;
    letter-spacing: 2px;
}

.dropdown-menu-dark {
    background-color: var(--secondary-color);
}

/* Main Content */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Slider - Reduced size */
.hero-slider {
    margin-bottom: 30px; /* Reduced from 40px */
}

.hero-slide {
    position: relative;
    height: 350px; /* Reduced from 450px */
    width: 100%;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px; /* Reduced from 40px */
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
}

.hero-content h2 {
    font-size: 2.2rem; /* Reduced from 2.5rem */
    margin-bottom: 12px; /* Reduced from 15px */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1rem; /* Reduced from 1.1rem */
    max-width: 600px;
    margin-bottom: 15px;
}

.btn-accent {
    background-color: var(--accent-color);
    color: #212121;
    border: none;
    font-weight: bold;
    padding: 8px 22px; /* Reduced padding */
    transition: all 0.3s ease;
    font-size: 0.9rem; /* Added smaller font size */
}

.btn-accent:hover {
    background-color: #ffb74d;
    transform: translateY(-2px);
}

/* Category Section */
.section-title {
    font-size: 1.8rem; /* Reduced from 2rem */
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px; /* Slightly reduced */
    height: 3px;
    background-color: var(--accent-color);
}

.category-section {
    margin-bottom: 40px; /* Reduced from 50px */
}

.category-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.category-card img {
    width: 100%;
    height: 200px; /* Reduced from 200px */
    object-fit: contain;
}

.category-card-body {
    padding: 20px; /* Reduced from 20px */
}

.category-card-title {
    font-size: 1.15rem; /* Reduced from 1.25rem */
    font-weight: 700;
    margin-bottom: 8px;
}

.category-card-text {
    color: var(--text-secondary);
    margin-bottom: 12px;
    height: 45px; /* Reduced from 50px */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.85rem; /* Added smaller font size */
}

/* Product Cards */
.product-section {
    margin-bottom: 40px; /* Reduced from 50px */
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.product-card-img {
	padding: 10px;
    width: 100%;
    height: 200px; /* Reduced from 220px */
    object-fit: scale-down;
}

.product-card-body {
    padding: 40px; /* Reduced from 20px */
}

.product-card-title {
    font-size: 1.15rem; /* Reduced from 1.25rem */
    font-weight: 600;
    margin-bottom: 5px;
    height: 3rem; /* Reduced from 3.2rem */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 4px 8px; /* Reduced from 5px 10px */
    border-radius: 5px;
    font-size: 0.75rem; /* Reduced from 0.8rem */
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.15rem; /* Reduced from 1.25rem */
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2px;
}

.product-stock {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem; /* Reduced from 0.9rem */
}

.stock-indicator {
    width: 8px; /* Reduced from 10px */
    height: 8px; /* Reduced from 10px */
    border-radius: 50%;
    margin-right: 5px;
}

.in-stock {
    background-color: #4caf50;
}

.low-stock {
    background-color: #ff9800;
}

.out-stock {
    background-color: #f44336;
}

/* Product Detail */
.product-detail {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    padding: 25px; /* Reduced from 30px */
    margin-top: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.product-image-container {
    margin-bottom: 18px;
    text-align: center;
}

.product-image {
    max-width: 100%;
    max-height: 450px; /* Reduced from 500px */
    object-fit: contain;
    border-radius: 8px;
}

.product-info h1 {
    font-size: 2.2rem; /* Reduced from 2.5rem */
    margin-bottom: 8px;
}

.product-description {
    margin: 18px 0;
    line-height: 1.7; /* Slightly reduced from 1.8 */
}

.product-meta {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.meta-icon {
    margin-right: 8px;
    font-size: 1.1rem; /* Reduced from 1.2rem */
    color: var(--accent-color);
}

/* Featured Tag */
.featured-tag {
    position: absolute;
    top: 12px; /* Reduced from 15px */
    right: 12px; /* Reduced from 15px */
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 4px 8px; /* Reduced from 5px 10px */
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.75rem; /* Reduced from 0.8rem */
    z-index: 10;
}

/* Search Results */
.search-header {
    background-color: var(--card-bg);
    padding: 18px; /* Reduced from 20px */
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.search-header h1 {
    margin-bottom: 0;
    font-size: 1.8rem; /* Added smaller font size */
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    padding: 40px 0 18px; /* Reduced from 50px 0 20px */
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-title {
    color: var(--text-color);
    font-size: 1.1rem; /* Reduced from 1.2rem */
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px; /* Reduced from 40px */
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem; /* Added smaller font size */
}

.footer-links li, .footer-contact li {
    margin-bottom: 8px; /* Reduced from 10px */
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    color: var(--text-secondary);
}

.footer-contact i {
    margin-right: 8px;
    color: var(--accent-color);
}

.social-media {
    margin-top: 18px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Reduced from 35px */
    height: 32px; /* Reduced from 35px */
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px; /* Reduced from 30px */
    margin-top: 25px; /* Reduced from 30px */
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem; /* Added smaller font size */
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-slide {
        height: 300px; /* Reduced from 350px */
    }
    
    .hero-content h2 {
        font-size: 1.8rem; /* Reduced from 2rem */
    }
}

@media (max-width: 767px) {
    .hero-slide {
        height: 250px; /* Reduced from 300px */
    }
    
    .hero-content {
        padding: 20px; /* Reduced from 25px */
    }
    
    .hero-content h2 {
        font-size: 1.6rem; /* Reduced from 1.8rem */
    }
    
    .hero-content p {
        font-size: 0.9rem; /* Reduced from 1rem */
    }
    
    .section-title {
        font-size: 1.5rem; /* Reduced from 1.7rem */
    }
}

@media (max-width: 575px) {
    .hero-slide {
        height: 200px; /* Reduced from 250px */
    }
    
    .hero-content h2 {
        font-size: 1.3rem; /* Reduced from 1.5rem */
    }
    
    .product-card-img {
        height: 160px; /* Reduced from 180px */
    }
}
