/* Checkout step1 accordion and form spacing */
.accordion-item {
    border: 1px solid rgba(122, 135, 105, 0.3);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}
.accordion-button {
    background: rgba(122, 135, 105, 0.1);
    font-weight: 500;
    color: #5f6d51;
}
.accordion-button:not(.collapsed) {
    background: rgba(122, 135, 105, 0.2);
    color: #5f6d51;
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(122, 135, 105, 0.25);
    border-color: #7a8769;
}
.accordion-button::after {
    filter: hue-rotate(70deg) saturate(0.5);
}
.accordion-body {
    background: rgba(255, 255, 255, 0.7);
}
@media (max-width: 768px) {
    #billing-fields .row, #shipping-fields .row {
        flex-direction: column;
    }
    .accordion-item {
        margin-bottom: 0.5rem;
    }
}
/**Checkout CSS*/
.progress-checkout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.progress-checkout::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.step.active .step-number {
    background-color: #7a8769;
    color: white;
}

.step.active .step-title {
    color: #7a8769;
}

.step.completed .step-number {
    background-color: #5f6d51;
    color: white;
}

.step.completed .step-title {
    color: #5f6d51;
}

.order-items {
    max-height: 300px;
    overflow-y: auto;
}

.pricing-summary {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
}

.form-check-input:checked {
    background-color: #7a8769;
    border-color: #7a8769;
}

.is-valid {
    border-color: #7a8769 !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.position-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
}

@media (max-width: 991.98px) {
    .position-sticky {
        position: relative !important;
    }

    .progress-checkout {
        margin: 1rem 0;
    }

    .step-title {
        font-size: 0.75rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
    }
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Primary button με custom brand color */
.btn-primary {
    background-color: #7a8769;
    border-color: #7a8769;
}

.btn-primary:hover {
    background-color: #6b7a5c;
    border-color: #5f6d51;
}

.btn-primary:active,
.btn-primary:focus {
    background-color: #5f6d51;
    border-color: #546147;
    box-shadow: 0 0 0 0.25rem rgba(122, 135, 105, 0.5);
}

/* Success button με custom brand color */
.btn-success {
    background-color: #7a8769;
    border-color: #7a8769;
}

.btn-success:hover {
    background-color: #6b7a5c;
    border-color: #5f6d51;
}

.btn-success:active,
.btn-success:focus {
    background-color: #5f6d51;
    border-color: #546147;
    box-shadow: 0 0 0 0.25rem rgba(122, 135, 105, 0.5);
}

/* Outline Primary button */
.btn-outline-primary {
    color: #7a8769;
    border-color: #7a8769;
}

.btn-outline-primary:hover {
    background-color: #7a8769;
    border-color: #7a8769;
    color: #fff;
}

.btn-outline-primary:active,
.btn-outline-primary:focus {
    background-color: #6b7a5c;
    border-color: #5f6d51;
    box-shadow: 0 0 0 0.25rem rgba(122, 135, 105, 0.5);
}

/* Form check input */
.form-check-input:checked {
    background-color: #7a8769;
    border-color: #7a8769;
}

.form-check-input:focus {
    border-color: #7a8769;
    box-shadow: 0 0 0 0.25rem rgba(122, 135, 105, 0.25);
}

.text-danger {
    color: #dc3545 !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.alert-info {
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}

.form-check-label {
    cursor: pointer;
}

.form-check-input {
    cursor: pointer;
}

/* Custom styles for payment methods */
.form-check {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.form-check:hover {
    border-color: #7a8769;
    background-color: #f8f9fa;
}

.form-check input[type="radio"]:checked + label {
    color: #7a8769;
}

.form-check input[type="radio"]:checked ~ label strong {
    color: #7a8769;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ενοποιημένο style για price-slider σε shop & category */
#price-slider .noUi-base {
    background: transparent;
    height: 12px;
}
#price-slider .noUi-connect {
    background: linear-gradient(90deg, #0a7070 0%, #00c6ff 100%);
    border-radius: 10px;
    transition: background 0.3s, left 0.3s, width 0.3s;
}

#price-slider .noUi-handle {
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0a7070;
    box-shadow: 0 2px 8px rgba(10,112,112,0.12);
    width: 20px;
    height: 20px;
    top: -4px;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#price-slider .noUi-handle:focus,
#price-slider .noUi-handle:hover {
    border-color: #0a7070;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.15);
}
#price-slider .noUi-target {
    background: linear-gradient(90deg, #e9ecef 0%, #f5f7fa 100%);
    border-radius: 10px;
    border: 1.5px solid #dee2e6;
    height: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
#price-slider {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 2px;
    margin-right: 2px;
    height: 16px;
}
#price-slider .noUi-tooltip {
    background: #444343;
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    padding: 4px 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
    font-weight: 500;
    margin-top: 8px;
}
#price-slider .noUi-horizontal .noUi-tooltip {
    bottom: -12px;
    top: auto !important;
}
@media (max-width: 575.98px) {
    #price-slider .noUi-handle { width: 20px; height: 20px; top: -4px; }
    #price-slider .noUi-target { height: 10px; }
    #price-slider .noUi-tooltip { font-size: 1em; padding: 4px 10px; }
    #price-slider .noUi-horizontal .noUi-tooltip { bottom: -18px; }
}

