/* Magic Linen — custom shop homepage (full-width, centered) */

body.tks-custom-home {
    background: #f7f5f2;
}

body.tks-custom-home #homeMain {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.shop-wrap {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.shop-loading {
    padding: 80px 24px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* ── Banner ── */
.shop-banner {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-color: #3d3d3d;
    background-size: cover;
    background-position: center;
}

.shop-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.1) 100%);
}

.shop-banner-content {
    position: relative;
    z-index: 1;
    padding: 64px 0;
    max-width: 560px;
    color: #fff;
}

.shop-banner-tag {
    margin: 0 0 20px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.9;
}

.shop-banner-title {
    margin: 0 0 16px;
    font-family: var(--font-heading, "Chivo", sans-serif);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.shop-banner-desc {
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 1.65;
    opacity: 0.92;
}

.shop-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Buttons ── */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading, "Chivo", sans-serif);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    transition: opacity 0.2s, background 0.2s;
}

.shop-btn--light {
    background: #fff;
    color: #1f1f1f;
    border-color: #fff;
}

.shop-btn--light:hover { opacity: 0.9; }

.shop-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.shop-btn--ghost:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.shop-btn--dark {
    background: #1f1f1f;
    color: #fff;
    border-color: #1f1f1f;
}

.shop-btn--dark:hover { opacity: 0.88; }

/* ── Trust bar ── */
.shop-trust {
    background: #fff;
    border-bottom: 1px solid #e3dfd8;
}

.shop-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 28px 0;
    text-align: center;
}

.shop-trust-item strong {
    display: block;
    font-family: var(--font-heading, "Chivo", sans-serif);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: #1f1f1f;
}

.shop-trust-item span {
    font-size: 13px;
    color: #6b6b6b;
}

/* ── Sections ── */
.shop-section {
    padding: 56px 0;
}

.shop-section--gray {
    background: #fff;
    border-top: 1px solid #e3dfd8;
}

.shop-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.shop-section-head h2 {
    margin: 0;
    font-family: var(--font-heading, "Chivo", sans-serif);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1f1f1f;
}

.shop-section-head a {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b6b6b;
    text-decoration: none;
}

.shop-section-head a:hover { color: #1f1f1f; }

/* ── Product grid ── */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
}

.shop-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.shop-product-img {
    aspect-ratio: 1;
    background: #eceae6;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 2px;
}

.shop-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-product-link:hover .shop-product-img img {
    transform: scale(1.04);
}

.shop-product-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #1f1f1f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-product-price {
    margin: 0;
    font-size: 14px;
    color: #1f1f1f;
}

/* ── Category grid ── */
.shop-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.shop-category {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #f7f5f2;
    border: 1px solid #e3dfd8;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.shop-category:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.shop-category-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #eceae6;
}

.shop-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-category:hover .shop-category-img img {
    transform: scale(1.03);
}

.shop-category span {
    display: block;
    padding: 16px;
    text-align: center;
    font-family: var(--font-heading, "Chivo", sans-serif);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1f1f1f;
}

/* ── Bottom CTA ── */
.shop-cta {
    background: #eceae6;
    border-top: 1px solid #e3dfd8;
}

.shop-cta-inner {
    padding: 56px 0;
    text-align: center;
}

.shop-cta-inner h2 {
    margin: 0 0 12px;
    font-family: var(--font-heading, "Chivo", sans-serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-cta-inner p {
    margin: 0 0 24px;
    color: #6b6b6b;
    font-size: 15px;
}

.shop-empty {
    padding: 80px 24px;
    text-align: center;
}

.shop-empty h1 {
    font-family: var(--font-heading, "Chivo", sans-serif);
    font-weight: 400;
    margin-bottom: 12px;
}

.shop-empty p {
    color: #6b6b6b;
    margin-bottom: 24px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .shop-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .shop-banner {
        min-height: 440px;
    }
}

@media (max-width: 640px) {
    .shop-wrap {
        width: calc(100% - 32px);
    }

    .shop-trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .shop-product-grid,
    .shop-category-grid {
        grid-template-columns: 1fr;
    }

    .shop-banner {
        min-height: 380px;
    }

    .shop-banner-content {
        padding: 48px 0;
    }

    .shop-section {
        padding: 40px 0;
    }
}
