/* --- Variables --- */
:root {
    --color-grey-dark: #2c3e50; /* Industrial Grey */
    --color-red: #e74c3c;       /* Signal Red */
    --color-red-dark: #c0392b;
    --color-white: #ffffff;
    --color-grey-light: #ecf0f1;
    --color-text: #333333;
    
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --radius: 2px;
    --shadow: 0 4px 10px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--color-grey-light);
    color: var(--color-text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- Promo Bar --- */
.promo-bar { background-color: var(--color-grey-dark); color: #fff; font-size: 0.8rem; padding: 5px 0; }
.promo-bar .container { display: flex; justify-content: space-between; }
.account-links a { color: #fff; margin-left: 15px; }

/* --- Header --- */
.shop-header { background-color: var(--color-white); padding: 20px 0; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-head); font-size: 2rem; color: var(--color-grey-dark); font-weight: 700; text-transform: uppercase; }
.red-box { background-color: var(--color-red); color: #fff; padding: 0 5px; margin-left: 2px; }

.search-bar { display: flex; flex: 1; margin: 0 40px; max-width: 600px; }
.search-bar input { flex: 1; padding: 10px; border: 2px solid var(--color-grey-dark); border-right: none; font-family: var(--font-body); }
.btn-search { background-color: var(--color-grey-dark); color: #fff; border: none; padding: 0 20px; cursor: pointer; }

.cart-icon { position: relative; font-size: 1.5rem; cursor: pointer; }
.cart-icon .count { position: absolute; top: -5px; right: -10px; background-color: var(--color-red); color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 50%; font-weight: bold; }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* --- Navigation --- */
.main-nav { background-color: var(--color-red); color: #fff; }
.main-nav ul { display: flex; }
.main-nav a { display: block; padding: 15px 20px; color: #fff; font-family: var(--font-head); text-transform: uppercase; font-size: 1rem; letter-spacing: 1px; }
.main-nav a:hover, .main-nav a.active { background-color: var(--color-red-dark); }

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color-grey-dark); z-index: 2000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: translateX(-100%); transition: 0.3s ease;
}
.mobile-menu.active { transform: translateX(0); }
.close-menu { position: absolute; top: 20px; right: 20px; font-size: 2rem; color: #fff; background: none; border: none; cursor: pointer; }
.mobile-menu a { color: #fff; font-family: var(--font-head); font-size: 1.5rem; margin: 15px 0; text-transform: uppercase; }

/* --- Hero --- */
.hero-shop {
    position: relative; height: 500px;
    background-size: cover; background-position: center;
    display: flex; align-items: center;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2)); z-index: 1; }

.hero-content { position: relative; z-index: 2; color: #fff; padding-left: 10%; max-width: 600px; }
.quality-seal { background-color: var(--color-red); padding: 5px 10px; font-weight: bold; font-size: 0.9rem; letter-spacing: 2px; }
.hero-content h1 { font-family: var(--font-head); font-size: 4rem; line-height: 1; margin: 20px 0; text-transform: uppercase; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; }
.btn-red { background-color: var(--color-red); color: #fff; padding: 15px 40px; font-family: var(--font-head); font-weight: bold; font-size: 1.2rem; letter-spacing: 1px; display: inline-block; transition: 0.3s; }
.btn-red:hover { background-color: #fff; color: var(--color-red); }

/* --- Categories --- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -50px; position: relative; z-index: 3; }
.cat-item { position: relative; height: 250px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow); cursor: pointer; }
.cat-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; filter: brightness(0.7); }
.cat-item:hover img { transform: scale(1.1); filter: brightness(1); }
.cat-item h3 { position: absolute; bottom: 20px; left: 20px; color: #fff; font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; z-index: 2; border-left: 4px solid var(--color-red); padding-left: 10px; }

/* --- Products --- */
.section-padding { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-family: var(--font-head); font-size: 2.5rem; margin-bottom: 10px; text-transform: uppercase; }
.line-red { width: 60px; height: 4px; background-color: var(--color-red); margin: 0 auto; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.product-card { background-color: #fff; border: 1px solid #ddd; position: relative; transition: 0.3s; }
.product-card:hover { box-shadow: var(--shadow); border-color: var(--color-red); }

.badge-new { position: absolute; top: 10px; left: 10px; background-color: var(--color-red); color: #fff; padding: 2px 8px; font-size: 0.7rem; font-weight: bold; }
.p-img { height: 250px; padding: 20px; display: flex; align-items: center; justify-content: center; }
.p-img img { max-height: 100%; width: auto; }

.p-info { padding: 20px; border-top: 1px solid #eee; }
.category { color: #888; font-size: 0.8rem; text-transform: uppercase; }
.p-info h3 { font-family: var(--font-head); font-size: 1.2rem; margin: 5px 0; }
.rating { color: #f1c40f; font-size: 0.9rem; margin-bottom: 10px; }
.price { font-weight: bold; font-size: 1.2rem; color: var(--color-grey-dark); margin-bottom: 15px; }
.price .old { text-decoration: line-through; color: #aaa; font-size: 0.9rem; margin-right: 5px; }
.btn-add { width: 100%; background-color: var(--color-grey-dark); color: #fff; border: none; padding: 10px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-add:hover { background-color: var(--color-red); }

/* --- Features Banner --- */
.features-banner { background-color: #fff; padding: 40px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.feature-flex { display: flex; justify-content: space-around; text-align: center; }
.feat .icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.feat h4 { font-family: var(--font-head); text-transform: uppercase; margin-bottom: 5px; }
.feat p { font-size: 0.9rem; color: #666; }

/* --- About & Contact Layouts --- */
.page-title { text-align: center; margin-bottom: 60px; }
.page-title h1 { font-family: var(--font-head); font-size: 3rem; text-transform: uppercase; }

.split-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.check-list { list-style: none; margin-top: 20px; font-weight: bold; }
.check-list li::before { content: '✓'; color: var(--color-red); margin-right: 10px; }
.image-block { position: relative; }
.stamp { position: absolute; bottom: 20px; right: 20px; background-color: var(--color-red); color: #fff; padding: 20px; border-radius: 50%; font-weight: bold; text-align: center; font-family: var(--font-head); border: 2px solid #fff; transform: rotate(-10deg); }

.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.contact-info { background: #fff; padding: 30px; border: 1px solid #ddd; }
.b2b-form { background: #fff; padding: 40px; border: 1px solid #ddd; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.col { flex: 1; }
.b2b-form label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 0.9rem; }
.b2b-form input, .b2b-form select, .b2b-form textarea { width: 100%; padding: 10px; border: 1px solid #ccc; font-family: var(--font-body); }
.btn-submit { background-color: var(--color-red); color: #fff; border: none; padding: 15px 30px; font-weight: bold; cursor: pointer; }

/* --- Reviews --- */
.reviews-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.review-item { background: #fff; padding: 30px; border-left: 5px solid var(--color-red); box-shadow: var(--shadow); }
.r-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.r-verified { color: #27ae60; font-size: 0.8rem; font-weight: bold; }
.r-stars { color: #f1c40f; margin-bottom: 10px; }
.r-product { font-size: 0.85rem; color: #888; display: block; margin-top: 10px; font-style: italic; }

/* --- Legal --- */
.policy-box { max-width: 800px; margin: 0 auto; background: #fff; padding: 50px; border: 1px solid #ddd; }
.policy-box h1 { font-family: var(--font-head); text-transform: uppercase; }
.policy-box h3 { color: var(--color-red); margin-top: 30px; margin-bottom: 10px; font-family: var(--font-head); }

/* --- Footer --- */
.shop-footer { background-color: var(--color-grey-dark); color: #fff; padding: 60px 0; margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.f-col h4 { font-family: var(--font-head); margin-bottom: 15px; letter-spacing: 1px; }
.f-col a { display: block; color: #ccc; margin-bottom: 5px; font-size: 0.9rem; }
.f-col a:hover { color: var(--color-red); }
.copyright { margin-top: 40px; border-top: 1px solid #444; padding-top: 20px; text-align: center; font-size: 0.8rem; color: #888; }

@media (max-width: 992px) {
    .header-flex { flex-wrap: wrap; }
    .search-bar { order: 3; width: 100%; margin: 15px 0 0 0; }
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero-content h1 { font-size: 3rem; }
    .cat-grid { grid-template-columns: 1fr; margin-top: 20px; }
    .contact-layout, .feature-flex, .split-content { flex-direction: column; display: flex; gap: 30px; }
    .form-row { flex-direction: column; gap: 15px; }
}