/**
 * OOm Header Icons Widget Styles
 *
 * Professional styling for the header icons widget
 * @version 1.0.0
 */

.oom-header-icons {
    display: inline-block;
    width: 100%;
}

.oom-header-icons-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.oom-header-icon-item {
    position: relative;
    display: flex;
    align-items: center;
}

.oom-header-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.oom-header-icon-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.oom-header-icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Cart Badge */
.oom-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    background-color: #ff0000;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    border-radius: 50%;
    padding: 2px;
    z-index: 10;
}

/* Cart Badge Animation */
@keyframes cartBadgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.oom-cart-badge.animate {
    animation: cartBadgePulse 0.6s ease-in-out;
}

/* --- Mini Cart Layout & Structure Only (visual styles controlled by Elementor) --- */
/* Mini Cart Popup Styles */
.oom-mini-cart-popup {
    display: none; /* Show via JS on click */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
  }
  
  .oom-mini-cart-popup.active {
    display: block;
  }
  
  .oom-mini-cart-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 1;
  }
  
  .oom-mini-cart-content {
    position: absolute;
    right: 40px;
    top: 80px;
    width: 350px;
    max-width: 95vw;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
  }
  
  .oom-mini-cart-header {
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
  }
  
  .oom-mini-cart-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
  }
  
  .oom-mini-cart-close, .oom-mini-cart-close:focus {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    background-color: unset;
  }
  
  .oom-mini-cart-close:hover {
    color: #e74c3c;
    background-color: unset;
  }
  
  .oom-mini-cart-body {
    color: #444;
    min-height: 120px;
  }

  .oom-mini-cart-items {
    max-height: 350px;
    overflow-y: scroll;
  }
  
  .oom-mini-cart-item {
    display: flex;
    align-items: flex-start;
    border-radius: 8px;
    padding: 10px 0;
  }
  
  .oom-mini-cart-item-image img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
  }
  
  .oom-mini-cart-item-details {
    flex: 1;
  }
  
  .oom-mini-cart-item-details h5 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #222;
  }
  
  .oom-mini-cart-item-details p {
    margin: 0;
    font-size: 0.95rem;
    color: #888;
  }
  
  .oom-mini-cart-item-actions {
    margin-left: 8px;
    margin-top: -3px;
  }
  
  .oom-mini-cart-remove-item {
    background: none;
    color: #bbb;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #bbb;
    border-radius: 50%;
    line-height: 1;
}
  
  .oom-mini-cart-remove-item:hover {
    color: #e74c3c;
    background-color: unset;
  }
  
  .oom-mini-cart-footer {
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .oom-mini-cart-subtotal, .oom-mini-cart-total, .oom-mini-cart-shipping {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
  }

  .oom-mini-cart-qty-controls input {
    min-height: 28px;
    width: 60px;
    padding: 0;
    text-align: center;
}
  
  .oom-mini-cart-actions {
    display: flex;
    gap: 10px;
  }
  
  .oom-mini-cart-btn {
    flex: 1;
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    text-decoration: none;
  }
  
  .oom-mini-cart-btn:hover {
    background: #005bb5;
  }
  
  .oom-mini-cart-empty {
    text-align: center;
    padding: 30px 0;
  }
  
  .oom-mini-cart-empty-icon {
    margin-bottom: 12px;
    color: #e0e0e0;
  }
  
  .oom-mini-cart-empty p {
    color: #888;
    margin-bottom: 16px;
  }
  
  .oom-mini-cart-empty .oom-mini-cart-btn {
    width: auto;
    padding: 10px 24px;
    background: #0073e6;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
  }
  
  .oom-mini-cart-empty .oom-mini-cart-btn:hover {
    background: #005bb5;
  }

/* Print Styles */
@media print {
    .oom-mini-cart-popup {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .oom-mini-cart-overlay {
        background-color: rgba(0, 0, 0, 0.8);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .oom-mini-cart-content,
    .oom-mini-cart-close,
    .oom-mini-cart-btn,
    .oom-mini-cart-remove-item {
        animation: none;
        transition: none;
    }
} 

/* Body class when mini cart is open */
body.oom-mini-cart-open {
    overflow: hidden;
}

/* Search Popup */
.oom-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oom-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.oom-popup-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90vw;
    animation: oom-popup-slide-in 0.3s ease-out;
}

.oom-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.oom-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.oom-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.oom-popup-close:hover {
    background-color: #e0e0e0;
    color: #333333;
}

.oom-popup-close:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.oom-popup-body {
    padding: 24px;
}

.oom-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.oom-search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.oom-search-form input[type="search"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.oom-search-form button {
    padding: 12px 16px;
    background-color: #007cba;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oom-search-form button:hover {
    background-color: #005a87;
}

.oom-search-form button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Popup Animation */
@keyframes oom-popup-slide-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
} 

/* Accessibility */
.oom-header-icon-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.oom-header-icon-link:focus:not(:focus-visible) {
    outline: none;
} 

/* Mini Cart Quantity Controls */
.oom-mini-cart-qty-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 8px 0;
}
.oom-mini-cart-qty-minus,
.oom-mini-cart-qty-plus {
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    color: #333;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.oom-mini-cart-qty-minus:hover,
.oom-mini-cart-qty-plus:hover {
    background: #007cba;
    color: #fff;
}
.oom-mini-cart-qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    background: #fff;
    color: #333;
    padding: 2px 0;
} 
@media(max-width: 600px){
  .oom-mini-cart-content{
    width: 100%;
    max-width: 98%;
    right: 1%;
  }
}