/* KPJ Multi-Store Cart Popup Styles */

.kpj-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.kpj-popup-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    margin: 20px;
    overflow: hidden;
    animation: kpj-popup-slide-in 0.3s ease-out;
}

@keyframes kpj-popup-slide-in {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.kpj-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px 20px;
    text-align: center;
}

.kpj-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.kpj-popup-body {
    padding: 25px 30px;
    text-align: center;
}

.kpj-popup-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.kpj-popup-footer {
    padding: 0 30px 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.kpj-popup-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.kpj-popup-yes {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    order: 1; /* Position on the left */
}

.kpj-popup-yes:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.kpj-popup-no {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    order: 2; /* Position on the right */
}

.kpj-popup-no:hover {
    background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
}

.kpj-popup-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .kpj-popup-content {
        width: 95%;
        margin: 10px;
    }
    
    .kpj-popup-header {
        padding: 20px 20px 15px;
    }
    
    .kpj-popup-header h3 {
        font-size: 16px;
    }
    
    .kpj-popup-body {
        padding: 20px;
    }
    
    .kpj-popup-body p {
        font-size: 14px;
    }
    
    .kpj-popup-footer {
        padding: 0 20px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .kpj-popup-btn {
        width: 100%;
        min-width: auto;
        padding: 15px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .kpj-popup-content {
        width: 98%;
        margin: 5px;
    }
    
    .kpj-popup-header {
        padding: 15px 15px 10px;
    }
    
    .kpj-popup-body {
        padding: 15px;
    }
    
    .kpj-popup-footer {
        padding: 0 15px 15px;
    }
}

/* Loading state for buttons */
.kpj-popup-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.kpj-popup-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: kpj-spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes kpj-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.kpj-popup-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .kpj-popup-overlay {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .kpj-popup-content {
        border: 2px solid #000;
    }
    
    .kpj-popup-btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .kpj-popup-content {
        animation: none;
    }
    
    .kpj-popup-btn {
        transition: none;
    }
    
    .kpj-popup-btn:hover {
        transform: none;
    }
}

/* ========================================
   GRAB FOOD INSPIRED STYLES
   ======================================== */

.kpj-top-seller-section {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    padding: 20px 0;
}

.kpj-category-section {
    margin-bottom: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

.kpj-category-section:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.kpj-category-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    padding: 20px 16px 16px;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
    display: block;
    background: #fff;
    position: relative;
}

.kpj-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: #e5e7eb;
}

.kpj-top-seller-products {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
}

.kpj-product-item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 0;
    padding: 16px;
    box-shadow: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}

.kpj-product-item:last-child {
    border-bottom: none;
}

.kpj-product-item:hover {
    background: #f9fafb;
    box-shadow: none;
    transform: none;
}

.kpj-product-image {
    flex-shrink: 0;
    width: 30%;
    max-width: 120px;
    min-width: 80px;
    aspect-ratio: 1;
    margin-right: 16px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
}

