/* =========================================
   PRIRODNA SAPUNARA — Custom Styles
   ========================================= */

:root {
    --sage:      #6B8F71;
    --sage-dark: #4E6B53;
    --sand:      #D4A574;
    --sand-dark: #B8864F;
    --cream:     #FAF7F0;
    --cream-dark:#F0EAD6;
    --brown:     #5C3D2E;
    --text:      #2D2D2D;
    --text-muted:#6B6B6B;
    --white:     #FFFFFF;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--brown);
}

/* ---------- Navbar ---------- */
#navbar {
    background: rgba(250, 247, 240, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    padding: 14px 0;
}

#navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--sage-dark) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-brand .brand-icon {
    color: var(--sage);
    margin-right: 6px;
    font-size: 1.3rem;
}

.navbar-nav .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 6px 14px !important;
    transition: color 0.25s;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--sage);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover {
    color: var(--sage-dark) !important;
}

.nav-cart-btn {
    background: var(--sage) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: background 0.25s, transform 0.2s !important;
}

.nav-cart-btn:hover {
    background: var(--sage-dark) !important;
    transform: translateY(-1px);
}

.nav-cart-btn::after { display: none !important; }

.cart-badge {
    background: var(--sand);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ---------- Hero ---------- */
#hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #E8F0E9 0%, #F5EDD8 50%, #EDE0CC 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(107,143,113,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,165,116,0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-block;
    background: rgba(107,143,113,0.15);
    color: var(--sage-dark);
    border: 1px solid rgba(107,143,113,0.3);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.2;
    color: var(--brown);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--sage-dark);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 36px;
    font-weight: 300;
}

.btn-primary-custom {
    background: var(--sage);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 18px rgba(107,143,113,0.35);
}

.btn-primary-custom:hover {
    background: var(--sage-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107,143,113,0.45);
}

.btn-outline-custom {
    background: transparent;
    color: var(--brown);
    border: 2px solid var(--brown);
    padding: 12px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--brown);
    color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: var(--brown);
    line-height: 1;
}

.hero-stat span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Hero visual */
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-soap-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-soap-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.10);
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
}

.hero-soap-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8D5B5, #6B8F71, #4E6B53);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: 0 8px 30px rgba(107,143,113,0.35);
    position: relative;
    overflow: hidden;
}

.hero-soap-img::after {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

.hero-soap-card .product-tag {
    background: var(--cream-dark);
    color: var(--sage-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.hero-soap-card h4 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.hero-soap-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sage-dark);
    font-family: 'Playfair Display', serif;
}

.floating-badge {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.floating-badge i { color: var(--sage); font-size: 1rem; }
.floating-badge-1 { top: -20px; right: -30px; }
.floating-badge-2 { bottom: 20px; left: -30px; }

/* ---------- Section base ---------- */
section { padding: 90px 0; }

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sage-dark);
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    color: var(--brown);
    margin-bottom: 16px;
}

.section-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(to right, var(--sage), var(--sand));
    border-radius: 3px;
    margin-bottom: 20px;
}

.section-divider.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- About ---------- */
#o-nama { background: white; }

.about-img-wrap {
    position: relative;
    display: inline-block;
}

.about-main-img {
    width: 100%;
    max-width: 440px;
    height: 480px;
    border-radius: 24px;
    background: linear-gradient(145deg, #B5CEB8, #7FA882, #5C7D5F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.about-main-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: rgba(255,255,255,0.05);
}

.about-accent-card {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--sand);
    color: white;
    border-radius: 18px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(212,165,116,0.40);
    min-width: 140px;
}

.about-accent-card strong {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    display: block;
    line-height: 1;
    color: white;
}

.about-accent-card span {
    font-size: 0.8rem;
    opacity: 0.9;
    display: block;
    margin-top: 4px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}

.about-feature-item i {
    color: var(--sage);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---------- Benefits ---------- */
#prednosti { background: var(--cream); }

.benefit-card {
    background: white;
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: 1px solid rgba(107,143,113,0.08);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.09);
}

.benefit-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cream-dark), #E8F0E9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--sage-dark);
    transition: background 0.3s;
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, var(--sage), var(--sage-dark));
    color: white;
}

.benefit-card h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ---------- Products ---------- */
#proizvodi { background: white; }

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.filter-tab {
    background: var(--cream-dark);
    color: var(--text-muted);
    border: none;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--sage);
    color: white;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.10);
}

.product-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-img::after {
    content: '';
    position: absolute;
    top: 10px; left: 10px;
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
}

