

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    color: white;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: white;
}

.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    overflow: visible;
}

.homepage .main-header {
    background-color: rgba(255, 255, 255, 0.9);
    
}

.top-bar {
    background-color: #1f2937;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.top-bar-left .contact-link {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.top-bar-left .contact-link:hover {
    background: rgba(255, 255, 255, 0.05); 
    color: white !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.top-bar-left .contact-link:visited {
    color: #cbd5e1 !important;
}

.top-bar-left .contact-link:active {
    color: white !important;
}

.top-bar-left .contact-link i {
    font-size: 13px;
    color: #3b82f6 !important; 
}

.top-bar-left .separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-right a {
    color: white;
    font-size: 14px;
}

.top-bar-right a:hover {
    color: #60a5fa;
}

.language-selector select {
    background-color: #374151;
    color: white;
    border: 1px solid #4b5563;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.header-main {
    padding: 15px 0;
    position: relative;
    will-change: transform;
    z-index: 1010;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    min-height: 50px;
    overflow: visible;
}

.header-left {
    flex-shrink: 0;
    min-width: 150px;
}

.logo {
    min-width: 150px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 0;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.logo img[src=""] {
    opacity: 0;
}

.logo-fallback {
    display: none;
    font-weight: 700;
    font-size: 20px;
    color: #2563eb;
    white-space: nowrap;
    line-height: 50px;
}

.logo img:not([src])~.logo-fallback,
.logo img[style*="display: none"]~.logo-fallback {
    display: block;
}

.search-form {
    display: flex;
    max-width: 500px;
    width: 100%;
    margin: 0 40px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1005;
}

.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 16px;
    background: #fff;
    color: #1f2937;
    -webkit-tap-highlight-color: transparent;
}

.search-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: none;
}

.search-field-wrap {
    position: relative;
    width: 100%;
}

.search-field-wrap input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-form button {
    padding: 12px 16px;
    background-color: #2563eb;
    color: white;
    border: 2px solid #2563eb;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #1d4ed8;
}

.header-center {
    position: relative;
    z-index: 1020;
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10050;
    margin-top: 0;
    display: none;
    pointer-events: auto;
}

.search-suggestions.is-open {
    display: block;
}

.search-field-wrap .search-suggestions {
    z-index: 1002;
}

