/* QuickMart E-Commerce Theme Styles */

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #f59e0b;
    --light-gray: #f3f4f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --white: #ffffff;
}

/* QuickMart Header */
.quickmart-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 30px;
    padding: 16px 0;
}

.header-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-search {
    flex: 1;
}

.header-search form {
    display: flex;
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 0.95rem;
    outline: none;
}

.header-search button {
    background: transparent;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 1.2rem;
}

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

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.action-item:hover {
    color: var(--primary);
}

.action-item .icon {
    font-size: 1.4rem;
}

.action-item span:not(.icon) {
    font-size: 0.85rem;
    font-weight: 500;
}

.badge {
    background: var(--primary);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-login {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-dark);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.quickmart-nav {
    display: flex;
    gap: 40px;
}

.quickmart-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.quickmart-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.quickmart-nav a:hover {
    color: var(--primary);
}

.quickmart-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.quickmart-nav a:hover::after {
    width: 100%;
}

* {
    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;
}

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

/* Hero Section */
.quickmart-hero {
    background: var(--light-gray);
    padding: 60px 0;
    margin-bottom: 60px;
}

.hero-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.hero-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 60px;
    border-radius: 12px;
    color: var(--white);
    min-width: 100%;
    flex-shrink: 0;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

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

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

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

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Products Grid */
.quickmart-products {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--light-gray);
}

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

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quick-view,
.btn-add-cart {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-quick-view {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-quick-view:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-add-cart {
    background: var(--primary);
    color: var(--white);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.stars {
    color: #fbbf24;
    letter-spacing: -2px;
}

.rating-value {
    color: var(--text-light);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price,
.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.sale-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Deals Section */
.quickmart-deals {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    padding: 60px 0;
    margin: 60px 0;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.deal-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 140px 1fr;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.deal-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.deal-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

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

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

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.deal-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.deal-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.deal-info h4 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.deal-info h4 a:hover {
    color: var(--primary);
}

.deal-prices {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.deal-prices .original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.deal-prices .sale {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-deal {
    display: block;
    background: var(--primary);
    color: var(--white);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-deal:hover {
    background: var(--primary-dark);
}

/* Features Section */
.quickmart-features {
    padding: 80px 0;
    background: var(--white);
}

.quickmart-features > .container > h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.quickmart-features > .container > p {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slide {
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }

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

    .deal-card {
        grid-template-columns: 120px 1fr;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .quickmart-features {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .header-top {
        grid-template-columns: auto 1fr auto;
        gap: 15px;
    }

    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-search form {
        gap: 0;
    }

    .quickmart-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--border);
    }

    .quickmart-nav.active {
        display: flex;
    }

    .quickmart-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-info {
        padding: 15px;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .btn-quick-view,
    .btn-add-cart {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .header-top {
        grid-template-columns: auto 1fr;
    }

    .header-search {
        grid-column: 1 / -1;
    }

    .header-search form {
        border-radius: 6px;
    }

    .header-search input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

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

    .hero-slide {
        padding: 30px 20px;
    }
}
