/* 404 Error Page Styles
--------------------------------------------- */

.error-404 {
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

/* Dramatic background gradient overlay */
.error-404::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Diagonal line effect */
.error-404::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(42,125,46,0.02) 0px,
        rgba(42,125,46,0.02) 1px,
        transparent 1px,
        transparent 30px
    );
    z-index: -1;
    pointer-events: none;
}

.page-content {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Enhanced error image with dramatic shadow and scale */
.error-image {
    margin-bottom: 1rem;
    transform: scale(1.2);
    /* filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3)); */
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

@keyframes float {
    0% { transform: scale(1.2) translateY(0px); }
    50% { transform: scale(1.2) translateY(-15px); }
    100% { transform: scale(1.2) translateY(0px); }
}

.error-image img {
    max-width: 250px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.page-header {
    margin-bottom: 2rem;
    position: relative;
}

/* Artistic underline effect for title */
.page-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #2a7d2e;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1), 
                -1px -1px 0 rgba(255,255,255,0.7);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(42,125,46,0.2);
    z-index: -1;
    transform: skewX(-20deg);
}

.error-subtitle {
    font-size: 1.5rem;
    color: #555;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    display: inline-block;
}

/* Subtle highlight for subtitle */
.error-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(42,125,46,0.5), transparent);
}

.error-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 404 Search Form Styling */
.error-404 .search-form-container {
    max-width: 650px;
    margin: 2rem auto 3rem;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(42, 125, 46, 0.1);
}

.error-404 .search-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
    color: #2a7d2e;
    font-size: 1.2rem;
    font-weight: 500;
}

.error-404 .search-prompt .material-icons {
    font-size: 1.8rem;
    animation: pulse-gentle 2s infinite;
}

@keyframes pulse-gentle {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Fix the search form specific to 404 page */
.error-404 form.search-form {
    display: flex;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    overflow: hidden;
    width: 100%;
}

/* Ensure input field takes up available space */
.error-404 .search-form .search-field {
    width: 100%;
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(42, 125, 46, 0.1);
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s;
    background-color: #fff;
    margin-right: 50px; /* Make room for the submit button */
}

.error-404 .search-form .search-field:focus {
    border-color: #2a7d2e;
    box-shadow: 0 0 0 3px rgba(42, 125, 46, 0.2);
    outline: none;
}

.error-404 .search-form .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2a7d2e;
    border: none;
    border-radius: 50px;
    color: #fff;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 2;
}

.error-404 .search-form .search-submit:hover {
    background-color: #216b24;
    transform: translateY(-50%) scale(1.05);
}

/* Style the search icon within the submit button */
.error-404 .search-form .search-submit .material-icons,
.error-404 .search-form .search-submit svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: #fff;
}

/* Override any WordPress defaults that might be causing issues */
.error-404 .search-form input[type="search"] {
    width: 100%;
    box-sizing: border-box;
}

/* Additional class to ensure our styles only affect the 404 page */
.error-404-search {
    width: 100%;
}

/* Keep this style as a fallback for other search instances */
.search-form-container {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.error-actions {
    margin-bottom: 4rem;
}

/* Enhanced button with animated effects */
.btn-primary {
    background: linear-gradient(135deg, #2a7d2e, #37a03c);
    color: #fff;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(42,125,46,0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    z-index: -1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #216b24, #318b34);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(42,125,46,0.4);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(42,125,46,0.3);
}

/* Enhanced section with artistic border */
.error-collections {
    margin-top: 6rem;
    padding-top: 4rem;
    position: relative;
    margin-bottom: 6rem;
}

.error-collections::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(42,125,46,0.3), transparent);
}

.error-section-title {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    color: #333;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(to right, transparent, #2a7d2e, transparent);
    margin: 1rem auto 0;
}

