/* =========================================================
   GLOBAL RESET & VARIABLES
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand Colors (Blue Sky Theme) */
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #f0f9ff;

    /* Base Colors */
    --white: #ffffff;
    --bg: #f8fafc;
    --card: #ffffff;

    /* Typography Colors */
    --text: #1e293b;
    --text-dark: #0f172a;
    --muted: #64748b;

    /* Interface Colors */
    --border: #e2e8f0;
    --price: #f59e0b;
    --green: #10b981;
    --red: #ef4444;
    --navy: #0f172a;

    /* Shadows */
    --shadow-sm: 0 2px 12px rgba(14, 165, 233, 0.06);
    --shadow-md: 0 8px 25px rgba(2, 132, 199, 0.10);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.16);

    /* Radii & Transitions */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    font-family: Arial, "Noto Sans Ethiopic", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1180px, 92%);
    margin-inline: auto;
}

/* Accessible focus states */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* =========================================================
   HEADER & NAVIGATION
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(240, 249, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    padding: 13px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.logo::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: var(--radius-full);
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.12);
}

/* Navigation Drawer Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

/* Active Toggle Transformation */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(7px) rotate(45deg);
    background: var(--primary);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--primary);
}

/* Navigation Menu */
nav {
    display: flex;
    align-items: center;
    gap: 27px;
}

nav a {
    position: relative;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition-fast);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}


/* =========================================================
   LANGUAGE SWITCHER
========================================================= */

.language-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.language-switch a {
    padding: 5px 9px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.language-switch a:hover {
    color: var(--primary);
}

.language-switch a.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
}


/* =========================================================
   HERO SECTION
========================================================= */

.hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
}

/* Background floating accents */
.hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -180px;
    top: -190px;
    border-radius: var(--radius-full);
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.08);
    animation: heroFloat 8s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    left: -100px;
    bottom: -110px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.07);
    animation: heroFloat 10s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(25px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-fast);
}

/* Hero Badge Label */
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 15px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    animation: heroLabel 0.8s ease both;
}

@keyframes heroLabel {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Heading & Copy */
.hero h1 {
    max-width: 720px;
    margin: 0 auto 18px;
    color: var(--text-dark);
    font-size: clamp(35px, 5.5vw, 58px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    animation: heroTitle 0.9s ease 0.1s both;
}

@keyframes heroTitle {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    max-width: 600px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
    animation: heroText 0.9s ease 0.2s both;
}

@keyframes heroText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   BUTTON SYSTEM
========================================================= */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 21px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    transition: transform var(--transition-fast),
                background var(--transition-fast),
                color var(--transition-fast),
                border-color var(--transition-fast),
                box-shadow var(--transition-fast);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    box-shadow: 0 6px 17px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(14, 165, 233, 0.35);
}

.btn-outline {
    width: 100%;
    margin-top: 13px;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}


/* =========================================================
   PRODUCTS LAYOUT & GRID
========================================================= */

.products-section {
    padding: 55px 0 70px;
    background: var(--bg);
}

.products-page {
    min-height: 100vh;
    padding: 30px 0 50px;
    background: var(--bg);
}

.products-page .section-heading {
    margin-bottom: 20px;
}

.products-page .section-heading h1,
.products-page .section-heading h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 800;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.section-heading p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.section-heading a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.section-heading a:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}


/* =========================================================
   PRODUCT CARDS
========================================================= */

.product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                border-color var(--transition-base);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.40);
    box-shadow: var(--shadow-md);
}

.product-image-link {
    display: block;
    width: 100%;
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, transparent 55%, rgba(255, 255, 255, 0.20));
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.07);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.product-info {
    padding: 9px;
}

.product-title-link {
    display: block;
    color: inherit;
}

/* Multi-line Truncation (Modern CSS Standard) */
.product-info h3,
.product-title-link h3 {
    min-height: 36px;
    margin: 0 0 7px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.product-title-link:hover h3 {
    color: var(--primary);
    transform: translateX(2px);
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 8px;
}

.product-bottom strong {
    color: var(--price);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.stock {
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 5px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.out-stock {
    color: var(--red);
    background: #fef2f2;
    padding: 3px 5px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.product-info .btn-outline {
    width: 100%;
    min-height: 30px;
    margin-top: 5px;
    padding: 5px;
    border-radius: var(--radius-sm);
    font-size: 9px;
}

.empty {
    grid-column: 1 / -1;
    padding: 65px 20px;
    text-align: center;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}


/* =========================================================
   PRODUCT DETAILS PAGE
========================================================= */

.product-detail-section {
    padding: 45px 0 75px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

.product-detail {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 55px;
    align-items: start;
}

.detail-image {
    position: relative;
    height: 540px;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.detail-image:hover img {
    transform: scale(1.03);
}

.detail-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 22px;
    font-weight: 700;
}

.detail-info {
    padding-top: 10px;
}

.product-category {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.detail-info h1 {
    margin: 5px 0 15px;
    color: var(--text-dark);
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.15;
    font-weight: 800;
}

.detail-price {
    margin-bottom: 14px;
    color: var(--price);
    font-size: 29px;
    font-weight: 900;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    padding: 7px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.available-dot,
.unavailable-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}

.available-dot {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.unavailable-dot {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.description {
    margin-bottom: 27px;
    color: var(--muted);
    line-height: 1.85;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.action-call,
.action-message {
    border: none;
    padding: 13px 23px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--transition-fast),
                box-shadow var(--transition-fast),
                background var(--transition-fast);
}

.action-call {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.15);
}

.action-call:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.action-message {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.25);
}

.action-message:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}


/* =========================================================
   INQUIRY MODAL
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.inquiry-modal {
    position: relative;
    width: min(520px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    padding: 30px;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    transform: translateY(25px) scale(0.96);
    transition: transform var(--transition-base);
}

.modal-overlay.show .inquiry-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 13px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    color: #64748b;
    font-size: 23px;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-right: 35px;
    margin-bottom: 23px;
}

.modal-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 20px;
}

.modal-header h2 {
    margin-bottom: 2px;
    color: var(--text-dark);
    font-size: 20px;
}

.modal-header p {
    color: var(--muted);
    font-size: 12px;
}


/* =========================================================
   FORM CONTROLS
========================================================= */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.form-group label span { color: var(--red); }
.form-group label small { color: #94a3b8; font-weight: normal; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 11px 12px;
    background: #f8fafc;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                background var(--transition-fast);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-group textarea {
    min-height: 95px;
    resize: vertical;
}

.submit-inquiry {
    width: 100%;
    border: none;
    padding: 13px;
    border-radius: 7px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.25);
    transition: transform var(--transition-fast),
                background var(--transition-fast),
                box-shadow var(--transition-fast);
}

.submit-inquiry:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 9px 23px rgba(14, 165, 233, 0.35);
}


/* =========================================================
   SUCCESS PAGE
========================================================= */

.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
}

.success-card {
    width: min(520px, 100%);
    padding: 45px 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 32px;
    font-weight: 900;
    box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.08);
}

.success-card h1 {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 28px;
}

.success-card p {
    color: var(--muted);
    line-height: 1.8;
}

.success-product {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 23px 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 9px;
    text-align: left;
}

.success-product span {
    color: var(--muted);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    position: relative;
    background: var(--navy);
    color: #cbd5e1;
    padding: 35px 0;
    text-align: center;
}

.site-footer::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    margin: 0 auto 15px;
    background: var(--primary);
}