.form-check-label, .form-check-input { cursor: pointer; }
/* Sticky sidebar on desktop */
#category-sidebar {
    position: static;
    background: rgba(252, 252, 252, 0.45);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 992px) {
    #category-sidebar {
        position: sticky;
        top: 30px;
        align-self: flex-start;
        z-index: 2;
    }
}
/* Main content background for separation */
#category-main-content {
    background: rgba(252, 252, 252, 0.45);
    border-radius: 12px;
    min-height: 600px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 991.98px) {
    aside.col-md-4 { margin-bottom: 2rem; }
    #category-main-content { padding: 1rem 0.5rem; border-radius: 0; box-shadow: none; background: rgba(252, 252, 252, 0.9); }
}

/* Shop products wrapper background */
#shop-products-wrapper {
    background: rgba(252, 252, 252, 0.45);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Product detail page container */
#product-detail-container {
    background: rgba(252, 252, 252, 0.45);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Product detail main image - fixed dimensions */
#product-detail-container .col-md-5 .card {
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

#product-detail-container #mainProductImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 450px;
}

@media (max-width: 768px) {
    #product-detail-container .col-md-5 .card {
        height: 350px;
    }
    #product-detail-container #mainProductImage {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    #product-detail-container .col-md-5 .card {
        height: 280px;
    }
    #product-detail-container #mainProductImage {
        max-height: 280px;
    }
}

/* Related products AJAX grid */
#related-products-list .card {
    transition: box-shadow 0.2s;
}
#related-products-list .card:hover {
    box-shadow: 0 0 0 2px #007bff33, 0 4px 16px rgba(0,0,0,0.08);
}
#related-products-list .card-img-top {
    height: 180px;
    object-fit: contain;
}
#related-products-list .add-to-cart {
    min-width: 100px;
}