/* Enhanced collections grid with hover animations */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.collection-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.collection-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.collection-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42,125,46,0), rgba(42,125,46,0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.collection-card:hover::after {
    opacity: 1;
}

.collection-card__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.collection-card__image-link {
    display: block;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 65%;
}

.collection-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.collection-card:hover .collection-card__image {
    transform: scale(1.08);
}

/* Gradient overlay on images for more dramatic look */
.collection-card__image-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.collection-card:hover .collection-card__image-link::after {
    opacity: 1;
}

.collection-card__content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.collection-card__title {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
    font-family: serif;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.collection-card__title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #2a7d2e;
    transition: width 0.3s ease;
}

.collection-card:hover .collection-card__title::after {
    width: 100%;
}

.collection-card__description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
    flex-grow: 1;
}

/* Update collection card button to match article button style */
.collection-card__button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2a7d2e;
    border: none;
    color: #fff !important;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(42, 125, 46, 0.2);
}

.collection-card__button:hover {
    background-color: #216b24;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(42, 125, 46, 0.3);
    text-decoration: none;
}

.collection-card__button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(42, 125, 46, 0.2);
    color: #fff !important;
}

/* Remove previous collection button animation */
.collection-card__button::before {
    display: none;
}

/* Ensure all buttons have consistent styling */
a.collection-card__button {
    color: #fff !important;
    text-decoration: none;
}

a.collection-card__button:hover,
a.collection-card__button:active,
a.collection-card__button:focus {
    color: #fff !important;
    text-decoration: none;
}

/* Featured Products and Articles Sections */
.featured-products {
    background-color: #fff;
    padding: 5rem 0;
    margin-top: 3rem;
    position: relative;
}

/* Diagonal pattern overlay for sections */
.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        rgba(42,125,46,0.02) 0px,
        rgba(42,125,46,0.02) 1px,
        transparent 1px,
        transparent 30px
    );
    z-index: 0;
    pointer-events: none;
}

.featured-products .container {
    max-width: var(--container-xl, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing-md, 1rem);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    position: relative;
    color: #333;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title .material-icons {
    color: #2a7d2e;
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Enhanced title with animated underline */
.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, #2a7d2e, transparent);
    margin: 1rem auto 0;
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
}

.products-grid,
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* WooCommerce products styling for consistency */
.featured-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.featured-products ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured-products ul.products li.product:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-products ul.products li.product a img {
    margin: 0 !important;
    width: 100%;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 3/2;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-products ul.products li.product:hover a img {
    transform: scale(1.08);
}

.featured-products ul.products li.product .woocommerce-loop-product__title {
    padding: 1.5rem 1.5rem 0.5rem !important;
    font-size: 1.7rem !important;
    color: #333 !important;
    font-weight: 700;
    font-family: serif;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.featured-products ul.products li.product .woocommerce-loop-product__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    width: 40px;
    height: 2px;
    background-color: #2a7d2e;
    transition: width 0.3s ease;
}

.featured-products ul.products li.product:hover .woocommerce-loop-product__title::after {
    width: calc(100% - 3rem);
}

.featured-products ul.products li.product .price {
    padding: 0 1.5rem;
    color: #2a7d2e !important;
    font-weight: 700;
    font-size: 1.2rem !important;
}

.featured-products ul.products li.product .button {
    margin: 1.5rem !important;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 1px solid #2a7d2e;
    color: #2a7d2e;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.featured-products ul.products li.product .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #2a7d2e;
    transition: transform 0.4s ease;
    z-index: -1;
    transform: skewX(-20deg);
}

.featured-products ul.products li.product .button:hover {
    color: #fff;
}

.featured-products ul.products li.product .button:hover::before {
    transform: skewX(-20deg) translateX(100%);
}

/* Article Cards */
.article-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.article-image-link {
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 60%;
}

.article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.article-card:hover .article-image {
    transform: scale(1.08);
}

/* Gradient overlay on images */
.article-image-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover .article-image-link::after {
    opacity: 1;
}

.article-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #2a7d2e;
    transition: width 0.3s ease;
}

.article-card:hover .article-title::after {
    width: 100%;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #2a7d2e;
}

/* Article button styling */
.article-button {
    margin-top: auto;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2a7d2e;
    border: none;
    color: #fff !important;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(42, 125, 46, 0.2);
}

.article-button:hover {
    background-color: #216b24;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(42, 125, 46, 0.3);
    text-decoration: none;
}

