/* Ecommerce Storefront Reset & Variables */
:root {
    --primary-color: #93c5fd;
    /* Soft Pastel Blue */
    --secondary-color: #bfdbfe;
    /* Lighter Pastel Blue */
    --accent-color: #3b82f6;
    /* Action Blue */
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    /* Off-white pastel bg */
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --danger-color: #fda4af;
    /* Pastel red/pink */
    --danger-text: #e11d48;

    /* Default light mode glass colors */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-nav: rgba(255, 255, 255, 0.6);
    --glass-card: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    background: linear-gradient(-45deg, var(--bg-main), var(--secondary-color), var(--primary-color), #e0f2fe);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Store Header */
.store-topbar {
    background: var(--primary-color);
    color: #fff;
    padding: 0.4rem 2rem;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
}

.store-header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.store-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.store-logo img {
    height: 45px;
    border-radius: 6px;
}

.store-search {
    flex: 0 1 500px;
    display: flex;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
}

.store-search input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.store-search button {
    background: var(--secondary-color);
    border: none;
    padding: 0 1.5rem;
    color: #1e3a8a;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.store-search button:hover {
    background: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color), #2563eb);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: #fff;
}

/* Category Nav */
.store-nav {
    background: var(--glass-nav);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
}

.store-nav ul {
    display: flex;
    gap: 2rem;
}

.store-nav a {
    display: block;
    padding: 1rem 0;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 3px solid transparent;
}

.store-nav a:hover,
.store-nav a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Main Layout */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Main Banner/Slider */
.hero-banner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.banner-main img,
.banner-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.banner-main {
    height: 380px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.banner-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.banner-side .side-item {
    height: 178px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.section-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.product-card {
    background: var(--glass-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: var(--accent-color);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger-color);
    color: var(--danger-text);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 2;
}

.product-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    height: 2.8em;
    /* 2 lines max */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-strike {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: line-through;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.btn-purchase {
    margin-top: auto;
    background: linear-gradient(135deg, var(--danger-color), var(--danger-text));
    color: #fff;
    text-align: center;
    padding: 0.7rem;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.2);
    border: none;
}

.btn-purchase:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4);
    color: #fff;
}

/* About / Footer Wrapper */
.store-footer {
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

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

.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-contact li i {
    color: var(--accent-color);
    margin-top: 0.2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: var(--secondary-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-banner {
        grid-template-columns: 1fr;
    }

    .banner-side {
        display: none;
    }

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

@media (max-width: 768px) {
    .store-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .store-search {
        flex: 1 1 100%;
        width: 100%;
    }

    .store-nav {
        overflow-x: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}