/**
 * Standard Shop Product Grid Styles
 * Custom product grid layout for standard shop page
 */

/* ========================================
   Product Grid Container
   ======================================== */

.standard-shop-page .custom-products-grid {
    /* Grid columns handled by main CSS */
    margin-top: 32px;
}

/* Note: Grid breakpoints handled by main CSS */

/* ========================================
   Product Card
   ======================================== */

.standard-shop-page .custom-product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e5e7eb;
    position: relative;
}

.standard-shop-page .custom-product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

/* ========================================
   Product Link
   ======================================== */

.standard-shop-page .product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
    cursor: pointer;
}

/* ========================================
   Product Image
   ======================================== */

.standard-shop-page .product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.standard-shop-page .product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.standard-shop-page .custom-product-item:hover .product-image-wrapper img {
    transform: scale(1.1);
}

/* ========================================
   Product Badges
   ======================================== */

/* Sale Badge */
.standard-shop-page .onsale {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: var(--z-base);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* New Badge */
.standard-shop-page .product-badge-new {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: var(--z-base);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ========================================
   Product Information
   ======================================== */

.standard-shop-page .product-info-wrapper {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Title */
.standard-shop-page .product-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.standard-shop-page .custom-product-item:hover .product-title {
    color: #3b82f6;
}

/* Product Category */
.standard-shop-page .product-category {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ========================================
   Pricing
   ======================================== */

/* Regular Price */
.standard-shop-page .product-price {
    font-size: 24px;
    font-weight: 700;
    color: #1e40af;
    margin: 12px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.standard-shop-page .product-price del {
    font-size: 18px;
    color: #9ca3af;
    font-weight: 400;
}

.standard-shop-page .product-price ins {
    text-decoration: none;
    color: #dc2626;
}

/* BuddyBoss Asking Price */
.standard-shop-page .archive-asking-price {
    font-size: 20px;
    margin: 12px 0;
}

.standard-shop-page .bbup-free-label {
    color: #10b981;
    font-weight: 700;
    font-size: 24px;
}

.standard-shop-page .bbup-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.standard-shop-page .bbup-dollar {
    color: #1e40af;
    font-size: 20px;
}

.standard-shop-page .bbup-price-value {
    color: #1e40af;
    font-weight: 700;
    font-size: 24px;
}

/* ========================================
   Product Meta
   ======================================== */

/* Availability */
.standard-shop-page .archive-availability {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.standard-shop-page .archive-availability::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Rating */
.standard-shop-page .product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.standard-shop-page .star-rating {
    font-size: 14px;
    color: #fbbf24;
}

.standard-shop-page .rating-count {
    font-size: 13px;
    color: #6b7280;
}

/* ========================================
   Add to Cart Button
   ======================================== */

.standard-shop-page .add-to-cart-wrapper {
    padding: 0 20px 20px;
    margin-top: auto;
}

.standard-shop-page .custom-add-to-cart {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.standard-shop-page .custom-add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.standard-shop-page .custom-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.standard-shop-page .custom-add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.standard-shop-page .custom-add-to-cart:active {
    transform: translateY(0);
}

/* Disabled State */
.standard-shop-page .custom-add-to-cart:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Learn More Button */
.standard-shop-page .custom-add-to-cart.learn-more {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.standard-shop-page .custom-add-to-cart.learn-more:hover {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Loading State */
.standard-shop-page .custom-add-to-cart.loading {
    color: transparent;
    pointer-events: none;
}

.standard-shop-page .custom-add-to-cart.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* ========================================
   Loading State
   ======================================== */

.standard-shop-page .products-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    grid-column: 1 / -1;
}

.standard-shop-page .products-loading .loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   No Results
   ======================================== */

.standard-shop-page .no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
    font-size: 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

/* ========================================
   Pagination
   ======================================== */

.standard-shop-page .custom-pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding: 24px 0;
}

.standard-shop-page .custom-pagination a,
.standard-shop-page .custom-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.standard-shop-page .custom-pagination a {
    background: white;
    color: #4b5563;
    border: 2px solid #e5e7eb;
}

.standard-shop-page .custom-pagination a:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.standard-shop-page .custom-pagination .current {
    background: #3b82f6;
    color: white;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ========================================
   Animations
   ======================================== */

/* spin animation - moved to animations.css */

/* ========================================
   Responsive Adjustments
   Using simplified breakpoint system: 768px and 1200px only
   Grid columns and gaps handled by main CSS
   ======================================== */