/* Reset and Base Styles - No External Dependencies */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border: #dee2e6;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
    background: var(--white);
}

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

/* Top Bar - Mobile First */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .top-bar .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-info i {
    color: var(--accent);
    font-style: normal;
    font-weight: normal;
}

/* Using pseudo-elements instead of external icons */
.contact-info span i[class*="phone"]::before {
    content: "📞";
}

.contact-info span i[class*="envelope"]::before {
    content: "✉️";
}

.contact-info span i[class*="map"]::before {
    content: "📍";
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent);
}

/* Social media pseudo-elements */
.social-links a[class*="facebook"]::before {
    content: "f";
    font-weight: bold;
}

.social-links a[class*="instagram"]::before {
    content: "📷";
}

.social-links a[class*="telegram"]::before {
    content: "📱";
}

.social-links a[class*="youtube"]::before {
    content: "▶️";
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

@media (min-width: 480px) {
    .logo img {
        height: 45px;
    }
}

.logo span {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .logo span {
        font-size: 20px;
    }
}

/* Mobile Toggle - Always visible on mobile */
.mobile-toggle {
    display: flex;
    background: none;
    border: 1px solid var(--border);
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    color: var(--primary);
    background: var(--white);
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

/* Main Navigation - Desktop */
.main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
    padding: 20px 0;
}

.main-nav.active {
    left: 0;
    display: block;
}

@media (min-width: 992px) {
    .main-nav {
        display: block;
        position: static;
        width: auto;
        height: auto;
        box-shadow: none;
        padding: 0;
        overflow: visible;
    }
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

@media (min-width: 992px) {
    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 5px;
        padding: 0;
    }
}

.nav-list li {
    position: relative;
    width: 100%;
}

@media (min-width: 992px) {
    .nav-list li {
        width: auto;
    }
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

@media (min-width: 992px) {
    .nav-list a {
        padding: 8px 16px;
        border-bottom: none;
        border-radius: 30px;
    }
}

.nav-list a:hover {
    color: var(--accent);
    background: var(--light-bg);
    padding-left: 10px;
}

@media (min-width: 992px) {
    .nav-list a:hover {
        padding-left: 16px;
        background: var(--light-bg);
    }
}

.nav-list .active {
    color: var(--accent);
    font-weight: 600;
}

/* Dropdown - Mobile First */
.dropdown-menu {
    display: none;
    padding-left: 20px;
    margin-top: 5px;
}

@media (min-width: 992px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 240px;
        background: var(--white);
        box-shadow: var(--shadow-hover);
        border: 1px solid var(--border);
        border-top: 2px solid var(--accent);
        border-radius: 4px;
        padding: 8px 0;
        z-index: 1000;
    }
}

.dropdown.active .dropdown-menu {
    display: block;
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.dropdown-menu a {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

@media (min-width: 992px) {
    .dropdown-menu a {
        padding: 10px 15px;
    }
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 480px) {
    .header-icons {
        gap: 12px;
    }
}

.search-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
    border-radius: 4px;
    transition: all 0.2s;
}

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

.search-btn::before {
    content: "🔍";
    font-size: 16px;
}

.admin-link {
    background: var(--primary);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}

.admin-link:hover {
    background: var(--accent);
}

.admin-link::before {
    content: "👤";
    font-size: 12px;
}

/* Search Bar */
.search-bar {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 15px 0;
}

.search-bar.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.search-form input:focus {
    border-color: var(--accent);
}

.search-form button {
    padding: 0 20px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.search-form button:hover {
    background: var(--accent-light);
}

.search-form button::before {
    content: "🔍";
    font-size: 16px;
}

/* Footer - Mobile First */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .footer-col h3,
    .footer-col h4 {
        font-size: 18px;
    }
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Social media icons using pseudo-elements */
.footer-social a[class*="facebook"]::before {
    content: "f";
    font-weight: bold;
    font-size: 16px;
}

.footer-social a[class*="instagram"]::before {
    content: "📷";
    font-size: 16px;
}

.footer-social a[class*="telegram"]::before {
    content: "📱";
    font-size: 16px;
}

.footer-social a[class*="youtube"]::before {
    content: "▶️";
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.newsletter-form {
    display: flex;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.newsletter-form button {
    padding: 0 15px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: var(--accent-light);
}

.newsletter-form button::before {
    content: "✉️";
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 20px;
}

/* Payment method pseudo-elements */
.payment-methods i[class*="visa"]::before {
    content: "💳";
}

.payment-methods i[class*="mastercard"]::before {
    content: "💳";
}

.payment-methods i[class*="paypal"]::before {
    content: "💰";
}

.payment-methods i[class*="money"]::before {
    content: "💵";
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Print Styles */
@media print {
    .top-bar,
    .header,
    .search-bar,
    .footer {
        display: none;
    }
}