/* store-profile-page.css */
:root {
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --secondary-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --card-gradient: linear-gradient(to bottom right, #ffffff, #f8f9fa);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base styles */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    padding-top: 0;
    overflow-x: hidden;
}

/* Header/Cover Section */
.store-header {
    position: relative;
    height: 400px;
    margin-bottom: 100px;
}

.cover-container {
    position: relative;
    height: 100%;
}

.cover-image {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.store-logo-container {
    position: relative;
    z-index: 10;
    transform: translate(-50%, -60%);
    box-shadow: var(--shadow);
    border-radius: 50%;
    background: #eee;
}

.store-logo {
    width: 180px;
    height: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Store Info Section */
.store-info {
    position: relative;
    margin-top: -40px;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(248,249,250,1));
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin: -120px 20px 0;
    padding-top: 100px !important;
    overflow: hidden;
}

.store-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--primary-gradient);
}

.stats-bar {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto 30px !important;
}

.stat-item {
    text-align: center;
    padding: 0 15px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2575fc;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#favoritesFloatBtn {
    z-index: 999 !important;
}

/* Custom styles for merchant cards */
.card.h-100 {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.card.h-100:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-container {
    width: 100%;
    /* Maintain aspect ratio */
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}

.logo-container .merchant-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.favorite-merchant-title {
    /* Limit title to one line and add ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.6);
}

.btn-outline-secondary {
    transition: var(--transition);
    border-width: 2px;
    font-weight: 500;
}

.btn-outline-secondary:hover {
    background: rgba(108, 117, 125, 0.1);
    transform: translateY(-2px);
}

/* Products Section */
.products-section {
    padding: 60px 0;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    background: var(--card-gradient);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 220px;
    object-fit: contain;
    padding: 20px;
    background: white;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-weight: 700;
    min-height: 50px;
    margin-bottom: 15px;
}

.price {
    font-size: 1.3rem;
}

.badge {
    font-size: 0.9rem;
    padding: 7px 12px;
    font-weight: 600;
}

.view-pruduct-btn {
    min-width: 120px;
    max-width: 320px;
}

.btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    margin-top: 60px;
}

footer::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top right, transparent 49.5%, #2c3e50 50%);
}

.social-container {
    max-width: 400px;
    margin: 0 auto;
}

.social-icons {
    width: 40px;
    height: 40px;
    transition: var(--transition);
    filter: brightness(0.8);
}

.social-icons:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}

.subscription-confirmation-message {
    min-height: 25px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .store-header {
        height: 350px;
    }
    
    .store-logo {
        width: 150px;
        height: 150px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .store-header {
        height: 300px;
        margin-bottom: 80px;
    }
    
    .store-logo {
        width: 120px;
        height: 120px;
    }
    
    .store-info {
        margin: -100px 15px 0;
        padding-top: 80px !important;
    }
    
    .stats-bar {
        flex-direction: column;
        padding: 20px 10px;
    }
    
    .stat-item {
        margin: 10px 0;
        padding: 0;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .store-header {
        height: 250px;
    }
    
    .store-logo {
        width: 100px;
        height: 100px;
    }
    
    .store-info {
        margin: -80px 10px 0;
        padding-top: 60px !important;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Animation enhancements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.store-info, .products-section {
    animation: fadeIn 0.8s ease-out;
}

.product-card {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: backwards;
}

/* Product card animation delay */
.row-cols-1 > .col:nth-child(1) .product-card { animation-delay: 0.1s; }
.row-cols-1 > .col:nth-child(2) .product-card { animation-delay: 0.2s; }
.row-cols-1 > .col:nth-child(3) .product-card { animation-delay: 0.3s; }
.row-cols-1 > .col:nth-child(4) .product-card { animation-delay: 0.4s; }