/* 
 * MANIAS3D - Modern Design System
 * Colors extracted from LOGO.png
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary-red: #E30613;
    --primary-teal: #0099A8;
    --primary-black: #000000;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 45px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
}

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

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--primary-teal);
    filter: blur(100px);
    opacity: 0.2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary-teal);
}

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

.hero-image img {
    max-width: 80%;
    filter: drop-shadow(0 0 30px rgba(0, 153, 168, 0.6));
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    backdrop-filter: blur(5px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

/* Forms (Moved from admin.css for consistency) */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 153, 168, 0.1);
}

.btn-primary {
    background: var(--primary-teal);
    color: white;
}

.btn-primary:hover {
    background: #007c8a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 153, 168, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-teal);
    color: white;
}

/* Section Common */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    margin: 0 auto;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1200px) {
    .grid-5 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 600px) {
    .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

/* Product Card - Minimalist Style (5 column optimized) */
.product-card {
    background: transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    padding-bottom: 2rem;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 240px; 
    background: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

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

.product-info {
    padding: 0 0.5rem;
}

.product-category {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.product-name {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-teal);
    display: block;
    margin-top: 0.5rem;
}

.product-card form {
    margin-top: 1rem;
}

.product-card .btn {
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px; /* Modern rounded button */
}

.product-card:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: #000;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-about p {
    color: #94a3b8;
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Category Horizontal Nav */
.category-nav {
    margin-top: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.category-link {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-link:hover {
    color: var(--primary-teal);
    background: rgba(0, 153, 168, 0.05);
}

.category-link.active {
    background: var(--primary-teal);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 153, 168, 0.3);
}

@media (min-width: 1600px) {
    .container {
        max-width: 1550px;
    }
}

/* Product Details Page */
.specs-table {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.specs-table tr:hover {
    background: #f1f5f9;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-link:hover .product-name {
    color: var(--primary-teal);
}

.active-thumb {
    border: 2px solid var(--primary-teal);
    box-shadow: 0 0 10px rgba(0, 153, 168, 0.2);
}

@media (max-width: 992px) {
    .product-gallery-container, .product-details-info {
        grid-column: span 2;
    }
}
