/* =========================
   RESET + PERFORMANCE BASE
========================= */

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

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

a {
    color: var(--primary-color);
    transition: .3s;
}

/* =========================
   BASE TYPOGRAPHY (SEO readable)
========================= */

body {
    font-family: system-ui, -apple-system, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #111;
    background: #fff;
    text-rendering: optimizeLegibility;
    background: var(--bg-color);
    color: var(--secondary-color);
}

/* =========================
   LAYOUT
========================= */

#wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

#container {
    padding: 40px 0;
}

/* =========================
   HEADER
========================= */

#header {
    border-bottom: 1px solid #eee;
    padding: 18px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================
   MENU (SEO friendly, no JS needed)
========================= */

#menu ul {
    display: flex;
    gap: 18px;
    list-style: none;
}

#menu a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
}

#menu a:hover {
    color: #000;
}

/* =========================
   CONTENT
========================= */

main {
    min-height: 60vh;
}

.site-logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.site-branding {
    display: flex;
    align-items: center;
}

/* =========================
   PRODUCT PAGE
========================= */

.product-single {
    display: grid;
    gap: 22px;
}

.product-title {
    font-size: 30px;
    line-height: 1.2;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
}

.buy-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none;
}

.buy-button:hover {
    opacity: .85;
}

.related-products {
    margin-top: 15px;
    margin-bottom: 15px;
}
.product-grid {
    display: flex;
    flex-wrap: wrap;
}
.product-grid a {
    width: 100%;
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.product-grid a:hover {
    color: var(--secondary-color);
}
/* TABLE SEO */
.product-specs {
    width: 100%;
    border-collapse: collapse;
}

.product-specs th,
.product-specs td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: left;
}

/* =========================
   FAQ (Google rich results friendly)
========================= */

.product-faq h3 {
    cursor: pointer;
    font-size: 18px;
}

.faq-item {
    border-top: 1px solid #eee;
    padding: 12px 0;
}

/* =========================
   FOOTER
========================= */

#footer {
    border-top: 1px solid #eee;
    margin-top: 40px;
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}


/* =========================
   HOMEPAGE LAYOUT (ADAPT TO YOUR CSS)
========================= */

.home-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

.home-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.home-box {
    border: 1px solid #eee;
    padding: 16px;
    margin-bottom: 20px;
    background: #fff;
}

.home-box h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

/* Categories */
.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    text-decoration: none;
    color: #222;
}

.category-list a:hover {
    text-decoration: underline;
}

/* Products */
.home-products {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
}
.home-product-card {
    border: 1px solid #eee;
    transition: 0.2s;
    background: #fff;
    margin-top: 10px;
    margin-bottom: 10px;
}
.home-product-card:hover {
    opacity: .8;
}
.home-product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.home-product-title {
    font-size: 14px;
    padding: 10px;
    line-height: 1.3;
}

/* HERO */
.home-hero h1 {
    font-size: 34px;
    margin-bottom: 15px;
}

.home-hero {
    margin-bottom: 30px;
}

.home-text {
    margin-bottom: 30px;
    color: #333;
}
.home-text p {
    margin-top: 0;
    margin-bottom: 15px;
}
.home-text p:last-child {
    margin-top: 0;
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 900px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .home-sidebar {
        position: relative;
        top: auto;
    }
}


/*product category*/
.category-grid{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
}
.category-card{
    border: 1px solid #eee;
    transition: 0.2s;
    background: #fff;
    margin-top: 10px;
    margin-bottom: 10px;
}
.category-card:hover{
    opacity: .8;
}
.category-card h2{
    font-size:16px;
    padding:10px;
}