.kpj-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.kpj-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.kpj-product-info {
    flex: 1;
    min-width: 0;
    margin-right: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.kpj-product-name {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 6px 0;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

.kpj-product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kpj-product-name a:hover {
    color: #1e3a8a;
}

.kpj-product-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0 0 8px 0;
    font-weight: 400;
}

.kpj-product-price {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0;
}

.kpj-product-price .amount {
    font-weight: 600;
}

.kpj-product-action {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    align-self: flex-start;
    margin-top: 0;
}

.kpj-add-to-cart-btn {
    width: 36px;
    height: 36px;
    background: #1e3a8a;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: 400;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
    flex-shrink: 0;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    padding: 0;
    line-height: 1;
}

.kpj-add-to-cart-btn:hover {
    background: #1e40af;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.kpj-add-to-cart-btn:active {
    transform: scale(0.95);
}

.kpj-add-icon {
    line-height: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: inherit;
}

.kpj-out-of-stock {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Loading state for add to cart button */
.kpj-add-to-cart-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.kpj-add-to-cart-btn.loading .kpj-add-icon {
    animation: kpj-spin 1s linear infinite;
}

/* Responsive Design for Grab Food Style */
@media (max-width: 768px) {
    .kpj-top-seller-section {
        padding: 16px 0;
    }
    
    .kpj-category-title {
        font-size: 18px;
        padding: 16px 12px 12px;
    }
    
    .kpj-category-title::after {
        left: 12px;
        right: 12px;
    }
    
    .kpj-product-item {
        padding: 12px;
    }
    
    .kpj-product-image {
        width: 30%;
        max-width: 100px;
        min-width: 70px;
        margin-right: 12px;
    }
    
    .kpj-product-info {
        margin-right: 12px;
    }
    
    .kpj-product-name {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .kpj-product-description {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .kpj-product-price {
        font-size: 16px;
    }
    
    .kpj-add-to-cart-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
    }
}

@media (max-width: 480px) {
    .kpj-top-seller-section {
        padding: 12px 0;
    }
    
    .kpj-category-title {
        font-size: 16px;
        padding: 12px 8px 8px;
    }
    
    .kpj-category-title::after {
        left: 8px;
        right: 8px;
    }
    
    .kpj-product-item {
        padding: 10px 8px;
    }
    
    .kpj-product-image {
        width: 30%;
        max-width: 80px;
        min-width: 60px;
        margin-right: 10px;
    }
    
    .kpj-product-info {
        margin-right: 10px;
    }
    
    .kpj-product-name {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .kpj-product-description {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .kpj-product-price {
        font-size: 15px;
    }
    
    .kpj-add-to-cart-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
        min-width: 28px;
        min-height: 28px;
        max-width: 28px;
        max-height: 28px;
    }
}

/* Elementor compatibility */
.elementor-widget-container .kpj-top-seller-section {
    width: 100%;
}

.elementor-section .kpj-product-item {
    max-width: none;
}

/* ========================================
   GRAB FOOD STYLE PRODUCT POPUP
   ======================================== */

.kpj-product-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.kpj-product-popup-content {
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: kpj-popup-slide-up 0.3s ease-out;
}

@keyframes kpj-popup-slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.kpj-product-popup-header {
    position: relative;
    background: #f8fafc;
    padding: 20px;
    text-align: center;
}

.kpj-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center;
}

.kpj-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.kpj-product-popup-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.kpj-product-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kpj-product-popup-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.kpj-product-popup-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
    text-align: center;
}

.kpj-product-popup-price {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0 0 12px 0;
    text-align: center;
}

.kpj-product-popup-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 20px 0;
    text-align: center;
}

.kpj-product-popup-form {
    margin-top: 20px;
}

.kpj-product-variations,
.kpj-product-addons {
    margin-bottom: 20px;
}

.kpj-product-variations h4,
.kpj-product-addons h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.kpj-variation-group,
.kpj-addon-group {
    margin-bottom: 15px;
}

.kpj-variation-group label,
.kpj-addon-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.kpj-variation-group select,
.kpj-addon-group select,
.kpj-addon-group input[type="text"],
.kpj-addon-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    min-height:55px !important;
}

/* WooCommerce Product Add-Ons Styling */
.kpj-addon-group {
    margin-bottom: 24px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.kpj-addon-group .wc-pao-addon-wrap {
    margin-bottom: 0;
}

.kpj-addon-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.kpj-required {
    color: #ef4444;
    font-weight: 600;
    margin-left: 2px;
}

.kpj-addon-description {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.5;
}

/* Select dropdowns */
.kpj-addon-group .wc-pao-addon-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #374151;
    transition: all 0.2s ease;
    font-weight: 500;
}

.kpj-addon-group .wc-pao-addon-select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background: #fff;
}

.kpj-addon-group .wc-pao-addon-select:hover {
    border-color: #1e3a8a;
}

