/* ╔══════════════════════════════════════════════════════════╗
   ║  ATTIMO — Premium Luxury Brand Stylesheet               ║
   ║  Font: IBM Plex Sans Arabic  ·  Icons: Phosphor         ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ═══════════════════ CSS Custom Properties ═══════════════════ */

/* Dark Theme (Default) */
:root,
[data-theme="dark"] {
    --bg-primary: #040906;
    --bg-secondary: #0a1610;
    --bg-card: #0d1f16;
    --bg-header: rgba(4, 9, 6, 0.82);

    --accent-1: #115e41;
    --accent-2: #1db97e;
    --accent-3: #083322;
    --accent-gradient: linear-gradient(135deg, #115e41, #1db97e);

    /* Complementary warm gold accent — triadic harmony with emerald */
    --gold: #c9a84c;
    --gold-light: #e2c97e;
    --gold-subtle: rgba(201, 168, 76, 0.12);

    --text-primary: #ffffff;
    --text-secondary: #c5d4cc;
    --text-muted: #6b8578;

    --border-color: rgba(29, 185, 126, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --card-hover-shadow: 0 16px 48px rgba(29, 185, 126, 0.12), 0 8px 24px rgba(0, 0, 0, 0.3);

    --overlay-bg: rgba(4, 9, 6, 0.92);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f4f7f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-header: rgba(244, 247, 245, 0.88);

    --accent-1: #115e41;
    --accent-2: #1db97e;
    --accent-3: #083322;
    --accent-gradient: linear-gradient(135deg, #1a8f63, #115e41);

    --gold: #a8872e;
    --gold-light: #c9a84c;
    --gold-subtle: rgba(168, 135, 46, 0.08);

    --text-primary: #0a1610;
    --text-secondary: #3d5a4b;
    --text-muted: #7a9488;

    --border-color: rgba(17, 94, 65, 0.12);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 12px 40px rgba(17, 94, 65, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);

    --overlay-bg: rgba(244, 247, 245, 0.96);
}

/* ═══════════════════ Reset & Base ═══════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ═══════════════════ Typography ═══════════════════ */
h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.3;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ═══════════════════ Header ═══════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 60px);
    height: 72px;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.header--scrolled {
    height: 62px;
    box-shadow: 0 4px 30px var(--shadow-color);
}

/* --- LOGO DISPLAY & ANIMATIONS --- */
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header__logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.header__logo:hover .header__logo-img {
    transform: scale(1.05);
}

/* Dark Theme Subtle Glow */
[data-theme="dark"] .header__logo-img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

/* Light Theme Color Adaptation (Turns White into Dark Emerald #0a1610) */
[data-theme="light"] .header__logo-img {
    filter: invert(1) invert(4%) sepia(18%) saturate(2250%) hue-rotate(106deg) brightness(98%) contrast(92%);
}

/* Desktop Nav */
.header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header__nav a {
    position: relative;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.header__nav a:hover {
    color: var(--accent-2);
    background: rgba(29, 185, 126, 0.08);
}

.header__nav a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--accent-2);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.header__nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.header__icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.header__icon-btn:hover {
    color: var(--accent-2);
    background: rgba(29, 185, 126, 0.1);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    color: var(--accent-2);
    background: rgba(29, 185, 126, 0.1);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--overlay-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay a {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    letter-spacing: 0.5px;
}

.mobile-nav-overlay.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-overlay.active a:nth-child(1) {
    transition-delay: 0.05s;
}

.mobile-nav-overlay.active a:nth-child(2) {
    transition-delay: 0.1s;
}

.mobile-nav-overlay.active a:nth-child(3) {
    transition-delay: 0.15s;
}

.mobile-nav-overlay.active a:nth-child(4) {
    transition-delay: 0.2s;
}

.mobile-nav-overlay.active a:nth-child(5) {
    transition-delay: 0.25s;
}

.mobile-nav-overlay.active a:nth-child(6) {
    transition-delay: 0.3s;
}

.mobile-nav-overlay a:hover {
    color: var(--accent-2);
    background: rgba(29, 185, 126, 0.1);
}

.close-mobile-nav {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-mobile-nav:hover {
    color: var(--accent-2);
    background: rgba(29, 185, 126, 0.1);
}

/* ═══════════════════ Hero Section ═══════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

[data-theme="light"] .hero__bg img {
    opacity: 0.18;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(4, 9, 6, 0.3) 0%,
            rgba(4, 9, 6, 0.6) 50%,
            var(--bg-primary) 100%);
}

[data-theme="light"] .hero__bg::after {
    background: linear-gradient(180deg,
            rgba(244, 247, 245, 0.3) 0%,
            rgba(244, 247, 245, 0.5) 50%,
            var(--bg-primary) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

/* --- HERO LOGO DISPLAY --- */
.hero__logo-icon {
    width: 380px;
    height: 130px;
    margin: 0 auto 28px;
    animation: heroIconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(29, 185, 126, 0.3));
}

.hero__logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.4s ease;
}

/* Dark Theme Hero Logo Glow */
[data-theme="dark"] .hero__logo-icon img {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

/* Light Theme Hero Logo Adaptation (Turns White into Gold #c9a84c) */
[data-theme="light"] .hero__logo-icon img {
    filter: invert(1) invert(72%) sepia(21%) saturate(1217%) hue-rotate(9deg) brightness(90%) contrast(88%);
}

/* Adjust shadow for Light Theme Hero */
[data-theme="light"] .hero__logo-icon {
    filter: drop-shadow(0 6px 20px rgba(168, 135, 46, 0.25));
}

.hero__title {
    color: var(--text-primary);
    margin-bottom: 16px;
    animation: heroFadeUp 0.9s ease forwards;
}

.hero__title-gold {
    color: var(--gold);
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--accent-2);
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-bottom: 36px;
    animation: heroFadeUp 0.9s 0.15s ease both;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.8px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(29, 185, 126, 0.25);
    animation: heroFadeUp 0.9s 0.3s ease both;
}

.hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(29, 185, 126, 0.4);
}

.hero__cta i {
    font-size: 1.1rem;
}

/* Hero decorative elements */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.hero__glow--1 {
    width: 280px;
    height: 280px;
    background: var(--accent-1);
    top: 20%;
    right: 10%;
}

.hero__glow--2 {
    width: 180px;
    height: 180px;
    background: var(--gold);
    bottom: 25%;
    left: 15%;
    animation-delay: -3s;
}

/* Hero floating particles */
.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-2);
    border-radius: 50%;
    opacity: 0;
    animation: particleRise linear infinite;
}

