/* ==================================================
   Modern Facebook-Style Shop Page UI
   Built for Premium E-Commerce Experience
================================================== */
:root {
    --fb-bg: #f0f2f5;
    --fb-card-bg: #ffffff;
    --fb-text-main: #050505;
    --fb-text-secondary: #65676b;
    --fb-primary: #1877f2;
    --fb-primary-hover: #166fe5;
    --fb-border: #ced0d4;
    --fb-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    --fb-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--fb-bg) !important;
}

.shop-modern-header {
    background: var(--fb-card-bg);
    box-shadow: var(--fb-shadow);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--fb-border);
}

/* --- Cover Photo Area --- */
.shop-cover {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    background-size: 200% 200%;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    position: relative;
    overflow: hidden;
    animation: gradientShift 10s ease infinite;
}
/* Dynamic Premium Pattern using CSS */
.shop-cover::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.15;
    background-image: radial-gradient(circle at 10% 20%, rgba(24, 119, 242, 0.8) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(255, 107, 107, 0.8) 0%, transparent 40%);
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Profile Section --- */
.shop-profile-section {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding: 0 20px 20px 20px;
    position: relative;
    top: -40px;
    margin-bottom: -40px;
}

.shop-logo-container {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.shop-logo-container img.shop-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.shop-title-container {
    padding-left: 20px;
    padding-bottom: 10px;
    z-index: 1;
}

.shop-title-container h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--fb-text-main);
    margin: 0;
    display: flex;
    align-items: center;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.verified-badge {
    color: var(--fb-primary);
    font-size: 1.2rem;
    margin-left: 8px;
    margin-top: 4px;
}

.store-username {
    color: var(--fb-text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 5px;
}

/* --- Content Wrapper --- */
.shop-modern-content {
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.shop-card {
    background: var(--fb-card-bg);
    border-radius: 10px;
    box-shadow: var(--fb-shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-card:hover {
    box-shadow: var(--fb-shadow-hover);
}

.shop-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fb-text-main);
    border-bottom: 1px solid var(--fb-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.store-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.store-contacts li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--fb-text-main);
    margin-bottom: 12px;
}

.store-contacts li i {
    width: 20px;
    color: var(--fb-text-secondary);
    font-size: 1.1rem;
    margin-right: 12px;
    text-align: center;
}

/* Hide breadcrumbs globally for this specific page */
.hide-breadcrumbs .breadcrumb-area {
    display: none !important;
}

/* Tweaking default product cards for the shop grid */
#shop_products_grid .product-item {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.03);
}

#shop_products_grid .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

#shop_products_grid .product-caption {
    padding: 15px;
}

#shop_products_grid .product-name h4 a {
    font-weight: 600;
    color: var(--fb-text-main);
    transition: color 0.2s ease;
}

#shop_products_grid .product-name h4 a:hover {
    color: var(--fb-primary);
}

@media (max-width: 768px) {
    .shop-profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        top: -84px;
        margin-bottom: -64px;
    }
    
    .shop-title-container {
        padding-left: 0;
        margin-top: 15px;
    }
    
    .shop-title-container h1 {
        justify-content: center;
        font-size: 1.8rem;
    }
}