/* Responsive & modern quantity group for product page */
.quantity-group {
    max-width: 140px;
    min-width: 110px;
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    background: #fff;
}
.quantity-group .btn {
    min-width: 36px;
    padding: 0.375rem 0.75rem;
    font-size: 1.1rem;
    border-radius: 1;
    border: none;
    background: #d3d3d3;
    color: #333;
    transition: background 0.2s;
}
.quantity-group .btn:hover {
    background: #e2e6ea;
}
.quantity-input-group {
    width: 130px;
    background: #fff3e0;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(255,152,0,0.10);
    border: 1.5px solid #ff9800;
    padding: 2px 0;
    transition: box-shadow 0.2s, border 0.2s;
}
.quantity-input-group .btn.quantity-btn {
    background: linear-gradient(90deg, #ff9800 0%, #ff5722 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    min-width: 38px;
    min-height: 38px;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    box-shadow: 0 1px 4px rgba(255,152,0,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.quantity-input-group .btn.quantity-btn:disabled {
    opacity: 0.5;
    background: #ffe0b2;
    color: #ff9800;
}
.quantity-input-group .product-quantity {
    width: 38px;
    min-width: 36px;
    font-weight: bold;
    color: #ff9800;
    background: transparent;
    border: none;
    text-align: center;
    font-size: 1.2rem;
    box-shadow: none;
    outline: none;
    appearance: textfield;
}
.quantity-input-group .product-quantity::-webkit-outer-spin-button,
.quantity-input-group .product-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-input-group .product-quantity[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}
@media (max-width: 576px) {
    .quantity-input-group {
        max-width: 110px;
        margin: 0 auto !important;
        padding: 1px 0;
        border: 2.5px solid #ff9800 !important;
        border-radius: 2rem !important;
        background: #fff3e0 !important;
        box-shadow: 0 2px 8px rgba(255,152,0,0.10) !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .quantity-input-group .btn.quantity-btn {
        min-width: 38px !important;
        min-height: 38px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 1.3rem !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }
    .quantity-input-group .product-quantity {
        font-size: 1.2rem !important;
        border: none !important;
        background: transparent !important;
        color: #ff9800 !important;
        font-weight: bold;
        text-align: center;
        width: 38px !important;
        min-width: 36px !important;
        box-shadow: none !important;
        appearance: textfield !important;
    }
}

/* Center align product info in mobile */
@media (max-width: 576px) {
    .product-main-info {
        text-align: center;
        align-items: center !important;
        justify-content: center !important;
    }
    .product-main-info h2,
    .product-main-info .h3,
    .product-main-info .badge,
    .product-main-info ul,
    .product-main-info p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .product-main-info ul.list-unstyled {
        display: inline-block;
        text-align: left;
    }
}

/* --- Filters Modal Button (sm & md only) - Floating Circular --- */
.filters-modal-btn {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1051;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 12px rgba(78, 115, 44, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color, #4e732c) !important;
  color: #fff !important;
  cursor: pointer;
  overflow: hidden;
}

.filters-modal-btn i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.filters-modal-btn .filters-modal-btn-label {
  display: none;
}

.filters-modal-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(78, 115, 44, 0.45), 0 4px 8px rgba(0, 0, 0, 0.15);
  background: var(--primary-color-dark, #3d5a22) !important;
  color: #fff !important;
}

.filters-modal-btn:hover i {
  transform: rotate(15deg);
}

.filters-modal-btn:focus,
.filters-modal-btn:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 2px 8px rgba(78, 115, 44, 0.3);
  outline: none;
}

.filters-modal-btn:active {
  background: var(--primary-color-darker, #2f4619) !important;
}

/* Badge για ενεργά φίλτρα */
.filters-modal-btn .filter-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  color: #fff;
  background: #dc3545;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Pulse animation όταν υπάρχουν ενεργά φίλτρα */
.filters-modal-btn.has-active-filters {
  animation: filterBtnPulse 2s ease-in-out infinite;
}

@keyframes filterBtnPulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(78, 115, 44, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 4px 20px rgba(78, 115, 44, 0.5), 0 2px 8px rgba(78, 115, 44, 0.3);
  }
}

@media (min-width: 992px) {
  .filters-modal-btn { display: none !important; }
}

@media (max-width: 991.98px) {
  .filters-modal-btn { display: flex !important; }
}

/* Μικρότερες οθόνες - μικρότερο button */
@media (max-width: 575.98px) {
  .filters-modal-btn {
    width: 50px;
    height: 50px;
    right: 16px;
  }
  
  .filters-modal-btn i {
    font-size: 1.2rem;
  }
}

/* --- Modal Slide In Up Animation --- */
@keyframes slideInUpModal {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#filtersModal .modal-dialog {
  animation: slideInUpModal 0.45s cubic-bezier(0.4,0,0.2,1);
  margin: 4vh auto 0 auto;
  position: fixed;
  left: 0;
  right: 0;
  top: 10vh;
  height: 85vh;
  max-width: 100vw;
  width: 100vw;
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
#filtersModal .modal-content {
  border-radius: 1.1rem 1.1rem 0 0;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  width: 100vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
}
#filtersModal .modal-header {
  border-bottom: none;
  background: transparent;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1.2rem;
  padding-bottom: 0.2rem;
  position: relative;
}
#filtersModal .modal-title {
  display: none;
}
#filtersModal .modal-close-center {
  position: absolute;
  left: 50%;
  top: 0.2rem;
  transform: translateX(-50%);
  font-size: 2.2rem;
  color: #b97004;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  z-index: 10;
  cursor: pointer;
  transition: color 0.2s;
}
#filtersModal .modal-close-center:hover {
  color: #8a5300;
}
#filtersModal .modal-body {
  overflow-y: auto;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}
