/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   VARIABLES
========================= */
:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --light: #f5f7fb;
    --dark: #1f2937;
    --gray: #6b7280;
    --white: #ffffff;
    --danger: #dc2626;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(0,0,0,.08);
}

/* =========================
   BASE
========================= */
html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: "Segoe UI", system-ui, sans-serif;
    background: var(--light);
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   LAYOUT
========================= */
.wrapper {
    width: 100%;
}

/* =========================
   HEADER
========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1400px;
    margin: auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* =========================
   BUTTONS
========================= */
.btn {
    padding: .6rem 1.4rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

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

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

/* =========================
   HERO
========================= */
.hero {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.hero-inner {
    max-width: 1400px;
    margin: auto;
    padding: 5rem 2rem;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
    opacity: .95;
}

/* =========================
   SECTION
========================= */
.section {
    max-width: 1400px;
    margin: auto;
    padding: 4rem 2rem;
}

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

.section-header h2 {
    font-size: 2rem;
}

/* =========================
   CATEGORIES
========================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: .3s;
}

.category-card:hover {
    transform: translateY(-8px);
}

.category-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-card h3 {
    font-size: 1rem;
}

/* =========================
   PRODUCTS
========================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .3s;
}

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

.product-image {
    height: 230px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 1.5rem;
}

.product-body h3 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.product-body p {
    font-size: .9rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* =========================
   CTA
========================= */
.cta {
    background: var(--white);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #111827;
    color: #d1d5db;
}

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

.footer h4, .footer h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    background: #020617;
    font-size: .85rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.2rem;
    }
}
