/*
Theme Name: Silverina
Theme URI: https://silverina.com.hr
Author: Paolo Pelesk
Author URI: https://silverina.com.hr
Description: Custom tema za Silverina nakit i proizvode
Version: 1.0
License: 
License URI: 
Text Domain: silverina.com.hr
*/

/* Font Face */
@font-face {
    font-family: 'GoogleSansFlex';
    src: url('font/GoogleSansFlex-VariableFont_GRAD,ROND,opsz,slnt,wdth,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root varijable - definirat će se dinamički kroz Customizer */
:root {
    --background-color: #ffffff;
    --text-color: #333333;
    --link-color: #4169E1;
    --link-hover-color: #1E3A8A;
    --font-family: "GoogleSansFlex", sans-serif;
}

html {
    background: transparent;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to bottom, var(--gradient-start-color, #FFB6C1), var(--gradient-end-color, #ffffff));
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: var(--background-color);
    position: relative;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: flex-end;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.main-navigation a {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--link-hover-color);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(0,0,0,0.05);
    transform: scale(1.1);
}

.flag-emoji {
    font-size: 28px;
    line-height: 1;
    display: block;
}

/* CTA Button */
.cta-button {
    background: var(--link-color);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--link-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Body menu open state */
body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}


/* Main Content Wrapper */
#main-content {
    position: relative;
}

/* Hero Section */
/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}


.hero-logo {
    position: relative;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    /* max-width kontrolirano kroz Customizer */
}

.hero-logo img,
.hero-logo .custom-logo {
    max-width: 100%;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    display: block;
}

.hero-content {
    position: relative;
    color: #ffffff;
    margin-top: auto;
    padding-bottom: 60px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-content .btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--link-color);
    color: #ffffff;
    border-radius: 4px;
    margin-top: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-content .btn:hover {
    background-color: var(--link-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/* Kategorije Banners */
.kategorije-section {
    position: relative;
    padding: 60px 0;
}

.kategorije-banners {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.kategorija-banner {
    width: 100%;
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.kategorija-banner:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.3);
}

.kategorija-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.kategorija-left-side,
.kategorija-right-side {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.kategorija-main-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.kategorija-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kategorija-left-side {
    gap: 15px;
}

.kategorija-left-side h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.kategorija-right-side {
    gap: 20px;
    margin-top: calc(36px * 1.2 + 15px);
}

.kategorija-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kategorija-header-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

.kategorija-small-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
}

.kategorija-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kategorija-small-image:hover img {
    transform: scale(1.05);
}

.kategorija-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.kategorija-image-placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    width: 100%;
    height: 100%;
}

/* Single Kategorija */
/* Single Kategorija Layout */
.single-kategorija-layout {
    padding: 60px 0;
    position: relative;
    background-color: var(--background-color);
}

.kategorija-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.kategorija-text-block {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 40px;
}

.kategorija-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    color: var(--text-color);
}

.kategorija-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.kategorija-description p {
    margin-bottom: 20px;
}

.kategorija-btn {
    align-self: flex-start;
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--link-color);
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kategorija-btn:hover {
    background-color: var(--link-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kategorija-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    aspect-ratio: 1;
}

.kategorija-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kategorija-image-1 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.kategorija-image-2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.kategorija-image-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.kategorija-image-4 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* Additional Gallery */
.kategorija-additional-gallery {
    margin-top: 60px;
}

.kategorija-additional-gallery h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

.galerija-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.galerija-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.galerija-item:hover {
    transform: translateY(-5px);
}

.galerija-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
/* Two Column Section with Slider */
.two-column-section {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.two-column-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-column-content {
    padding-right: 20px;
}

.two-column-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.two-column-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.two-column-content .btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--link-color);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.two-column-content .btn:hover {
    background-color: var(--link-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Image Slider */
.image-slider-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.image-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.slider-track {
    display: flex;
    height: 100%;
    animation: slide 15s linear infinite;
}

.slider-item {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.image-slider-wrapper:hover .slider-track {
    animation-play-state: paused;
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: rgba(255,255,255,1);
    transform: scale(1.3);
}
/* Content with Images Section */
.content-images-section {
    padding: 80px 0;
    position: relative;
}

.content-images-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.content-left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.content-text-block h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-text-block p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.9;
}

.content-text-block .btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--link-color);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.content-text-block .btn:hover {
    background-color: var(--link-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.content-left-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.content-left-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-right-column {
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: 100%;
    align-items: stretch;
}

.content-right-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 100%;
}

.content-right-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.content-image-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 60px 20px;
    min-height: 300px;
    border-radius: 12px;
}

/* Location Section */
.location-section {
    padding: 80px 0;
    text-align: center;
}

.location-content {
    max-width: 1200px;
    margin: 0 auto;
}

.location-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.map-responsive {
    position: relative;
    overflow: hidden;
    padding-bottom: 50%; /* Wider aspect ratio */
    height: 0;
    margin-top: 30px;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .location-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .map-responsive {
        padding-bottom: 100%; /* Square aspect on mobile */
        border-radius: 12px;
        overflow: hidden;
    }
    
    .map-responsive iframe {
        border-radius: 12px;
    }
}

/* Page Template */
.page-content-wrapper {
    background-color: #ffffff;
    padding: 80px 0;
    min-height: 60vh;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 400;
    color: var(--text-color);
    margin: 0;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.page-content h2 {
    font-size: 28px;
    font-weight: 400;
    margin: 40px 0 20px;
    color: var(--text-color);
}

.page-content h3 {
    font-size: 22px;
    font-weight: 400;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.page-content p {
    margin-bottom: 20px;
}

.page-content ul,
.page-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 10px;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-content a:hover {
    color: var(--text-color);
}

.page-links {
    margin-top: 30px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 60px 0;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-content {
        padding: 0 20px;
    }
    
    .page-content h2 {
        font-size: 24px;
    }
    
    .page-content h3 {
        font-size: 20px;
    }
}

/* Footer */
/* Footer */
.site-footer {
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.1);
    background-color: var(--background-color);
    position: relative;
    z-index: 100;
}
.footer-content {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--background-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 30px 30px;
        box-shadow: -4px 0 12px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-wrapper.active {
        right: 0;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
        text-align: left;
        width: 100%;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        display: block;
        padding: 10px 0;
        font-size: 18px;
    }
    
    .language-switcher {
        justify-content: flex-start;
        padding: 20px 0;
        border-top: 1px solid rgba(0,0,0,0.1);
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-logo {
        max-width: 250px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .two-column-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .two-column-content {
        padding-right: 0;
        text-align: center;
    }
    
    .two-column-content h2 {
        font-size: 28px;
    }
    
    .image-slider-wrapper {
        height: 350px;
    }
    
    .content-images-wrapper {
        grid-template-columns: 1fr;
    }
    
    .content-text-block h2 {
        font-size: 28px;
    }
    
    .content-right-column {
        flex-direction: column;
    }
    
    .content-right-image {
        align-self: stretch;
    }
    
    .kategorija-banner {
        padding: 60px 0;
    }
    
    .kategorija-banner-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .kategorija-main-image {
        aspect-ratio: 16/9;
    }
    
    .kategorija-header h3 {
        font-size: 28px;
        text-align: center;
    }
    
    .kategorija-text {
        text-align: center;
    }
    
    .kategorija-text p {
        font-size: 14px;
    }
    
    .kategorija-header-images {
        gap: 10px;
    }
    
    .kategorija-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .kategorija-text-block {
        grid-column: 1;
        grid-row: auto;
        padding-right: 0;
        text-align: center;
    }
    
    .kategorija-title {
        font-size: 32px;
    }
    
    .kategorija-description {
        font-size: 16px;
    }
    
    .kategorija-btn {
        align-self: center;
    }
    
    .kategorija-image-1,
    .kategorija-image-2,
    .kategorija-image-3,
    .kategorija-image-4 {
        grid-column: 1;
        grid-row: auto;
    }
    
    .galerija-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
