/* MyShop Premium UI Enhancements */

/* Animations */
.transition-all {
    transition: all 0.3s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-zoom-img img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-zoom-img:hover img {
    transform: scale(1.1);
}

.hover-glow-white:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Glassmorphism */
.hero-glass-overlay .wp-block-cover__inner-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Base Utility */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

/* Card Styles */
.service-card-premium {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #00d084;
}

.category-card-premium {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.category-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
}

/* Gradient Backgrounds */
.featured-categories-gradient {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f4f8 100%);
}

/* Utility spacing */
.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.opacity-90 {
    opacity: 0.9;
}

/* Shop Pages (Archive & Category) */
.shop-banner {
    background: linear-gradient(135deg, #00d084 0%, #00a36c 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 208, 132, 0.2);
}

.shop-banner h1 {
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.filter-sidebar-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 2rem;
}

.filter-sidebar-card .widget-title {
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem !important;
}

.shop-controls {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #edf2f7;
}

.product-item .card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-item .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 208, 132, 0.15);
}

.product-item .product-price {
    font-weight: 700;
    font-size: 1.15rem;
    color: #e63946 !important;
}

.product-item .card-title a {
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1rem;
}

.product-item .card-title a:hover {
    color: #00d084 !important;
}

.btn-primary.add-to-cart {
    background: #00d084;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
}

.btn-primary.add-to-cart:hover {
    background: #00a36c;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 208, 132, 0.3);
}

.btn-outline-secondary.rounded-pill:hover {
    background-color: #f8fafc;
    color: #00d084;
    border-color: #00d084;
}

/* Fix image aspect ratio for products (Related & Grid) */
.product-item .news-thumb,
.product-item .news-thumb img,
.product-item .card-img-top,
.product-item .hover-zoom-img img {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    height: auto !important;
    width: 100% !important;
}

.product-item .news-thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

/* Checkout Page Styles */
.checkout-section-title {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.checkout-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #00d084;
    border-radius: 2px;
}

.checkout-cart-item {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.checkout-cart-item:hover {
    border-color: #00d084;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.checkout-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.quantity-controls-checkout .btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.8rem;
}

.quantity-input-checkout {
    width: 60px !important;
    text-align: center;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    font-weight: 600;
    margin: 0 5px;
    padding: 0.375rem 0.25rem;
}

/* Hide number input spinners (arrows) */
.quantity-input-checkout::-webkit-outer-spin-button,
.quantity-input-checkout::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.quantity-input-checkout[type=number] {
    -moz-appearance: textfield;
}

.checkout-form-premium .form-control {
    border-radius: 10px;
    border: 1px solid #edf2f7;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.checkout-form-premium .form-control:focus {
    border-color: #00d084;
    box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.1);
}

.checkout-summary-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #edf2f7;
}

.btn-place-order {
    background: linear-gradient(135deg, #00d084 0%, #00a36c 100%);
    border: none;
    padding: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-place-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 208, 132, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-glass-overlay .wp-block-cover__inner-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .shop-banner {
        padding: 2rem 1rem;
    }
}