.product-img-lavender  { background: linear-gradient(145deg, #C9B8E8, #9B82C8, #7B5FA8); }
.product-img-med       { background: linear-gradient(145deg, #F5D78A, #D4A030, #B8860B); }
.product-img-ugalj     { background: linear-gradient(145deg, #6B6B6B, #3D3D3D, #1A1A1A); }
.product-img-ruza      { background: linear-gradient(145deg, #F5B8C8, #E87098, #C84870); }
.product-img-zeleni-caj{ background: linear-gradient(145deg, #B8D4A0, #78A850, #508038); }
.product-img-shea      { background: linear-gradient(145deg, #F0E0C8, #D4B898, #B89060); }

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--sand);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.product-badge.new { background: var(--sage); }
.product-badge.popular { background: var(--brown); }

.product-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--sage-dark);
    margin-bottom: 6px;
}

.product-body h5 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.product-body p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 16px;
}

.product-weight {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.product-footer {
    padding: 0 22px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brown);
}

.product-price .currency {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-add-cart {
    background: var(--sage);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.25s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background: var(--sage-dark);
    transform: scale(1.04);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.product-rating i { color: var(--sand); font-size: 0.8rem; }
.product-rating span { font-size: 0.8rem; color: var(--text-muted); margin-left: 4px; }

/* ---------- Ingredients highlight ---------- */
#sastojci {
    background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
    color: white;
    padding: 80px 0;
}

#sastojci .section-label { color: rgba(255,255,255,0.7); }
#sastojci .section-title { color: white; }
#sastojci .section-divider { background: rgba(255,255,255,0.4); }

.ingredient-item {
    text-align: center;
    padding: 24px 16px;
}

.ingredient-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.ingredient-item h6 {
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
}

.ingredient-item p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.5;
}

/* ---------- Testimonials ---------- */
#recenzije { background: var(--cream); }

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.testimonial-stars { margin-bottom: 16px; }
.testimonial-stars i { color: var(--sand); font-size: 0.95rem; }

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--sage);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -8px;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.avatar-1 { background: linear-gradient(135deg, var(--sage), var(--sage-dark)); }
.avatar-2 { background: linear-gradient(135deg, var(--sand), var(--sand-dark)); }
.avatar-3 { background: linear-gradient(135deg, #B88FC8, #8B5FA8); }

.author-name {
    font-weight: 700;
    font-size: 0.92rem;
    margin: 0;
    color: var(--text);
}

.author-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- Order / Contact ---------- */
#naruci { background: white; }

.order-form-wrap {
    background: var(--cream);
    border-radius: 24px;
    padding: 44px;
    border: 1px solid rgba(0,0,0,0.06);
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.92rem;
    color: var(--text);
    background: white;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(107,143,113,0.15);
    outline: none;
}

.form-control::placeholder { color: #B0B0B0; }

textarea.form-control { resize: vertical; min-height: 110px; }

.contact-info-card {
    background: var(--sage);
    color: white;
    border-radius: 24px;
    padding: 44px 36px;
    height: 100%;
}

.contact-info-card h3 {
    color: white;
    margin-bottom: 10px;
}

.contact-info-card p {
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.contact-item-text strong {
    display: block;
    font-size: 0.82rem;
    opacity: 0.75;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
    color: white;
}

.contact-item-text span {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 32px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.25s, transform 0.2s;
}

.social-link:hover {
    background: rgba(255,255,255,0.32);
    color: white;
    transform: translateY(-2px);
}

/* ---------- Footer ---------- */
footer {
    background: var(--brown);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 28px;
}

footer h5 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-brand i { color: var(--sand); }

.footer-desc {
    font-size: 0.88rem;
    opacity: 0.75;
    line-height: 1.7;
    max-width: 280px;
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s, padding-left 0.25s;
}

.footer-links a:hover {
    color: var(--sand);
    padding-left: 4px;
}

.footer-divider {
    border-color: rgba(255,255,255,0.12);
    margin: 40px 0 24px;
}

.footer-bottom {
    font-size: 0.83rem;
    opacity: 0.55;
}

.footer-certifications {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.cert-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cert-badge i { color: var(--sand); font-size: 0.85rem; }

/* ---------- Toast / Alert ---------- */
.toast-container { z-index: 9999; }

/* ---------- Scroll to top ---------- */
#scrollTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--sage);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(107,143,113,0.45);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTop.visible { opacity: 1; visibility: visible; }
#scrollTop:hover { background: var(--sage-dark); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    section { padding: 70px 0; }
    .hero-soap-wrap { margin-top: 48px; }
    .about-main-img { max-width: 100%; height: 360px; }
    .about-accent-card { right: 0; bottom: -16px; }
    .order-form-wrap { padding: 28px 20px; }
    .contact-info-card { padding: 28px 20px; margin-top: 24px; }
}

@media (max-width: 767px) {
    .hero-stats { gap: 24px; }
    .floating-badge-1 { top: 0; right: 0; }
    .floating-badge-2 { display: none; }
    .about-features { grid-template-columns: 1fr; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
    animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