.article-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(42, 125, 46, 0.2);
    color: #fff !important;
}

/* Product Cards (custom display) */
.product-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image-link {
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 65%;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* Gradient overlay on images */
.product-image-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-image-link::after {
    opacity: 1;
}

.product-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #2a7d2e;
    transition: width 0.3s ease;
}

.product-card:hover .product-title::after {
    width: 100%;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: #2a7d2e;
}

.product-price {
    color: #2a7d2e;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* Update the product button to match */
.product-button {
    margin-top: auto;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2a7d2e;
    border: none;
    color: #fff !important;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(42, 125, 46, 0.2);
}

.product-button:hover {
    background-color: #216b24;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(42, 125, 46, 0.3);
    text-decoration: none;
}

.product-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(42, 125, 46, 0.2);
    color: #fff !important;
}

/* These styles target anchor links generally to override any theme defaults */
a.article-button,
a.product-button {
    color: #fff !important;
    text-decoration: none;
}

a.article-button:hover,
a.product-button:hover,
a.article-button:active,
a.product-button:active,
a.article-button:focus,
a.product-button:focus {
    color: #fff !important;
    text-decoration: none;
}

/* Placeholder for when no products are found */
.products-placeholder {
    text-align: center;
    margin: 2rem 0;
}

.placeholder-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.product-card.placeholder {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    background-color: #f8f9fa;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.product-card.placeholder .product-image {
    height: 220px;
    background-color: #eee;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect for placeholders */
.product-card.placeholder .product-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(30deg);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.product-card.placeholder .product-title {
    height: 24px;
    width: 80%;
    background-color: #eee;
    margin: 1.5rem auto 0.5rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.product-card.placeholder .product-title::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(30deg);
    animation: shimmer 2s infinite;
    animation-delay: 0.1s;
}

.product-card.placeholder .product-price {
    height: 20px;
    width: 40%;
    background-color: #eee;
    margin: 0.5rem auto;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.product-card.placeholder .product-price::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(30deg);
    animation: shimmer 2s infinite;
    animation-delay: 0.2s;
}

.view-all-products {
    margin-top: 3rem;
    text-align: center;
}

/* View all buttons with animated effect */
.view-all-products .btn-primary {
    position: relative;
    overflow: hidden;
}

.view-all-products .btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: -1;
    transition: transform 0.6s ease;
}

.view-all-products .btn-primary:hover::after {
    transform: rotate(45deg) translateY(100%);
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .collections-grid,
    .products-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .page-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 3rem;
    }
    
    .collections-grid,
    .products-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .featured-products ul.products {
        grid-template-columns: 1fr !important;
        max-width: 500px;
        margin: 0 auto !important;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .error-image img {
        max-width: 200px;
    }
    
    .error-subtitle {
        font-size: 1.2rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Custom search form for 404 page only */
.error-404-search-form {
    display: flex !important;
    width: 100% !important;
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    border: 2px solid rgba(42, 125, 46, 0.1);
}

/* Improve the search field appearance */
.error-404 .error-404-search-form .search-field {
    width: 100% !important;
    flex-grow: 1 !important;
    padding: 1.2rem 1.5rem !important;
    border: none !important; /* Remove default border */
    border-radius: 50px 0 0 50px !important; /* Only round the left side */
    background-color: #fff;
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.3s;
    min-width: 0;
    margin: 0 !important;
    font-size: 1.1rem;
}

/* Fix search button positioning and border */
.error-404 .error-404-search-form .search-submit {
    position: relative !important;
    right: auto;
    top: auto;
    transform: none;
    background-color: #2a7d2e;
    border: none;
    border-radius: 0 50px 50px 0; /* Only round the right side */
    color: #fff;
    width: 56px;
    height: auto; /* Match height of container */
    min-height: 56px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin: 0;
    padding: 0;
    z-index: 2;
}

.error-404 .error-404-search-form .search-submit:hover {
    background-color: #216b24;
    transform: none;
}

/* Prevent WordPress from applying unexpected styles */
.error-404 .search-form-container.error-404-search {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(42, 125, 46, 0.1);
    max-width: 650px;
    margin: 2rem auto 3rem;
} 