/* Main Content Area Styling */
.col-full {
    max-width: 1600px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
}

.col-full .woocommerce {
    display: none !important;
}

.storefront-breadcrumb {
    margin-bottom: 0 !important;
}

#primary.content-area {
    width: 100% !important;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: #ffffff;
    margin: 0 !important;
}

/* Category Header */
.woocommerce-products-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.woocommerce-products-header__title.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.woocommerce-products-header__title.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* Category Hero Section (commented out but ready to use) */
.category-hero {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 24px;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    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" opacity="0.1"><path d="M20 20 L80 20 L80 80 L20 80 Z" fill="none" stroke="white" stroke-width="2"/><circle cx="50" cy="50" r="15" fill="none" stroke="white" stroke-width="2"/></svg>') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    color: white;
}

/* Custom Category Wrapper */
.custom-category-wrapper {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Products Container */
.products-container {
    width: 100%;
}

/* Search Group Title */
.search-group-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.search-group-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* Search Group - Product Grid */
.search-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Product Cards */
.unique-product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.unique-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.1);
    border-color: #e0e7ff;
}

.unique-product-image {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    overflow: hidden;
}

.unique-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform 0.5s ease;
}

.unique-product-card:hover .unique-product-image img {
    transform: scale(1.08);
}

/* Optional overlay effect */
.unique-product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.unique-product-card:hover .unique-product-image::after {
    opacity: 1;
}

.unique-product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: white;
    position: relative;
}

.unique-product-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: color 0.2s ease;
}

.unique-product-card:hover .unique-product-info h3 {
    color: #3b82f6;
}

.unique-brand {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #e5e7eb;
}

.unique-rating {
    margin-bottom: 1.25rem;
    color: #fbbf24;
    font-size: 0.95rem;
    display: flex;
    gap: 2px;
}

.unique-rating i {
    transition: transform 0.2s ease;
}

.unique-product-card:hover .unique-rating i {
    transform: scale(1.1);
}

.unique-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    margin-top: auto;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.unique-btn-primary i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.unique-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3);
    color: white;
}

.unique-btn-primary:hover i {
    transform: translateX(4px);
}

.unique-btn-primary:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (min-width: 1025px) {
    .col-full {
        flex-direction: row;
    }
    
    #primary.content-area {
        flex: 1;
    }
    
    .search-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .col-full {
        padding: 0.5rem 1.5rem !important;
    }
    
    #primary.content-area {
        padding: 0 !important;
    }
    
    .search-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .woocommerce-products-header__title.page-title {
        font-size: 2rem;
    }
    
    .search-group-title {
        font-size: 1.5rem;
    }
    
    .search-group {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .custom-category-wrapper {
        padding: 1.5rem;
    }
    
    .category-hero {
        padding: 3rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .unique-product-info h3 {
        font-size: 1.1rem;
    }
    
    .unique-btn-primary {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    #primary.content-area {
        padding: 1rem;
    }
    
    .col-full {
        padding: 0 1rem !important;
    }
    
    .woocommerce-products-header__title.page-title {
        font-size: 1.75rem;
    }
    
    .custom-category-wrapper {
        padding: 1rem;
    }
    
    .search-group-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .unique-product-info {
        padding: 1.25rem;
    }
    
    .unique-brand {
        font-size: 0.85rem;
    }
    
    .unique-rating {
        font-size: 0.85rem;
    }
}

/* Animation for cards on page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.unique-product-card {
    animation: fadeInUp 0.5s ease forwards;
}

.unique-product-card:nth-child(1) { animation-delay: 0.1s; }
.unique-product-card:nth-child(2) { animation-delay: 0.2s; }
.unique-product-card:nth-child(3) { animation-delay: 0.3s; }
.unique-product-card:nth-child(4) { animation-delay: 0.4s; }
.unique-product-card:nth-child(5) { animation-delay: 0.5s; }
.unique-product-card:nth-child(6) { animation-delay: 0.6s; }

/* Print Styles */
@media print {
    .custom-category-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
        padding: 1rem;
    }
    
    .unique-btn-primary {
        display: none;
    }
    
    .unique-product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}