/* public/css/style.css */

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

body {
 font-family: 'Segoe UI', Tahoma, sans-serif;
 background: #f4f4f4;
 color: #333;
 line-height: 1.6;
}

.navbar {
 background: #1a1a2e;
 padding: 1rem 2rem;
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.nav-brand a {
 color: #e94560;
 font-size: 1.5rem;
 font-weight: bold;
 text-decoration: none;
}

.nav-links {
 display: flex;
 list-style: none;
 gap: 1.5rem;
}

.nav-links a {
 color: #eee;
 text-decoration: none;
 transition: color 0.3s;
}

.nav-links a:hover {
 color: #e94560;
}

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

.footer {
 background: #1a1a2e;
 color: #aaa;
 text-align: center;
 padding: 1rem;
 margin-top: 3rem;
}

.card {
 background: #fff;
 border-radius: 8px;
 padding: 1.5rem;
 margin-bottom: 1rem;
 box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn {
 display: inline-block;
 padding: 0.6rem 1.2rem;
 background: #e94560;
 color: #fff;
 text-decoration: none;
 border: none;
 border-radius: 4px;
 cursor: pointer;
 font-size: 1rem;
}

.btn:hover {
 background: #c0354c;
}

.form-group {
 margin-bottom: 1rem;
}

.form-group label {
 display: block;
 margin-bottom: 0.3rem;
 font-weight: 600;
}

.form-group input,
.form-group textarea {
 width: 100%;
 padding: 0.6rem;
 border: 1px solid #ddd;
 border-radius: 4px;
 font-size: 1rem;
}

.car-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
 gap: 1.5rem;
}

.car-card {
 background: #fff;
 border-radius: 8px;
 overflow: hidden;
 box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.car-card img {
 width: 100%;
 height: 200px;
 object-fit: cover;
}

.car-card .info {
 padding: 1rem;
}

.car-card h3 {
 margin-bottom: 0.3rem;
}

.car-card .price {
 color: #e94560;
 font-weight: bold;
 font-size: 1.2rem;
}

.alert {
 padding: 0.8rem 1rem;
 border-radius: 4px;
 margin-bottom: 1rem;
}

.alert-error {
 background: #f8d7da;
 color: #721c24;
 border: 1px solid #f5c6cb;
}

.alert-success {
 background: #d4edda;
 color: #155724;
 border: 1px solid #c3e6cb;
}

/* ===== Page Layout ===== */
.page-wrapper {
 min-height: 100vh;
 display: flex;
 flex-direction: column;
}

main {
 flex: 1;
}

/* ===== Top Navigation ===== */
.top-nav {
 background: #1a1a2e;
 padding: 0 2rem;
 height: 60px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 position: sticky;
 top: 0;
 z-index: 100;
 box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.top-nav .nav-brand a {
 color: #e94560;
 font-size: 1.4rem;
 font-weight: 700;
 text-decoration: none;
}

.top-nav-links {
 display: flex;
 list-style: none;
 gap: 0.25rem;
}

.top-nav-links a {
 color: #ccc;
 text-decoration: none;
 padding: 0.5rem 1rem;
 border-radius: 6px;
 font-size: 0.95rem;
 display: flex;
 align-items: center;
 gap: 6px;
 transition: all 0.2s;
}

.top-nav-links a:hover,
.top-nav-links a.active {
 color: #fff;
 background: #e94560;
}

.top-nav-links i {
 font-size: 0.85rem;
}

/* ===== Hero ===== */
.hero {
 background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
 color: #fff;
 text-align: center;
 padding: 5rem 2rem 4rem;
}

.hero h1 {
 font-size: 2.8rem;
 margin-bottom: 1rem;
 font-weight: 700;
}

.hero p {
 font-size: 1.2rem;
 color: #aaa;
 margin-bottom: 2rem;
}

.hero .btn {
 margin: 0 0.5rem;
 padding: 0.8rem 2rem;
 font-size: 1.05rem;
}

.btn-primary {
 background: #e94560;
 color: #fff;
}
.btn-primary:hover {
 background: #c0354c;
}

.btn-secondary {
 background: transparent;
 color: #fff;
 border: 2px solid #e94560;
}
.btn-secondary:hover {
 background: #e94560;
}

/* ===== Featured Section ===== */
.featured {
 padding: 3rem 0;
}

.featured h2 {
 text-align: center;
 font-size: 2rem;
 margin-bottom: 2rem;
 color: #1a1a2e;
}

/* ===== Features Section ===== */
.features {
 padding: 3rem 0 4rem;
 background: #fff;
}

.features h2 {
 text-align: center;
 font-size: 2rem;
 margin-bottom: 2rem;
 color: #1a1a2e;
}

.features-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 1.5rem;
}

.feature-card {
 text-align: center;
 padding: 2rem 1.5rem;
 background: #f8f9fa;
 border-radius: 10px;
 transition: transform 0.2s;
}

.feature-card:hover {
 transform: translateY(-4px);
 box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.feature-card i {
 font-size: 2.2rem;
 color: #e94560;
 margin-bottom: 1rem;
}

.feature-card h3 {
 font-size: 1.1rem;
 margin-bottom: 0.5rem;
}

.feature-card p {
 color: #777;
 font-size: 0.9rem;
}

/* ===== Shop Page ===== */
.shop-page {
 padding: 3rem 0;
}

.page-title {
 font-size: 2rem;
 margin-bottom: 2rem;
 color: #1a1a2e;
 font-weight: 700;
}

.shop-cat-section {
 margin-bottom: 3rem;
}

.shop-cat-name {
 font-size: 1.3rem;
 color: #e94560;
 margin-bottom: 1rem;
 padding-bottom: 0.5rem;
 border-bottom: 2px solid #eee;
 display: flex;
 align-items: center;
 gap: 8px;
}

.shop-car-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
 gap: 1.5rem;
}

.shop-car-card {
 background: #fff;
 border-radius: 10px;
 overflow: hidden;
 box-shadow: 0 2px 10px rgba(0,0,0,0.08);
 transition: transform 0.2s, box-shadow 0.2s;
}

.shop-car-card:hover {
 transform: translateY(-4px);
 box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.shop-car-img {
 width: 100%;
 height: 200px;
 overflow: hidden;
 background: #f5f5f5;
}

.shop-car-img img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.shop-car-img-ph {
 width: 100%;
 height: 100%;
 display: flex;
 align-items: center;
 justify-content: center;
 background: #f0f0f0;
}

.shop-car-img-ph i {
 font-size: 3rem;
 color: #ccc;
}

.shop-car-info {
 padding: 1.2rem;
}

.shop-car-info h3 {
 font-size: 1.1rem;
 margin-bottom: 0.5rem;
 color: #1a1a2e;
}

.shop-car-price {
 color: #e94560;
 font-weight: 700;
 font-size: 1.1rem;
 margin-bottom: 0.5rem;
}

.shop-car-price .old-price {
 color: #999;
 font-size: 0.85rem;
 text-decoration: line-through;
 font-weight: 400;
 display: block;
 margin-bottom: 2px;
}

.shop-car-price .new-price {
 color: #e94560;
}

.shop-car-desc {
 color: #777;
 font-size: 0.85rem;
 margin-bottom: 0.5rem;
 line-height: 1.4;
}

.stock-badge {
 display: inline-block;
 padding: 0.2rem 0.6rem;
 border-radius: 4px;
 font-size: 0.75rem;
 font-weight: 600;
}

.stock-badge.in-stock {
 background: #d4edda;
 color: #155724;
}

.stock-badge.out-stock {
 background: #f8d7da;
 color: #721c24;
}

.shop-car-link {
 display: inline-block;
 margin-top: 0.5rem;
 color: #e94560;
 text-decoration: none;
 font-size: 0.9rem;
 font-weight: 600;
}

.shop-car-link:hover {
 text-decoration: underline;
}

/* ===== Brand Page ===== */
.brand-page {
 padding: 3rem 0;
}

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

.brand-card {
 background: #fff;
 border-radius: 10px;
 overflow: hidden;
 box-shadow: 0 2px 10px rgba(0,0,0,0.08);
 transition: transform 0.2s, box-shadow 0.2s;
 text-decoration: none;
 color: inherit;
}

.brand-card:hover {
 transform: translateY(-4px);
 box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.brand-card-img {
 width: 100%;
 height: 160px;
 overflow: hidden;
 background: #f5f5f5;
}

.brand-card-img img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.brand-card-ph {
 width: 100%;
 height: 100%;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 background: linear-gradient(135deg, #1a1a2e, #e94560);
}

.brand-card-ph i {
 font-size: 2.5rem;
 color: rgba(255,255,255,0.3);
}

.brand-card-ph span {
 color: #fff;
 font-size: 0.9rem;
 margin-top: 0.5rem;
 font-weight: 600;
}

.brand-card-info {
 padding: 1rem;
}

.brand-card-info h3 {
 font-size: 1rem;
 color: #1a1a2e;
 margin-bottom: 0.25rem;
}

.brand-car-count {
 color: #e94560;
 font-size: 0.8rem;
 font-weight: 600;
}

/* ===== Brand Cars ===== */
.brand-cars-page {
 padding: 3rem 0;
}

.brand-cars-header {
 display: flex;
 align-items: center;
 justify-content: space-between;
 margin-bottom: 2rem;
}

.back-link {
 color: #e94560;
 text-decoration: none;
 font-weight: 600;
 display: flex;
 align-items: center;
 gap: 6px;
}

.back-link:hover {
 text-decoration: underline;
}

/* ===== Footer ===== */
.site-footer {
 background: #1a1a2e;
 color: #aaa;
 margin-top: 3rem;
}

.footer-inner {
 max-width: 1200px;
 margin: 0 auto;
 padding: 3rem 2rem 1.5rem;
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 2rem;
}

.footer-col h4 {
 color: #fff;
 font-size: 1rem;
 margin-bottom: 1rem;
 font-weight: 600;
}

.footer-col p {
 font-size: 0.9rem;
 line-height: 1.6;
}

.footer-links {
 list-style: none;
 padding: 0;
}

.footer-links li {
 margin-bottom: 0.5rem;
}

.footer-links a {
 color: #aaa;
 text-decoration: none;
 font-size: 0.9rem;
 transition: color 0.2s;
}

.footer-links a:hover {
 color: #e94560;
}

.footer-contact li {
 margin-bottom: 0.6rem;
 font-size: 0.9rem;
 display: flex;
 align-items: center;
 gap: 8px;
}

.footer-contact i {
 color: #e94560;
 width: 16px;
}

.social-links {
 display: flex;
 gap: 0.75rem;
}

.social-links a {
 width: 36px;
 height: 36px;
 border-radius: 50%;
 background: #2a2a4a;
 color: #aaa;
 display: flex;
 align-items: center;
 justify-content: center;
 text-decoration: none;
 transition: all 0.2s;
}

.social-links a:hover {
 background: #e94560;
 color: #fff;
}

.footer-bottom {
 border-top: 1px solid #2a2a4a;
 padding: 1rem 2rem;
 text-align: center;
 font-size: 0.85rem;
}

/* ===== Helpers ===== */
.empty-state {
 text-align: center;
 padding: 3rem;
}

.btn-sm {
 display: inline-block;
 padding: 0.4rem 1rem;
 background: #e94560;
 color: #fff;
 text-decoration: none;
 border-radius: 4px;
 font-size: 0.85rem;
}

.btn-sm:hover {
 background: #c0354c;
}

/* ===== About Page ===== */
.about-page {
 padding: 3rem 0;
}

.about-content {
 max-width: 800px;
 margin: 0 auto;
}

.about-text h2 {
 font-size: 1.5rem;
 color: #1a1a2e;
 margin: 2rem 0 0.75rem;
}

.about-text h2:first-child {
 margin-top: 0;
}

.about-text p {
 color: #555;
 line-height: 1.8;
 margin-bottom: 1rem;
}

.about-text ul {
 list-style: none;
 padding: 0;
}

.about-text li {
 padding: 0.5rem 0;
 color: #555;
 border-bottom: 1px solid #eee;
}