/* Radio buttons - Enhanced styling */
.kpj-addon-group .wc-pao-addon-wrap > div {
    margin-bottom: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.kpj-addon-group .wc-pao-addon-wrap > div:hover {
    border-color: #1e3a8a;
    background: #f8fafc;
}

.kpj-addon-group .wc-pao-addon-wrap > div:has(input:checked) {
    border-color: #1e3a8a;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.kpj-addon-group .wc-pao-addon-radio {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #1e3a8a;
    cursor: pointer;
}

.kpj-addon-group .wc-pao-addon-wrap label {
    font-size: 15px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 500;
    flex: 1;
}

.kpj-addon-group .wc-pao-addon-price {
    color: #1e3a8a;
    font-weight: 600;
    margin-left: auto;
    font-size: 14px;
}

/* Checkboxes - Enhanced styling */
.kpj-addon-group .wc-pao-addon-checkbox {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #1e3a8a;
    cursor: pointer;
}

/* Custom styling for radio button containers */
.kpj-addon-group .wc-pao-addon-wrap > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpj-addon-group .wc-pao-addon-wrap > div label {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Custom text inputs */
.kpj-addon-group .wc-pao-addon-field[type="text"],
.kpj-addon-group .wc-pao-addon-field[type="number"],
.kpj-addon-group .wc-pao-addon-field[type="email"],
.kpj-addon-group .wc-pao-addon-field[type="tel"],
.kpj-addon-group .wc-pao-addon-field[type="url"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #374151;
}

.kpj-addon-group .wc-pao-addon-field[type="text"]:focus,
.kpj-addon-group .wc-pao-addon-field[type="number"]:focus,
.kpj-addon-group .wc-pao-addon-field[type="email"]:focus,
.kpj-addon-group .wc-pao-addon-field[type="tel"]:focus,
.kpj-addon-group .wc-pao-addon-field[type="url"]:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Textarea */
.kpj-addon-group .wc-pao-addon-field[type="textarea"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #374151;
    min-height: 80px;
    resize: vertical;
}

.kpj-addon-group .wc-pao-addon-field[type="textarea"]:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* File upload */
.kpj-addon-group .wc-pao-addon-file {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #374151;
}

/* Date picker */
.kpj-addon-group .wc-pao-addon-date {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #374151;
}

/* Custom price */
.kpj-addon-group .wc-pao-addon-custom-price {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #374151;
}

/* Input multiplier */
.kpj-addon-group .wc-pao-addon-input-multiplier {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #374151;
}

/* Image swatches */
.kpj-addon-group .wc-pao-addon-image {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kpj-addon-group .wc-pao-addon-image input[type="radio"] {
    display: none;
}

.kpj-addon-group .wc-pao-addon-image label {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.kpj-addon-group .wc-pao-addon-image input[type="radio"]:checked + label {
    border-color: #1e3a8a;
    background-color: #f8fafc;
}

.kpj-addon-group .wc-pao-addon-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4px;
}

.kpj-addon-group .wc-pao-addon-image .wc-pao-addon-image-label {
    font-size: 12px;
    text-align: center;
    color: #374151;
}

.kpj-addon-group .wc-pao-addon-image .wc-pao-addon-price {
    font-size: 11px;
    color: #1e3a8a;
    font-weight: 500;
    margin-top: 2px;
}

.kpj-product-quantity {
    margin-bottom: 20px;
}

.kpj-product-quantity label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.kpj-quantity-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.kpj-quantity-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 50% !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.3);
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center;
}

.kpj-quantity-btn:hover {
    background: #1e40af;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

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

/* Force circular buttons - override any theme styles */
.kpj-popup-close,
.kpj-quantity-btn {
    aspect-ratio: 1 !important;
    border-radius: 50% !important;
    overflow: hidden;
    box-sizing: border-box;
}

/* Ensure button content is centered */
.kpj-popup-close span,
.kpj-quantity-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.kpj-quantity-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    transition: all 0.2s ease;
}

.kpj-quantity-input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.kpj-quantity-input:hover {
    border-color: #1e3a8a;
}

.kpj-product-popup-footer {
    background: #fff;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.kpj-product-total-price {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.kpj-total-amount {
    color: #1e3a8a;
    font-size: 18px;
}

.kpj-add-to-basket-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.kpj-add-to-basket-btn:hover {
    background: #1e40af;
}

.kpj-add-to-basket-btn:disabled,
.kpj-add-to-basket-btn.disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: #d1d5db;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.kpj-add-to-basket-btn:disabled:hover,
.kpj-add-to-basket-btn.disabled:hover {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    transform: none;
    box-shadow: none;
}

/* Responsive Design for Popup */
@media (max-width: 768px) {
    .kpj-product-popup-content {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
    }
    
    .kpj-product-popup-header {
        padding: 15px;
    }
    
    .kpj-product-popup-body {
        padding: 15px;
    }
    
    .kpj-product-popup-footer {
        padding: 15px;
    }
    
    .kpj-product-popup-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .kpj-product-popup-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .kpj-product-popup-header {
        padding: 12px;
    }
    
    .kpj-product-popup-body {
        padding: 12px;
    }
    
    .kpj-product-popup-footer {
        padding: 12px;
        flex-direction: column;
        gap: 12px;
    }
    
    .kpj-add-to-basket-btn {
        width: 100%;
    }
}

/* KPJ Opening Hours Styles - Modern & Minimalistic */

.kpj-opening-hours {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 400;
}

/* Default Style - Modern Minimal */
.kpj-opening-hours-default {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.kpj-opening-hours-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    text-align: left;
    letter-spacing: -0.025em;
}

.kpj-store-status {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.025em;
}

.kpj-status-open {
    background: #ecfdf5;
    color: #065f46;
}

.kpj-status-closed {
    background: #fef2f2;
    color: #991b1b;
}

.kpj-status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.kpj-status-open .kpj-status-indicator {
    background: #10b981;
}

.kpj-status-closed .kpj-status-indicator {
    background: #ef4444;
}

.kpj-opening-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.kpj-day-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.kpj-day-row:last-child {
    border-bottom: none;
}

.kpj-day-row:hover {
    background: #f9fafb;
    margin: 0 -24px;
    padding: 12px 24px;
    border-radius: 8px;
}

.kpj-day-today {
    background: #f0f9ff;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 -16px;
    font-weight: 600;
    color: #0369a1;
    border-left: 3px solid #0ea5e9;
}

.kpj-day-name {
    font-weight: 500;
    color: #374151;
    font-size: 15px;
}

.kpj-day-hours {
    font-weight: 500;
    color: #111827;
    font-size: 15px;
}

.kpj-day-closed {
    color: #9ca3af;
    font-weight: 400;
}

/* Compact Style - Ultra Minimal */
.kpj-opening-hours-compact {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.kpj-opening-hours-compact .kpj-store-status {
    margin-bottom: 16px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 20px;
}

.kpj-today-hours {
    text-align: left;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    border-left: 2px solid #64748b;
}

/* Modern Style - Contemporary Design */
.kpj-opening-hours-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    color: #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.kpj-opening-hours-modern .kpj-opening-hours-title {
    color: #0f172a;
    text-align: left;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.kpj-opening-hours-modern .kpj-store-status {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.kpj-opening-hours-modern .kpj-status-open {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.kpj-opening-hours-modern .kpj-status-closed {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.kpj-opening-hours-modern .kpj-status-icon {
    font-size: 14px;
    margin-right: 8px;
}

.kpj-opening-hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.kpj-day-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.kpj-day-item:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.kpj-day-item.kpj-day-today {
    background: #f0f9ff;
    border-color: #0ea5e9;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.1), 0 2px 4px -1px rgba(14, 165, 233, 0.06);
}

.kpj-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.kpj-day-name {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.kpj-today-badge {
    background: #0ea5e9;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpj-day-hours {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

.kpj-day-closed {
    color: #9ca3af;
    font-weight: 400;
}

/* Responsive Design for Opening Hours */
@media (max-width: 768px) {
    .kpj-opening-hours-default,
    .kpj-opening-hours-compact {
        padding: 20px;
        border-radius: 12px;
    }
    
    .kpj-opening-hours-modern {
        padding: 24px;
        border-radius: 16px;
    }
    
    .kpj-opening-hours-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .kpj-day-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 16px 0;
    }
    
    .kpj-day-row:hover {
        margin: 0 -20px;
        padding: 16px 20px;
    }
    
    .kpj-day-today {
        margin: 0 -20px;
        padding: 16px 20px;
    }
    
    .kpj-opening-hours-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .kpj-store-status {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .kpj-opening-hours-default,
    .kpj-opening-hours-compact {
        padding: 16px;
        border-radius: 10px;
    }
    
    .kpj-opening-hours-modern {
        padding: 20px;
        border-radius: 14px;
    }
    
    .kpj-opening-hours-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .kpj-store-status {
        font-size: 12px;
        padding: 5px 10px;
        margin-bottom: 16px;
    }
    
    .kpj-day-item {
        padding: 12px;
    }
    
    .kpj-day-name {
        font-size: 13px;
    }
    
    .kpj-day-hours {
        font-size: 13px;
    }
    
    .kpj-day-row {
        padding: 12px 0;
    }
    
    .kpj-day-row:hover {
        margin: 0 -16px;
        padding: 12px 16px;
    }
    
    .kpj-day-today {
        margin: 0 -16px;
        padding: 12px 16px;
    }
}

/* High contrast mode support for Opening Hours */
@media (prefers-contrast: high) {
    .kpj-opening-hours {
        border-width: 2px;
    }
    
    .kpj-day-row {
        border-bottom-width: 2px;
    }
    
    .kpj-store-status {
        border-width: 2px;
    }
}

/* Reduced motion support for Opening Hours */
@media (prefers-reduced-motion: reduce) {
    .kpj-day-item {
        transition: none;
    }
    
    .kpj-day-item:hover {
        transform: none;
    }
}

/* Store Closed Styles for Top Seller Section */
.kpj-top-seller-section.kpj-store-closed {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.kpj-store-closed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    border-radius: 8px;
}

.kpj-store-closed-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #6c757d;
    max-width: 300px;
    width: 90%;
}

.kpj-add-to-cart-btn.kpj-disabled {
    background: #6c757d !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.kpj-add-to-cart-btn.kpj-disabled:hover {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

.kpj-add-to-cart-btn.kpj-disabled .kpj-add-icon {
    opacity: 0.5;
}

/* Responsive Design for Store Closed State */
@media (max-width: 768px) {
    .kpj-store-closed-message {
        padding: 12px 20px;
        font-size: 14px;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .kpj-store-closed-message {
        padding: 10px 16px;
        font-size: 13px;
        max-width: 200px;
    }
}

/* Today Only Opening Hours Style */
.kpj-opening-hours-today-only {
    display: block;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 400;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.kpj-opening-hours-today-only:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.kpj-today-hours-link {
    text-decoration: none !important;
    color: #374151;
    font-size: 15px;
    line-height: 1.4;
    padding: 0;
    display: block;
    transition: color 0.2s ease;
    border-radius: 0;
    cursor: pointer;
}

.kpj-today-hours-link:hover {
    color: #1f2937;
    text-decoration: none !important;
}

.kpj-today-hours-link:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
    text-decoration: none !important;
}

.kpj-today-hours-link strong {
    font-weight: 700;
    color: #333333;
}

.kpj-today-hours-link {
    color: #666666;
}

.kpj-status-inline {
    font-size: 0.9em;
    color: #666666;
    font-weight: 400;
    margin-left: 8px;
    font-style: normal;
}

/* Popup Styles for Opening Hours */
.kpj-opening-hours-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    animation: kpj-popup-fade-in 0.3s ease-out;
}

@keyframes kpj-popup-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.kpj-opening-hours-popup-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 450px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: kpj-popup-slide-up 0.3s ease-out;
}

@keyframes kpj-popup-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kpj-opening-hours-popup-content .kpj-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.kpj-opening-hours-popup-content .kpj-popup-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.kpj-opening-hours-popup-content .kpj-popup-close:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Responsive Design for Today Only Opening Hours */
@media (max-width: 768px) {
    .kpj-today-hours-link {
        font-size: 14px;
        padding: 6px 0;
    }
    
    .kpj-opening-hours-popup-content {
        padding: 24px 20px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .kpj-today-hours-link {
        font-size: 13px;
        padding: 4px 0;
    }
    
    .kpj-opening-hours-popup-content {
        padding: 20px 16px;
        border-radius: 10px;
        width: 95vw;
    }
    
    .kpj-opening-hours-popup-content .kpj-popup-close {
        top: 12px;
        right: 12px;
        font-size: 20px;
        width: 28px;
        height: 28px;
    }
} 