/* MakhiMarket Store Page Styling */

/* Full width store layout */
.makhimarket-store-wrap.full-width {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.makhimarket-store-wrap .dokan-single-store.full-width {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Remove default dokan sidebar styles */
.makhimarket-store-wrap .dokan-store-sidebar {
    display: none;
}

/* Store products container */
.makhimarket-store-products {
    margin-top: 2rem;
}

.store-products-container {
    width: 100%;
}

/* Products grid - 4 cards in a row */
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, auto);
    gap: 0.5rem;
    padding: 1rem 0;
}

/* Override default WooCommerce products grid */
.makhimarket-store-wrap .woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 1rem 0;
    list-style: none;
}

.product-card-wrapper {
    width: 100%;
}

/* Override default WooCommerce product styling to match your cards */
.makhimarket-store-wrap .products .product,
.makhimarket-store-wrap .woocommerce ul.products li.product {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: none;
    margin: 0;
    width: 100%;
    float: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.makhimarket-store-wrap .products .product:hover,
.makhimarket-store-wrap .woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Product image styling */
.makhimarket-store-wrap .products .product img,
.makhimarket-store-wrap .woocommerce ul.products li.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.makhimarket-store-wrap .products .product img:hover,
.makhimarket-store-wrap .woocommerce ul.products li.product img:hover {
    transform: scale(1.05);
}

/* Product title */
.makhimarket-store-wrap .products .product h2,
.makhimarket-store-wrap .woocommerce ul.products li.product h2,
.makhimarket-store-wrap .products .product .woocommerce-loop-product__title,
.makhimarket-store-wrap .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-decoration: none;
}

/* Product price */
.makhimarket-store-wrap .products .product .price,
.makhimarket-store-wrap .woocommerce ul.products li.product .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary, #0066cc);
    margin-bottom: 1rem;
}

.makhimarket-store-wrap .products .product .price del,
.makhimarket-store-wrap .woocommerce ul.products li.product .price del {
    color: #999;
    font-weight: 400;
    margin-right: 0.5rem;
}

