/* ========================================
   MINI-CART STYLES
   ======================================== */

/* ========================================
   CART ICON IN NAVIGATION
   ======================================== */
.krisette-cart-menu-item {
    position: absolute;
    top: 0;
    right: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 100;
}

/* ========================================
   PILL-SHAPED CART BUTTON STYLING
   ======================================== */

.krisette-cart-icon-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 30px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    color: linear-gradient(135deg, #333 0%, #666 100%) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

/* Remove underlines from pseudo-elements */
.krisette-cart-menu-item a.krisette-cart-icon-link::before,
.krisette-cart-menu-item a.krisette-cart-icon-link::after,
.krisette-cart-menu-item a.krisette-cart-icon-link:hover::before,
.krisette-cart-menu-item a.krisette-cart-icon-link:hover::after,
a.krisette-cart-icon-link::before,
a.krisette-cart-icon-link::after,
a.krisette-cart-icon-link:hover::before,
a.krisette-cart-icon-link:hover::after {
    content: none !important;
    display: none !important;
}


.krisette-cart-icon-link:hover {
    background: #222 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(0px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.krisette-cart-icon-link:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}


.krisette-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.krisette-cart-icon svg {
    width: 16px;
    height: 16px;
}

.krisette-cart-count {
    position: absolute !important;
    top: -22px !important;
    right: 10px !important;
    background: #e74c3c !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    border: 2px solid white !important;
}

.krisette-cart-count.has-items {
    transform: scale(1);
}

.krisette-cart-text {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: unset !important;
    text-decoration-style: none !important;
    text-decoration-thickness: 0 !important;
    border-bottom: none !important;
    border-bottom-color: transparent !important;
    border-bottom-style: none !important;
    border-bottom-width: 0 !important;
    background-image: none !important;
}

.krisette-cart-menu-item .krisette-cart-icon-link:hover .krisette-cart-text,
.krisette-cart-menu-item .krisette-cart-text:hover,
.krisette-cart-icon-link:hover .krisette-cart-text,
.krisette-cart-text:hover {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: unset !important;
    text-decoration-style: none !important;
    text-decoration-thickness: 0 !important;
    border-bottom: none !important;
    border-bottom-color: transparent !important;
    border-bottom-style: none !important;
    border-bottom-width: 0 !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* ========================================
   MINIMAL MINI-CART DROPDOWN
   ======================================== */
/* Override GeneratePress link hover underlines */
.krisette-mini-cart a,
.krisette-mini-cart a:hover,
.krisette-mini-cart a:focus,
.krisette-mini-cart a:visited,
.krisette-mini-cart a:active,
.krisette-mini-cart a::before,
.krisette-mini-cart a::after,
.krisette-mini-cart a:hover::before,
.krisette-mini-cart a:hover::after {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: unset !important;
    text-decoration-style: none !important;
    text-decoration-thickness: 0 !important;
    border-bottom: none !important;
    border-bottom-color: transparent !important;
    border-bottom-style: none !important;
    border-bottom-width: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    content: none !important;
}

/* Also target specific elements to ensure no underlines */
.krisette-mini-cart-item-image a,
.krisette-mini-cart-item-image a:hover,
.krisette-mini-cart-item-title a,
.krisette-mini-cart-item-title a:hover {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

.krisette-mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-width: 90vw;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    margin-top: 8px;
    padding-bottom: 0.25rem;
    overflow: visible !important;
}

.krisette-mini-cart.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.krisette-mini-cart::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.krisette-mini-cart-inner {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: visible !important;
}

/* ========================================
   MINIMAL HEADER - LEFT ALIGNED
   ======================================== */
.krisette-mini-cart-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.krisette-mini-cart-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
    text-align: left;
    letter-spacing: 0;
}

.krisette-mini-cart-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    margin-left: auto;
    border-radius: 4px;
}

.krisette-mini-cart-close:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.05);
}

/* ========================================
   MINIMAL CART CONTENT - LEFT ALIGNED
   ======================================== */
.krisette-mini-cart-content {
    padding: 0;
}

.krisette-mini-cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.krisette-mini-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f8f8f8;
    position: relative;
    transition: background-color 0.2s ease;
}

.krisette-mini-cart-item:hover {
    background: #fafafa;
}

.krisette-mini-cart-item:last-child {
    border-bottom: none;
}

.krisette-mini-cart-item.removing {
    opacity: 0.5;
    pointer-events: none;
}

/* ========================================
   MINIMAL PRODUCT IMAGE - LARGER SIZE
   ======================================== */
.krisette-mini-cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f8f8;
    position: relative;
}

.krisette-mini-cart-item-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

.krisette-mini-cart-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* ========================================
   MINIMAL PRODUCT DETAILS - LEFT ALIGNED
   ======================================== */
