/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
    --primary: #1a5f4a;
    --primary-dark: #134a3a;
    --secondary: #e67e22;
    --accent: #f39c12;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #27ae60;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 6px;
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-text span {
    color: var(--secondary);
    font-weight: 800;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
    margin: 0 auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary);
}

.cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cart-count {
    background: var(--secondary);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ============================================
   HERO WITH PHONE SLIDER
   ============================================ */
.hero {
    margin-top: 60px;
    padding: 50px 16px 30px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 24px;
    max-width: 480px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--light-gray);
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-outline:hover {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

/* PHONE SLIDER */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
}

.phone-slider {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 480px;
    perspective: 1000px;
}

.phone-slide {
    position: absolute;
    width: 200px;
    height: 400px;
    background: var(--dark);
    border-radius: 28px;
    border: 5px solid #2a2a3e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    overflow: hidden;
}

.phone-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.phone-slide .phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 20px;
    background: #2a2a3e;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 2;
}

.phone-slide .slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px;
    text-align: center;
    z-index: 2;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.phone-slide .slide-brand {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.phone-slide .slide-model {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.phone-slide .slide-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    margin-top: 10px;
}

.phone-slide .slide-old-price {
    font-size: 0.8rem;
    text-decoration: line-through;
    opacity: 0.5;
    margin-top: 4px;
}

.phone-slide .slide-badge {
    position: absolute;
    top: 18px;
    right: -12px;
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    transform: rotate(12deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.phone-slide.active {
    z-index: 3;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.phone-slide.prev {
    z-index: 2;
    transform: translate(-80%, -50%) scale(0.82) rotateY(20deg);
    opacity: 0.55;
}

.phone-slide.next {
    z-index: 2;
    transform: translate(-20%, -50%) scale(0.82) rotateY(-20deg);
    opacity: 0.55;
}

.phone-slide.hidden {
    z-index: 1;
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0;
}

.slider-dots {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 60px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--gray);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    background: rgba(26, 95, 74, 0.1);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--light-gray);
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.product-badge.new {
    background: var(--success);
}

.product-badge.hot {
    background: var(--danger);
}

.product-image {
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: all 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: bottom 0.3s;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.action-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.product-info {
    padding: 18px;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.product-specs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.spec-tag {
    background: var(--light);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    color: var(--gray);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--light-gray);
}

.product-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary);
}

.product-price .old {
    font-size: 0.85rem;
    color: var(--gray);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

.add-to-cart {
    background: var(--primary);
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-to-cart:hover {
    background: var(--secondary);
}

/* ============================================
   BRANDS
   ============================================ */
.brands-section {
    background: var(--white);
    padding: 50px 16px;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

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

.brands-section .section-header h2,
.brands-section .section-header p {
    color: var(--dark);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.brand-card {
    background: var(--light);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    padding: 22px 16px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.brand-card:hover {
    background: white;
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.brand-card i {
    font-size: 1.8rem;
    color: var(--gray);
    margin-bottom: 8px;
    display: block;
}

.brand-card:hover i {
    color: var(--secondary);
}

.brand-name {
    color: var(--dark);
    font-weight: 700;
    font-size: 0.85rem;
}

/* ============================================
   DEALS
   ============================================ */
.deals-banner {
    background: var(--primary);
    padding: 50px 16px;
    position: relative;
    overflow: hidden;
}

.deals-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.deals-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.deal-content h2 {
    font-size: 2.2rem;
    color: white;
    font-weight: 900;
    margin-bottom: 12px;
}

.deal-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 20px;
}

.countdown {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    min-width: 60px;
}

.countdown-item .number {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    display: block;
}

.countdown-item .label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.deal-image {
    display: flex;
    justify-content: center;
}

.deal-phone {
    width: 220px;
    height: 440px;
    background: var(--dark);
    border-radius: 30px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.deal-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
}

.deal-phone .discount {
    position: absolute;
    top: 25px;
    right: -15px;
    background: var(--secondary);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    transform: rotate(15deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.deal-phone .deal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 16px;
    text-align: center;
    z-index: 2;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--light-gray);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.testimonial-text {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
}

.author-info h4 {
    font-weight: 800;
    color: var(--dark);
    font-size: 0.9rem;
}

.author-info p {
    font-size: 0.75rem;
    color: var(--gray);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background: var(--white);
    padding: 60px 16px;
    border-top: 1px solid var(--light-gray);
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-section h2 {
    color: var(--dark);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.newsletter-section p {
    color: var(--gray);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
    background: white;
    color: var(--dark);
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    border-color: var(--primary);
}

.newsletter-input::placeholder {
    color: var(--gray);
}

.newsletter-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0.95rem;
}

.newsletter-btn:hover {
    background: #d35400;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--white);
    padding: 50px 16px 20px;
    border-top: 1px solid var(--light-gray);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand .logo-text {
    color: var(--dark);
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.social-links a {
    width: 38px;
    height: 38px;
    background: var(--light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.footer-column h4 {
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-links a i {
    font-size: 0.6rem;
    color: var(--primary);
}

.footer-contact p {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--primary);
    width: 18px;
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid var(--light-gray);
    padding-top: 16px;
    text-align: center;
    color: var(--gray);
    font-size: 0.8rem;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: white;
    padding: 14px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s;
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--success);
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 320px;
    min-width: 0;
    margin: 0 12px;
}

.search-input {
    width: 100%;
    padding: 9px 36px 9px 14px;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--light);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.search-input::placeholder {
    color: var(--gray);
}

.search-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.12);
}

.search-icon-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.search-icon-btn:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.search-clear {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.8rem;
    display: none;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.2s;
}

.search-clear:hover {
    color: var(--danger);
}

.search-clear.visible {
    display: flex;
    align-items: center;
}

/* Dropdown results overlay */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1.5px solid var(--light-gray);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    padding: 6px 0;
}

.search-results-dropdown.open {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--light-gray);
}

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

.search-result-item:hover {
    background: rgba(26, 95, 74, 0.07);
}

.search-result-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--light);
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-brand {
    font-size: 0.72rem;
    color: var(--gray);
}

.search-result-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.search-no-results {
    padding: 16px 14px;
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
}

.search-no-results i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--light-gray);
}

/* Highlight matched text */
.search-highlight {
    color: var(--secondary);
    font-weight: 800;
}

/* Tiny screen toggle (< 380px) */
.search-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.search-toggle-btn:hover {
    color: var(--primary);
}

/* Full-width search row that appears below the navbar on tiny screens */
.search-row-mobile {
    display: none;
    width: 100%;
    padding: 6px 12px 8px;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    position: relative;
}

.search-row-mobile.open {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-row-mobile .search-input {
    flex: 1;
    min-width: 0;
}

.search-row-mobile .search-results-dropdown {
    top: calc(100% + 2px);
}

/* Section-level no-results banner */
.products-no-results {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.products-no-results.visible {
    display: block;
}

.products-no-results i {
    font-size: 2.5rem;
    color: var(--light-gray);
    display: block;
    margin-bottom: 10px;
}

.products-no-results h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        margin: 0 auto 24px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        min-height: 320px;
    }

    .phone-slider {
        max-width: 260px;
        height: 420px;
    }

    .phone-slide {
        width: 180px;
        height: 360px;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .deals-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .countdown {
        justify-content: center;
    }

    .deal-image {
        order: -1;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 16px 24px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .btn-primary,
    .btn-outline {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .phone-slider {
        max-width: 240px;
        height: 380px;
    }

    .phone-slide {
        width: 160px;
        height: 320px;
    }

    .section {
        padding: 40px 16px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

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

    .product-image {
        height: 160px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .social-links {
        justify-content: center;
    }

    .deal-content h2 {
        font-size: 1.7rem;
    }

    .deal-phone {
        width: 190px;
        height: 380px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
    }

    .nav-container {
        padding: 0 12px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .logo-sub {
        display: none;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 0.78rem;
        font-weight: 700;
    }

    .cart-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .cart-btn span {
        display: none;
    }

    .hero {
        margin-top: 52px;
        padding: 28px 12px 20px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .phone-slider {
        max-width: 220px;
        height: 340px;
    }

    .phone-slide {
        width: 150px;
        height: 300px;
    }

    .section {
        padding: 32px 12px;
    }

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

    .product-image {
        height: 140px;
    }

    .product-info {
        padding: 14px;
    }

    .product-name {
        font-size: 0.88rem;
    }

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

    .deals-banner {
        padding: 32px 12px;
    }

    .deal-phone {
        width: 160px;
        height: 320px;
    }

    .newsletter-section {
        padding: 32px 12px;
    }

    .footer {
        padding: 24px 0 16px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 12px;
        text-align: center;
    }

    .footer-brand {
        padding: 0 12px;
    }

    .footer-brand p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .social-links {
        justify-content: center;
        gap: 8px;
    }

    .footer-column {
        padding: 0 12px;
    }

    .footer-column h4 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 0.8rem;
        padding: 4px 0;
        white-space: nowrap;
    }

    .footer-links a i {
        display: none;
    }

    .footer-contact {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 12px;
    }

    .footer-contact p {
        font-size: 0.8rem;
        margin-bottom: 0;
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.75rem;
        padding-top: 12px;
    }
}

@media (max-width: 379px) {
    .search-wrapper {
        display: none !important;
    }

    .search-toggle-btn {
        display: flex;
        align-items: center;
    }
}

@media (min-width: 380px) {
    .search-row-mobile {
        display: none !important;
    }

    .search-toggle-btn {
        display: none !important;
    }
}

@media (max-width: 768px) and (min-width: 380px) {
    .search-wrapper {
        max-width: 200px;
        margin: 0 8px;
    }

    .search-input {
        padding: 7px 32px 7px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) and (min-width: 380px) {
    .search-wrapper {
        max-width: 140px;
        margin: 0 6px;
    }

    .nav-links {
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.72rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .phone-slider {
        max-width: 200px;
        height: 300px;
    }

    .phone-slide {
        width: 130px;
        height: 260px;
    }

    .product-image {
        height: 120px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
