
/* ===== HOME PAGE SECTIONS ===== */

:root {
    --home-bg: #faf8f4;
    --home-bg-alt: #f0ead8;
    --home-accent: #c4622d;
    --home-dark: #2a2a2a;
    --home-mid: #6b6b6b;
    --home-border: #e0d8cc;
}

.home-section {
    background: var(--home-bg);
    padding: 5rem 0;
}

.home-section-inner {
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 2rem;
}

.home-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.home-section-title {
    font-size: 1.8rem;
    color: #707070;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 0.75rem 0;
}

.home-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #d3ae35;
    margin: 10px 0 0;
}

.home-section-header .home-section-title::after {
    margin-inline: auto;
}

.home-section-desc {
    color: var(--home-mid);
    font-size: 1rem;
    margin: 1.25rem 0 0 0;
    max-width: 520px;
    margin-inline: auto;
    line-height: 1.7;
}

/* promoted products */
.home-promoted {
    background: white;
    padding: 2.5rem 0;
}

.home-promoted-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.home-promoted-date {
    font-size: 0.85rem;
    color: var(--home-mid);
    padding-top: 0.25rem;
}

.home-discount-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: var(--home-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    z-index: 1;
}

.home-product-original {
    font-size: 0.85rem;
    color: var(--home-mid);
    text-decoration: line-through;
}

/* collection */
.home-collection {
    padding-bottom: 2rem;
}

.home-collection-category {
    margin-bottom: 4rem;
}

.home-category-name {
    font-size: 1.1rem;
    color: #707070;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--home-border);
}

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.home-product-card {
    text-decoration: none;
    color: var(--home-dark);
}

.home-product-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f0e8;
    position: relative;
}

.home-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-product-card:hover .home-product-img-wrap img {
    transform: scale(1.06);
}

.home-product-info {
    padding: 0.7rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.home-product-name {
    font-size: 0.9rem;
    text-transform: capitalize;
    color: var(--home-dark);
    line-height: 1.4;
}

.home-product-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--home-accent);
}

/* categories */
.home-categories {
    background: var(--home-bg-alt);
    padding: 5rem 0;
}

.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-category-tile {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
}

.home-category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-category-tile:hover img {
    transform: scale(1.08);
}

.home-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 55%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.home-category-label {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* blog */
.home-blog {
    background: white;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.home-blog-card {
    background: var(--home-bg);
    overflow: hidden;
}

.home-blog-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.home-blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-blog-card:hover .home-blog-img img {
    transform: scale(1.05);
}

.home-blog-content {
    padding: 1.5rem;
}

.home-blog-author {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--home-accent);
    margin: 0 0 0.5rem 0;
}

.home-blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #707070;
    margin: 0 0 0.75rem 0;
}

.home-blog-text {
    font-size: 0.875rem;
    color: var(--home-mid);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 1.25rem 0;
}

.home-blog-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--home-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--home-dark);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.home-blog-link:hover {
    color: var(--home-accent);
    border-color: var(--home-accent);
}

/* home responsive */
@media (max-width: 1024px) {
    .home-products-grid,
    .home-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .home-section-title {
        font-size: 2rem;
    }

    .home-products-grid,
    .home-categories-grid,
    .home-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .home-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== END HOME PAGE SECTIONS ===== */

section.config {
    background: #aa97b6;
}

section.config > .container {
    background: #91819b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

section.config > .container > h2 {
    text-align: center;
    color: white;
}

section.config > .container > h3 {
    color: white;
    margin: 20px 0 0 0;
}

section.config > .container > p {
    color: white;
}

section.config > .container > a {
    width: 100px;
    color: white;
}

section.config > .container > p > a {
    color: white;
}

section.config > .container > table {
    color: white;
    border-collapse: collapse;
    margin: 20px 0 40px 0;
}

section.config > .container > table > tr {
    border-bottom: 1px solid white;
}

section.config > .container > table a {
    color: white;
}

section.config > .container > a > button {
    background-color: #ffc310;
    color: black;
    border: none;
    font-size: 16px;
    font-weight: 400;
    transition: background 0.3s;
    width: 100px;
    height: 40px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    text-transform: uppercase;
    border-radius: .25rem;
}

/* product update page */

.product-update-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .product-update-grid {
        grid-template-columns: 1fr;
    }
}

.product-update-grid .form-field {
    margin-bottom: 1.4rem;
}

.product-update-grid label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: white;
    font-size: 0.95rem;
}