.krisette-mini-cart-item-details {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.krisette-mini-cart-item-title {
    margin: 0 0 4px 0 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

h4.krisette-mini-cart-item-title {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
}

.krisette-mini-cart-item-title a {
    color: #333;
    text-decoration: none;
    padding: 0 !important;
    margin: 0 !important;
}

.krisette-mini-cart-item-title a:hover {
    color: #000;
    text-decoration: none;
}

.krisette-mini-cart-item-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.krisette-mini-cart-item-meta .quantity {
    color: #333;
    font-size: 12px;
    font-weight: 500;
}

.krisette-mini-cart-item-meta .price {
    font-weight: 500;
    color: #333;
    font-size: 12px;
    text-align: right;
    margin-left: auto;
}

/* ========================================
   ENHANCED REMOVE BUTTON
   ======================================== */
.krisette-mini-cart-item-remove {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
    border-radius: 4px;
}

.krisette-mini-cart-item:hover .krisette-mini-cart-item-remove {
    opacity: 1;
}

.krisette-mini-cart-item-remove:hover {
    color: #999;
    background: rgba(0, 0, 0, 0.05);
}

/* ========================================
   MINIMAL FOOTER - LEFT ALIGNED
   ======================================== */
.krisette-mini-cart-footer {
    padding: 16px 20px 24px 20px;
    border-top: 1px solid #f5f5f5;
    background: white;
    overflow: visible !important;
}

.krisette-mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    padding: 0;
}

.krisette-mini-cart-subtotal strong {
    font-weight: 500;
    color: #333;
}

.krisette-mini-cart-subtotal .amount {
    font-weight: 600;
    color: #333;
    text-align: right;
}

/* ========================================
   ENHANCED BUTTONS WITH BETTER VISUAL CUES
   ======================================== */
.krisette-mini-cart-buttons {
    display: flex;
    gap: 8px;
    padding: 2px 0;
    overflow: visible !important;
}

.krisette-mini-cart-buttons ::after {
    display: flex;
    gap: 8px;
}

.krisette-mini-cart-buttons .button {
    flex: 1;
    text-align: center !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    transition: all 0.2s ease !important;
    border-color: #efefef !important;
    border: 0.5px solid !important;
    position: relative !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
}

.krisette-view-cart {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    color: #666;
}

.krisette-view-cart:hover {
    color: #333;
    background: linear-gradient(180deg, #f5f5f5 0%, #eeeeee 100%) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    text-decoration: none !important;
}

.krisette-view-cart:active {
    background: linear-gradient(180deg, #eeeeee 0%, #e0e0e0 100%) !important;
    transform: translateY(0);
    box-shadow: 0 1px 1px rgba(0,0,0,0.1) inset !important;
}

.krisette-checkout {
    background: linear-gradient(180deg, #3a3a3a 0%, #efefef 100%) !important;
    color: white !important;
    padding-left: 0.25rem !important;
}

.krisette-checkout:hover {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
    text-decoration: none !important;
}

.krisette-checkout:active {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%) !important;
    transform: translateY(0) !important;
    box-shadow: 0 1px 1px rgba(0,0,0,0.) inset !important;
}

/* ========================================
   QUANTITY CONTROLS
   ======================================== */
.krisette-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.krisette-quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.krisette-quantity-btn:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.krisette-quantity-btn:active {
    transform: scale(0.95);
}

.krisette-quantity-display {
    min-width: 30px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

/* ========================================
   EMPTY CART STATE
   ======================================== */
.krisette-mini-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    margin: 0;
    font-size: 14px;
}

.krisette-return-shop {
    display: block;
    width: calc(100% - 40px);
    text-align: center;
    padding: 12px 16px;
    margin: 0 20px 16px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.krisette-return-shop:hover {
    background: #000;
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */
.krisette-mobile-cart-button {
    display: none;
    margin-left: 15px;
}

.krisette-mobile-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

.krisette-mobile-cart-link:hover {
    background: rgba(0, 0, 0, 0.1);
}

.krisette-mobile-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #333;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.krisette-mobile-cart-count.has-items {
    transform: scale(1);
}

/* ========================================
   NOTIFICATIONS
   ======================================== */
.krisette-cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    font-size: 13px;
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 280px;
}

.krisette-cart-notification.show {
    transform: translateX(0);
}

.krisette-cart-notification.success {
    background: #27ae60;
}

.krisette-cart-notification.error {
    background: #e74c3c;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .krisette-cart-menu-item {
        display: none;
    }
    
    .krisette-mobile-cart-button {
        display: block;
    }
    
    .krisette-mini-cart {
        width: 320px;
        right: -10px;
    }
    
    .krisette-mini-cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .krisette-mini-cart-item {
        padding: 14px 16px;
    }
    
    .krisette-mini-cart-header,
    .krisette-mini-cart-footer {
        padding: 14px 16px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .krisette-cart-menu-item {
        margin-left: 15px;
    }
    
    .krisette-cart-text {
        display: none;
    }
    
    .krisette-mini-cart {
        width: 340px;
    }
}