:root {
    --primary: #449836;
    --primary-dark: #367a2b;
    --accent: #e9c728;
    --accent-dark: #d4b320;
    --dark: #111;
    --secondary: #666;
    --text-light: #888;
    --border: #e5e7eb;
    --bg-body: #f8f9fa;
    --bg-card: #fff;
    --white: #fff;
    --shadow-sm: 0 2px 8px rgba(68, 152, 54, 0.08);
    --shadow-md: 0 8px 24px rgba(68, 152, 54, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Store Header */
.store-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.cover-banner {
    height: 220px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, rgba(0, 0, 0, 0.2) 100%);
    position: relative;
    overflow: hidden;
}

.cover-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cover-banner::after {
    content: '';
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 40px solid rgba(233, 199, 40, 0.2);
}

.store-info-bar {
    padding: 0 30px 30px;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 25px;
    flex-wrap: wrap;
}

.store-avatar {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: 5px solid var(--white);
    border-radius: var(--radius-lg);
    margin-top: -70px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.store-details {
    flex: 1;
    padding-top: 15px;
}

.store-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.store-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

@keyframes certPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, .5);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(245, 158, 11, 0);
    }
}

.badge-verified {
    background: var(--primary);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.store-meta {
    color: var(--secondary);
    font-size: 0.9rem;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.store-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-meta i {
    color: var(--primary);
}

.store-bio {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 600px;
    line-height: 1.6;
}

.store-stats {
    display: flex;
    gap: 25px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.store-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.store-search-form {
    margin-top: 20px;
    position: relative;
    max-width: 400px;
}

.store-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.store-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.search-icon-store {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* ── Certifications trust seals ──────────────────── */
.cert-section {
    margin-bottom: 48px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.cert-seal {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #fffbeb, #fef9ec);
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.cert-seal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, .07), transparent 60%);
    pointer-events: none;
}

.cert-seal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, .2);
}

.cert-seal-icon {
    font-size: 2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15));
}

.cert-seal-info {
    flex: 1;
    min-width: 0;
}

.cert-seal-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cert-seal-body {
    font-size: 0.78rem;
    color: #78716c;
    margin-top: 2px;
}

.cert-seal-date {
    font-size: 0.72rem;
    color: #a8a29e;
    margin-top: 2px;
}

.cert-seal-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: #059669;
    background: #d1fae5;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.cert-seal-badge i {
    margin-right: 3px;
}

/* Flagship */
.flagship-section {
    margin-bottom: 50px;
}

.section-header {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header i {
    color: var(--accent);
    font-size: 1.2rem;
}

.flagship-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(68, 152, 54, 0.1);
}

.flagship-img {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 350px;
    padding: 30px;
}

.flagship-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.5s;
}

.flagship-card:hover .flagship-img img {
    transform: scale(1.05);
}

.badge-bestseller {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(233, 199, 40, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.flagship-content {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flagship-cat {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.flagship-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 12px 0 18px;
    line-height: 1.2;
}

.flagship-desc {
    color: var(--secondary);
    margin-bottom: 25px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flagship-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 25px;
}

.flagship-price small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

.btn-flagship {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 16px 35px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: start;
    transition: var(--transition);
}

.btn-flagship:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(68, 152, 54, 0.1);
}

.p-img-box {
    height: 180px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.p-img-box img {
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s;
}

.product-card:hover .p-img-box img {
    transform: scale(1.08);
}

.p-like {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
}

.product-card:hover .p-like {
    opacity: 1;
}

.p-like:hover {
    color: #ef4444;
    background: #fee2e2;
}

.p-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.p-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-cat {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.p-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.p-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
}

.p-price small {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
}

.btn-add {
    width: 38px;
    height: 38px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: var(--transition);
}

.product-card:hover .btn-add {
    background: var(--primary);
    color: var(--white);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border);
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .flagship-card {
        grid-template-columns: 1fr;
    }

    .flagship-img {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .cover-banner {
        height: 140px;
    }

    .store-avatar {
        width: 100px;
        height: 100px;
        margin-top: -50px;
        font-size: 2.5rem;
    }

    .store-info-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 25px;
    }

    .store-details {
        padding-top: 10px;
        width: 100%;
    }

    .store-name-row {
        justify-content: center;
    }

    .store-name {
        font-size: 1.5rem;
    }

    .store-meta {
        justify-content: center;
        gap: 12px;
        font-size: 0.8rem;
    }

    .store-bio {
        max-width: 100%;
    }

    .store-stats {
        justify-content: center;
    }

    .store-actions {
        width: 100%;
        justify-content: center;
    }

    .store-search-form {
        margin: 15px auto;
        width: 100%;
    }

    .flagship-content {
        padding: 25px;
        text-align: center;
    }

    .flagship-title {
        font-size: 1.5rem;
    }

    .btn-flagship {
        width: 100%;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        padding: 12px;
    }

    .p-img-box {
        height: 140px;
    }

    .p-info h4 {
        font-size: 0.85rem;
    }

    .p-price {
        font-size: 1rem;
    }
}