:root {
    --primary-color: #d10000;
    --secondary-color: rgba(239, 14, 14, 0.91);
    --accent-color: #000000;
    --light-color: #f4f4e4;
    --dark-color: #333;
    --white: #fff;
}

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


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-image: url('../images/background.jpg');
    backdrop-filter: blur(4px);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This makes it stay fixed during scroll */
    margin: 0;
    min-height: 100vh;
}
body::before{
    background-color: var(--light-color);
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(103, 103, 103, 0.3); /* Dark overlay */
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--accent-color);
}

/* Header Styles */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 10000;
}
@font-face {
    font-family: 'MacedonianHandwriting';
    src: url('../fonts/MacedonianHandwriting.woff2') format('woff2'),
    url('../fonts/MacedonianHandwriting.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.logo h1 {
    font-family: 'MacedonianHandwriting', sans-serif;
    color: var(--primary-color);
    font-size: 60px;
    margin-bottom: 5px;
    max-font-size:50px ;
}

.logo p {
    color: var(--accent-color);
    font-family: 'MacedonianHandwriting', sans-serif;
    font-size: 30px;
    max-font-size: 20px;
    margin-top: -30px;

}

.logo{
    flex: 1;
    position:sticky;
    padding-left:7px;
}

#VK-logo{
    position: sticky;
    max-width: 200px;      /* Control image size */
    height: auto;          /* Maintain aspect ratio */
    flex-shrink: 0;
}
.logo-container {
    width: 90%;
    max-width: 1200px;
    padding: 0 15px;
    display: flex;          /* Enable flexbox */
    align-items: center; /* Vertically center items */
    height: 160px;
}
#list {
        background-color: white;
        padding: 10px;
        border-radius: 8px;
        z-index: 9999;
        margin-left: auto;
        margin-right: -250px;
}

nav ul {
    display: flex;
    list-style: none;
    margin-left: auto ;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-size: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
    width: 50px;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--secondary-color);
    color: black;
}

/* Slideshow styles */
.hero-slideshow {
    background: var(--dark-color);
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 50px;
}

.hero-slide {
    display: none;
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.hero-slide.active {
    display: block;
    animation: fade 2s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slideshow-controls button {
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

.slideshow-controls button:hover {
    background-color: rgba(0,0,0,0.8);
}

.slideshow-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
}

.hero-content {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    max-width: 400px;
    max-height: 19%;
}
.hero-content h2{
    font-size: 18px;
    max-font-size: 16px;
}
.hero-content p{
    font-size: 16px;
    max-font-size: 14px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 0, 0, 0.5), rgba(45, 71, 174, 0.5));
    background-size: cover;
    background-position: center;
    color: #000000;
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.location h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.location .map h2{
    background:
            linear-gradient(to left, rgba(0, 0, 0, 0.09), transparent),
            linear-gradient(to top, rgba(0, 0, 0, 0.09), transparent),white;
    padding: 20px 0;
    margin: 0 -15px;
    font-size: 35px;
}

.map-container {
    background: var(--light-color  );
    margin: 30px 0;
    position: relative;
    padding: 0 200px;
    padding-bottom: 40%;
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.map {
    background:
            linear-gradient(to left, rgba(0, 0, 0, 0.12), transparent),
            linear-gradient(to top, rgba(0, 0, 0, 0.12), transparent),
            #ffffec; /* beige base */
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding: 40px 15px;
    padding-bottom: 30px;
}

.contact-info {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.14), transparent),
    linear-gradient(to top, rgba(0, 0, 0, 0.14), transparent),white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
    text-align: left;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size:32px;
    padding-left: 30px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 20px;
    padding-left: 30px;
}

/* Products List */
.products-list {
    padding: 60px 0;
}

.products-list h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px;
    color: var(--primary-color);
}

