/*
Theme Name: OCC Theme Final
Theme URI: https://yourwebsite.com/
Author: Olympic Card Collectors
Author URI: https://yourwebsite.com/
Description: A custom theme for Olympic Card Collectors.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, one-column, custom-menu, featured-images, theme-options
Text Domain: occthemefinal
*/

/* WooCommerce Modern Premium Styles */

/* Enhanced Product Cards */
.product-card-premium {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 520px;
    width: 100% !important;
}

.product-card-premium:hover {
    transform: translateY(-8px);
}

/* Force cards to use much more width */
.product-card-premium .card-container {
    min-height: 500px;
    width: 100% !important;
    min-width: 320px !important;
}

/* Override Tailwind grid constraints */
@media (min-width: 768px) {
    .product-card-premium {
        min-width: 280px !important;
    }
}

@media (min-width: 1024px) {
    .product-card-premium {
        min-width: 350px !important;
    }
}

@media (min-width: 1280px) {
    .product-card-premium {
        min-width: 400px !important;
    }
}

@media (min-width: 1536px) {
    .product-card-premium {
        min-width: 450px !important;
    }
}

/* Modern Sorting Dropdown */
.woocommerce .woocommerce-ordering select {
    font-size: 14px;
    color: #374151;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.woocommerce .woocommerce-ordering select:focus {
    outline: none;
    border-color: #14B8A6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.woocommerce .woocommerce-result-count {
    font-size: 15px;
    color: #6B7280;
    font-weight: 500;
}

.woocommerce .woocommerce-ordering {
    margin: 0;
}

/* Premium Card Hover Effects */
.product-card-premium .bg-white {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-premium:hover .bg-white {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Add to Cart Buttons */
.product-card-premium .add_to_cart_button,
.product-card-premium a[href*="add-to-cart"] {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-shadow: 0 4px 14px 0 rgba(20, 184, 166, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
}

.product-card-premium .add_to_cart_button:hover,
.product-card-premium a[href*="add-to-cart"]:hover {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px 0 rgba(20, 184, 166, 0.4) !important;
    color: white !important;
}

.product-card-premium .added_to_cart {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: white !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-top: 0.5rem !important;
    display: inline-block !important;
    width: 100% !important;
    text-align: center !important;
}

/* Enhanced Price Styling */
.product-card-premium .price {
    font-weight: 900 !important;
    color: #1F2937 !important;
    font-size: 1.5rem !important;
}

.product-card-premium .price del {
    color: #9CA3AF !important;
    font-weight: 400 !important;
    margin-right: 0.5rem !important;
    font-size: 1.25rem !important;
}

.product-card-premium .price ins {
    color: #DC2626 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

.product-card-premium .price .woocommerce-Price-amount {
    font-weight: 900 !important;
}

/* Line clamp utility for title truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Pagination */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6B7280;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: white;
    border-color: #14B8A6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
}

/* Loading states and animations */
.woocommerce .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.woocommerce .loader {
    color: #14B8A6;
}

/* Improved category badges */
.product-card-premium .bg-teal-50 {
    background-color: rgba(20, 184, 166, 0.1) !important;
    color: #0D9488 !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
}

/* Enhanced sale badges */
.product-card-premium .bg-gradient-to-r {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Stock status styling */
.product-card-premium .bg-orange-50 {
    background-color: rgba(251, 146, 60, 0.1) !important;
    color: #EA580C !important;
    animation: pulse 1.5s infinite;
}

.product-card-premium .bg-red-50 {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #DC2626 !important;
}

/* Responsive improvements */
@media (max-width: 640px) {
    .woocommerce .woocommerce-ordering select {
        width: 100%;
        margin-top: 1rem;
    }

    .product-card-premium {
        margin-bottom: 1.5rem;
    }

    .product-card-premium .price {
        font-size: 1.25rem !important;
    }
}

/* Out of stock styling */
.woocommerce .product-card-premium.outofstock {
    opacity: 0.7;
}

.woocommerce .product-card-premium.outofstock .add_to_cart_button {
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%) !important;
    cursor: not-allowed !important;
}

.woocommerce .product-card-premium.outofstock .add_to_cart_button:hover {
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Quick action buttons */
.product-card-premium .w-10.h-10 {
    transition: all 0.2s ease;
}

.product-card-premium .w-10.h-10:hover {
    transform: scale(1.1);
    background: white !important;
}

/* Enhanced gradient backgrounds */
.bg-gradient-to-br {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

/* Shop header styling */
.bg-gradient-to-br.from-gray-50.to-gray-100 {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #E2E8F0 100%);
    position: relative;
}

.bg-gradient-to-br.from-gray-50.to-gray-100::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2314B8A6' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

/* Container improvements */
.container {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Override WooCommerce product grid for much wider cards */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
    gap: 2rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* Force single column on mobile, wider cards on larger screens */
@media (max-width: 767px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .woocommerce ul.products li.product {
        min-width: 180px !important;
        max-width: 100% !important;
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 2rem !important;
    }
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
        gap: 2.5rem !important;
    }
    .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Card hover effect */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.card-hover:hover, .card-hover:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    outline: 2px solid #14B8A6;
    outline-offset: 2px;
}

/* Gradient button */
.bg-gradient-teal {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: #fff;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: box-shadow 0.2s;
}
.bg-gradient-teal:focus {
    box-shadow: 0 0 0 3px rgba(20,184,166,0.2);
    outline: none;
}

/* Responsive improvements */
@media (max-width: 640px) {
    .woocommerce .woocommerce-ordering select {
        width: 100%;
        margin-top: 1rem;
    }
    .product-card-premium {
        margin-bottom: 1.5rem;
        min-width: 180px !important;
        max-width: 100% !important;
        padding: 1rem;
    }
    .product-card-premium .price {
        font-size: 1.1rem !important;
    }
    .news-item {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    body {
        font-size: 16px;
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
img[loading="lazy"] {
    filter: blur(0.5px);
    transition: filter 0.3s;
}

/* Accessibility improvements for links and buttons */
a, button {
    outline: none;
    transition: box-shadow 0.2s;
}
a:focus, button:focus {
    box-shadow: 0 0 0 3px rgba(20,184,166,0.2);
    outline: none;
}