/*=========================================  Static Page — Fokus tema  =========================================*/

/* -------- Page hero -------- */
.page-hero-wrap {
    background: #f5f5f5;
    border-bottom: 1px solid var(--color-border);
    padding: 56px 0 52px;
    text-align: center;
}

.page-hero__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    font-family: var(--font-primary);
    margin: 0;
}

/* -------- Page body -------- */
.page-body-wrap {
    padding: 64px 0 80px;
}

.page-body {
    max-width: 1425px;
    margin: 0 auto;
    padding: 0 var(--container-padding, 68px);
}

/* 960px samo za statine stranice (ne WooCommerce stranice) */
.page:not(.woocommerce-page) .page-body {
    max-width: 960px;
}

/* -------- Entry content typography (same as single post) -------- */
.page-body .entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
    font-family: var(--font-primary);
}

.page-body .entry-content > * + * {
    margin-top: 24px;
}

.page-body .entry-content p {
    margin: 0 0 24px;
}

.page-body .entry-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 16px;
    line-height: 1.3;
    color: var(--color-text);
}

.page-body .entry-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    line-height: 1.35;
}

.page-body .entry-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 10px;
}

.page-body .entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-body .entry-content a:hover {
    text-decoration: none;
}

.page-body .entry-content strong {
    font-weight: 700;
}

.page-body .entry-content em {
    font-style: italic;
}

.page-body .entry-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px auto;
}

.page-body .entry-content figure {
    margin: 32px 0;
}

.page-body .entry-content figure img {
    margin: 0 auto;
    border-radius: 8px;
}

.page-body .entry-content figcaption {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 10px;
    font-style: italic;
}

.page-body .entry-content blockquote {
    position: relative;
    border-left: 4px solid var(--color-accent);
    margin: 40px 0;
    padding: 28px 32px 28px 56px;
    background: #fdf8f8;
    border-radius: 0 12px 12px 0;
}

.page-body .entry-content blockquote::before {
    content: '\201C';
    position: absolute;
    left: 16px;
    top: 18px;
    font-size: 52px;
    line-height: 1;
    color: var(--color-accent);
    font-family: Georgia, serif;
    opacity: 0.55;
}

.page-body .entry-content blockquote p {
    font-size: 18px;
    font-style: italic;
    color: var(--color-text);
    margin: 0;
    line-height: 1.75;
}

.page-body .entry-content blockquote cite,
.page-body .entry-content blockquote footer {
    display: block;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 14px;
}

.page-body .entry-content ul,
.page-body .entry-content ol {
    padding-left: 24px;
    margin: 0 0 24px;
}

.page-body .entry-content li {
    margin-bottom: 8px;
    line-height: 1.75;
}

.page-body .entry-content ul li::marker {
    color: var(--color-accent);
}

.page-body .entry-content hr {
    border: none;
    border-top: 1.5px solid var(--color-border);
    margin: 40px 0;
}

/* =========================================
   Poklon bonovi — page-poklon-bon.php
   ========================================= */

.gc-page-wrap {
    padding: 72px 0 96px;
}

.gc-page-wrap .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--container-padding, 68px);
}

.gc-page-intro {
    margin-bottom: 64px;
    font-size: 15px;
    line-height: 1.7;
}

.gc-page-intro p { margin: 0 0 16px; }
.gc-page-intro p:last-child { margin-bottom: 0; }

/* ── 3-column product grid ── */
.gc-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.gc-product-card {
    display: flex;
    flex-direction: column;
}

/* Horizontalna slika poklon bona (3:2 omjer) */
.gc-product-card__img-wrap {
    overflow: hidden;
    border-radius: 10px;
    background: #f0f0f0;
    line-height: 0;
    transition: box-shadow 0.25s ease;
}

.gc-product-card:hover .gc-product-card__img-wrap {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.gc-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gc-product-card:hover .gc-product-card__img {
    transform: scale(1.03);
}

.gc-product-card__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 22px;
    gap: 12px;
}

.gc-product-card__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text, #000);
    line-height: 1.3;
}

.gc-product-card__price {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-accent, #D65A5A);
    white-space: nowrap;
}

.gc-product-card__price del {
    color: #999;
    font-weight: 400;
    font-size: 13px;
}

.gc-product-card__price ins {
    text-decoration: none;
}

/* ATC gumb */
.gc-product-card__atc {
    display: block;
    text-align: center;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent, #D65A5A);
    background: #fff;
    border: 2px solid var(--color-accent, #D65A5A);
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    margin-top: auto;
}

.gc-product-card__atc:hover {
    background: var(--color-accent, #D65A5A);
    color: #fff;
    text-decoration: none;
}

.gc-product-card__atc.loading { opacity: 0.7; pointer-events: none; }

/* Added state — primarna boja umjesto zelene (WC default). */
.gc-product-card__atc.added {
    background: var(--color-accent, #D65A5A);
    border-color: var(--color-accent, #D65A5A);
    color: #fff;
}

/* "Vidi košaricu" link (WC injektira .added_to_cart nakon AJAX ATC) */
.gc-product-card .added_to_cart {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text, #000);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.gc-product-card .added_to_cart::after {
    content: " \2192"; /* → */
    color: var(--color-accent, #D65A5A);
}

.gc-product-card .added_to_cart:hover {
    color: var(--color-accent, #D65A5A);
    text-decoration: none;
}

.gc-product-card__atc--oos {
    background: #f0f0f0;
    border-color: #ccc;
    color: #999;
    pointer-events: none;
    cursor: default;
}

/* -------- Responsive -------- */
@media (max-width: 992px) {
    .gc-products-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
    .gc-products-grid { grid-template-columns: 1fr; gap: 24px; }
    .gc-page-wrap { padding: 40px 0 60px; }
    .gc-page-wrap .container { padding: 0 24px; }
}

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

/* -------- Responsive (page) -------- */
@media (max-width: 768px) {
    .page-hero__title {
        font-size: 28px;
    }

    .page-hero-wrap {
        padding: 40px 0 36px;
    }

    .page-body {
        padding: 0 24px;
    }

    .page-body-wrap {
        padding: 48px 0 64px;
    }

    .page-body .entry-content {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-hero__title {
        font-size: 24px;
    }
}
