* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}


header {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: normal;
    color: white
}

nav {
    background-color: #34495e;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar li a {
    display: block;
    color: white;
    text-align: center;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.navbar li a:hover {
    background-color: #e74c3c;
}

.history-nav {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
}

.history-nav button {
    padding: 10px 20px;
    cursor: pointer;
    margin: 0 8px;
    font-size: 15px;
    border: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.history-nav button:hover {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.main-wrapper {
    max-width: 1000px;
    margin: 20px auto;
    padding: 40px;
    background-color: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-top: 25px;
}

h1 { font-size: 2em; border-bottom: 2px solid #e74c3c; padding-bottom: 10px; display: inline-block; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; font-weight: bold; color: #e74c3c; }

article p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.gallery-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.gallery-table td {
    padding: 20px;
    text-align: center;
    vertical-align: top;
    border: 1px solid #eee;
    background: #fff;
    transition: 0.3s;
}

.gallery-table td:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.single-product-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 40px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    background-color: white;
    border-radius: 8px;
}

.price-box {
    margin: 25px 0;
    padding: 20px;
    background-color: #f1f8ff;
    border-radius: 8px;
    border-left: 5px solid #007bff;
}

.price-bgn { font-size: 28px; font-weight: bold; color: #2c3e50; display: block; }
.price-eur { font-size: 18px; color: #27ae60; font-weight: bold; display: block; margin-top: 5px; }

.product-nav-buttons button {
    background-color: #2c3e50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
}
.product-nav-buttons button:hover {
    background-color: #1a252f;
}
.product-nav-buttons .home-btn {
    background-color: #e74c3c;
}
.product-nav-buttons .home-btn:hover {
    background-color: #c0392b;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: #bdc3c7;
    margin-top: 40px;
    font-size: 0.9em;
}

/* === СТИЛОВЕ ЗА ФОРМУЛЯРА ЗА ПОРЪЧКА === */
.order-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left; /* Етикетите да са вляво */
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* За да не излизат от рамката */
    font-family: inherit;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.2);
}

.submit-btn {
    width: 100%;
    background-color: #28a745; /* Зелен цвят за успех */
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #218838;
}

.content-section {
    background-color: #ffffff;
    color: #333333;
    padding: 40px;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 4px solid #ff6600;
}

.content-section article h1 {
    font-size: 28px;
    color: #2c3e50;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.content-section article p {
    font-size: 18px;
    line-height: 1.8;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
}

.info-section {
    background-color: #ffffff;
    color: #444444;
    padding: 40px;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.info-section h2 {
    text-align: center;
    color: #222;
    margin-bottom: 30px;
    font-size: 26px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.feature-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    width: 48%;
    box-sizing: border-box;
    border-left: 4px solid #007BFF;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-card h3 {
    margin-top: 0;
    color: #007BFF;
    font-size: 18px;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.5;
}

.final-text {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
}

@media (max-width: 768px) {
    .feature-card {
        width: 100%;
    }
}