.site-footer a {
    color: var(--white);
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: #38bdf8;
}


/* =========================================================
   SEARCH COMPONENT
========================================================= */

.search-box {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}


/* =========================================================
   ANIMATIONS & EFFECTS
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-show {
    opacity: 1;
    transform: translateY(0);
}

.product-card.reveal-show {
    animation: productAppear 0.6s ease both;
}

@keyframes productAppear {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.button-ripple {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    from {
        width: 10px;
        height: 10px;
        opacity: 0.8;
    }
    to {
        width: 350px;
        height: 350px;
        opacity: 0;
    }
}


/* =========================================================
   CUSTOM SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #bae6fd;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

::selection {
    background: var(--primary);
    color: var(--white);
}


/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 1000px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .detail-image {
        height: 470px;
    }
}

@media (max-width: 800px) {
    .nav-container {
        justify-content: flex-start;
        gap: 15px;
    }

    .nav-toggle {
        display: block;
        order: 1;
    }

    .logo {
        order: 2;
    }

    .language-switch {
        margin-left: auto;
        order: 3;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 55px;
        left: -100%;
        width: 260px;
        height: calc(100vh - 55px);
        background: var(--white);
        padding: 30px 20px;
        gap: 18px;
        border-right: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    nav.active {
        left: 0;
    }

    nav a {
        width: 100%;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
        font-size: 15px;
    }

    nav a::after {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .products-section { padding: 40px 0 55px; }
    .products-page { padding: 25px 0 45px; }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .detail-image {
        height: 430px;
    }
}

@media (max-width: 550px) {
    .container { width: 94%; }

    .site-header { padding: 11px 0; }
    .logo { font-size: 19px; }

    .hero { min-height: 430px; }
    .hero-content { padding: 65px 0; }
    .hero h1 { font-size: 37px; letter-spacing: -1px; }
    .hero p { font-size: 15px; line-height: 1.7; }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .section-heading h2 { font-size: 24px; }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .product-info { padding: 7px; }

    .product-info h3,
    .product-title-link h3 {
        min-height: 35px;
        margin-bottom: 5px;
        font-size: 10px;
        line-height: 1.3;
    }

    .product-bottom {
        display: block;
        margin-bottom: 6px;
    }

    .product-bottom strong {
        display: block;
        margin-bottom: 3px;
        font-size: 10px;
    }

    .stock,
    .out-stock {
        display: inline-block;
        padding: 2px 4px;
        font-size: 7px;
    }

    .product-info .btn-outline {
        min-height: 28px;
        margin-top: 5px;
        padding: 4px 3px;
        border-radius: 5px;
        font-size: 8px;
    }

    .products-page .section-heading h1,
    .products-page .section-heading h2 {
        font-size: 20px;
    }

    .detail-image {
        height: 350px;
        border-radius: 12px;
    }

    .detail-info h1 { font-size: 30px; }
    .detail-price { font-size: 25px; }

    .product-actions { flex-direction: column; }

    .action-call,
    .action-message {
        width: 100%;
        text-align: center;
    }

    .inquiry-modal {
        padding: 24px 17px;
        border-radius: 13px;
    }

    .modal-header h2 { font-size: 18px; }

    .success-card { padding: 38px 20px; }
    .success-product { flex-direction: column; }
}

@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .product-info { padding: 5px; }

    .product-info h3,
    .product-title-link h3 {
        font-size: 9px;
        min-height: 31px;
    }

    .product-bottom strong { font-size: 9px; }

    .stock,
    .out-stock {
        font-size: 7px;
        padding: 2px 3px;
    }

    .product-info .btn-outline {
        min-height: 26px;
        font-size: 7px;
        padding: 3px 2px;
    }
}


/* =========================================================
   ACCESSIBILITY PREFERENCES
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}