/**
 * Additional WooCommerce Styles
 * Product cards and shop pages
 */

/* Shop/Archive Page */
.products-archive {
    padding: 60px 0;
}

.products-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 8px;
}

.products-count {
    font-size: 0.95rem;
    color: #6b7280;
}

#product-cat-filter,
#product-cat-select {
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* News Cards */
.news-section {
    padding: 60px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.news-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #6b7280;
}

.news-meta i {
    color: #1a56db;
    margin-right: 5px;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-title a {
    color: #1f2937;
}

.news-title a:hover {
    color: #1a56db;
}

.news-excerpt {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Single News */
.single-news-section {
    padding: 60px 0;
}

.single-news {
    max-width: 800px;
}

.news-header {
    margin-bottom: 30px;
}

.single-news .news-meta {
    margin-bottom: 20px;
}

.single-news .news-title {
    font-size: 2rem;
}

.news-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: auto;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.news-content h2 {
    margin-top: 30px;
}

.news-content h3 {
    margin-top: 25px;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.news-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-tags {
    font-size: 0.95rem;
}

.news-tags a {
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 4px;
    color: #1a56db;
    margin-right: 5px;
}

.news-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-share span {
    font-size: 0.95rem;
    color: #6b7280;
}

.news-share a {
    width: 35px;
    height: 35px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    transition: all 0.3s ease;
}

.news-share a:hover {
    background: #1a56db;
    color: #fff;
}

.news-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.news-nav a {
    color: #1a56db;
    font-weight: 500;
}

.news-nav i {
    margin: 0 8px;
}

/* News Sidebar */
.news-sidebar {
    position: sticky;
    top: 130px;
}

.sidebar-widget {
    background: #f3f4f6;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.recent-news-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.recent-news-list li:last-child {
    border-bottom: none;
}

.recent-news-list a {
    color: #1f2937;
    display: block;
    margin-bottom: 5px;
}

.recent-news-list a:hover {
    color: #1a56db;
}

.recent-news-list .post-date {
    font-size: 0.85rem;
    color: #6b7280;
}

.news-categories {
    padding-left: 0;
}

.news-categories li {
    padding: 8px 0;
}

.news-categories li a {
    color: #1f2937;
    display: flex;
    justify-content: space-between;
}

.news-categories li a:hover {
    color: #1a56db;
}

/* 404 Page */
.error-404-section {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 5rem;
    color: #f59e0b;
    margin-bottom: 30px;
}

.error-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.error-content p {
    color: #6b7280;
    margin-bottom: 15px;
}

.error-suggestions {
    text-align: left;
    margin: 30px 0;
    padding-left: 20px;
}

.error-suggestions li {
    margin-bottom: 10px;
    color: #6b7280;
}

.error-suggestions li::before {
    content: '•';
    color: #1a56db;
    margin-right: 10px;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.search-form-404 {
    margin-top: 40px;
}

.search-form-404 h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.search-form-404 form {
    display: flex;
    gap: 10px;
}

.search-form-404 input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* Products Category Cards */
.cats-intro {
    text-align: center;
    margin-bottom: 50px;
}

.cats-intro h2 {
    font-size: 2rem;
}

.cats-intro p {
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
}

.cats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 80px;
}

.cat-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 315px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.cat-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 315px;
    padding: 30px 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.96) 0 31%, rgba(226, 232, 240, 0.78) 32% 50%, transparent 51%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.08), rgba(29, 78, 216, 0.12));
}

.cat-image img {
    width: 100%;
    height: 235px;
    object-fit: contain;
    filter: drop-shadow(0 18px 18px rgba(15, 23, 42, 0.18));
}

.cat-content {
    display: flex;
    flex-direction: column;
    padding: 28px 30px;
}

.cat-content h3 {
    font-size: clamp(1.18rem, 1.55vw, 1.5rem);
    line-height: 1.18;
    margin-bottom: 10px;
}

.cat-content p {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 16px;
}

.cat-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.cat-features li {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.95);
    color: #1f2937;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
}

.cat-features li::before {
    content: '✓';
    color: #10b981;
    margin-right: 7px;
    font-weight: bold;
}

.cat-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* All Products Section */
.all-products-section {
    padding: 60px 0;
}

.products-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 8px;
}

/* Related Products */
.related-products {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #e5e7eb;
}

.related-products .section-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination .nav-links {
    display: flex;
    gap: 5px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.pagination a {
    background: #f3f4f6;
    color: #1f2937;
}

.pagination a:hover {
    background: #1a56db;
    color: #fff;
}

.pagination .current {
    background: #1a56db;
    color: #fff;
}

/* Responsive News */
@media screen and (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .cats-grid {
        grid-template-columns: 1fr;
    }

    .cat-card {
        grid-template-columns: 1fr;
    }

    .cat-image {
        min-height: 240px;
        padding: 24px;
    }

    .cat-image img {
        height: 190px;
    }
}

@media screen and (max-width: 768px) {
    .error-actions {
        flex-direction: column;
    }

    .search-form-404 form {
        flex-direction: column;
    }

    .news-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .news-nav {
        flex-direction: column;
        gap: 15px;
    }
}