.product-update-grid input[type="text"],
.product-update-grid input[type="number"],
.product-update-grid select,
.product-update-grid textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1rem;
    font-family: inherit;
    color: #444;
    box-sizing: border-box;
}

.product-update-grid textarea {
    resize: vertical;
    min-height: 160px;
}

.active-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.active-row label {
    margin-bottom: 0;
}

.tags-widget {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.tags-widget select {
    flex: 1;
    min-width: 110px;
    height: 130px;
    padding: 0.3rem;
    font-size: 0.9rem;
}

.tags-sublabel {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.tags-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    padding-top: 1.2rem;
}

.prices-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.price-field {
    flex: 1;
    min-width: 100px;
}

.price-field label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.dimensions-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.dimensions-row label {
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.image-item img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.image-upload {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-submit {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-submit {
    padding: 0.6rem 2rem;
    background: #ffc310;
    color: black;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-submit:hover {
    background: #d9a200;
    color: black;
}

.btn-secondary {
    padding: 0.35rem 0.8rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 0.85rem;
    color: #555;
}

.btn-secondary:hover {
    background: #f5f5f5;
    color: #555;
}

/* site navigation */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.site-nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.site-nav-mobile-logo {
    display: none;
}

.site-nav-mobile-logo img,
.site-nav-desktop-logo img {
    width: 180px;
}

.site-nav-desktop-logo {
    padding: 0 1rem;
}

.site-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.site-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #707070;
    transition: transform 0.3s, opacity 0.3s;
}

.site-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.site-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav-collapse {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 40px;
}

.site-nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #4d4d4d;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.site-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0%;
    background: #d3ae35;
    transition: width 0.3s ease-in-out;
}

.site-nav-link:hover,
.site-nav-link.active {
    color: #d3ae35;
}

.site-nav-link:hover::before,
.site-nav-link.active::before {
    width: 100%;
}

@media (max-width: 991px) {
    .site-nav {
        padding: 0.75rem 1rem;
    }

    .site-nav-mobile-logo {
        display: block;
    }

    .site-nav-toggle {
        display: flex;
    }

    .site-nav-desktop-logo {
        display: none;
    }

    .site-nav-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem 1.5rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .site-nav-collapse.is-open {
        display: flex;
    }

    .site-nav-links {
        position: static;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
    }

    .site-nav-link {
        padding: 0.4rem 0;
    }

    .nav-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
        margin-left: auto;
        padding: 0;
    }

    .nav-action-btn {
        height: auto;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}

/* author page */

.author-container {
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 2rem;
}

.author-hero {
    background-color: #f0f0f0;
    padding: 2.5rem 0;
}

.author-hero-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.author-photo {
    flex-shrink: 0;
}

.author-photo img,
.author-photo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d3ae35;
    display: block;
}

.author-photo-placeholder {
    background-color: #ddd;
}

.author-name {
    font-size: 2rem;
    color: #707070;
    margin: 0;
}

.author-bio-section {
    background-color: #ffffff;
    padding: 3rem 0;
}

.author-section-title {
    font-size: 1.25rem;
    color: #707070;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.author-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #d3ae35;
    margin-top: 10px;
}

.author-bio-row {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.author-bio-col {
    flex: 3;
}

.author-categories-col {
    flex: 2;
}

.author-bio-text {
    color: #707070;
    line-height: 1.8;
}

.author-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.author-products-section {
    background-color: #f0f0f0;
    padding: 3rem 0;
}

.author-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.author-product-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
}

.author-product-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.author-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-product-card:hover .author-product-img-wrap img {
    transform: scale(1.04);
}

.author-product-info {
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-product-name {
    color: #707070;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.author-product-card:hover .author-product-name {
    color: #d3ae35;
}

.author-product-price {
    color: #707070;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    .author-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-bio-row {
        flex-direction: column;
    }

    .author-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .author-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .author-name {
        font-size: 1.5rem;
    }
}

/* single product page */

.single-product {
    padding: 3rem 0;
}

.single-product-container {
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 2rem;
}

.single-product-row {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.single-product-image-col {
    flex: 1;
    min-width: 0;
}

.single-product-image-col .big-image {
    width: auto;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

.single-product-info-col {
    flex: 1;
    min-width: 0;
}

.product-author {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.product-author a {
    color: #707070;
    text-decoration: none;
}

.product-author a:hover {
    color: #d3ae35;
}

.product-title {
    font-size: 1.6rem;
    color: #333;
    margin: 0 0 1.5rem 0;
}

.product-price {
    margin-bottom: 1.5rem;
}

.product-price-label {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 0.25rem 0;
}

.product-price-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.product-section-label {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 0.25rem 0;
}

.product-description {
    color: #555;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
}

.product-cart-row {
    margin-top: 1rem;
}

.product-cart-row .add-to-cart,
.product-cart-row .add-to-cart-disabled {
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    border: 1px solid #888;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.product-cart-row .add-to-cart:hover {
    background: #333;
    color: white;
    border-color: #333;
}

.product-cart-row .add-to-cart-disabled {
    color: #aaa;
    border-color: #ccc;
    cursor: not-allowed;
}

.similar-products {
    background-color: #f0f0f0;
    padding: 3rem 0;
}

.similar-products-title {
    font-size: 1.25rem;
    color: #707070;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.similar-products-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #d3ae35;
    margin-top: 10px;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.similar-product-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
}

.similar-product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.similar-product-card:hover img {
    transform: scale(1.04);
}

.similar-product-name {
    padding: 0.75rem 0.5rem;
    color: #707070;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.similar-product-card:hover .similar-product-name {
    color: #d3ae35;
}

@media (max-width: 900px) {
    .single-product-row {
        flex-direction: column;
    }

    .similar-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* page hero — about, authors */
.page-hero {
    height: 10rem;
    background-size: cover;
    background-position: bottom left;
    background-repeat: no-repeat;
    margin-bottom: 3.5rem;
    text-align: center;
}

/* authors page */
.authors-section {
    padding: 0 0 3rem;
}

.authors-list a {
    color: #707070;
    text-decoration: none;
    font-size: 1.1rem;
}

.authors-list a:hover {
    color: #333;
}

/* about page */
.about-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    background-color: #707070;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.about-btn:hover {
    background-color: #555;
    color: #d3ae35;
}

.about-section {
    padding: 0 0 3rem;
}

.about-content-row {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-content {
    flex: 1;
    color: #707070;
    line-height: 1.8;
}

.about-figure {
    flex: 1;
    margin: 0;
}

.about-figure img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .about-content-row {
        flex-direction: column;
    }
}

/* contact page */
.contact-section {
    padding: 0 0 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 640px;
    margin-inline: auto;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--home-border);
    background: white;
    color: var(--home-dark);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.contact-input:focus {
    border-color: #707070;
}

.contact-math {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-math p {
    color: var(--home-mid);
    font-size: 0.9rem;
    margin: 0;
}

.contact-submit {
    align-self: flex-start;
    padding: 0.65rem 2rem;
    background: #707070;
    color: white;
    border: none;
    font-size: 0.9rem;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-submit:hover {
    background: #555;
}

.contact-info-section {
    background: var(--home-bg-alt);
    padding: 2.5rem 0;
}

.contact-info {
    text-align: center;
    color: var(--home-mid);
    font-size: 1rem;
}

.contact-info p {
    margin: 0.25rem 0;
}

.contact-info a {
    color: var(--home-mid);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--home-dark);
}

@media (max-width: 576px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}
