/* =========================================
   Global Variables & Base Styles
   ========================================= */
:root {
    --primary-yellow: #fdb822;
    --text-dark: #333;
    --text-gray: #666;
    --bg-dark: #2d2d2d;
    --price-red: #d9534f;
    --bg-light: #f9f9f9;
    --green-zone: #c8d9c6;
    --yellow-zone: #ebe5a9;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
}

/* =========================================
   Header & Navigation
   ========================================= */
.top-bar {
    background-color: #333;
    color: #ccc;
    font-size: 0.9rem;
}

.navbar-brand img {
    max-height: 80px;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark) !important;
    padding: 10px 15px !important;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, 
.nav-link.active {
    border-bottom: 2px solid var(--primary-yellow);
}

/* =========================================
   Page Headers & Hero Sections
   ========================================= */
/* Home Page Hero */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('uploads/2015/08/img1.jpg.webp');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Internal Pages Header (Cenovnik, Checkout, Dostava) */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('uploads/2015/08/img1.jpg.webp');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: white;
}

/* Internal Pages Header Light Variant (Proizvodi) */
.page-header-light {
    background: #f9f9f9;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
}

.page-header h1, 
.page-header-light h1 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* =========================================
   Typography & Section Titles
   ========================================= */
h2.section-title, 
h2.category-title, 
.section-title {
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
}

h2.section-title {
    text-align: center;
}

h2.category-title {
    margin: 50px auto 40px;
    text-align: center;
    color: #555;
    display: block;
}

/* The yellow underline effect */
h2.section-title::after, 
h2.category-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-yellow);
    margin: 15px auto 0;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-yellow);
    margin-top: 5px;
}

/* =========================================
   Buttons
   ========================================= */
.btn-primary-custom, 
.btn-confirm, 
.btn-order, 
.btn-order-small, 
.btn-home {
    background-color: var(--primary-yellow);
    color: white;
    font-weight: 600;
    border: none;
    transition: 0.3s;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover, 
.btn-confirm:hover, 
.btn-order:hover, 
.btn-order-small:hover, 
.btn-home:hover {
    background-color: #e0a010;
    color: white;
}

.btn-primary-custom {
    padding: 10px 25px;
    border-radius: 4px;
}

.btn-confirm {
    padding: 15px;
    width: 100%;
    border-radius: 5px;
    font-weight: 700;
}

.btn-order {
    padding: 8px 0;
    width: 100%;
}

.btn-order-small {
    padding: 5px 15px;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-top: 10px;
}

.btn-home {
    padding: 10px 30px;
    border-radius: 5px;
}

/* =========================================
   Home Page Components (index.php)
   ========================================= */

/* Hide content by default */
.product-tab-content {
    display: none;
}

/* Show active content */
.product-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Price specific color from screenshot */
.price-tag {
    color: #7a5a41; /* Darker brownish-grey as seen in screenshot */
    font-size: 2.5rem;
}

/* Specific styling for the thumbnail connector look */
.product-tab-img {
    border: 1px solid #ddd;
    padding: 2px;
    background: #fff;
}

.product-tab-img.active {
    border: 2px solid var(--primary-yellow);
    transform: scale(1.1);
}

/* Optional: Smooth transition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
   
.feature-img-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.product-highlight-box {
    border: 2px solid var(--primary-yellow);
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.product-tab-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: 0.3s;
}

.product-tab-img:hover, 
.product-tab-img.active {
    border-color: var(--primary-yellow);
    transform: scale(1.1);
}

.badge-top {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #a92c2c;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    clip-path: polygon(100% 0, 100% 100%, 50% 85%, 0 100%, 0 0);
}

/* =========================================
   Products Components (proizvodi.php)
   ========================================= */
.product-card {
    transition: transform 0.3s ease;
    height: 100%;
    border: none;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-wrapper {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-img-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    min-height: 50px; 
}

.product-price {
    color: var(--price-red);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* =========================================
   Price List Components (cenovnik.php)
   ========================================= */
.price-item {
    margin-bottom: 30px;
    border: none;
}

.price-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%; 
    border: 3px solid #eee;
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.price-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.price-cost {
    font-weight: 700;
    font-size: 1.1rem;
    color: #444;
    white-space: nowrap;
}

.price-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* =========================================
   Checkout Components (checkout.php)
   ========================================= */
.table thead {
    background-color: #333;
    color: white;
}

.table th, 
.table td {
    vertical-align: middle;
    padding: 15px;
}

.checkout-box {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.form-control {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.2rem rgba(253, 184, 34, 0.25);
}

/* =========================================
   Delivery Map Components (dostava.php)
   ========================================= */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
}

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

.legend-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 40px;
}

.color-swatch {
    width: 60px;
    height: 25px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 4px;
    vertical-align: middle;
}

.swatch-green { background-color: var(--green-zone); }
.swatch-yellow { background-color: var(--yellow-zone); }

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.faq-box h5 {
    font-weight: 700;
    color: #333;
    margin-top: 20px;
}

.faq-box p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.faq-box ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #666;
}

/* =========================================
   Thank You Page Components (thank-you.php)
   ========================================= */
.thank-you-card {
    background: white;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    margin-top: 80px;
}

.icon-check {
    font-size: 80px;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: #222;
    color: #aaa;
    padding-top: 50px;
    margin-top: 50px;
}

footer h5 {
    color: var(--primary-yellow);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1rem;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer ul li, 
footer li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

footer i {
    margin-right: 10px;
}

.cta-bar {
    background-color: #333; /* Dark background as seen in screenshot */
    padding: 60px 0; /* Vertical spacing */
    color: #fff;
    border-bottom: 1px solid #444;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ececec;
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #bbb; /* Lighter grey for the paragraph text */
    max-width: 90%;
}

.footer-seal {
    max-width: 250px;
    height: auto;
    /* This ensures the seal stands out on the dark background */
    filter: drop-shadow(0px 5px 15px rgba(0,0,0,0.3));
}

@media (max-width: 768px) {
    .cta-bar {
        text-align: center;
    }
    .cta-text {
        max-width: 100%;
        margin-bottom: 30px;
    }
}