/* --- CSS Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: 'Source';
    /* Go up two levels: out of css/, out of assets/, then into fonts/ */
    src: url('../fonts/SourceSans3-ExtraBold.ttf') format('truetype'); 
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SourceL';
    /* Go up two levels: out of css/, out of assets/, then into fonts/ */
    src: url('../fonts/SourceSans3-Light.ttf') format('truetype'); 
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SourceSB';
    /* Go up two levels: out of css/, out of assets/, then into fonts/ */
    src: url('../fonts/SourceSans3-SemiBold.ttf') format('truetype'); 
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SourceB';
    /* Go up two levels: out of css/, out of assets/, then into fonts/ */
    src: url('../fonts/SourceSans3-ExtraBold.ttf') format('truetype'); 
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #1e1a17;       /* Dark background base color */
    --text-light: #ffffff;
    --text-muted: #a39b96;
    --accent-gold: #c5b49e;   /* Light beam/text gold tint */
    --font-main: "Source", sans-serif;
}

body {
    background-color: #21201d; /* A dark tone that matches your image edges */
    margin: 0;
    padding: 30px;
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Centers the 1920px box on 2K screens */
    align-items: center;
}

/* The wrapper holds the actual website and the images */
.wrapper {
    width: 100%;
    max-width: 1600px;
    min-height: 100vh; /* Or set a fixed height if you want a perfect box */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
	 background: transparent;
      
}

/* --- Header --- */
.site-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 8%;
    width: 100%;
    z-index: 10;
    background-image: 
        url('../images/header.png');
    background-position:  top 0%,  left;
    background-size:  cover;
    background-repeat: no-repeat;
    	
	
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #6e5f53;
	padding-right:40px;
	font-family: SourceSB;
}

.logo span span {
    color: #787570;
	font-family: SourceL;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: color 0.3s ease;
	font-family: SourceSB;
}

.main-nav a:hover, 
.main-nav a.active {
    color: var(--text-light);
}

/* --- Hero Section --- */
.hero-section {
    width: 100%;
    flex: 1; /* Takes up the remaining vertical space between header and footer */
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: transparent; /* Ensures it doesn't block the body background */
}

.hero-content {
    max-width: 750px;
    z-index: 5;
}

.hero-title {
    font-size: 7.5rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 40px;
	font-family: Source;
	letter-spacing: -5.5px; 
	background-image: linear-gradient(
	to right,
	#685749 0,
       	#68594d 22%, 
	#726255 45%,
	#726255 50%,
	#68594d 55%,
	#685749 78%,
	#685749 100%
	);
   color:transparent;
   -webkit-background-clip:text;	
}

.hero-title .highlight {
	background-image: linear-gradient(
	to right,
	#737373 0,
       	#8a8683 22%, 
	#8f8c88 45%,
	#918d8a 50%,
	#8f8c88 55%,
	#8a8683 78%,
	#737373 100%
	);
   color:transparent;
   -webkit-background-clip:text;	
}

/* Catalog Banner/Button */
.catalog-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px  0px 0px 25px;
    text-decoration: none;
    max-width: 628px;
	height: 122px;
    transition: all 0.3s ease;
    overflow: hidden;
	background-image: 
        url('../images/katalog.png');	
}

.catalog-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
	background-image: 
        url('../images/katalog_h.png');	
}

.card-text {
    display: flex;
    flex-direction: column;
	font-family: Source;
}

.card-subtitle {
    font-size: 1.2em;
    color: #7b7876;
    margin-bottom: 0px;
	font-family: SourceL;
	line-height:0.4rem;
}

.card-title {
    font-size: 3.7rem;
    font-weight: 700;
    color: var(--text-light);
	font-family: Source;
	background-image: linear-gradient(
	to right,
	#685749 0,
       	#68594d 22%, 
	#726255 45%,
	#726255 50%,
	#68594d 55%,
	#685749 78%,
	#685749 100%
	);
   color:transparent;
   -webkit-background-clip:text;
   line-height:4.0rem;
}

.card-image img {
    object-fit: cover;
    border-radius: 6px;
	background-image: url('../images/katalog.png');
}

