/* AEM Labs Limited - Storefront Base CSS */
/* ====================================== */

.storefront-hero {
    width: 100%;
    height: 100%;
    color: #222;
    position: relative;
    margin-bottom: 100px;
}

.hero-container {
    width: 100%;
    height: 40vh;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide image when gradient class is applied */
.hero-image[class*="gradient-"] img {
    display: none;
}

.hero-image[class*="gradient-"] {
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 1) 100%);
    pointer-events: none;
}

/* Gradient Banner Classes */
.hero-image.gradient-aem-red-purple {
    background: linear-gradient(135deg, #a71c1c 0%, #a71c1c 20%, #6907c5 100%);
}

.hero-image.gradient-aem-purple-red {
    background: linear-gradient(135deg, #6907c5 0%, #a71c1c 80%, #a71c1c 100%);
}

.hero-image.gradient-aem-red {
    background: linear-gradient(135deg, #7f1d1d 0%, #a71c1c 50%, #d64545 100%);
}

.hero-image.gradient-purple-blue {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #3b82f6 100%);
}

.hero-image.gradient-blue-cyan {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #06b6d4 100%);
}

.hero-image.gradient-pink-orange {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #fb923c 100%);
}

.hero-image.gradient-green-teal {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #14b8a6 100%);
}

.hero-image.gradient-orange-red {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 50%, #fbbf24 100%);
}

.hero-image.gradient-dark-blue {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
}

.hero-image.gradient-purple-pink {
    background: linear-gradient(135deg, #7e22ce 0%, #a855f7 50%, #ec4899 100%);
}

.hero-image.gradient-sunset {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 50%, #fbbf24 100%);
}

.hero-image.gradient-ocean {
    background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 50%, #22d3ee 100%);
}

.hero-image.gradient-fire {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #f97316 100%);
}

.hero-image.gradient-forest {
    background: linear-gradient(135deg, #064e3b 0%, #059669 50%, #34d399 100%);
}

.hero-image.gradient-lavender {
    background: linear-gradient(135deg, #6b21a8 0%, #a855f7 50%, #3b82f6 100%);
}

.store-details {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.3);
    padding: 24px 32px;
    max-width: min(90%, 1200px);
    margin: 0 auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
}

.details-one {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    border-bottom: 1px solid #ccc;
    padding-bottom: 18px;
}

.details-one .store-actions {
    margin-left: auto;
}

.details-one .logo {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: white;
}

.details-one .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
}

.verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.verified-badge i {
    color: rgb(39, 174, 96);
    box-shadow: 0 0 12px rgba(0, 184, 148, 0.5);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
}

.store-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.store-info h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-info h1 span {
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: linear-gradient(270deg, #a71c1c, #6907c5);
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-rating .stars {
    color: #ffa500;
    font-size: 13px;
}

.store-rating .rating-text {
    color: #666;
    font-size: 11px;
    font-weight: 600;
}

.store-metadata {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #666;
    font-size: 11px;
    font-weight: 600;
}

.store-metadata span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(270deg, #d64545, #a71c1c, #d64545, #a71c1c);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(167, 28, 28, 0.3);
}

.store-actions button:hover {
    background-position: 100% 0%;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(167, 28, 28, 0.4);
}

.store-actions button i {
    font-size: 11px;
}

.details-two {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.details-two .navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.navigation a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navigation a i {
    font-size: 13px;
}

.navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 28, 28, 0.1), transparent);
    transition: left 0.5s ease;
}

.navigation a:hover::before {
    left: 100%;
}

.navigation a.active {
    background: linear-gradient(135deg, var(--accent-color), #d64545);
    color: white;
    box-shadow: 0 4px 15px rgba(167, 28, 28, 0.3);
}

.navigation a.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 28, 28, 0.4);
}

.store-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.stat-item span {
    font-size: 11px;
    font-weight: 600;
    color: #666;
}

@media (max-width: 992px) {
    .hero-container {
        height: 30vh;
    }

    .store-details {
        padding: 20px;
    }

    .details-one {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0;
    }

    .details-one .logo {
        grid-column: 1;
        grid-row: 1;
        width: 68px;
        height: 68px;
    }

    .details-one .store-info {
        grid-column: 2;
        grid-row: 1;
    }

    .details-one .store-actions {
        grid-column: 2;
        grid-row: 2;
        justify-self: flex-end;
        align-items: flex-start;
    }

    .verified-badge {
        bottom: 0;
        right: 0;
        width: 16px;
        height: 16px;
    }

    .verified-badge i {
        font-size: 16px;
    }

    .store-info h1 {
        font-size: 20px;
    }

    .stat-item h2 {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .details-one {
        gap: 0 20px;
    }
}

@media (max-width: 480px) {
    .header-spacer {
        height: 110px;
    }

    .storefront-hero {
        margin-bottom: 120px;
    }

    .store-details {
        bottom: -100px;
        padding: 16px 12px;
    }

    .details-one {
        gap: 20px 12px;
    }

    .details-one .logo {
        width: 52px;
        height: 52px;
    }

    .verified-badge {
        width: 14px;
        height: 14px;
        right: -4px;
    }

    .store-info h1 {
        font-size: 16px;
    }

    .store-info h1 span {
        font-size: 8px;
    }

    .store-rating .stars {
        font-size: 11px;
    }

    .store-rating .rating-text,
    .store-metadata span,
    .store-actions button i,
    .details-two .navigation a i {
        font-size: 9px;
    }

    .store-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    .store-actions button,
    .details-two .navigation a {
        padding: 6px 12px;
        font-size: 10px;
        white-space: nowrap;
    }

    .details-two .navigation {
        gap: 8px;
    }

    .details-two {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .stat-item h2 {
        font-size: 12px;
    }

    .stat-item span {
        font-size: 9px;
    }
}