:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --dark-bg: #1a1a1a;
    --light-bg: #f4f6f8;
    --white: #ffffff;
    --grey: #95a5a6;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--dark-bg);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--dark-bg);
    color: var(--white);
    padding: 15px 0;
}

.top-bar {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #ccc;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    font-style: italic;
}

.logo span {
    color: var(--primary-color);
}

.search-bar {
    flex: 1;
    margin: 0 40px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    outline: none;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 7px 15px;
    border-radius: 3px;
    cursor: pointer;
}

.cart-icon {
    font-size: 1.2rem;
    color: var(--white);
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

.main-nav {
    background: var(--primary-color);
    padding: 10px 0;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-nav a:hover {
    color: var(--dark-bg);
}

/* Hero Section */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/img/hero_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

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

.btn-white {
    background: var(--white);
    color: var(--dark-bg);
}

.btn-white:hover {
    background: #eaeaea;
}

/* Categories */
.categories {
    padding: 60px 0;
}

.section-part-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.section-part-title h2 {
    text-transform: uppercase;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: -12px;
    padding-bottom: 10px;
    display: inline-block;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.cat-item {
    background: var(--white);
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
    transition: var(--transition);
}

.cat-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cat-item h4 {
    font-size: 1rem;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid #eee;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-img {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
    border-top: 1px solid #eee;
}

.product-cat {
    font-size: 0.8rem;
    color: var(--grey);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.btn-cart {
    width: 100%;
    padding: 10px;
    background: var(--dark-bg);
    color: var(--white);
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cart:hover {
    background: var(--primary-color);
}

/* Detail Product */
.product-detail {
    background: var(--white);
    padding: 40px;
    margin-top: 40px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.pd-info h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.pd-stock {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

/* Footer */
footer {
    background: #222;
    color: #999;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-links li {
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.footer-links a {
    color: #999;
}

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