/*
 Theme Name:   Rife Free Child
 Template:     rife-free
 Version:      1.0.0
*/

/* ============================================
   1) BLOG HEADER — BRANDIRANI, MODERNI, ČISTI
   ============================================ */

.page-header {
    height: 180px;
    background: linear-gradient(135deg, #fce9d2, #fff5e8);
    border-bottom: 3px solid #e8d7b8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.page-header .page-title {
    color: transparent !important;
    text-shadow: none !important;
    position: relative;
}

.page-header .page-title::before {
    content: "Novosti i savjeti";
    color: #5a4632;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.page-header::after {
    content: "";
    width: 60px;
    height: 4px;
    background: #c06b3e;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ============================================
   2) BLOG GRID — MODERNE KARTICE
   ============================================ */

.blog .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.blog .post-item {
    background: #fffaf3;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #f0e4d2;
}

.blog .post-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.blog h2.entry-title a {
    font-weight: 800;
    color: #3a2f25;
    text-decoration: none;
    font-size: 22px;
}

.blog h2.entry-title a:hover {
    color: #c06b3e;
}

.blog .post-item .entry-date {
    font-size: 13px;
    color: #8a7f74;
    margin-bottom: 10px;
}

.blog .entry-summary {
    font-size: 15px;
    color: #4a4038;
    line-height: 1.7;
    margin-top: 10px;
}

.blog .read-more {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    background: #c06b3e;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.blog .read-more:hover {
    background: #a55a32;
}

/* ============================================
   3) DEKLARACIJE PROIZVODA
   ============================================ */

.product-declaration {
    margin-top: 30px;
    padding: 20px 22px;
    background: #f8f8f8 !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 8px !important;
    overflow: visible !important;
    line-height: 1.5;
}

.product-declaration p {
    margin: 6px 0;
    font-size: 15px;
    color: #333;
}

.product-declaration strong {
    color: #111;
    font-weight: 600;
}

.product-declaration::before {
    content: "Deklaracija proizvoda";
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
    border-bottom: 2px solid #d0d0d0;
    padding-bottom: 6px;
}

/* ============================================
   4) HOME.PHP — CUSTOM BLOG GRID
   ============================================ */

.blog-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.blog-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-page-header h1 {
    font-size: 34px;
    font-weight: 800;
    color: #3a2f25;
    margin-bottom: 8px;
}

.blog-page-header p {
    font-size: 16px;
    color: #6b5b4b;
}

.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 20px;
}

.blog-card {
    background: #fffaf3;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #f0e4d2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.blog-card-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-date {
    font-size: 13px;
    color: #8a7f74;
    margin-bottom: 6px;
}

.blog-card-title a {
    font-size: 20px;
    font-weight: 800;
    color: #3a2f25;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #c06b3e;
}

.blog-card-excerpt {
    font-size: 15px;
    color: #4a4038;
    line-height: 1.7;
    margin-bottom: 14px;
    flex: 1;
}

.blog-card-readmore {
    align-self: flex-start;
    padding: 8px 16px;
    background: #c06b3e;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.blog-card-readmore:hover {
    background: #a55a32;
}

.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

/* ============================================
   5) SINGLE POST — WRAPPER & LAYOUT
   ============================================ */

.single-page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.single-header {
    text-align: center;
    margin: 60px auto 30px;
}

.single-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #3a2f25;
}

.single-meta {
    font-size: 14px;
    color: #8a7f74;
    margin-top: 8px;
}

.single-featured img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.single-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: #4a4038;
}

.single-content p {
    margin-bottom: 22px;
}

.single-content ul,
.single-content ol {
    margin: 20px 0 30px 24px;
    line-height: 1.7;
}

.single-content blockquote {
    border-left: 4px solid #c06b3e;
    padding-left: 18px;
    margin: 30px 0;
    color: #5a4632;
    font-style: italic;
    background: #fffaf3;
    border-radius: 6px;
}

.single-content h2,
.single-content h3 {
    color: #3a2f25;
    margin-top: 40px;
}

/* ============================================
   6) RELATED POSTS
   ============================================ */

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.related-card {
    background: #fffaf3;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    transition: transform 0.25s ease;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
}

