/* Store Page Custom Styles */

/* Global Styles */
.store-page-container {
    min-height: 100vh;
    background: #f8fafc;
}

/* Store Header Section */
.store-header-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    padding: 40px 0;
}

.store-banner-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.store-banner-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.store-banner-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.store-banner-wrapper:hover img {
    transform: scale(1.05);
}

.store-info-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}

.store-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.store-info-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
}

.store-info-card:hover::before {
    transform: scaleX(1);
}

.store-logo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.store-logo-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.store-logo-wrapper:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.store-logo-wrapper:hover::after {
    opacity: 1;
}

.store-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-name {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.store-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 15px;
}

.store-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.store-meta span:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.store-meta span i {
    font-size: 18px;
    color: #3b82f6;
}

.store-description {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    color: #475569;
    line-height: 1.8;
    border-right: 4px solid #3b82f6;
    position: relative;
    font-size: 15px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
}

.store-description::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 48px;
    color: #3b82f6;
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

/* Categories Section */
.store-categories-section {
    background: white;
    padding: 32px 0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.category-badge {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #bfdbfe;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.category-badge:hover::before {
    width: 300px;
    height: 300px;
}

.category-badge:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    color: #1e3a8a;
}

.category-badge.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.category-badge.active:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-3px) scale(1.05);
}

.sort-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 20px;
    background: #f8fafc;
    padding: 20px 24px;
    border-radius: 16px;
    margin-top: 20px;
}

.sort-section .text-secondary {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
}

.sort-section .text-main-600 {
    color: #3b82f6;
    font-weight: 700;
    font-size: 18px;
}

.sort-section .form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
    min-width: 180px;
}

.sort-section .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
    background: white;
}

.sort-section .form-select:hover {
    border-color: #cbd5e1;
}

/* Products Grid */
.store-products-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.store-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* Product Card - Enhanced Design */
.store-products-section .product-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    border: 2px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.store-products-section .product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.store-products-section .product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.store-products-section .product-card:hover::after {
    opacity: 1;
}

/* Product Image Container */
.store-products-section .product-card__thumb {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-products-section .product-card__thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 100%);
    z-index: 1;
}

.store-products-section .product-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

.store-products-section .product-card:hover .product-card__thumb img {
    transform: scale(1.15);
}

/* Wishlist Button */
.store-products-section .wishlist-btn-two {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    font-size: 20px;
    border: none;
}

.store-products-section .wishlist-btn-two:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Product Content */
.store-products-section .product-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: white;
}

.store-products-section .product-card__content .title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.5;
    min-height: 51px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-products-section .product-card__content .title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.store-products-section .product-card__content .title a:hover {
    color: #3b82f6;
}

/* Price Section */
.store-products-section .product-card__price {
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.store-products-section .product-card__price .fw-bold {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.store-products-section .product-card__price .text-danger {
    color: #dc2626 !important;
}

.store-products-section .product-card__price .text-main-600 {
    color: #2563eb !important;
}

.store-products-section .product-card__price .text-decoration-line-through {
    font-size: 15px;
    color: #94a3b8;
    font-weight: 500;
}

/* Action Button */
.store-products-section .product-card .btn {
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.store-products-section .product-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.store-products-section .product-card .btn:active {
    transform: translateY(0);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: #64748b;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin: 40px 0;
}

.empty-state-icon {
    font-size: 80px;
    color: #cbd5e1;
    margin-bottom: 24px;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-state h5 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: #64748b;
    max-width: 400px;
    margin: 0 auto;
}

/* Pagination - Enhanced Design */
.pagination-wrapper {
    margin-top: 60px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Override Bootstrap pagination styles */
.pagination-wrapper .pagination {
    display: flex !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    margin-block-start: 0 !important;
}

.pagination-wrapper .pagination .page-item {
    list-style: none !important;
    margin: 0 !important;
}

.pagination-wrapper .pagination .page-item .page-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 48px !important;
    height: 48px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

.pagination-wrapper .pagination .page-item .page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.pagination-wrapper .pagination .page-item .page-link:hover::before {
    left: 100%;
}

/* Active Page */
.pagination-wrapper .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35) !important;
    transform: scale(1.05);
    z-index: 2;
}

.pagination-wrapper .pagination .page-item.active .page-link::before {
    display: none;
}

/* Hover State */
.pagination-wrapper .pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #f1f5f9 !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

.pagination-wrapper .pagination .page-item:not(.active):not(.disabled) .page-link:focus {
    background: #f1f5f9 !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

/* Disabled State */
.pagination-wrapper .pagination .page-item.disabled .page-link {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
}

.pagination-wrapper .pagination .page-item.disabled .page-link::before {
    display: none;
}

/* Pagination Info Text */
.pagination-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin: 0 20px;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination-wrapper .pagination {
        gap: 4px !important;
    }
    
    .pagination-wrapper .pagination .page-item .page-link {
        min-width: 40px !important;
        height: 40px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
    }
    
    .pagination-info {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .store-info-card {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .store-actions {
        width: 100%;
        margin-top: 16px;
    }
    
    .store-actions .btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .store-header-section {
        padding: 24px 0 !important;
    }
    
    .store-banner-wrapper {
        margin-bottom: 16px;
    }
    
    .store-banner-wrapper img {
        height: 250px;
    }
    
    .store-info-card {
        padding: 20px;
        margin-top: 16px;
    }
    
    .store-logo-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .store-name {
        font-size: 22px;
    }
    
    .store-meta {
        font-size: 12px;
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .store-products-section .product-card__thumb {
        height: 220px;
    }
    
    .sort-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .store-products-section {
        padding: 24px 0;
    }
    
    .category-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .store-banner-wrapper img {
        height: 200px;
    }
    
    .store-logo-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .store-name {
        font-size: 18px;
    }
    
    .store-products-section .product-card {
        border-radius: 16px;
    }
    
    .store-products-section .product-card__content {
        padding: 16px;
    }
    
    .store-products-section .product-card__thumb {
        height: 200px;
    }
    
    .store-products-section .product-card__content .title {
        font-size: 15px;
        min-height: 45px;
    }
    
    .store-products-section .product-card__price .fw-bold {
        font-size: 20px;
    }
}

/* Action Buttons */
.store-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-actions .btn {
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.store-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.store-actions .btn:hover::before {
    width: 300px;
    height: 300px;
}

.store-actions .btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
    position: relative;
    z-index: 1;
}

.store-actions .btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
    border-color: #2563eb;
}

.store-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1;
}

.store-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.45);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-products-section .product-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.store-products-section .row > div:nth-child(1) .product-card { animation-delay: 0.1s; }
.store-products-section .row > div:nth-child(2) .product-card { animation-delay: 0.2s; }
.store-products-section .row > div:nth-child(3) .product-card { animation-delay: 0.3s; }
.store-products-section .row > div:nth-child(4) .product-card { animation-delay: 0.4s; }

/* Featured Products Section (if exists) */
.featured-products-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 40px 0;
    margin-top: 40px;
    border-radius: 16px;
}

.featured-products-section h5 {
    color: #1e40af;
    font-weight: 700;
}

