/* Global Font Family */
* {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

}

p {
    margin-bottom: 0;
}

select,
.select2-container .select2-selection--single {
    background-image: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
    /* Make space for custom arrow */
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li {
    border-color: transparent;
}

.woocommerce-js nav.woocommerce-pagination ul li {
    margin: 0 2px 2px 0;
    border: 0;
    padding: 0;
    display: inline-block;
    overflow: hidden;
}


/* Custom Header */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.custom-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 10dvh;
}

/* Logo Styles */
.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.custom-logo {
    max-height: 40px;
    width: auto;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Navigation Styles */
.header-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #007cba;
    background: rgba(0, 124, 186, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #007cba;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Cart Styles */
.header-cart {
    flex-shrink: 0;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.cart-link:hover {
    color: #007cba;
    background: rgba(0, 124, 186, 0.1);
}

.cart-icon {
    width: 24px;
    height: 24px;
}

.cart-count {
    background: #007cba;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 5px;
    right: 5px;
}

.cart-count:empty {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 4px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:focus {
    outline: none;
    background: none;
}

.mobile-menu-toggle:active {
    background: none;
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid rgba(0, 124, 186, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Body padding for sticky header */
.sticky-header-enabled {
    padding-top: 70px;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        height: 60px;
        position: relative;
    }

    .header-navigation {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 1;
        position: absolute;
        left: 0;
        z-index: 1001;
    }

    .header-logo {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .header-cart {
        order: 3;
        position: absolute;
        right: 0;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 16px;
        transform: translateY(-10px) scale(0.95);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform-origin: top center;
        gap: 0;
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        display: flex;
        list-style: none;
        margin: 0;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .nav-menu.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        display: block;
        padding: 18px 12px;
        border-radius: 6px;
        transition: all 0.3s ease;
        margin: 4px 0;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #007cba;
        background: transparent;
        font-weight: 600;
    }

    .nav-link::after {
        display: none;
    }

    .sticky-header-enabled {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
    }

    .custom-logo {
        max-height: 35px;
    }

    .site-title {
        font-size: 20px;
    }
}

/* About Section Styles */
.about-section {
    background: #ffffff;
    padding: 0 0;
    position: relative;
    overflow: hidden;
}

.about-container {
    margin: 0 auto;
    padding: 3rem 5rem;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Left Column - Image */
.about-image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    width: 75%;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 40px #1e90ff;
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
}

/* Right Column - Text */
.about-text-column {
    flex: 1;
    color: #333;
}

.about-title {
    font-size: 4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.2;
    text-align: center;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-description p {
    margin-bottom: 24px;
}

.about-highlights {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #007cba;
}

.about-highlights h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #007cba;
    font-weight: 600;
    font-size: 1.1rem;
}

.about-list li strong {
    color: #333;
}

/* Responsive About Section */
@media (max-width: 1024px) {
    .about-content {
        gap: 60px;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 80px 0;
        background: #ffffff;
        position: relative;
    }

    .about-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: none;
        backdrop-filter: none;
        z-index: 1;
    }

    .about-container {
        padding: 0 1.5rem;
        position: relative;
        z-index: 2;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    .about-image-column {
        display: none;
    }

    .about-text-column {
        width: 100%;
        max-width: 600px;
    }

    .about-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .about-description {
        font-size: 1rem;
        text-align: left;
    }

    .about-highlights {
        margin: 30px 0;
        padding: 25px;
        text-align: left;
    }

    .about-highlights h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .about-list li {
        margin-bottom: 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 60px 0;
    }

    .about-container {
        padding: 0 1rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-description {
        font-size: 0.95rem;
    }

    .about-highlights {
        padding: 20px;
    }
}

/* ==========================================================================
   Contact Section - Translated from Next.js/Tailwind Component
   ========================================================================== */

:root {
    --primary-color: #1e90ff;
    --primary-color-light: #e6f6fc;
    /* Equivalent to primary/10 */
    --gray-50: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

/* Main Section Container */
.contact-section-next {
    min-height: 100vh;
    position: relative;
    z-index: 20;
    background-image: linear-gradient(to bottom, transparent, white);
}

.contact-container-next {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 6rem 1.5rem;
}

.contact-grid-next {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Contact Information Column */
.contact-info-next {
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.contact-title-next {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-items-group-next {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item-next {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-item-next:hover {
    background-color: var(--gray-50);
    text-decoration: none;
}

.contact-icon-wrapper-next {
    flex-shrink: 0;
}

.contact-icon-bg-next {
    padding: 1rem;
    background-color: var(--primary-color-light);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-svg-next {
    height: 1.5rem;
    width: 1.5rem;
    color: var(--primary-color);
}

.contact-item-content-next {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label-next {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.contact-text-next {
    color: var(--gray-600);
    transition: color 0.3s ease;
}

.contact-item-next:hover .contact-text-next {
    color: var(--primary-color);
}

.contact-text-next .block {
    display: block;
}

/* Contact Form Column */
.contact-form-wrapper-next {
    margin-top: 3rem;
}

.contact-form-next {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.form-group-next {
    display: flex;
    flex-direction: column;
}

.form-label-next {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input-next,
.form-textarea-next {
    display: block;
    width: 100%;
    border-radius: 0.75rem;
    border: none;
    background-color: rgba(249, 250, 251, 0.5);
    padding: 0.9rem 1rem;
    color: var(--gray-900);
    box-shadow: 0 0 0 1px inset var(--gray-200);
    transition: all 0.2s ease;
}

.form-input-next:focus,
.form-textarea-next:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.form-input-next::placeholder,
.form-textarea-next::placeholder {
    color: var(--gray-400);
}

.form-textarea-next {
    height: 8rem;
    resize: none;
}

/* Checkbox */
.checkbox-group-next {
    display: flex;
    flex-direction: column;
}

.checkbox-label-next {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-input-next {
    margin-top: 2px;
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary-color);
}

.checkbox-text-next {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.terms-link-next {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-link-next:hover {
    text-decoration: underline;
}

/* Submit Button */
.contact-submit-btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background-image: linear-gradient(to right, var(--primary-color), #3b82f6);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.contact-submit-btn-next:hover {
    opacity: 0.9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-submit-btn-next:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
}

.contact-submit-btn-next:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-content-ready,
.btn-content-sending {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon-next {
    width: 1.25rem;
    height: 1.25rem;
}


/* Responsive Design */
@media (min-width: 768px) {
    .contact-grid-next {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-title-next {
        text-align: left;
    }

    .contact-form-wrapper-next {
        margin-top: 0;
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)),
        linear-gradient(to right, #eef2f5 1px, transparent 1px),
        linear-gradient(to bottom, #eef2f5 1px, transparent 1px);
    background-size: 100%, 100%, 30px 30px;
}

.faq-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.faq-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.faq-accordion {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
}

.faq-item:last-child {
    border-bottom: none;
}

button.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button.faq-question:hover {
    background-color: #f8f9fa;
}

button.faq-question:focus {
    outline: none;
}

button.faq-question:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(0, 124, 186, 0.4);
}

.faq-chevron {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    color: #666;
}

button.faq-question[aria-expanded="true"] {
    font-weight: 600;
    background-color: #f8f9fa;
}

button:focus {
    outline: none;
    background-color: none;
}

/* Add this to override Astra's focus style when the question is open */
button.faq-question[aria-expanded="true"]:focus {
    background-color: #f8f9fa;
}

button.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    background-color: #fff;
}

.faq-answer p {
    margin: 0;
}

/* Responsive FAQ Section */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-title {
        font-size: 2rem;
    }

    button.faq-question {
        padding: 1rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.95rem;
    }
}

/* ----------------------------------------------------------------
 * Google Reviews Section
 * ---------------------------------------------------------------- */


.google-reviews-section {
    /* --- Theme Variables --- */
    --card-bg-color: #1f2937;
    /* slate-800 */
    --card-border-color: #374151;
    /* slate-700 */
    --text-primary-color: #f9fafb;
    /* gray-50 */
    --text-secondary-color: #9ca3af;
    /* gray-400 */
    --section-title-color: #1f2937;
    /* slate-800 */
    --star-filled-color: #facc15;
    /* yellow-400 */
    --verified-badge-color: #22d3ee;
    /* cyan-400 */
    --button-bg-color: #374151;
    /* slate-700 */
    --button-hover-bg-color: #4b5563;
    /* slate-600 */
    --button-text-color: #ffffff;
    /* --- Base Styles --- */
    padding: 1rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    .google-reviews-section {
        padding: 1rem 2rem;
    }
}

.google-reviews-section .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--section-title-color);
}

/* Scroller Container */
.reviews-scroller {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            white 20%,
            white 80%,
            transparent);
    mask-image: linear-gradient(to right,
            transparent,
            white 20%,
            white 80%,
            transparent);
}

.reviews-scroller-inner {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 1rem;
    padding: 1rem 0;
    animation: scroll 80s linear infinite;
}

.reviews-scroller:hover .reviews-scroller-inner {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Review Card */
.review-card {
    width: 400px;
    flex-shrink: 0;
    background-color: var(--card-bg-color);
    border-radius: 1rem;
    border: 1px solid var(--card-border-color);
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    list-style-type: none;
    /* Remove bullet points */
}

@media (min-width: 768px) {
    .review-card {
        width: 440px;
    }
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #4b5563;
    /* slate-600 */
}

.review-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-author-info h3 {
    font-weight: 600;
    color: var(--text-primary-color);
    margin: 0;
    font-size: 1rem;
}

.review-author-info span {
    font-size: 0.875rem;
    color: var(--text-secondary-color);
}

.review-card-quote-icon {
    width: 3rem;
    height: 3rem;
    color: var(--text-primary-color);
}

/* Rating Stars */
.review-rating {
    display: flex;
    gap: 0.125rem;
}

.review-rating svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-secondary-color);
}

.review-rating svg.filled {
    color: var(--star-filled-color);
}

/* Review Content */
.review-content {
    color: var(--text-primary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    /* Simulating line-clamp-5 */
    max-height: calc(1.6 * 0.95rem * 5);
    /* line-height * font-size * lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    align-items: flex-start;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    /* Resetting blockquote default styles */
    border: 0;
    margin-inline: 0;
    padding-inline: 0;
}

.review-content blockquote {
    margin: 0;
}

.review-content p {
    margin: 0;
}

/* Verified Badge */
.review-verified-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.review-verified-badge svg {
    width: 1rem;
    height: 1rem;
    color: var(--verified-badge-color);
}

.review-verified-badge span {
    font-size: 0.75rem;
    color: var(--text-secondary-color);
}

/* "View All" Button */
.reviews-view-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.reviews-view-all-button:hover {
    background-color: var(--button-hover-bg-color);
    transform: scale(1.05);
    color: var(--button-text-color);
}

.reviews-view-all-button .google-icon {
    width: 32px;
    height: 32px;
    margin-left: 0.5rem;
}

/* Hide schema meta tags */
.google-reviews-schema {
    display: none;
}

/* Hero Section Styles */
.hero-section {
    background: #18192E;
    height: 95dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Aceternity UI Style Gradient Background */
.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.gradients-container {
    position: relative;
    width: 100%;
    height: 100%;
    filter: blur(40px) saturate(125%);
    opacity: 0.9;
}

.gradients-container .g1,
.gradients-container .g2,
.gradients-container .g3 {
    position: absolute;
    mix-blend-mode: multiply;
    border-radius: 50%;
}

.gradients-container .g1 {
    background: radial-gradient(circle at center, rgba(30, 144, 255, 0.8) 0%, rgba(30, 144, 255, 0) 50%);
    width: 1000px;
    height: 1000px;
    top: calc(75% - 300px);
    left: calc(0% - 350px);
    animation: moveInCircle 30s ease infinite;
}

.gradients-container .g2 {
    background: radial-gradient(circle at center, rgba(0, 123, 255, 0.8) 0%, rgba(0, 123, 255, 0) 50%);
    width: 1000px;
    height: 1000px;
    top: calc(80% - 200px);
    left: calc(50% - 500px);
    animation: moveInCircle 20s reverse infinite;
}

.gradients-container .g3 {
    background: radial-gradient(circle at center, rgba(135, 206, 235, 0.8) 0%, rgba(135, 206, 235, 0) 50%);
    width: 1000px;
    height: 1000px;
    top: calc(85% - 600px);
    left: calc(100% - 800px);
    animation: moveInCircle 40s linear infinite;
}

/* Gradient Animation Keyframes */
@keyframes moveHorizontal {
    0% {
        transform: translateX(-20%) translateY(-5%);
    }

    50% {
        transform: translateX(20%) translateY(5%);
    }

    100% {
        transform: translateX(-20%) translateY(-5%);
    }
}

@keyframes moveInCircle {
    0% {
        transform: rotate(0deg) translateX(15px) rotate(0deg);
    }

    50% {
        transform: rotate(180deg) translateX(15px) rotate(-180deg);
    }

    100% {
        transform: rotate(360deg) translateX(15px) rotate(-360deg);
    }
}

@keyframes moveVertical {
    0% {
        transform: translateY(-15%);
    }

    50% {
        transform: translateY(15%);
    }

    100% {
        transform: translateY(-15%);
    }
}

/* Enhanced Interactive Gradient Overlay */
.gradient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(24, 25, 46, 0.9) 80%);
    z-index: 2;
}

.hero-container {
    margin: 0 auto;
    padding: 0 5rem;
    position: relative;
    z-index: 4;
}

.hero-content {
    display: flex;
    gap: 40px;
    align-items: center;
    height: 100%;
}

/* Left Column - Text */
.hero-text-column {
    color: #fff;
    text-align: left;
    flex: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
}

.hero-title-highlight {
    text-shadow: 0 0 10px #007cba;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: start;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.5s ease;
    border: 1px solid #ffffff;
}

.hero-btn .btn-text {
    position: relative;
    z-index: 20;
}

.hero-btn.primary {
    position: relative;
    height: 4rem;
    width: 16rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    overflow: hidden;
    transform-origin: left;
    background-color: #075985;
    color: #f9fafb;
    text-align: left;
}

.hero-btn.primary:hover {
    background-color: #7dd3fc;
    color: #0c4a6e;
    border-color: #7dd3fc;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.hero-btn.primary::before,
.hero-btn.primary::after {
    content: '';
    position: absolute;
    z-index: 10;
    border-radius: 9999px;
}

.hero-btn.primary::before {
    width: 3rem;
    height: 3rem;
    background-color: #38bdf8;
    top: 0.25rem;
    right: 0.25rem;
    filter: blur(1rem);
    transition: all 500ms;
}

.hero-btn.primary:hover::before {
    top: 2rem;
    right: 4rem;
    filter: blur(0);
    transition-duration: 500ms;
}

.hero-btn.primary::after {
    width: 5rem;
    height: 5rem;
    background-color: #0891b2;
    top: 0.75rem;
    right: 2rem;
    filter: blur(0.5rem);
    transition: all 500ms;
}

.hero-btn.primary:hover::after {
    transform: scale(1.5);
    right: -0.5rem;
    filter: blur(0);
    transition-duration: 1000ms;
}

/* Right Column - Image */
.hero-image-column {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: end;
    flex: 1;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

.image-glow-effect {
    display: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow-pulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Enhanced Background Animation */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #1e90ff;
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 10px #1e90ff;
}

.particle-1 {
    top: 75%;
    left: 15%;
    animation: float-1 8s infinite ease-in-out;
}

.particle-2 {
    top: 80%;
    left: 35%;
    animation: float-2 10s infinite ease-in-out;
}

.particle-3 {
    top: 85%;
    right: 25%;
    animation: float-3 7s infinite ease-in-out;
}

.particle-4 {
    bottom: 10%;
    left: 60%;
    animation: float-1 9s infinite ease-in-out;
}

.particle-5 {
    bottom: 15%;
    right: 20%;
    animation: float-2 11s infinite ease-in-out;
}

.floating-light {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.03;
    filter: blur(40px);
}

.light-1 {
    background: radial-gradient(circle, #1e90ff 0%, transparent 60%);
    top: 78%;
    left: 12%;
    animation: pulse-1 8s infinite ease-in-out;
}

.light-2 {
    background: radial-gradient(circle, #4682b4 0%, transparent 60%);
    bottom: 8%;
    right: 15%;
    animation: pulse-2 10s infinite ease-in-out;
}

.light-3 {
    background: radial-gradient(circle, #6495ed 0%, transparent 60%);
    top: 82%;
    left: 45%;
    animation: pulse-3 12s infinite ease-in-out;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    33% {
        transform: translateY(-15px) translateX(10px);
    }

    66% {
        transform: translateY(10px) translateX(-8px);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-20px) translateX(-12px);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(-10px) translateX(15px);
    }

    75% {
        transform: translateY(12px) translateX(-10px);
    }
}

@keyframes pulse-1 {

    0%,
    100% {
        opacity: 0.02;
        transform: scale(1);
    }

    50% {
        opacity: 0.06;
        transform: scale(1.1);
    }
}

@keyframes pulse-2 {

    0%,
    100% {
        opacity: 0.015;
        transform: scale(1);
    }

    50% {
        opacity: 0.05;
        transform: scale(1.05);
    }
}

@keyframes pulse-3 {

    0%,
    100% {
        opacity: 0.01;
        transform: scale(1);
    }

    50% {
        opacity: 0.04;
        transform: scale(1.08);
    }
}

/* Responsive Hero Section */
@media (max-width: 1024px) {
    .hero-container {
        padding: 0 3rem;
    }

    .hero-content {
        gap: 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .gradients-container .g1,
    .gradients-container .g2,
    .gradients-container .g3 {
        width: 85%;
        height: 85%;
    }
}

@media (max-width: 968px) {
    .hero-content {
        gap: 60px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .gradients-container .g1,
    .gradients-container .g2,
    .gradients-container .g3 {
        width: 80%;
        height: 80%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 90dvh;
        padding: 60px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .hero-container {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 90dvh;
        padding: 0 2rem;
    }

    .hero-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 40px;
        width: 100%;
    }

    .hero-text-column {
        text-align: center;
        width: 100%;
        max-width: 500px;
        z-index: 3;
        position: relative;
        order: 1;
    }

    .hero-image-column {
        display: flex;
        justify-content: center;
        align-items: center;
        order: 2;
        width: 100%;
        max-width: 400px;
    }

    .hero-image-wrapper {
        width: 100%;
        max-width: 350px;
    }

    .hero-image {
        width: 100%;
        height: auto;
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .hero-btn.primary {
        height: 4.5rem;
        width: 18rem;
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
        margin-bottom: 20px;
    }

    .gradients-container {
        filter: blur(30px) saturate(100%);
    }

    .gradients-container .g1,
    .gradients-container .g2,
    .gradients-container .g3 {
        width: 60%;
        height: 60%;
    }
}

@media (max-width: 580px) {
    .hero-section {
        padding: 40px 0;
        min-height: 90dvh;
        height: auto;
    }

    .hero-container {
        padding: 0 1.5rem;
    }

    .hero-content {
        gap: 20px;
    }

    .hero-text-column {
        max-width: 450px;
        order: 1;
    }

    .hero-image-column {
        max-width: 350px;
        order: 2;
    }

    .hero-image-wrapper {
        max-width: 300px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.15rem;
    }

    .hero-btn.primary {
        height: 4.2rem;
        width: 17rem;
        font-size: 1.05rem;
    }
}

/* Popular Categories Section */
.popular-categories-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)),
        linear-gradient(to right, #eef2f5 1px, transparent 1px),
        linear-gradient(to bottom, #eef2f5 1px, transparent 1px);
    background-size: 100%, 100%, 30px 30px;
}

.popular-categories-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 5rem;
}

.popular-categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.popular-categories-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.popular-categories-view-all {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.popular-categories-view-all:hover {
    color: #005f8a;
}

.popular-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.category-card a {
    text-decoration: none;
    color: inherit;
}

.category-image-wrapper {
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Responsive Popular Categories */
@media (max-width: 768px) {
    .popular-categories-section {
        padding: 1rem 0;
    }

    .popular-categories-header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

    .popular-categories-title {
        font-size: 2rem;
    }

    .popular-categories-grid .category-card:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 480px) {
    .popular-categories-container {
        padding: 0 1rem;
    }
}

/* Services Section Styles */
.services-section {
    background: #18192E;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

/* Wave Borders */
.wave-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1;
}

.wave-border-top svg {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
    fill: #ffffff;
}

.wave-border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1;
}

.wave-border-bottom svg {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
    fill: #ffffff;
}

/* Services Container */
.services-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5rem;
    position: relative;
    z-index: 2;
}

.services-title {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.2;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

/* Service Cards */
.service-card {
    background-image: url('../images/about-us.webp');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 44px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(30, 144, 255, 0.3);
    border-color: rgba(30, 144, 255, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 24, 46, 0.9);
    border-radius: 20px;
    z-index: 1;
}

.service-card>* {
    position: relative;
    z-index: 2;
}

/* Service Icons */
.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e90ff 0%, #0080ff 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.3);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

/* Service Content */
.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Service Features */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.service-features li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #1e90ff;
    font-weight: 700;
    font-size: 1.2rem;
    background: rgba(30, 144, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Service Buttons */
.service-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: linear-gradient(135deg, #1e90ff 0%, #0080ff 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.3);
    width: 100%;
    margin-top: auto;
}

.service-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(30, 144, 255, 0.5);
    background: linear-gradient(135deg, #0080ff 0%, #0066cc 100%);
    color: white;
    text-decoration: none;
}

.service-button:active {
    transform: translateY(0px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.3);
}

/* Responsive Services Section */
@media (max-width: 1024px) {
    .services-container {
        padding: 1rem 3rem;
    }

    .services-title {
        font-size: 3rem;
    }

    .services-grid {
        gap: 40px;
    }

    .service-card {
        padding: 30px;
    }

    .service-title {
        font-size: 1.6rem;
    }

    .service-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }

    .services-container {
        padding: 0 2rem;
    }

    .services-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card {
        padding: 25px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .service-icon svg {
        width: 28px;
        height: 28px;
    }

    .service-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .service-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .service-features {
        margin-bottom: 30px;
    }

    .service-features li {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .service-button {
        padding: 14px 30px;
        font-size: 0.9rem;
    }

    .wave-border-top,
    .wave-border-bottom {
        height: 40px;
    }

    .wave-border-top svg,
    .wave-border-bottom svg {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 40px 0;
    }

    .services-container {
        padding: 3rem 1rem;
    }

    .services-title {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .service-features li {
        font-size: 0.85rem;
    }

    .service-button {
        padding: 12px 25px;
        font-size: 0.85rem;
    }
}

/*
 * WooCommerce Shop Page Customizations
 * --------------------------------------------------
 */

/* 1. Search Bar Styling */
.shop-search-container {
    margin-bottom: 2em;
    width: 100%;
    max-width: 800px;
    /* Adjust max-width as needed */
    margin-left: auto;
    margin-right: auto;
}

.shop-search-container .woocommerce-product-search {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    /* Ensure form takes full width of container */
}

.shop-search-container .woocommerce-product-search .search-field {
    flex-grow: 1;
    border: none;
    padding: 0.8em 1em;
    font-size: 1rem;
    background-color: #fff;
    color: #333;
    min-width: 0;
}

.shop-search-container .woocommerce-product-search .search-field:focus {
    outline: none;
    box-shadow: none;
}

.shop-search-container .woocommerce-product-search button {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 0 1.5em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.shop-search-container .woocommerce-product-search button:hover {
    background-color: #005f9e;
}

/* 2. Product Title Truncation */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.8em;
    /* 1.6em line-height * 3 lines */
    line-height: 1.6em;
    margin-bottom: 0.5em;
}

/* 3. Sorting Dropdown Styling */
.woocommerce .woocommerce-ordering {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    float: right;
    /* Maintain original position */
}

.woocommerce .woocommerce-ordering select {
    padding: 0.8em 2.5em 0.8em 1em;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    line-height: 1.5;
    font-size: 1rem;
    color: #555;
    width: 100%;
}

.woocommerce .woocommerce-ordering select:focus {
    outline: none;
}

.woocommerce .woocommerce-ordering::after {
    content: '';
    /* Remove the text character */
    border: solid #888;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: translateY(-50%) rotate(45deg);
    -webkit-transform: translateY(-50%) rotate(45deg);
    position: absolute;
    top: 50%;
    right: 1em;
    pointer-events: none;
}

/* Responsive fix for sorting dropdown on mobile */
@media (max-width: 768px) {
    .woocommerce .woocommerce-result-count {
        float: none;
        display: block;
        text-align: center;
        margin-bottom: 1em;
    }

    .woocommerce .woocommerce-ordering {
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1em;
    }
}

/* 4. Active Menu Item Fix */
body.woocommerce-page .main-header-menu .menu-item a[href*="/tienda"] {
    color: #007cba;
    background: rgba(0, 124, 186, 0.1);
}

body.woocommerce-page .main-header-menu .menu-item a[href*="/tienda"]::after {
    width: 80%;
}

/* Ensure 'Inicio' is not active on shop pages */
body.woocommerce-page .main-header-menu .menu-item a[href$="/"] {
    color: #333;
    background: transparent;
}

body.woocommerce-page .main-header-menu .menu-item a[href$="/"]::after {
    width: 0;
}

/* 5. Centered Pagination */
.woocommerce-pagination {
    text-align: center;
}

.woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    justify-content: center;
    border: none;
}

/* Shop Search Bar */
.shop-search-container .woocommerce-product-search {
    width: 100%;
    margin-bottom: 2rem;
    /* Add some space below the search bar */
}

.shop-search-container .search-field {
    width: 100%;
    border-radius: 0.5rem;
    /* Slightly more rounded corners */
    border: 1px solid #d1d5db;
    /* A light gray border */
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.shop-search-container .search-field:focus {
    outline: none;
    border-color: #3b82f6;
    /* Blue border on focus */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Products Loading State */
.products-container.is-loading {
    position: relative;
    min-height: 300px;
    /* Ensure container has height while loading */
}

.products-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.5rem;
    transition: opacity 0.3s ease;
}

.products-loading-overlay::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #d1d5db;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pagination Styles */
.woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 0.5rem;
    /* Space between buttons */
}

.woocommerce-pagination ul.page-numbers li .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px !important;
    /* Fully rounded */
    min-width: 40px;
    height: 40px;
    padding: 0.25rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid #3b82f6;
    color: #374151;
}

.woocommerce-pagination ul.page-numbers li .page-numbers:hover {
    background-color: #f3f4f6;
    color: #000;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.current {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    font-weight: 600;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.dots {
    border: none;
    background: transparent;
}

/* Modern Product Card Styles */
.woocommerce ul.products li.product {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(4, 107, 210, 0.1);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(4, 107, 210, 0.15);
}

.woocommerce ul.products li.product img {
    border-radius: 4px;
}

.woocommerce ul.products li.product .price {
    color: #007cba;
    font-weight: 700;
    font-size: 1.1rem;
}

.woocommerce ul.products li.product .button {
    background-color: #007cba;
    color: #ffffff;
    border-radius: 24px;
    text-align: center;
    padding: 1rem 1rem;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s ease;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #005f9e;
}

.ast-woo-product-category {
    font-size: 0.8rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 0.5em;
    height: 1lh;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Updated Product Title Truncation to 1 line */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Satoshi', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    height: 2lh;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    min-height: auto;
    margin-bottom: 0.5em;
}

/* Reducir el tamaño de la imagen en la página de producto */
.single-product .woocommerce-product-gallery {
    width: 48%;
    flex: 0 0 48%;
    max-width: 48%;
}

@media (max-width: 768px) {
    .single-product .woocommerce-product-gallery {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 2rem;
    }
}

/* Hacer el botón de "Añadir al carrito" más redondeado y atractivo */
.woocommerce div.product form.cart .button {
    border-radius: 16px !important;
    transition: all 0.3s ease;
}

/*
 * Product Categories Page Styles
 */
.page-template-page-categorias .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on desktop */
    gap: 20px;
    list-style: none;
    padding: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-template-page-categorias .products {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns on tablets */
    }
}

@media (max-width: 768px) {
    .page-template-page-categorias .products {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
    }
}

@media (max-width: 480px) {
    .page-template-page-categorias .products {
        grid-template-columns: 1fr;
        /* 1 column on small mobile */
    }
}

.page-template-page-categorias .product-category.product {
    text-align: center;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease-in-out;
}

.page-template-page-categorias .product-category.product:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-template-page-categorias .product-category.product a {
    text-decoration: none;
    color: inherit;
}

.page-template-page-categorias .product-category.product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
}

.page-template-page-categorias .woocommerce-loop-category__title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
}

.page-template-page-categorias .woocommerce-loop-category__title .count {
    font-size: 0.8em;
    font-weight: normal;
    color: #777;
    margin-left: 8px;
}

/*
 * Product Categories Page - Full Width and Styling
 * --------------------------------------------------
 */

/* 1. Make container full-width */
.page-template-page-categorias #primary .ast-container {
    max-width: 100%;
    padding-left: 5rem;
    padding-right: 5rem;
}

@media (max-width: 1024px) {
    .page-template-page-categorias #primary .ast-container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (max-width: 768px) {
    .page-template-page-categorias #primary .ast-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 480px) {
    .page-template-page-categorias #primary .ast-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 2. Category Grid Layout */
.woocommerce-js ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
    list-style: none;
    padding: 0;
}


@media (max-width: 1024px) {
    .woocommerce-js ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .product-category .product {
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .woocommerce-js ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .product-category .product {
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .woocommerce-js ul.products {
        grid-template-columns: 1fr !important;
        align-items: center;
        justify-content: center;
    }

    .product-category .product {
        align-items: center;
        justify-content: center;
    }
}

/* 3. Modern Category Card Styling */
.page-template-page-categorias .product-category.product {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(4, 107, 210, 0.1);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page-template-page-categorias .product-category.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(4, 107, 210, 0.15);
}

.page-template-page-categorias .product-category.product a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-template-page-categorias .product-category.product img {
    border-radius: 4px;
    margin-bottom: 1rem;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    width: 100%;
}

.page-template-page-categorias .woocommerce-loop-category__title {
    font-family: 'Satoshi', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: auto 0 0.5em;
    /* Push title to bottom */
}

.page-template-page-categorias .woocommerce-loop-category__title .count {
    font-size: 0.8em;
    font-weight: normal;
    color: #777;
    margin-left: 0;
    display: block;
    /* Make count appear on a new line */
}

/* Custom styles for electronic product notice */
.electronic-product-notice {
    margin-bottom: 1rem !important;
    /* !mb-4 */
    margin-top: 0 !important;
    /* !mt-0 */
    border-left: 4px solid #f97316 !important;
    /* !border-l-4 !border-orange-500 */
    background-color: #fff7ed !important;
    /* !bg-orange-50 */
    padding: 1rem !important;
    /* !p-4 */
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    /* !gap-3 */
}

.electronic-product-notice-icon {
    height: 1.5rem;
    /* h-6 */
    width: 1.5rem;
    /* w-6 */
    color: #f97316;
    /* text-orange-500 */
    flex-shrink: 0;
}

.electronic-product-notice-text {
    font-size: 0.875rem !important;
    /* !text-sm */
    color: #9a3412 !important;
    /* !text-orange-800 */
}