.related-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #3a2f25;
    margin: 0;
}

.related-card a:hover h3 {
    color: #c06b3e;
}

/* ============================================
   7) SINGLE FOOTER
   ============================================ */

.single-footer {
    text-align: center;
    margin: 60px 0;
}

.single-footer a {
    display: inline-block;
    padding: 10px 20px;
    background: #c06b3e;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.single-footer a:hover {
    background: #a55a32;
}

/* ============================================
   8) MOBILE FIXES — OPTIMIZIRANO ZA MOBITEL
   ============================================ */

@media (max-width: 768px) {

    /* Header */
    .page-header {
        height: 140px;
    }

    .page-header .page-title::before {
        font-size: 26px;
    }

    /* BLOG GRID */
    .blog .post-item {
        padding: 20px;
    }

    .blog h2.entry-title a {
        font-size: 20px;
    }

    .blog .post-item img {
        height: 160px !important;
        object-fit: cover;
        border-radius: 10px;
    }

    /* HOME.PHP GRID */
    .blog-card-thumb img {
        height: 150px;
        object-fit: cover;
    }

    .blog-card-body {
        padding: 16px;
    }

    .blog-card-title a {
        font-size: 18px;
    }

    .blog-card-excerpt {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* SINGLE POST */
    .single-page-wrapper {
        padding: 20px 16px 60px;
    }

    .single-header {
        margin: 30px auto 20px;
    }

    .single-header h1 {
        font-size: 26px;
        line-height: 1.2;
    }

    .single-featured img {
        margin: 20px 0;
        border-radius: 10px;
    }

    .single-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .single-content h2 {
        font-size: 22px;
        margin-top: 30px;
    }

    .single-content h3 {
        font-size: 18px;
        margin-top: 24px;
    }

    /* RELATED POSTS */
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card img {
        height: 120px;
    }
}
/* ============================================================
   WooCommerce Blocks checkout — country/state select fixes
   ============================================================ */

/* 1. Normalize typography (kills bold + uppercase on the value) */
.wc-block-components-form .wc-blocks-components-select__select,
.wc-block-checkout .wc-blocks-components-select__select {
    font-family: inherit !important;
    font-weight: 400 !important;
    text-transform: none !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* 2. Normalize the dropdown option list */
.wc-blocks-components-select__select option {
    font-weight: 400 !important;
    text-transform: none !important;
}

/* 3. Outer wrappers: full width; top gap only on the country field */
.wc-block-components-address-form__country,
.wc-block-components-address-form__state,
.wc-block-components-country-input,
.wc-block-components-state-input {
    width: 100% !important;
}

.wc-block-components-address-form__country,
.wc-block-components-country-input {
    margin-top: 16px !important;
}

.wc-blocks-components-select,
.wc-blocks-components-select__container {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

/* Label pinned small at top */
.wc-blocks-components-select__label {
    position: absolute !important;
    top: 6px !important;
    left: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: var(--wc-subtext, #767676) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    transform: none !important;
}

/* Select fills the row — force full width, override any theme max-width */
.wc-block-components-address-form .wc-blocks-components-select__select,
.wc-blocks-components-select__container .wc-blocks-components-select__select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    padding: 22px 40px 6px 12px !important;
    height: auto !important;
    min-height: 56px !important;
}

/* 4. Arrow anchored to the select's right edge */
.wc-blocks-components-select__expand {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}


/* Stiliziranje VAŽNE NAPOMENE (BACS upozorenje) */
.woocommerce-order .bacs-warning {
    background: #f0f7ff !important;
    border-left: 4px solid #0073aa !important;
    padding: 15px 18px !important;
    margin: 25px 0 !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    display: block !important;
}

.woocommerce-order .bacs-warning strong {
    color: #0073aa !important;
    font-weight: 600 !important;
}



.bacs-warning {
    background: #f0f7ff;
    border-left: 4px solid #0073aa;
    padding: 15px 18px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.6;
}

.bacs-warning strong {
    color: #0073aa;
    font-weight: 600;
}