/* Hero Lamp Image Placement */
.hero-image-container {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-55%);
    width: 50%;
    display: flex;
    justify-content: flex-end;
    pointer-events: none; /* Allows clicking through empty image space if needed */
}

.hero-lamp {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Shop --- */

.container {
    background-color: #ffffff;
	font-family: SourceSB;
}
.product-header{
    padding:30px 8%;
	background-color: #6c5e4f
}
.product-header h1 {
    size:30px;
	padding-bottom:10px;
	color:#ccc;
	font-family: 'SourceB';
}
.product-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fill,minmax(280px,1fr));
    gap:20px;
	padding: 30px;
}

.product-card{
    border:1px solid #ddd;
    padding:15px;
}
.product-card h1 {
    font-size:30px;
}
.product-card a {
    color: #3c3b3c;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    transition: color 0.3s ease;
	font-family: SourceB;
}
.product-card p {
    color: var(--text-muted);
    font-size: 1.0rem;
    font-weight: 700;
    transition: color 0.3s ease;
	font-family: SourceSB;
}

.product-card img{
    width:100%;
    height:250px;
    object-fit:contain;
}

.price{
    font-size:24px;
    font-weight:bold;
}

.pagination{
    margin-top:0px;
	margin-bottom:30px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:6px;
}

.pagination a{
    padding:8px 12px;
    border:1px solid #ccc;
    text-decoration:none;
    color:#000;
    min-width:38px;
    text-align:center;
}

.pagination a.active{
    background:#3c3b3c;
    color:#fff;
}

table{
    border-collapse:collapse;
    width:100%;
}

td{
    border:1px solid #ddd;
    padding:8px;
}

/* Glavni kontejner i link nazad */
.product-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px;
    font-family: "Source", Arial;
}
.product-header a {
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
    font-family: Source;
    font-size: 20px;
}

/* Raspored gornjeg dela u dve kolone */
.product-page-top {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: flex-start;
}

/* Leva strana - Slike */
.gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.main-image-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    background: #fff;
    display: flex;
    justify-content: center;
}
.main-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}
.thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.thumbnails .thumb {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.thumbnails .thumb:hover {
    border-color: #8c7662;
}

/* Desna strana - Tekstovi */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-cat-badge {
    align-self: flex-start;
    background: #705e4f;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.product-info h1 {
    font-size: 38px;
    margin: 0 0 5px 0;
    color: #222;
    padding-top: 20px;
}
.product-sku {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    font-weight: normal;
}
.product-price-box {
    font-size: 40px;
    font-weight: bold;
    color: #222;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.product-price-box span {
    font-size: 16px;
}
.product-description-block h4 {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: #333;
}
.product-description-block p {
    font-size: 18px;
    line-height: 1.5;
    color: #222;
    margin: 0;
    font-family: sourceL;
}

/* Donji deo - Tabela specifikacija */
.details {
    border-top: 1px solid #ddd;
    padding-top: 30px;
}
.details h1 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #333;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.specs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.specs-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}
.spec-label {
    color: #555;
    width: 25%;
    text-transform: capitalize;
}
.spec-value {
    color: #111;
}


/* Flexbox Filter Layout */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Perfect spacing between inputs */
    align-items: center;
}

/* Individual Form Group wrappers */
.filter-form .form-group {
    flex: 1;
    min-width: 200px; /* Prevents inputs from getting too narrow */
}

/* Make the text search bar slightly wider if there's room */
.filter-form .search-input-wrapper {
    flex: 1.5; 
}

/* Styling the inputs & selects globally */
.filter-form input[type="text"],
.filter-form select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #444;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    height: 48px; /* Forces exact matching heights */
}

/* Focus states for clean UX */
.filter-form input[type="text"]:focus,
.filter-form select:focus {
    border-color: #8c7662; /* Match a tone from your header image background */
    box-shadow: 0 0 0 3px rgba(140, 118, 98, 0.15);
}

/* Modernizing the Button */
.filter-form .btn-search {
    padding: 0 28px;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background-color: #333; /* Dark slate look, change to match your brand accent */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.filter-form .btn-search:hover {
    background-color: #555;
}

.mobile-product-title-block {
    display: none;
}
.desktop-product-title-block {
    display: block;
}

.site-footer {
    background-color: #2e2a27; 
    padding: 50px 0;
    font-family: Source, sans-serif;
}


