/* =========================
   RESET + PERFORMANCE BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* =========================
   BASE TYPOGRAPHY (SEO readable)
========================= */

:root {
    --font-family-base: Arial, Helvetica, sans-serif;
    --font-family-heading: Arial, Helvetica, sans-serif;

    --font-size-base: 18px;
    --line-height-base: 1.8;

    --color-text: #222;
    --color-heading: #111;
    --color-muted: #666;
    --color-link: #0066cc;

    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 40px;
    --space-2xl: 60px;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: #fff;
    text-rendering: optimizeLegibility;
}

/* =========================================================
   HEADINGS
   ========================================================= */

h1,h2,h3,h4,h5,h6 {
    margin-top: 0;
    margin-bottom: var(--space-md);

    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;

    color: var(--color-heading);
}
/* H1 */
h1 {
    font-size: clamp(32px, 4vw, 40px);
}
/* H2 */
h2 {
    font-size: clamp(28px, 3.2vw, 36px);
}
/* H3 */
h3 {
    font-size: clamp(24px, 2.5vw, 32px);
}
/* H4 */
h4 {
    font-size: clamp(20px, 2vw, 28px);
}
/* H5 */
h5 {
    font-size: 22px;
}
/* H6 */
h6 {
    font-size: 18px;
}
/* =========================================================
   PARAGRAPHS
   ========================================================= */
p {
    margin-top: 0;
    margin-bottom: var(--space-md);
    font-size: 400;
}
p:last-child {
    margin-bottom: 0;
}
/* =========================================================
   LINKS
   ========================================================= */
a {
    color: var(--color-link);
    text-decoration: none;
    transition: 0.3s ease;
}
a:hover {
    opacity: .7;
}
a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
/* =========================================================
   STRONG / EMPHASIS
   ========================================================= */
strong,
b {
    font-weight: 700;
}
em,
i {
    font-style: italic;
}
/* =========================================================
   LISTS
   ========================================================= */
ul,
ol {
    margin-top: 0;
    margin-bottom: var(--space-md);
    padding-left: 30px;
}
ul {
    list-style: disc;
}
ol {
    list-style: decimal;
}
li {
    margin-bottom: var(--space-xs);
}
li:last-child {
    margin-bottom: 0;
}
/* Nested lists */
ul ul,
ul ol,
ol ul,
ol ol {
    margin-top: var(--space-xs);
    margin-bottom: 0;
}
/* =========================================================
   BLOCKQUOTE
   ========================================================= */
blockquote {
    margin: var(--space-lg) 0;
    padding: var(--space-md) var(--space-lg);

    border-left: 4px solid currentColor;

    font-size: 1.15em;
    font-style: italic;
}
/* =========================================================
   CODE
   ========================================================= */
code,kbd,samp,pre {
    font-family: Consolas, Monaco, monospace;
}
code,kbd {
    padding: 2px 6px;
    border-radius: 4px;
    background: #f3f3f3;
}
pre {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);

    overflow-x: auto;

    border-radius: 6px;
    background: #f3f3f3;
}
/* =========================================================
   HR
   ========================================================= */
hr {
    margin: var(--space-xl) 0;

    border: 0;
    border-top: 1px solid #ddd;
}
/* =========================================================
   IMAGES
   ========================================================= */
img {
    max-width: 100%;
    height: auto;
}
figure {
    margin: var(--space-lg) 0;
}
figcaption {
    margin-top: var(--space-xs);

    font-size: 14px;
    line-height: 1.4;
    color: var(--color-muted);
}
/* =========================================================
   TABLES
   ========================================================= */
table {
    width: 100%;
    margin-bottom: var(--space-lg);

    border-collapse: collapse;
}
th,
td {
    padding: 12px 15px;

    text-align: left;
    vertical-align: top;

    border: 1px solid #ddd;
}
th {
    font-weight: 700;
    background: #f5f5f5;
}
figure.wp-block-table > table {
    margin-bottom: 0;
}
/* =========================================================
   accordion
   ========================================================= */
.wp-block-accordion-heading {
    background-color: #e9e9e9;
    padding-left: 10px;
    padding-right: 10px;
}
.wp-block-accordion-heading__toggle-title {
    font-size: 22px;
}
.wp-block-accordion-panel {
    padding: 0 10px;
    background-color: #f3f3f3;
    margin-top: 0;
}
.wp-block-accordion-panel p {
    font-size: 20px;
    font-weight: 400;
}
/* =========================================================
   FORMS
   ========================================================= */
label {
    display: inline-block;
    margin-bottom: var(--space-xs);

    font-weight: 600;
}
input,
textarea,
select,
button {
    font: inherit;
}
input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;

    border: 1px solid #ccc;
    border-radius: 4px;

    background: #fff;
}
textarea {
    min-height: 150px;
    resize: vertical;
}
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    cursor: pointer;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-form {
    width: 100%;
    max-width: 800px;
    margin: auto;
    margin-bottom: 70px;
}

/* =========================================================
   FIELD
   ========================================================= */
.contact-form__field {
    margin-bottom: 24px;
}

/* =========================================================
   LABEL
   ========================================================= */
.contact-form__field > label {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-heading);
}
/* =========================================================
   REQUIRED / OPTIONAL
   ========================================================= */
