@import 'theme.min.css';
@import 'firago.css';
@import 'lari.css';

body {
    font: normal normal 400 0.875rem/1.5rem 'FiraGO Book', sans-serif;
    overflow-x: hidden;
}

.active-heart {
    background-color: #0aad0a !important;
    color: white !important;
}

.autocomplete-items {
    position: absolute;
    top: 50px;
    width: 100%;
    border-top: none;
    background: var(--fc-body-bg);
    z-index: 1000;
    border-radius: 0 0 var(--fc-border-radius) var(--fc-border-radius);
    box-shadow: var(--fc-box-shadow);
    overflow: hidden;
    font-size: var(--fc-body-font-size);
    font-weight: var(--fc-body-font-weight);
    max-height: 500px;
    overflow-y: auto;
}

.autocomplete-items div {
    padding: 0.35rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--fc-border-color);
    transition: background 0.3s ease;
    color: var(--fc-body-color);
}

.autocomplete-items div:last-child {
    border-bottom: none;
}

.autocomplete-items div:hover {
    background-color: var(--fc-gray-100);
}

.cke_notification_warning {
    display: none !important;
}

/* Delivery Tabs */
.nav-pills .nav-link.inactive-tab {
    text-decoration: line-through;
}
.nav-pills .nav-link img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 8px;
}

/* მხოლოდ ამ რიგში არსებულ ბარათებზე */
.row .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.row .card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* ბარათში არსებული ღილაკებისთვის */
.row .card .btn-success {
    border-radius: 8px;
    transition: background-color 0.15s ease, transform 0.12s ease;
}
.row .card .btn-success:hover {
    background-color: #28a745;
    transform: scale(1.05);
}

.pac-container {
    z-index: 99999;
}

.btn-action {
    cursor: pointer;
}

/* Selectable cards */
.selectable-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.selectable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #dee2e6;
}

/* Selected card styling */
.selectable-card.selected {
    border-color: #28a745;
    background-color: #f8fff9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

/* Checkbox styling */
.selected-checkbox {
    z-index: 5;
}

.delivery-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    background-color: white;
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Green checkbox when selected */
.selectable-card.selected .delivery-checkbox {
    background-color: #28a745;
    border-color: #28a745;
    opacity: 1;
}

.selectable-card.selected .delivery-checkbox:checked {
    background-color: #28a745;
    border-color: #28a745;
}

/* Custom checkmark */
.selectable-card.selected .delivery-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* More readable disabled card styling */
.disabled-card {
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
    border: 2px solid #e9ecef;
    background-color: #fdfdfd;
}

/* Lighter disabled overlay for better readability */
.disabled-overlay {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(0.5px);
    z-index: 10;
    border-radius: 0.375rem;
    animation: fadeIn 0.3s ease;
}

/* Smaller disabled badge */
.small-disabled-badge {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.small-disabled-badge i {
    font-size: 0.7rem;
}

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

/* Keep disabled content very readable */
.disabled-card .bg-light {
    filter: none;
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
}

.disabled-card .card-body {
    opacity: 1;
}

.disabled-card .card-title {
    color: #495057;
}

.disabled-card .card-text {
    color: #6c757d !important;
}

/* Keep image slightly desaturated but readable */
.disabled-card img {
    filter: grayscale(20%) brightness(0.95);
}

.hero-banner {
    background: url(https://delivery-shop.nyc3.cdn.digitaloceanspaces.com/settings/1747041809-bb405e13-8d0b-4963-b22f-45cbd2935b75.webp)
        center/cover no-repeat;
    min-height: 420px;
}

@media (min-width: 992px) {
    .hero-banner {
        min-height: 420px;
    }
}
@media (max-width: 767.98px) {
    .hero-banner {
        display: none;
    }
}

.input-spinner {
    display: flex;
    align-items: stretch;
}

.quantity-field {
    -moz-appearance: textfield;
    appearance: textfield;
    width: 60px;
    text-align: center;
    border-left: none;
    border-right: none;
}

.quantity-field::-webkit-inner-spin-button,
.quantity-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    vertical-align: middle;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-circle"><circle cx="12" cy="12" r="10" stroke-dasharray="63" stroke-dashoffset="21"><animateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="2s" repeatCount="indefinite"/><animate attributeName="stroke-dashoffset" dur="8s" repeatCount="indefinite" keyTimes="0; 0.5; 1" values="-16; -47; -16" calcMode="spline" keySplines="0.4 0 0.2 1; 0.4 0 0.2 1"/></circle></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

.alert-sm {
    --fc-alert-padding-x: 0.7rem;
    --fc-alert-padding-y: 0.7rem;
}

.tier-active .tier-price {
    animation: blink-animation 0.8s step-start infinite;
}
.tier-active .tier-label {
    border: 2px solid currentColor;
}
@keyframes blink-animation {
    50% {
        opacity: 0;
    }
}

.product-pricing-card .tier-retail,
.product-pricing-card .tier-semi,
.product-pricing-card .tier-wholesale {
    min-width: 90px;
    transition: all 0.15s ease-in-out;
}

.product-pricing-card .tier-label {
    border-radius: 0.5rem;
}

.product-pricing-card .tier-active {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.35);
    transform: translateY(-2px);
    border-radius: 0.75rem;
    background-color: rgba(248, 249, 250, 0.7);
}

.product-pricing-card .total-price {
    font-weight: 700;
}

.product-pricing-card .quantity-wrapper .form-input {
    max-width: 70px;
    text-align: center;
}