/* Sale badge */
.makhimarket-store-wrap .products .product .onsale,
.makhimarket-store-wrap .woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    border: none;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Product card hover animation */
.makhimarket-store-wrap .products .product,
.makhimarket-store-wrap .woocommerce ul.products li.product {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Enhanced product image container */
.makhimarket-store-wrap .products .product .attachment-woocommerce_thumbnail,
.makhimarket-store-wrap .woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.makhimarket-store-wrap .products .product .attachment-woocommerce_thumbnail::after,
.makhimarket-store-wrap .woocommerce ul.products li.product .attachment-woocommerce_thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 204, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.makhimarket-store-wrap .products .product:hover .attachment-woocommerce_thumbnail::after,
.makhimarket-store-wrap .woocommerce ul.products li.product:hover .attachment-woocommerce_thumbnail::after {
    opacity: 1;
}

/* Star rating */
.makhimarket-store-wrap .products .product .star-rating,
.makhimarket-store-wrap .woocommerce ul.products li.product .star-rating {
    margin-bottom: 0.5rem;
    color: #ffc107;
}

/* Add to cart button */
.makhimarket-store-wrap .products .product .button,
.makhimarket-store-wrap .woocommerce ul.products li.product .button,
.makhimarket-store-wrap .products .product .add_to_cart_button,
.makhimarket-store-wrap .woocommerce ul.products li.product .add_to_cart_button {
    background: linear-gradient(135deg, var(--brand-primary, #0066cc), var(--brand-secondary, #0052a3));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.makhimarket-store-wrap .products .product .button:hover,
.makhimarket-store-wrap .woocommerce ul.products li.product .button:hover,
.makhimarket-store-wrap .products .product .add_to_cart_button:hover,
.makhimarket-store-wrap .woocommerce ul.products li.product .add_to_cart_button:hover {
    background: linear-gradient(135deg, var(--brand-secondary, #0052a3), var(--brand-primary, #0066cc));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* Store header styling */
.makhimarket-store-wrap .dokan-store-header {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
}

/* Search and filter area */
.makhimarket-store-wrap .dokan-store-products-search-area {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.makhimarket-store-wrap .dokan-store-products-search-area input {
    flex: 1;
    min-width: 250px;
    padding: 0.7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.makhimarket-store-wrap .dokan-store-products-search-area select {
    padding: 0.7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 150px;
}

/* Pagination */
.makhimarket-store-wrap .dokan-pagination {
    margin-top: 3rem;
    text-align: center;
}

.makhimarket-store-wrap .dokan-pagination a,
.makhimarket-store-wrap .dokan-pagination span {
    display: inline-block;
    padding: 0.7rem 1rem;
    margin: 0 0.2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: var(--text-primary, #333);
    transition: all 0.3s ease;
}

.makhimarket-store-wrap .dokan-pagination a:hover,
.makhimarket-store-wrap .dokan-pagination .current {
    background: var(--brand-primary, #0066cc);
    color: white;
    border-color: var(--brand-primary, #0066cc);
}

/* Mobile responsiveness */
@media (max-width: 768px) {

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.1rem;
    }

    .makhimarket-store-wrap .dokan-store-products-search-area {
        flex-direction: column;
        align-items: stretch;
    }

    .makhimarket-store-wrap .dokan-store-products-search-area input,
    .makhimarket-store-wrap .dokan-store-products-search-area select {
        min-width: auto;
        width: 100%;
    }
}

/* Creative Store Header Styles */
.makhimarket-store-header {
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.store-header-container {
    position: relative;
    background: white;
}

.store-banner-bg {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.store-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-banner-default {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.store-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.store-main-info {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    margin-top: -75px;
    z-index: 2;
}

.store-avatar {
    flex-shrink: 0;
    position: relative;
}

.store-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.store-details {
    flex: 1;
    color: #333;
}

.store-name-section {
    margin-bottom: 1rem;
}

.store-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #ffffff;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.store-rating i {
    color: #ffc107;
}

.rating-text {
    color: #666;
    font-weight: 500;
}

.no-rating {
    color: #999;
    font-style: italic;
}

.store-description {
    margin-bottom: 1.5rem;
}

.store-description p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.store-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    /* margin-bottom: 1.5rem; */
}

.store-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.store-meta-item i {
    color: #0066cc;
    width: 16px;
}

.store-meta-item a {
    color: #0066cc;
    text-decoration: none;
}

.store-meta-item a:hover {
    text-decoration: underline;
}

.store-open {
    color: #10b981;
    font-weight: 600;
}

.store-closed {
    color: #ef4444;
    font-weight: 600;
}

.store-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 20px;
}

.store-follow-btn,
.store-contact-btn,
.store-share-btn {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.store-follow-btn:hover,
.store-contact-btn:hover,
.store-share-btn:hover {
    background: linear-gradient(135deg, #0052a3, #003d7a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    color: white;
}

.store-contact-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}

.store-contact-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.store-share-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.store-share-btn:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.store-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.stat-card {
    text-align: center;
    padding: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .store-main-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        margin-top: -40px;
    }

    .store-avatar img {
        width: 80px;
        height: 80px;
    }

    .store-name {
        font-size: 1.5rem;
    }

    .store-meta-info {
        justify-content: center;
    }

    .store-actions {
        justify-content: center;
    }

    .store-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }

    .store-banner-bg {
        height: 150px;
    }
}

@media (max-width: 480px) {

    /* Minimize Store Header Section */
    .makhimarket-store-header,
    .dokan-store-header {
        margin-bottom: 1rem !important;
    }

    .store-header-container {
        padding: 0 !important;
    }

    /* Compact Banner */
    .store-banner-bg {
        height: 80px !important;
    }

    /* Compact Profile Image */
    .store-profile-container {
        width: 60px !important;
        height: 60px !important;
        margin-top: -30px !important;
    }

    .store-profile-image,
    .store-profile-default {
        width: 60px !important;
        height: 60px !important;
    }

    /* Compact Store Info */
    .store-info-wrapper {
        padding: 8px 12px !important;
        gap: 8px !important;
    }

    .store-name-rating-container {
        padding: 8px 0 !important;
        gap: 4px !important;
    }

    .store-name {
        font-size: 1.1rem !important;
        margin: 0 !important;
        color: #000000 !important;
    }

    .store-rating {
        font-size: 0.75rem !important;
        gap: 3px !important;
    }

    .store-rating i {
        font-size: 0.7rem !important;
    }

    /* Compact Meta Info */
    .store-meta-info {
        gap: 8px !important;
        padding: 8px 0 !important;
        flex-wrap: wrap !important;
        justify-content: center;
    }

    .store-meta-item {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
        gap: 4px !important;
    }

    .store-meta-item i {
        font-size: 0.65rem !important;
    }

    /* Compact Action Buttons */
    .store-actions {
        flex-direction: row !important;
        width: 100% !important;
        gap: 6px !important;
        padding: 8px 12px !important;
    }

    .store-follow-btn,
    .store-contact-btn,
    .store-share-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        flex: 1 !important;
        justify-content: center;
    }

    .store-follow-btn i,
    .store-contact-btn i,
    .store-share-btn i {
        font-size: 0.7rem !important;
    }

    /* Compact Stats Cards */
    .store-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 8px 12px !important;
    }

    .store-stat-card {
        padding: 8px 6px !important;
    }

    .store-stat-value {
        font-size: 1rem !important;
        margin-bottom: 2px !important;
    }

    .store-stat-label {
        font-size: 0.65rem !important;
    }
}