@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
    --paper: #FAF6EE;
    --paper-raised: #FFFFFF;
    --ink: #2B2620;
    --ink-soft: #6B6255;
    --forest: #3B6B4F;
    --forest-dark: #274935;
    --honey: #D98F2B;
    --honey-dark: #B5721B;
    --border: #E4DCC8;
    --danger: #B4402A;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(43, 38, 32, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-top: 1.6em; }

a {
    color: var(--forest-dark);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

/* --- Layout --- */
main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
}

/* --- Header --- */
.site-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--border);
}

.site-header .logo {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--forest-dark);
}
.site-header .logo::before {
    content: "\1F43E";
    margin-right: 0.4rem;
    font-size: 1.1rem;
}

.nav-toggle {
    display: none;
    background: var(--paper);
    border: 1px solid var(--border);
    color: var(--ink);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
    margin: 0;
}

.main-nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    order: 3;
    flex-basis: 100%;
}
.main-nav a {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
}
.main-nav a:hover { color: var(--forest-dark); }

.cart-link {
    background: var(--forest);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}
.cart-link:hover {
    background: var(--forest-dark);
    text-decoration: none;
}

.account-link {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .main-nav { order: 0; flex-basis: auto; }
}

@media (max-width: 639px) {
    .nav-toggle { display: inline-block; order: 2; }
    .main-nav {
        display: none;
        order: 4;
        flex-direction: column;
        gap: 0;
        background: var(--paper-raised);
        border-top: 1px dashed var(--border);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a {
        padding: 0.55rem 0.25rem;
        border-bottom: 1px solid var(--border);
    }
    .main-nav a:last-child { border-bottom: none; }
}

/* --- Hero --- */
.hero {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 2rem;
}

/* --- Trust bar --- */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
}
.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
}
.trust-bar__item a {
    color: var(--ink-soft);
    font-weight: 600;
}
.trust-bar__item a:hover { color: var(--forest-dark); }
.trust-bar__icon { font-size: 1rem; }

/* --- Category grid --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    text-align: center;
}
.category-card:hover { text-decoration: none; }
.category-card img,
.category-card__placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    background: var(--paper-raised);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.15s ease;
}
.category-card:hover img,
.category-card:hover .category-card__placeholder {
    transform: translateY(-2px);
    border-color: var(--forest);
}
.category-card span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
}

/* --- Διαγραμμένη τιμή --- */
.price-compare {
    text-decoration: line-through;
    color: var(--ink-soft);
    font-weight: 400;
    margin-right: 0.4rem;
    font-size: 0.9em;
}

/* --- Section tabs (π.χ. Προσφορές / Όλα τα προϊόντα) --- */
.section-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.section-tabs__tab {
    padding: 0.6rem 0.25rem;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink-soft);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
a.section-tabs__tab:hover {
    color: var(--forest-dark);
    text-decoration: none;
}
.section-tabs__tab.is-active {
    color: var(--ink);
    border-bottom-color: var(--forest);
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 0 0 2rem;
    aspect-ratio: 21 / 9;
    max-height: 380px;
}
.hero-slider__track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}
.hero-slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #fff;
    text-decoration: none;
    position: relative;
}
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43,38,32,0.65), transparent 60%);
}
.hero-slide__text {
    position: relative;
    padding: 1.5rem;
    font-family: 'Fraunces', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
}
.hero-slider__dots {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    display: flex;
    gap: 0.4rem;
}
.hero-slider__dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    padding: 0;
    margin: 0;
    cursor: pointer;
}
.hero-slider__dots button.is-active { background: #fff; }

@media (max-width: 480px) {
    .hero-slider { aspect-ratio: 16 / 10; max-height: none; }
    .hero-slide { background-position: center center; }
}

/* --- Product grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: var(--paper-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 38, 32, 0.1);
    text-decoration: none;
}

.product-card__image {
    background: var(--paper);
    border-radius: calc(var(--radius) - 6px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-size: 2rem;
    width: 100%;
    object-fit: cover;
}
.product-card__image::before { content: "\1F43E"; opacity: 0.5; }

.product-gallery {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.product-gallery img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.product-card__name {
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}
.product-card__price {
    color: var(--honey-dark);
    font-weight: 700;
    margin: 0;
}

.product-brand {
    color: var(--ink-soft);
    font-weight: 600;
    margin-top: -0.5em;
}

/* --- Forms --- */
label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin: 1rem 0 0.3rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    max-width: 420px;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--paper-raised);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
}
input:focus, select:focus {
    outline: 2px solid var(--forest);
    outline-offset: 1px;
}

button, .button-primary {
    display: inline-block;
    background: var(--forest);
    color: #fff;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.25rem;
}
button:hover, .button-primary:hover {
    background: var(--forest-dark);
    text-decoration: none;
}

.product-form label:first-of-type { margin-top: 0.5rem; }

/* --- Cart / order tables --- */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.cart-table th, .cart-table td {
    text-align: left;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.cart-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
}
.cart-table input[type="number"] { max-width: 70px; }

.cart-summary {
    background: var(--paper-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1.5rem;
    max-width: 320px;
}
.cart-summary p { margin: 0.3rem 0; }

/* --- Messages --- */
.errors {
    background: #FBEAE6;
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    list-style: none;
    margin: 1rem 0;
}
.error { color: var(--danger); font-weight: 600; }
.muted-note { color: var(--ink-soft); font-size: 0.85rem; }

/* --- Footer --- */
.site-footer {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.85rem;
    padding: 2rem 1.25rem;
    border-top: 1px dashed var(--border);
    margin-top: 3rem;
}

/* --- Mobile refinements --- */
@media (max-width: 480px) {
    .site-header { padding: 0.85rem 1rem; }
    main { padding: 1.25rem 1rem 3rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.85rem; }
    .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
    .cart-summary { max-width: 100%; }
}