.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px; 
	position: relative;
}


.footer-logo {
    font-size: 26px;
    color: #5e5956; 
    font-weight: normal;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}
.footer-logo span {
    color: #5e5956; 
	font-family:'SourceL';
}


.footer-row {
    font-size: 15px; 
    color: #5e5956; 
    display: flex;
    flex-wrap: wrap;
    gap: 12px; 
    line-height: 1.4;
}


.footer-contact a {
    color: #5e5956;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact a:hover {
    color: #baaf9b; 
}


.accent {
    color: #64584e; 
    font-weight: bold;
}
.footer-logo2 {
    position: absolute;
    right: 40px; 
    top: 50%; 
    transform: translateY(-50%);
}
.katalozi-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px;
    font-family: "Source";
	background-color: #fff;
	min-height: 600px;
}	
.katalozi-page h3 {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 10px;
    font-family: "Source";
	color: #3c3b3c;
}	
.katalozi-page .hero-title {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 0px;
    font-family: Source;
    letter-spacing: -5.5px;
    background-image: linear-gradient(to right, #685749 0, #68594d 22%, #726255 45%, #726255 50%, #68594d 55%, #685749 78%, #685749 100%);
    color: transparent;
    -webkit-background-clip: text;
	padding-left:0px;
}
.katalozi  {
    border-right:10px;
	min-height:100%;
	display: grid;
	padding-top:30px;
	padding-left:20px;
	border-left:solid 17px;
	border-color:#68584c;
}

.katalozi a {
    color: #555;
    text-decoration: none;
    margin-left: 0px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: color 0.3s ease;
	font-family: SourceSB;
	border-bottom: 1px solid;
	border-color:#ccc;
}

.katalozi a:hover, 
.katalozi a.active {
    color: var(--text-dark);
}

/* --- Responsive Layout (Mobile/Tablet) --- */
@media (max-width: 992px) {
	.line {
		display: none;
	}	
	
	.logo {
		font-size: 1.7rem;
		font-weight: 700;
		letter-spacing: 0.8px;
		color: #6e5f53;
		padding-right:40px;
		font-family: SourceSB;
	}
	
    .hero-section {
        flex-direction: column-reverse;
        justify-content: start;
        text-align: center;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-image-container {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 80%;
        justify-content: center;
        margin-bottom: 30px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 5rem;
    }

    .site-header, .site-footer {
        flex-direction: column;
        gap: 20px;
		background-position: top;
    }
    
    .main-nav a {
        margin: 0 15px;
    }
   
	.catalog-card {
    width: 408px;
	height: 122px;
    transition: all 0.3s ease;
    overflow: hidden;
	background-image: 
        url('../images/katalog.png');	
	}   
	
    .footer-contact a {
        margin: 0 10px;
		
    }
	.footer-logo2 {
		position: static; /* Isključujemo apsolutno pozicioniranje na mobilnom */
		transform: none;
		margin-top: 15px; /* Smešta logo uredno ispod kontaktnih podataka na telefonu */
	}		
    .footer-container {
        padding: 0 20px;
        gap: 12px;
		padding: 0 20px;
		align-items: center; /* Centriraj tekst na mobilnom */
		text-align: center;	
		align-items: center;		
    }
    .footer-row {
        flex-direction: column; 
        gap: 4px;
    }	
	
	
}


/* Kada se ekran smanji za mobilni (Responsive) */
@media (max-width: 768px) {

    .spec-label {
        width: 40%;
    }
	
    .product-page-top {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Prikaži mobilni blok na vrhu stranice, a sakrij onaj u desnoj koloni */
    .mobile-product-title-block {
        display: block;
        margin-bottom: 20px;
    }
    .desktop-product-title-block {
        display: none;
    }

    /* Prilagođavanje elemenata na mobilnom da lepše sede */
    .product-info {
        width: 100%;
    }
    .product-price-box {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    .spec-label {
        width: 40%;
    }
}
@media (max-width: 412px) {
 
	body {
		padding: 0px;
	}


    .hero-title {
        font-size: 4rem;
    }
    .main-nav a {
        margin: 0 5px;
    }	
    .catalog-card {
        width: 308px;
        height: 122px;
    }
}