* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: transform 0.3s;
    flex-shrink: 0;
}

nav .logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    padding: 8px 15px;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    flex: 0 1 400px;
    max-width: 400px;
    transition: all 0.3s;
}

.search-container:focus-within {
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 1rem;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    color: white;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-shrink: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: white;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Offer Banner */
.offer-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 50px 30px;
    text-align: center;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.offer-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.offer-content {
    position: relative;
    z-index: 1;
}

.offer-tag {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.offer-banner h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    font-weight: 800;
}

.offer-banner p {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.offer-badge {
    display: inline-block;
    background: #ffd700;
    color: #333;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.offer-validity {
    margin-top: 1.5rem !important;
    font-size: 1.1rem !important;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: #667eea;
    color: white;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #667eea;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Filter Section */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.filter-item select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-item select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-filter-reset {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-end;
}

.btn-filter-reset:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: #333;
    font-weight: 600;
    min-height: 2.4rem;
    line-height: 1.2;
}

.product-info .price {
    font-size: 1.6rem;
    color: #667eea;
    font-weight: 800;
    margin: 0.8rem 0;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
}

.product-info .btn {
    margin-top: auto;
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
}

/* Features */
.features {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
    background: #f8f9fa;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.review-info h4 {
    color: #333;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.review-text {
    color: #666;
    line-height: 1.8;
    margin-top: 1.2rem;
}

.google-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
    color: #4285f4;
    font-weight: 600;
    font-size: 0.95rem;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 2;
    color: #666;
    margin-bottom: 1.5rem;
}

.contact-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 3rem;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.contact-info h3 {
    color: #667eea;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.6rem;
    width: 45px;
    text-align: center;
}

/* Product Details Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    max-width: 1000px;
    margin: 50px auto;
    border-radius: 20px;
    position: relative;
    animation: slideDown 0.4s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2.5rem;
    cursor: pointer;
    color: #666;
    z-index: 1;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.product-detail-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-detail-info h2 {
    color: #333;
    margin-bottom: 1.2rem;
    text-align: left;
    font-size: 2rem;
}

.specs {
    margin: 2.5rem 0;
}

.specs h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.specs ul {
    list-style: none;
}

.specs li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 1.05rem;
}

/* Checkout Form */
.checkout-form {
    max-width: 700px;
    margin: 2rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.05rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.order-summary {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2.5rem;
}

.order-summary h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.total {
    font-size: 1.8rem;
    font-weight: 800;
    color: #667eea;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}

/* Hidden Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 0.90rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 2;
    display: block;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: transparent;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container {
        gap: 1rem;
    }

    .search-container {
        flex: 0 1 250px;
        max-width: 250px;
    }

    nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: 3;
    }

    .nav-container {
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: nowrap;
    }

    nav .logo {
        gap: 12px;
        order: 1;
    }

    .logo-icon {
        width: 55px;
        height: 55px;
    }

    .logo-text {
        font-size: 1.6rem;
    }

    /* Mobile Search - Icon Only */
    .search-container {
        order: 2;
        flex: 0 0 auto;
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 50%;
        background: white;
        justify-content: center;
        margin-left: auto;
    }

    .search-input {
        display: none;
    }

    .search-btn {
        width: 48px;
        height: 48px;
    }

    /* Expanded search on focus/click */
    .search-container.expanded {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        height: auto;
        padding: 8px 15px;
        border-radius: 30px;
        z-index: 2000;
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    }

    .search-container.expanded .search-input {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    nav ul.active {
        max-height: 350px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul li a {
        display: block;
        padding: 1.2rem;
    }

    nav ul li a::after {
        display: none;
    }

    nav ul li:last-child {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cart-icon {
        padding: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filter-section {
        flex-direction: column;
        padding: 1.5rem;
    }

    .filter-item {
        width: 100%;
        min-width: 100%;
    }

    .btn-filter-reset {
        width: 100%;
        align-self: stretch;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .offer-banner h2 {
        font-size: 2rem;
    }

    .offer-banner p {
        font-size: 1.1rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    section h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 50px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        max-width: 100%;
    }

    .product-image {
        height: 240px;
    }

    .product-info {
        padding: 1.2rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
        min-height: auto;
    }

    .product-info .price {
        font-size: 1.4rem;
    }

    .product-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4rem;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .offer-banner h2 {
        font-size: 1.6rem;
    }

    .product-info .btn {
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .footer-logo-img {
        width: 50px;
        height: 50px;
    }

    .footer-logo h3 {
        font-size: 1.3rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1025px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}