/**
 * Azas Florais - Custom CSS
 * 
 * @package Astra Child - Azas Florais
 */

/* ==========================================================================
   Additional Custom Styles
   ========================================================================== */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Hide default WooCommerce elements we're overriding */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none;
}

/* Product pagination styling */
.navigation.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.navigation.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.navigation.pagination .page-numbers:hover {
    background-color: #f5f5f0;
}

.navigation.pagination .page-numbers.current {
    background-color: #153867;
    border-color: #153867;
    color: #ffffff;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.woocommerce-message {
    background-color: #153867;
    color: #ffffff;
    border: none;
}

.woocommerce-message::before {
    color: #ffffff;
}

.woocommerce-message a {
    color: #ffffff;
    text-decoration: underline;
}

/* Cart page styling */
.woocommerce-cart-form .shop_table {
    border: 1px solid #e5e5e5;
    border-radius: 1rem;
    overflow: hidden;
}

.woocommerce-cart-form .shop_table th {
    background-color: #f5f5f0;
    font-weight: 500;
}

/* Checkout page styling */
.woocommerce-checkout .form-row label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    outline: none;
    border-color: #153867;
    box-shadow: 0 0 0 2px rgba(21, 56, 103, 0.2);
}

/* My Account page */
.woocommerce-MyAccount-navigation {
    background-color: #f5f5f0;
    border-radius: 1rem;
    padding: 1rem;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0.25rem;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #153867;
    color: #ffffff;
}

/* Loading state */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Quantity input styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Focus states */
.focus-visible:focus {
    outline: 2px solid #153867;
    outline-offset: 2px;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Star rating colors */
.star-rating span::before {
    color: #facc15;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Sale badge styling */
.onsale {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    z-index: 10;
}

/* Price styling */
.price {
    font-weight: 600;
    color: #1a1a1a;
}

.price del {
    color: #737373;
    font-weight: 400;
    margin-right: 0.5rem;
}

.price ins {
    text-decoration: none;
    color: #153867;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f0;
}

::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Testimonial slider improvements */
#testimonialSlider {
    will-change: transform;
}

/* Mobile improvements */
@media (max-width: 768px) {

    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
    }

    .woocommerce-MyAccount-navigation {
        margin-bottom: 1.5rem;
    }
}

/* Print styles */
@media print {

    header,
    footer,
    .mobile-menu,
    .overlay,
    .filter-sidebar {
        display: none !important;
    }

    main {
        padding-top: 0 !important;
    }
}