/* =========================================================
   TVC STORE - RESPONSIVE CSS
   ========================================================= */


/* =========================================================
   1. CSS VARIABLES
   ========================================================= */

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;

    --red-500: #ef4444;

    --yellow-300: #fde047;
    --yellow-400: #facc15;

    --white: #ffffff;

    --max-width: 1280px;
}


/* =========================================================
   2. RESET
   ========================================================= */

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

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* =========================================================
   3. CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}


/* =========================================================
   4. TOP BAR
   ========================================================= */

.top-bar {
    width: 100%;
    background-color: var(--blue-900);
    color: var(--white);

    font-size: 0.75rem;

    padding: 0.5rem 1rem;

    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-group {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 1rem;
    flex-wrap: wrap;
}

.top-bar i {
    margin-right: 0.25rem;
}


/* =========================================================
   5. LANGUAGE DROPDOWN
   ========================================================= */

.lang-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;

    white-space: nowrap;
}

.lang-dropdown-menu {
    display: none;

    position: absolute;
    top: 100%;
    right: 0;

    min-width: 110px;

    background-color: var(--blue-900);

    border: 1px solid var(--blue-800);
    border-radius: 4px;

    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.15);

    z-index: 5000;

    margin-top: 4px;

    overflow: hidden;
}

.lang-dropdown-menu.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 7px 12px;

    color: var(--white);

    font-size: 0.75rem;

    cursor: pointer;

    white-space: nowrap;
}

.lang-option:hover {
    background-color: var(--blue-700);
}

.lang-flag {
    width: 16px;
    height: 16px;

    border-radius: 50%;

    object-fit: cover;

    display: inline-block;
}


/* =========================================================
   6. MAIN HEADER
   ========================================================= */

.main-header {
    width: 100%;

    background-color: var(--white);

    padding: 1rem 2rem;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.05);
}

.header-container {
    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 1rem;

    flex-wrap: wrap;
}


/* =========================================================
   7. LOGO
   ========================================================= */

.logo-section {
    display: flex;
    align-items: center;

    gap: 0.5rem;

    flex-wrap: wrap;

    flex-shrink: 0;
}

.logo-box {
    width: 2.5rem;
    height: 2.5rem;

    background-color: var(--blue-600);

    border-radius: 0.25rem;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--white);

    font-weight: bold;
    font-size: 1.25rem;

    flex-shrink: 0;
}

.logo-text {
    font-size: 0.875rem;

    color: var(--blue-900);

    font-weight: 600;

    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.75rem;

    color: var(--gray-500);

    margin-left: 1rem;

    border-left: 1px solid var(--gray-300);

    padding-left: 1rem;
}


/* =========================================================
   8. SEARCH BAR
   ========================================================= */

.search-container {
    flex: 1 1 300px;

    width: 100%;
    max-width: 42rem;

    min-width: 0;

    margin: 0 1rem;
}

.search-box {
    width: 100%;

    display: flex;

    border: 2px solid var(--blue-600);

    border-radius: 9999px;

    overflow: hidden;

    background-color: var(--white);
}

.search-input {
    width: 100%;
    min-width: 0;

    padding: 0.5rem 1rem;

    border: none;

    outline: none;

    font-size: 0.875rem;
}

.search-btn {
    flex-shrink: 0;

    background-color: var(--blue-600);

    color: var(--white);

    padding: 0.5rem 1.5rem;

    border: none;
}

.search-btn:hover {
    background-color: var(--blue-700);
}


/* =========================================================
   9. HEADER ICONS
   ========================================================= */

.header-icons {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 1.5rem;

    font-size: 0.875rem;

    color: var(--blue-900);

    flex-shrink: 0;
}

.icon-item {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    white-space: nowrap;

    min-width: 55px;
}

.icon-item i {
    font-size: 1.25rem;

    margin-bottom: 0.25rem;
}

.icon-item:hover {
    color: var(--blue-600);
}


/* =========================================================
   10. NAVIGATION
   ========================================================= */

.main-nav {
    width: 100%;

    background-color: var(--white);

    border-bottom: 1px solid var(--gray-200);

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03);
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    display: flex;

    align-items: center;

    gap: 2rem;

    font-size: 0.875rem;

    font-weight: 600;

    color: var(--blue-900);

    padding: 0.75rem 2rem;

    flex-wrap: wrap;
}

.nav-container a {
    position: relative;

    padding: 0.25rem 0;

    font-weight: normal;

    white-space: nowrap;

    transition:
        color 0.2s ease-in-out;
}

.nav-container a:hover {
    color: var(--blue-600);
}

.nav-container a.nav-active,
.nav-container a.active {
    font-weight: bold;

    color: var(--blue-600);
}