.hero__particle:nth-child(1) {
    left: 10%;
    animation-duration: 7s;
    animation-delay: 0s;
}

.hero__particle:nth-child(2) {
    left: 25%;
    animation-duration: 9s;
    animation-delay: 1.5s;
    width: 2px;
    height: 2px;
    background: var(--gold);
}

.hero__particle:nth-child(3) {
    left: 40%;
    animation-duration: 6s;
    animation-delay: 3s;
}

.hero__particle:nth-child(4) {
    left: 55%;
    animation-duration: 8s;
    animation-delay: 0.8s;
    width: 2px;
    height: 2px;
    background: var(--gold-light);
}

.hero__particle:nth-child(5) {
    left: 70%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.hero__particle:nth-child(6) {
    left: 85%;
    animation-duration: 7.5s;
    animation-delay: 4s;
    width: 2px;
    height: 2px;
    background: var(--gold);
}

.hero__particle:nth-child(7) {
    left: 15%;
    animation-duration: 8.5s;
    animation-delay: 5s;
}

.hero__particle:nth-child(8) {
    left: 60%;
    animation-duration: 6.5s;
    animation-delay: 1s;
    width: 2px;
    height: 2px;
}

.hero__particle:nth-child(9) {
    left: 90%;
    animation-duration: 9.5s;
    animation-delay: 3.5s;
    background: var(--gold);
}

.hero__particle:nth-child(10) {
    left: 50%;
    animation-duration: 7s;
    animation-delay: 2.5s;
}

/* Decorative line accents in hero */
.hero__line-accent {
    position: absolute;
    z-index: 0;
    opacity: 0.08;
}

.hero__line-accent--1 {
    top: 30%;
    right: 5%;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: linePulse 4s ease-in-out infinite;
}

.hero__line-accent--2 {
    bottom: 35%;
    left: 8%;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
    animation: linePulse 4s 2s ease-in-out infinite;
}

/* ═══════════════════ About Section ═══════════════════ */
.about-section {
    padding: 100px 24px;
    text-align: center;
}

.about-section__title {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.about-section__line {
    width: 50px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 0 auto 32px;
}

.about-section__text {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 2;
    font-weight: 400;
}

/* ═══════════════════ Product Sections ═══════════════════ */
.products-section {
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header__title {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-header__line {
    width: 40px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 0 auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

/* ═══════════════════ Product Card ═══════════════════ */
.product-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    opacity: 0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
}

.product-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card__image-wrapper img {
    transform: scale(1.06);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(17, 94, 65, 0.4);
}

.product-card__info {
    padding: 16px 18px 6px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.product-card__name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.product-card__price {
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.product-card__order-btn {
    margin: 10px 18px 18px;
    padding: 11px 18px;
    background: var(--accent-gradient);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.35s ease;
    box-shadow: 0 3px 12px rgba(17, 94, 65, 0.3);
}

.product-card__order-btn:hover {
    background: var(--accent-2);
    color: #040906;
    box-shadow: 0 6px 24px rgba(29, 185, 126, 0.35);
    transform: translateY(-2px);
}

.product-card__order-btn i {
    font-size: 1.15rem;
}

/* Card Animation */
.card-animate-in {
    animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ═══════════════════ Footer ═══════════════════ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 32px;
    margin-top: 80px;
    transition: background-color 0.4s ease;
}

.footer__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer__brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-2);
    letter-spacing: 5px;
    text-transform: uppercase;
}

.footer__text {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
    max-width: 400px;
    line-height: 1.8;
}

.footer__socials {
    display: flex;
    gap: 10px;
}

.footer__social-link {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    color: var(--accent-2);
    border-color: var(--accent-2);
    background: rgba(29, 185, 126, 0.08);
    transform: translateY(-2px);
}

.footer__copy {
    color: var(--text-muted);
    font-size: 0.78rem;
    opacity: 0.6;
    margin-top: 8px;
}

/* ═══════════════════ Search Page ═══════════════════ */
.search-page {
    min-height: 100vh;
    padding: 100px 24px 60px;
}

.search-page__header {
    text-align: center;
    margin-bottom: 40px;
}

.search-page__title {
    color: var(--text-primary);
    margin-bottom: 24px;
}

.search-page__input-wrapper {
    max-width: 540px;
    margin: 0 auto;
    position: relative;
}

.search-page__input {
    width: 100%;
    padding: 14px 22px 14px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.search-page__input:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(29, 185, 126, 0.1);
}

.search-page__input::placeholder {
    color: var(--text-muted);
}

.search-page__input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.filter-chip {
    padding: 7px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.filter-chip:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
}

.filter-chip.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(17, 94, 65, 0.3);
}

/* Results */
.search-results__count {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    gap: 16px;
}

.no-results__icon {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.4;
}

.no-results__text {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
}

/* ═══════════════════ Scroll Reveal ═══════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════ Animations ═══════════════════ */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(10px, -15px);
    }

    66% {
        transform: translate(-8px, 10px);
    }
}

@keyframes particleRise {
    0% {
        bottom: -5%;
        opacity: 0;
        transform: translateX(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        bottom: 105%;
        opacity: 0;
        transform: translateX(30px);
    }
}

@keyframes linePulse {

    0%,
    100% {
        opacity: 0.06;
        transform: scaleX(0.8);
    }

    50% {
        opacity: 0.15;
        transform: scaleX(1);
    }
}

/* ═══════════════════ Utility ═══════════════════ */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════ Responsive ═══════════════════ */

/* ---- Tablet ---- */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .header {
        height: 56px;
        padding: 0 14px;
    }

    .header--scrolled {
        height: 50px;
    }

    .header__logo-img {
        height: 34px;
        /* تم زيادة الحجم ليكون أبرز وأجمل */
    }

    .header__icon-btn {
        width: 34px;
        height: 34px;
        font-size: 1.15rem;
    }

    .hamburger-btn {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .hero {
        padding: 90px 20px 50px;
        min-height: 80vh;
    }

    .hero__logo-icon {
        width: 256px;
        height: 100px;
        margin-bottom: 20px;
    }

    .products-section {
        padding: 50px 14px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card__info {
        padding: 10px 12px 4px;
        flex-direction: column;
        gap: 3px;
    }

    .product-card__name {
        font-size: 0.82rem;
    }

    .product-card__price {
        font-size: 0.92rem;
    }

    .product-card__order-btn {
        margin: 6px 12px 12px;
        padding: 9px 12px;
        font-size: 0.78rem;
        border-radius: 4px;
    }

    .product-card__badge {
        top: 8px;
        right: 8px;
        padding: 2px 8px;
        font-size: 0.55rem;
        border-radius: 3px;
    }

    .about-section {
        padding: 50px 20px;
    }

    .about-section__text {
        font-size: 0.95rem;
    }

    .footer {
        padding: 36px 16px 20px;
        margin-top: 30px;
    }

    .footer__inner {
        gap: 16px;
    }

    .filter-chips {
        gap: 6px;
    }

    .filter-chip {
        padding: 6px 14px;
        font-size: 0.78rem;
    }

    .search-page {
        padding: 72px 14px 30px;
    }

    .search-page__input {
        font-size: 0.9rem;
        padding: 12px 18px 12px 42px;
    }

    .search-page__title {
        font-size: 1.5rem;
    }
}

/* ---- Small phones ---- */
@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 320px;
        margin: 0 auto;
    }

    h1 {
        font-size: 1.8rem;
    }
}

/* ═══════════════════ Scrollbar ═══════════════════ */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-2);
}

/* ═══════════════════ Selection ═══════════════════ */
::selection {
    background: rgba(29, 185, 126, 0.25);
    color: var(--text-primary);
}


