/*
Theme Name: Annies Goods
Theme URI: 
Author URI: Annie Mayer
Description: Annies Goods mini
Version: 1.0
*/
:root {
    --color-primary: #2C3E33;
    --color-secondary: #8B5A2B;
    --color-bg: #F4F1EA;
    --color-text: #3E3B36;
    --color-accent: #D98E40;
    --color-white: #FFFFFF;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Manrope', sans-serif;
    --container-width: 1200px;
    --spacing-section: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 300;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* --- Header --- */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(244, 241, 234, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
    border-bottom: 1px solid #E0DDD5;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu a:hover {
    color: var(--color-secondary);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
}

.header-cta i {
    font-style: normal;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* --- Hero Block --- */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('hero3.png') no-repeat center/cover;
    color: var(--color-white);
}

.hero-content {
    padding: 15px;
    position: relative;
}

.container.hero-content:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 55 14 / 10%);
    z-index: 0;
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 56px;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    position: relative;
}

.hero-buttons .btn-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero-buttons .btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.hero-footer {
    font-size: 13px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* --- Категории --- */
.section {
    padding: var(--spacing-section) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cat-card {
    background: var(--color-white);
    padding: 40px;
    text-align: center;
    border: 1px solid #EAEaea;
    transition: 0.3s;
}

.cat-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.cat-image {
    height: 200px;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.cat-image img {
    width: 100%;
    height: 100%;
    transition: 0.5s;
}

.cat-card:hover .cat-image img {
    transform: scale(1.05);
}

.cat-card h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.cat-card p {
    margin-bottom: 25px;
    color: #555;
}

.link-arrow {
    color: var(--color-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--color-secondary);
}

/* --- Хиты --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: transparent;
}

.product-img {
    width: 100%;
    height: 320px;
    background-color: #ddd;
    margin-bottom: 15px;
    position: relative;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.product-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 18px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- О мастере --- */
.about-section {
    background-color: #EBE7DE;
}

.about-container {
    display: grid;
    grid-template-columns: 375px 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 17px;
}

.about-img {
    height: 500px;
    margin: auto;
}


/* --- Advantages --- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
}

.adv-icon {
    font-size: 30px;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.adv-item h3 {
    font-size: 20px;
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.adv-item p {
    font-size: 14px;
    color: #555;
}

/* --- Footer --- */
footer {
    background-color: var(--color-primary);
    color: #D3D3D3;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 15px;
    }

    .menu-toggle:after {
        content: "☰";
    }

    .menu-toggle.active:after {
        content: "⨉";
    }

    .nav-menu {
        display: none;
        width: 100%;
        margin-top: 20px;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-cta {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
        height: 300px;
    }
}