/* ==============================================
   GiftecCore - Custom UI/UX Improvements
   Enhanced animations, hover effects, and interactions
   ============================================== */

/* ============================================
   1. SMOOTH TRANSITIONS & ANIMATIONS
   ============================================ */

/* Global smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ============================================
   2. PRODUCT CARD ENHANCEMENTS
   ============================================ */

/* Product hover effects */
.single_product {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single_product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.single_product .p_thmb {
    transition: transform 0.5s ease;
}

.single_product:hover .p_thmb {
    transform: scale(1.1);
}

/* View button animation */
.single_product .view {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.single_product:hover .view {
    opacity: 1;
    transform: translateY(-10px);
}

/* ============================================
   3. BUTTON ENHANCEMENTS
   ============================================ */

/* Primary buttons */
button, .btn, .submit1 {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

button:hover, .btn:hover, .submit1:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Button ripple effect */
button::after, .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after, .btn:active::after {
    width: 300px;
    height: 300px;
}

/* ============================================
   4. IMAGE ZOOM ON HOVER
   ============================================ */

/* Product detail image zoom */
.hover_p_img {
    overflow: hidden;
    border-radius: 8px;
}

.hover_p_img img {
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.hover_p_img img:hover {
    transform: scale(1.2);
}

/* Thumbnail hover effect */
.hover_other_img ul li img {
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.hover_other_img ul li img:hover {
    border-color: #007bff;
    transform: scale(1.1);
}

/* ============================================
   5. NAVIGATION & MENU IMPROVEMENTS
   ============================================ */

/* Header menu items */
.left_menu ul li a,
.right_menu ul li {
    transition: all 0.3s ease;
}

.left_menu ul li a:hover {
    color: #007bff;
    transform: translateY(-2px);
}

/* Cart and wishlist icons bounce */
.right_menu ul li:hover {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ============================================
   6. LOADING STATES & FEEDBACK
   ============================================ */

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    z-index: 9999;
}

.notification.success {
    background: #28a745;
    color: white;
}

.notification.error {
    background: #dc3545;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   7. FORM ENHANCEMENTS
   ============================================ */

/* Input focus effects */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    border: 2px solid #ddd;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

/* ============================================
   8. CAROUSEL IMPROVEMENTS
   ============================================ */

/* Hero slider fade effect */
.hero_slider .owl-item {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero_slider .owl-item.active {
    opacity: 1;
}

/* Slider controls styling */
.owl-carousel .owl-nav button {
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.owl-carousel .owl-nav button:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1);
}

/* ============================================
   9. CARD & SHADOW EFFECTS
   ============================================ */

/* Elevated cards */
.product_items_all {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.product_items_all:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   10. RESPONSIVE ENHANCEMENTS
   ============================================ */

/* Better mobile tap targets */
@media (max-width: 768px) {
    button, .btn, a {
        min-height: 44px;
        min-width: 44px;
    }

    .single_product {
        margin-bottom: 20px;
    }
}

/* ============================================
   11. ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link, .skip-to-main {
    position: absolute;
    top: -100px;
    left: 10px;
    background: #007bff;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus, .skip-to-main:focus {
    top: 10px;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* ============================================
   12. CATEGORY MENU ENHANCEMENTS
   ============================================ */

/* Category menu item hover */
.items_menu ul li a {
    position: relative;
    padding: 12px 15px;
    display: block;
    transition: all 0.3s ease;
}

.items_menu ul li a:hover {
    background: rgba(0, 123, 255, 0.05);
    padding-right: 20px;
}

/* Active category highlight */
.items_menu ul li a.active {
    background: #007bff;
    color: white;
    font-weight: bold;
}

/* ============================================
   13. BREADCRUMB IMPROVEMENTS
   ============================================ */

/* Breadcrumb styling */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #007bff;
    text-decoration: underline;
}

.breadcrumb .active_a {
    color: #333;
    font-weight: bold;
}

/* ============================================
   14. WISHLIST & CART BADGE
   ============================================ */

/* Badge pulse animation */
.cart span, .love span {
    animation: pulse 2s ease infinite;
}

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

/* ============================================
   15. FOOTER IMPROVEMENTS
   ============================================ */

/* Footer links hover */
.footer_section a {
    transition: color 0.3s ease;
}

.footer_section a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Newsletter button */
.btn_confirm {
    transition: all 0.3s ease;
}

.btn_confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   16. MICRO-INTERACTIONS
   ============================================ */

/* Heart icon animation */
.heart {
    transition: all 0.3s ease;
    cursor: pointer;
}

.heart:hover {
    color: #dc3545;
    transform: scale(1.2);
}

.heart.active {
    color: #dc3545;
    animation: heartbeat 0.3s ease;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Eye icon hover */
.fa-eye {
    transition: all 0.3s ease;
}

.fa-eye:hover {
    color: #007bff;
    transform: scale(1.2);
}

/* ============================================
   17. MODAL & POPUP IMPROVEMENTS
   ============================================ */

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Modal animation */
.modal {
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   18. SEARCH BAR ENHANCEMENTS
   ============================================ */

/* Search bar focus effect */
.midddle_search {
    transition: all 0.3s ease;
}

.midddle_search:focus-within {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* ============================================
   19. PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Hardware acceleration for animations */
.single_product,
.hero_slider,
.owl-carousel {
    will-change: transform;
    transform: translateZ(0);
}

/* ============================================
   20. CUSTOM SCROLLBAR (WEBKIT)
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================
   END OF CUSTOM IMPROVEMENTS
   ============================================ */