.contact-form__required,
.contact-form__optional {
    display: inline-flex;
    align-items: center;

    padding: 2px 7px;

    border-radius: 3px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
.contact-form__required {
    color: #fff;
    background: #d9534f;
}
.contact-form__optional {
    color: #666;
    background: #eee;
}
/* =========================================================
   INPUTS
   ========================================================= */
.contact-form__input,
.contact-form__textarea {
    display: block;
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #ccc;
    border-radius: 4px;

    background: #fff;

    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
/* =========================================================
   INPUT FOCUS
   ========================================================= */
.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;

    border-color: var(--color-link);

    box-shadow: 0 0 0 3px rgb(0 102 204 / 10%);
}
/* =========================================================
   SELECT
   ========================================================= */
select.contact-form__input {
    min-height: 50px;
    cursor: pointer;
    appearance: auto;
}
/* =========================================================
   TEXTAREA
   ========================================================= */
.contact-form__textarea {
    min-height: 180px;

    resize: vertical;
}
/* =========================================================
   PRIVACY
   ========================================================= */
.contact-form__privacy {
    margin-top: 30px;
    margin-bottom: 30px;
}
/* =========================================================
   CHECKBOX
   ========================================================= */
.contact-form__checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 14px;
    line-height: 1.6;
}
.contact-form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
}
.contact-form__checkbox a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* =========================================================
   SUBMIT
   ========================================================= */
.contact-form__submit {
    text-align: center;
}
.contact-form__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 220px;
    min-height: 52px;
    max-width: 400px;

    padding: 12px 30px;

    border: 0;
    border-radius: 4px;

    background: var(--color-heading);
    color: #fff;

    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}
.contact-form__button:hover {
    opacity: 0.85;
}
.contact-form__button:active {
    transform: translateY(1px);
}
.contact-form__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* =========================================================
   CF7 VALIDATION
   ========================================================= */
.contact-form .wpcf7-not-valid {
    border-color: #d9534f;
}
.contact-form .wpcf7-not-valid-tip {
    margin-top: 6px;

    font-size: 13px;
    line-height: 1.5;
    color: #d9534f;
}
/* =========================================================
   CF7 RESPONSE
   ========================================================= */
.contact-form .wpcf7-response-output {
    margin: 25px 0 0;
    padding: 12px 15px;

    border-radius: 4px;

    font-size: 14px;
    line-height: 1.5;
}
/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 767px) {

    .contact-form__field {
        margin-bottom: 20px;
    }

    .contact-form__input,
    .contact-form__textarea {
        padding: 12px 13px;
        font-size: 16px;
    }

    .contact-form__textarea {
        min-height: 160px;
    }

    .contact-form__checkbox {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .contact-form__button {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   SMALL / MUTED TEXT
   ========================================================= */
small {
    font-size: 14px;
    line-height: 1.4;
}
.muted {
    color: var(--color-muted);
}
/* =========================================================
   SELECTION
   ========================================================= */
::selection {
    background: var(--color-heading);
    color: #fff;
}
/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }
    h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 28px;
    }
    h3 {
        font-size: 24px;
    }
    h4 {
        font-size: 21px;
    }
    h5 {
        font-size: 19px;
    }
    h6 {
        font-size: 17px;
    }
    ul,
    ol {
        padding-left: 24px;
    }
}

/* =========================
   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;
    flex-direction: column;
}

/* =========================
   MENU (SEO friendly, no JS needed)
========================= */

#menu ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 10px 30px;
}


#menu li {
    background-color: #ffffff;
    transition: .3s;
    padding: 10px;
}
#menu a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    font-size: 18px;
}
#menu li:hover {
    background-color: #efefef;
} 
#menu a:hover {
    color: #000;
}

#menu li.current-menu-item a {
    font-weight: 600;
}

/* =========================
   CONTENT
========================= */

main {
    min-height: 60vh;
}

.site-logo img {
    max-width: 750px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.site-branding {
    display: flex;
    align-items: center;
}


@media (max-width: 767px) {
    .site-logo img {
        max-height: 400px;
        width: 100%;
        display: block;
    }
}

header > .entry-title {
    margin-bottom: 70px;
    text-align: center;
    font-size: clamp(40px, 4vw, 60px);
}

.breadcrumbs a {
    color: #a62126;
    font-weight: 400;
}

/* =========================
   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: 35px;
    margin-bottom: 15px;
}
.related-products h2 {
    font-size: 18px;
    font-weight: 600;
    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;
}

.product-description {
    margin-top: 25px;
}

/* =========================
   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-layout.no-sidebar {
    grid-template-columns: 1fr;
}

.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;
    align-items: flex-start;
    margin-left: -15px;
    margin-right: -15px;
    margin-top: 20px;
}
.category-card-inner {
    padding: 0 15px 15px;
}
.category-card {
    transition: 0.2s;
    background: #fff;

    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}
.category-card a {
    display: block;
    padding: 15px;
    border: 1px solid #eee;
    text-decoration: none;
}
.category-card a:hover{
    opacity: .8;
}
.category-card h2{
    font-size:16px;
    font-weight: 600;
}
.category-card-description {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 400;
}

@media (max-width: 900px) {
    .category-card{
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}