.suggestion-view-all {
    display: block;
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.suggestion-view-all:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.suggestion-empty {
    justify-content: center;
    color: #6b7280;
    font-style: italic;
    cursor: default;
}

.suggestion-empty:hover {
    background: transparent;
    transform: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.suggestion-item:active {
    background-color: #e0f2fe;
}

.suggestion-category {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.suggestion-category:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
}

.suggestion-brand {
    font-size: 16px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 1px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f0f9ff;
    cursor: pointer;
}

.suggestion-product:hover {
    transform: none;
}

.suggestion-item.no-results {
    color: #6b7280;
    font-style: italic;
    justify-content: center;
    padding: 20px;
}

.suggestion-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.suggestion-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-name {
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-sku {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.suggestion-sku i {
    font-size: 10px;
}

.suggestion-price {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.suggestion-price i {
    font-size: 10px;
}

@media (max-width: 768px) {
    .search-suggestions {
        max-height: 350px;
    }

    .suggestion-item {
        padding: 8px 12px;
        gap: 10px;
    }

    .suggestion-image {
        width: 40px;
        height: 40px;
    }

    .suggestion-name {
        font-size: 12px;
    }

    .suggestion-price {
        font-size: 13px;
    }
}

.category-menu-toggle:hover {
    border-color: #2563eb;
    background: #f3f4f6;
    color: #2563eb;
}

.header-nav-links a:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.category-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.category-sidebar::-webkit-scrollbar {
    width: 6px;
}

.category-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.category-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.category-sidebar-content a:hover {
    background: #e5e7eb;
    color: #2563eb;
}

.category-sidebar-content .subcategory-list a:hover {
    background: #f3f4f6;
    padding-left: 16px;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.cart-link:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.cart-text {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.cart-total-price {
    font-size: 16px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.5px;
}

.mobile-auth-buttons {
    display: none;
}

.cart-count {
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: -8px;
    right: -8px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.main-nav {
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    position: relative;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100% !important;
    overflow: visible;
    width: 100%;
}

@media (min-width: 1025px) {
    .main-nav .container {
        max-width: 100% !important;
        padding: 0 15px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 100;
    flex-wrap: nowrap;
    overflow-x: visible;
}

.nav-menu li {
    position: relative;
    flex-shrink: 0;
}

.nav-menu .mobile-auth-links {
    display: none !important;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    padding: 14px 10px;
    color: #1f2937;
    font-weight: 600;
    font-size: 13px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    flex-shrink: 0;
}

@media (min-width: 1025px) {
    .nav-menu>li>a {
        padding: 14px 10px;
        font-size: 13px;
        letter-spacing: 0.2px;
    }
}

@media (min-width: 1200px) {
    .nav-menu>li>a {
        padding: 16px 12px;
        font-size: 14px;
    }
}

@media (min-width: 1400px) {
    .nav-menu>li>a {
        padding: 18px 14px;
        font-size: 15px;
    }
}

@media (min-width: 1600px) {
    .nav-menu>li>a {
        padding: 20px 16px;
        font-size: 16px;
    }
}

.nav-menu>li>a:hover {
    background-color: #e5e7eb;
    color: #2563eb;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    max-width: 300px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1004;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 24px;
    color: #374151;
    font-weight: 400;
    font-size: 14px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    border-bottom: 1px solid #f3f4f6;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s ease;
}

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

.dropdown-menu li a:hover {
    background-color: #f8fafc;
    color: #2563eb;
    padding-left: 28px;
}

.nav-menu>li>a i {
    margin-left: 6px;
    font-size: 11px;
    transition: transform 0.3s ease;
}

.dropdown:hover>a i {
    transform: rotate(180deg);
}

.main-nav {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 1025px) {
    .nav-menu {
        overflow-x: visible !important;
        justify-content: center;
        flex-wrap: nowrap !important;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

@media (min-width: 1025px) {
    .nav-menu {
        overflow-x: visible;
        justify-content: center;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

.mobile-auth-links {
    display: none !important;
}

.mobile-auth-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #374151;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
    text-transform: none;
    letter-spacing: 0;
}

.mobile-auth-link:hover {
    background-color: #f8fafc;
    color: #2563eb;
}

.mobile-login {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white !important;
    border-bottom: none;
    margin: 10px 20px;
    border-radius: 8px;
    justify-content: center;
}

.mobile-login:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mobile-register {
    background: white;
    color: #2563eb !important;
    border: 2px solid #2563eb;
    border-bottom: 2px solid #2563eb;
    margin: 0 20px 10px;
    border-radius: 8px;
    justify-content: center;
}

.mobile-register:hover {
    background: #2563eb;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block !important;
    width: 25px !important;
    height: 3px !important;
    background-color: white !important;
    
    margin: 3px 0 !important;
    transition: 0.3s;
    flex-shrink: 0 !important;
}

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 60px;
    border-radius: 10px;
    max-width: 600px;
    margin-left: 60px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-nav button {
    width: 50px;
    height: 50px;
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background-color: white;
    transform: scale(1.1);
}

section {
    padding: 80px 0;
}

.categories {
    background-color: #f8fafc;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: inherit;
}

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

.category-card h3 {
    padding: 20px;
    text-align: center;
    margin: 0;
}

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

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.product-card h3 {
    padding: 20px 20px 10px;
    margin: 0;
    font-size: 1.1rem;
}

.product-info {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2563eb;
}

.stock {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.in-stock {
    background-color: #dcfce7;
    color: #166534;
}

.out-stock {
    background-color: #fee2e2;
    color: #dc2626;
}

.main-footer {
    background-color: #1f2937;
    color: white;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-grid.footer-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 48px;
    align-items: start;
}

.footer-social-bar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding-top: 28px;
    margin-top: 8px;
    border-top: 1px solid #374151;
}

.footer-social-bar .social-links {
    margin-top: 0;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    color: white;
}

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

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

.footer-col ul li a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.newsletter-form {
    margin-top: 20px;
}

.input-group {
    display: flex;
    gap: 0;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #4b5563;
    border-right: none;
    border-radius: 6px 0 0 6px;
    background-color: #374151;
    color: white;
}

.input-group button {
    padding: 12px 20px;
    background-color: #2563eb;
    color: white;
    border: 1px solid #2563eb;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-group button:hover {
    background-color: #1d4ed8;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #d1d5db;
    font-size: 14px;
}

.footer-bottom .payment-methods {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-bottom .payment-methods img {
    height: 30px;
    width: auto;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1f2937;
    color: white;
    padding: 20px;
    z-index: 1000;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cookie-actions a {
    color: #60a5fa;
    font-size: 14px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
}

.success-message {
    color: #10b981;
    font-size: 14px;
    margin-top: 5px;
}

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.alert-info {
    background-color: #dbeafe;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.legal-section {
    padding: 60px 0;
    background: #f8fafc;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-content h1 {
    color: #1f2937;
    font-size: 2.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2563eb;
}

.legal-content h2 {
    color: #1f2937;
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    color: #374151;
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-text {
    color: #6b7280;
    line-height: 1.8;
    font-size: 16px;
}

.legal-text p {
    margin-bottom: 20px;
}

.legal-text ul,
.legal-text ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.legal-text li {
    margin-bottom: 10px;
}

.last-updated {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: #92400e;
    font-size: 14px;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

button,
.btn,
a.btn,
input[type="submit"],
input[type="button"] {
    min-height: 44px;
}

html,
body {
    overflow-x: hidden;
}

@media (max-width: 992px) {

    
    .container,
    .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }

    .row>[class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 768px) {

    
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    
    .table-responsive,
    .table-wrapper,
    .order-table,
    .cart-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        width: 100%;
    }

    
    input,
    select,
    textarea {
        font-size: 16px;
        
    }

    
    .btn,
    .button,
    button {
        width: 100%;
    }

    
    .footer-columns,
    .footer-content,
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {

    
    .card,
    .panel,
    .section,
    .content-box {
        padding: 14px;
    }
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

input,
select,
textarea,
button {
    font-size: 16px;
}

.container,
.container-fluid {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

.row {
    flex-wrap: wrap;
}

[class*="col-"] {
    max-width: 100%;
}

@media (max-width: 992px) {

    .navbar .container,
    header .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .btn,
    button,
    .button {
        min-height: 44px;
    }

    .form-control {
        min-height: 44px;
    }

    .card {
        border-radius: 14px;
    }

    .modal-dialog {
        margin: 10px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    button,
    .btn,
    input[type="button"],
    input[type="submit"] {
        min-height: 44px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
}