@media (max-width: 991.98px) {
  #filtersModal .modal-dialog {
    margin: 0;
    top: 6vh;
    height: 75vh;
    max-width: 100vw;
    width: 100vw;
  }
  #filtersModal .modal-content {
    border-radius: 1.1rem 1.1rem 0 0;
    width: 100vw;
    min-height: 100%;
    max-height: 100%;
  }
}

/* --- Price Filter Consistency --- */
#modal-price-filter-form .form-label,
#modal-price-filter-form #modal-price-slider {
  /* Match shop.blade price filter look */
  font-weight: 600;
  color: #495057;
}
#modal-price-filter-form #modal-price-slider {
  background: #f8f9fa;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  padding: 8px 0;
}
#modal-price-filter-form input[type="hidden"] {
  /* Hide hidden fields visually */
  display: none;
}

/* --- Price Slider: More beautiful, colored, subtle --- */
#modal-price-filter-form #modal-price-slider,
#price-slider {
  background: linear-gradient(90deg, #c2c2c223 0%, #c2c2c223 100%);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(185,112,4,0.08);
  padding: 4px 0;
  margin-top: 4px;
  margin-bottom: 4px;
  margin-left: 2px;
  margin-right:2px;
  height: 6px;
}
#modal-price-filter-form .noUi-base,
#price-slider .noUi-base {
  background: transparent;
  height: 12px;
}
#modal-price-filter-form .noUi-connect,
#price-slider .noUi-connect {
  background: linear-gradient(90deg, #b97004 0%, #f8bf69 100%);
  border-radius: 10px;
  transition: background 0.3s, left 0.3s, width 0.3s;
}
#modal-price-filter-form .noUi-handle,
#price-slider .noUi-handle {
  border-radius: 50%;
  background: #fff;
  border: 2px solid #b97004;
  box-shadow: 0 2px 8px rgba(185,112,4,0.12);
  width: 22px;
  height: 22px;
  top: -5px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#modal-price-filter-form .noUi-handle:focus,
#modal-price-filter-form .noUi-handle:hover,
#price-slider .noUi-handle:focus,
#price-slider .noUi-handle:hover {
  border-color: #b97004;
  box-shadow: 0 0 0 4px rgba(185,112,4,0.15);
}
#modal-price-filter-form .noUi-target,
#price-slider .noUi-target {
  background: linear-gradient(90deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 10px;
  border: 1.5px solid #ffd180;
  height: 20px;
  box-shadow: 0 1px 4px rgba(185,112,4,0.04);
}
#modal-price-filter-form .noUi-tooltip,
#price-slider .noUi-tooltip {
  background: #231603;
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  padding: 4px 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(185,112,4,0.08);
  font-weight: 500;
  margin-top: 8px;
}
#modal-price-filter-form .noUi-horizontal .noUi-tooltip,
#price-slider .noUi-horizontal .noUi-tooltip {
  bottom: -12px;
  top: auto !important;
}

/* --- Modal Full Height --- */
#filtersModal .modal-dialog {
  top: 70px;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
}
#filtersModal .modal-content {
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
}
#filtersModal .modal-body {
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
}

/* --- Attribute Filters Always Expanded --- */
#modal-attribute-filter .collapse,
#modal-attribute-filter .collapsing {
  display: block !important;
  height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: none !important;
}
#modal-attribute-filter .toggle-attribute-values {
  display: none !important;
}

/* Fly to cart animation */
.fly-to-cart-img {
  position: absolute;
  z-index: 2000;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(.4,0,.2,1), opacity 0.8s cubic-bezier(.4,0,.2,1);
  will-change: transform, opacity;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

