/* All Tech Devices - Modern E-commerce Styling */
/* Color Scheme: Turquoise/Light Blue Theme */

:root {
    --primary-purple: #06B6D4;
    --dark-purple: #0891B2;
    --light-purple: #22D3EE;
    --accent-orange: #14B8A6;
    --dark-bg: #1F2937;
    --darker-bg: #111827;
    --light-bg: #F9FAFB;
    --text-dark: #111827;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --success-green: #10B981;
    --warning-red: #EF4444;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
}

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

/* Top Banner */
.top-banner {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.banner-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.banner-items span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-items i {
    color: var(--accent-orange);
}

/* Header */
.main-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-purple);
}

.logo h1 span {
    color: var(--accent-orange);
}

.logo-image {
    height: 90px;
    width: auto;
    max-width: 450px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--primary-purple);
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    outline: none;
}

.search-bar input:focus {
    border-color: var(--dark-purple);
}

.search-btn {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--dark-purple);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.header-link:hover {
    color: var(--primary-purple);
}

.basket-btn {
    background: var(--accent-orange);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    position: relative;
}

.basket-btn:hover {
    background: #D97706;
}

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

/* Navigation */
.main-nav {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    padding: 0;
}

.nav-categories {
    display: flex;
    list-style: none;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    flex: 1;
}

.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    gap: 8px;
    transition: background 0.3s;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.nav-item:last-child a {
    border-right: none;
}

.nav-item a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-item i {
    font-size: 24px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(8, 145, 178, 0.15) 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(6,182,212,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/><circle cx="10" cy="10" r="1" fill="rgba(6,182,212,0.3)"/><circle cx="50" cy="30" r="1" fill="rgba(6,182,212,0.3)"/><circle cx="80" cy="70" r="1" fill="rgba(6,182,212,0.3)"/><circle cx="30" cy="90" r="1" fill="rgba(6,182,212,0.3)"/></svg>');
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6,182,212,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: techGrid 20s linear infinite;
    pointer-events: none;
}

@keyframes techGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-slide.active {
    display: flex;
}

.hero-content h2 {
    font-size: 48px;
    color: var(--dark-purple);
    margin-bottom: 15px;
    animation: slideInLeft 1s ease-out;
    text-shadow: 0 0 20px rgba(6,182,212,0.3);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content p {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 30px;
}

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

.hero-placeholder {
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 40px rgba(6,182,212,0.2);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.hero-placeholder::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary-purple), var(--accent-orange), var(--primary-purple));
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    z-index: -1;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary-purple);
}

/* Brand Showcase */
.brand-showcase {
    padding: 40px 0;
    margin-bottom: 40px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.brand-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-dark);
    transition: all 0.3s;
    cursor: pointer;
}

.brand-item:hover {
    border-color: var(--primary-purple);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

/* Product Sections */
.product-section {
    padding: 60px 0;
    background: white;
}

.product-section:nth-child(even) {
    background: var(--light-bg);
}

.section-title {
    font-size: 32px;
    color: var(--dark-purple);
    margin-bottom: 30px;
    font-weight: 700;
}

.product-carousel {
    position: relative;
    padding: 0 50px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-purple);
    color: white;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 12px 30px rgba(6,182,212,0.2), 0 0 20px rgba(6,182,212,0.1);
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-purple);
}

.product-card:hover .product-image i {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning-red);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

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

.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    margin-bottom: 15px;
}

.product-title {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    min-height: 40px;
    font-weight: 600;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 14px;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-purple);
}

.savings {
    color: var(--success-green);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.stock {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock.in-stock {
    color: var(--success-green);
}

.stock.limited {
    color: var(--accent-orange);
}

.stock.in-stock::before {
    content: '\2713';
    font-weight: 700;
}

/* Category Tiles */
.category-tiles-section {
    padding: 60px 0;
    background: white;
}

.category-tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-tile {
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
    min-height: 240px;
    overflow: hidden;
    position: relative;
}

.category-tile:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.category-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-tile:hover .category-image img {
    transform: scale(1.1);
}

.category-tile i {
    font-size: 40px;
}

.category-tile h3 {
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-purple);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(6,182,212,0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: var(--dark-purple);
    box-shadow: 0 6px 25px rgba(6,182,212,0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary-purple);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: white;
}

/* Brand Showcase Bottom */
.brand-showcase-bottom {
    padding: 60px 0;
    background: var(--light-bg);
}

.brand-grid-large {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.brand-logo {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    transition: all 0.3s;
    cursor: pointer;
}

.brand-logo:hover {
    border-color: var(--primary-purple);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

/* Info Section */
.info-section {
    padding: 60px 0;
    background: white;
}

.info-content h2 {
    font-size: 28px;
    color: var(--dark-purple);
    margin-bottom: 20px;
}

.info-content h3 {
    font-size: 22px;
    color: var(--dark-purple);
    margin-top: 30px;
    margin-bottom: 15px;
}

.info-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Footer */
.main-footer {
    background: var(--darker-bg);
    color: white;
    padding-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-column h3 {
    color: var(--accent-orange);
    margin-bottom: 20px;
    font-size: 18px;
}

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

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

.footer-column ul li a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-middle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-middle h3 {
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.payment-icons,
.shipping-icons {
    display: flex;
    gap: 15px;
    font-size: 32px;
}

.shipping-icons span {
    background: white;
    color: var(--dark-bg);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.trust-badge {
    background: rgba(245, 158, 11, 0.1);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-badge i {
    font-size: 48px;
    color: var(--accent-orange);
}

.footer-contact {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-box h3,
.newsletter-box h3 {
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.contact-box p {
    color: #9CA3AF;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--primary-purple);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.footer-service {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-icons a {
    color: white;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-purple);
}

.footer-desc {
    color: var(--accent-orange);
    font-weight: 600;
    margin: 15px 0;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    color: #9CA3AF;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scroll-top {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.scroll-top:hover {
    background: var(--dark-purple);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .brand-grid,
    .brand-grid-large {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-tiles {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .nav-categories {
        flex-wrap: wrap;
    }

    .footer-top,
    .footer-middle,
    .footer-service {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
    }

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

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

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

    .hero-slide {
        flex-direction: column;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .footer-top,
    .footer-middle,
    .footer-service,
    .footer-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .product-grid,
    .brand-grid,
    .brand-grid-large,
    .category-tiles {
        grid-template-columns: 1fr;
    }

    .banner-items {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-categories {
        flex-direction: column;
    }

    .nav-item {
        width: 100%;
    }
}