.product-card .price {
    padding: 0 15px;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.product-card .btn {
    display: block;
    margin: 15px;
    text-align: center;
}

/* Product Detail */
.product-detail {
    padding: 60px 0;
}

.product-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-gallery {
    position: relative;
}

.product-info h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.product-description {
    margin-top: 30px;
}

.product-description h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

label {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
}

select {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 200px;
}

/* Product Options */
.product-option {
    margin-bottom: 20px;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.numbertext {
    color: var(--white);
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--primary-color);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* About Us */
.about-us {
    padding: 60px 0;
}

.about-us h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-text h3 {
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.about-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail .container, .about-content {
        grid-template-columns: 1fr;
    }

    nav ul {
        margin-top: 15px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Product Not Found */
.product-not-found {
    padding: 60px 0;
    text-align: center;
}

.product-not-found h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}
/* Variants indicator */
.product-card .variants {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 5px;
    font-style: italic;
}
/* Product image containers */
.product-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* wshow adjustments */
.mySlides img {
    max-height: 400px;
    object-fit: contain;
}

/* No images message */
#product-slideshow p {
    text-align: center;
    padding: 50px;
    color: #666;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 20px;
    background: #ffeeee;
    border: 1px solid #ffcccc;
    border-radius: 5px;
    max-width: 500px;
    margin: 0 auto;
}

.error-message p {
    margin-bottom: 15px;
}

.error-message button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.error-message button:hover {
    background: #a50000;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.product-image-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #f5f5f5;
    border-radius: 5px;
    overflow: hidden;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-image {
    color: #666;
    font-style: italic;
}

.error-message {
    background: #ffebee;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.error-message button {
    background: #c60000;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
}

/* Add these to your existing CSS */
.variants-count {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

#variant-select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
}

.product-not-found {
    text-align: center;
    padding: 40px 20px;
}

.product-not-found h2 {
    color: #c60000;
    margin-bottom: 20px;
}

main section {
    text-align: center;
}

.phone-link, .email-link{
    color: inherit;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.phone-link:hover, .email-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.location .container h2{
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 36px;
}

section .contact-info{
    font-family: 'Cambria', sans-serif;
    font-weight: bold;
    font-size: 16px;
}




/* Table Container Styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Table Styling */
#productsTable {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
    background-color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 14px;
    table-layout: auto;
    margin: 0 auto;
}

/* Header styling */
#productsTable thead tr:first-child th {
    background-color: white; /* Changed from var(--primary-color) */
    color: var(--dark-color); /* Changed from white */
    font-weight: bold;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #ddd;
    position: relative;
    vertical-align: middle;
}

#productsTable thead tr:nth-child(2) th {
    padding: 10px 8px;
    border: 1px solid #ddd;
    background-color: white; /* Changed from #f9f9f9 */
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    color: var(--dark-color); /* Added to ensure text is visible */
}

/* Promo header styling */
.promo-header {
    background-color: white !important;
    color: black !important;
}

/* Column width adjustments */
#productsTable th:nth-child(1),
#productsTable td:nth-child(1) {
    width: 25%; /* Wider for product name */
    text-align: left;
    padding-left: 15px; /* Added padding for better spacing */
}

#productsTable th:nth-child(2),
#productsTable td:nth-child(2),
#productsTable th:nth-child(3),
#productsTable td:nth-child(3),
#productsTable th:nth-child(6),
#productsTable td:nth-child(6) {
    width: 12%; /* Increased from 10% */
    text-align: right;
    padding-right: 15px; /* Added padding for better spacing */
}

#productsTable th:nth-child(4),
#productsTable td:nth-child(4) {
    width: 22%; /* Increased from 20% */
    text-align: left;
    padding-left: 15px; /* Added padding for better spacing */
}

#productsTable th:nth-child(5),
#productsTable td:nth-child(5) {
    width: 8%;
    text-align: center;
}

#productsTable th:nth-child(7),
#productsTable td:nth-child(7),
#productsTable th:nth-child(8),
#productsTable td:nth-child(8),
#productsTable th:nth-child(9),
#productsTable td:nth-child(9) {
    width: 9%;
    padding: 0 10px; /* Added padding for better spacing */
}

/* Table body styling */
#productsTable tbody td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    vertical-align: middle;
}

#productsTable tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#productsTable tbody tr:hover {
    background-color: #f0f0f0;
}

/* Pagination container */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    width: 100%;
    overflow-x: auto;
    padding: 10px 0;
}

/* Pagination buttons */
.pagination button {
    padding: 10px 16px;
    min-width: 40px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

/* Hover state */
.pagination button:hover:not(:disabled) {
    background-color: #f0f0f0;
}

/* Active/current page */
.pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: bold;
}

/* Disabled state */
.pagination button:disabled {
    color: #aaa;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

/* Page numbers container */
#pageNumbers {
    display: flex;
    gap: 8px;
    margin: 0 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Enhanced search section styling */
.products-search {
    padding: 40px 0 20px;
}

.products-search .container {
    background-color: white;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    max-width: 1400px; /* Match table min-width */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.products-search h1 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 32px;
}

/* Enhanced search bar styling */
.search-container {
    display: flex;
    width: 100%; /* Take full width of parent */
    max-width: 100%; /* Allow it to expand fully */
    margin: 0 auto;
    gap: 15px;
}

#searchInput {
    flex: 1;
    padding: 14px 20px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(209, 0, 0, 0.2);
    outline: none;
}

#searchBtn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#searchBtn:hover {
    background-color: #a50000;
    transform: translateY(-2px);
}

/* Table section styling */
.products-table .container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

/* Enhance pagination buttons to match new styling */
.pagination {
    margin-top: 25px;
}

.pagination button {
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination button.active, .pagination button:hover:not(:disabled) {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }

    #searchBtn {
        width: 100%;
    }

    .products-table .container {
        padding: 15px;
    }

    #productsTable {
        min-width: 1000px; /* Slightly smaller min-width for mobile */
    }
}


/* No results and error messages */
.no-results, .error-message {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #666;
}

.error-message {
    color: #c62828;
    background-color: #ffebee;
    border-radius: 4px;
}