﻿.shop-details-page {
    --primary-color: #28a745;
    --primary-dark: #1e7e34;
    --primary-light: #34ce57;
    --secondary-color: #20c997;
    --accent-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 25px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.16);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== HERO SECTION ===== */
.shop-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23hero-pattern)"/></svg>');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.breadcrumb-hero {
    position: relative;
    z-index: 2;
}

    .breadcrumb-hero .breadcrumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 25px;
        padding: 0.75rem 1.5rem;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .breadcrumb-hero .breadcrumb-item + .breadcrumb-item::before {
        content: "›";
        color: rgba(255, 255, 255, 0.8);
        font-weight: bold;
        font-size: 1.2em;
    }

/* ===== SHOP PROFILE CARD ===== */
.shop-profile-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.shop-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.shop-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.avatar-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    animation: pulse-ring 2s infinite;
}

.shop-avatar-wrapper:hover .avatar-ring {
    opacity: 1;
}

.premium-crown {
    position: absolute;
    top: -10px;
    right: -5px;
    background: linear-gradient(45deg, var(--warning-color), #ffeb3b);
    color: var(--text-dark);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-light);
    animation: crown-glow 2s ease-in-out infinite alternate;
}

.premium-badge {
    background: linear-gradient(45deg, var(--warning-color), #ffeb3b);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    box-shadow: var(--shadow-light);
}

.shop-header {
    margin-bottom: 2rem;
}

.shop-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.shop-seller {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
}

.shop-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(45deg, var(--light-bg), #ffffff);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

    .stat-item:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-light);
    }

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== DESCRIPTION CARD ===== */
.shop-description-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

    .section-header::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 80px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    }

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
}

.product-count {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.description-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.section-actions {
    display: flex;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 4px;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}

    .toggle-btn.active,
    .toggle-btn:hover {
        background: var(--primary-color);
        color: var(--white);
    }

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card-wrapper {
    position: relative;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-heavy);
    }

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-light);
}

    .action-btn:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: scale(1.1);
    }

    .action-btn .tooltip {
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: var(--white);
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        white-space: nowrap;
        opacity: 0;
        transition: var(--transition);
    }

    .action-btn:hover .tooltip {
        opacity: 1;
    }

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-badge {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-light);
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-condition,
.product-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-condition {
    background: linear-gradient(45deg, var(--accent-color), #17a2b8);
    color: var(--white);
}

.product-category {
    background: var(--light-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--danger-color);
    margin-bottom: 1.5rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .btn:hover::before {
        left: 100%;
    }

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    flex: 1;
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-light);
    }

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border: 2px solid var(--primary-color);
    flex: 1;
}

    .btn-primary:hover {
        background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
        transform: translateY(-2px);
        box-shadow: var(--shadow-light);
    }

/* ===== PAGINATION ===== */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.custom-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.page-item {
    display: flex;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

    .page-link:hover,
    .page-item.active .page-link {
        background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
        border-color: var(--primary-color);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-light);
    }

/* ===== EMPTY STATE ===== */
.empty-products {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-products h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.empty-products p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .shop-hero-section {
        padding: 2rem 0 3rem;
    }

    .shop-profile-card {
        padding: 2rem;
    }

    .shop-name {
        font-size: 2rem;
    }

    .shop-stats {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .shop-hero-section {
        padding: 1.5rem 0 2rem;
    }

    .shop-profile-card {
        padding: 1.5rem;
        text-align: center;
    }

    .shop-name {
        font-size: 1.75rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .shop-profile-card,
    .shop-description-card,
    .products-section {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    .shop-avatar {
        width: 100px;
        height: 100px;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

@keyframes crown-glow {
    from {
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    }

    to {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
    }
}

.animate__animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ===== LIST VIEW STYLES ===== */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .products-grid.list-view .product-card {
        flex-direction: row;
        height: auto;
    }

    .products-grid.list-view .product-image-container {
        width: 200px;
        height: 150px;
        flex-shrink: 0;
    }

    .products-grid.list-view .product-content {
        flex: 1;
        padding: 1rem;
    }

    .products-grid.list-view .product-actions {
        flex-direction: row;
        margin-top: 1rem;
    }

@media (max-width: 768px) {
    .products-grid.list-view .product-card {
        flex-direction: column;
    }

    .products-grid.list-view .product-image-container {
        width: 100%;
        height: 200px;
    }
}
