.product-gallery {
border-radius: 5px;
overflow: hidden;
position: relative;
width: 100%;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.swiper {
border-radius: 5px;
}
.swiper-slide img {
    max-width: 100%;
    max-height: 470px;
    object-fit: cover;
}
.swiper-thumbnails {
height: 60px;
margin-top: 10px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.swiper-thumbnails .swiper-slide {
width: 90px;
height: 60px;
opacity: 0.6;
border-radius: 6px;
overflow: hidden;
cursor: pointer;
flex-shrink: 0;
}
.swiper-thumbnails .swiper-slide img {
width: 100%;
height: 100%;
object-fit: cover;
}
.swiper-thumbnails .swiper-slide-thumb-active {
opacity: 1;
outline: 3px solid var(--kontrast-color);
}
.swiper-button-next,
.swiper-button-prev {
color: #fff;
background: rgba(0, 0, 0, 0.5);
width: 40px;
height: 40px;
border-radius: 50%;
transition: background-color 0.2s ease;
}
.swiper-button-next:after,
.swiper-button-prev:after {
font-size: 16px;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
background: rgba(0, 0, 0, 0.7);
}

.product-info {
background: #fff;
border-radius: 5px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-info:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.product-header {
border-bottom: 1px solid var(--border-color);
padding-bottom: 10px;
}
.product-header h1 {
font-size: clamp(20px, 3vw, 21px);
font-weight: 700;
color: var(--text-color);
margin: 0;
}
.product-price {
font-size: 18px;
font-weight: 700;
color: var(--text-color);
margin-top: 7px;
}
.product-price::after {
content: " ₸";
}
.share-buttons {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}
.badge {
font-size: 12px;
padding: 4px 8px;
border-radius: 6px;
font-weight: 500;
color: #fff;
}
.badges{
background-color: var(--bagestext-yellow);
color: var(--bagestext-black);
padding: 1px 8px;
border-radius: 6px;
font-weight: 500;
}
.badge.bg-primary {
background-color: var(--kontrast-color);
}
.badge.bg-secondary {
background-color: var(--muted-color);
}
.badge.bg-info {
background-color: var(--secondary-color);
}

.product-details {
background: #fff;
border-radius: 5px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin-top: 20px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-details:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.product-details h2 {
font-size: clamp(19px, 2.5vw, 20px);
font-weight: 700;
color: var(--text-color);
margin-bottom: 15px;
}
.product-description {
font-size: clamp(16px, 2.5vw, 17px);
color: var(--text-color);
margin: 0;
line-height: 1.7;
}
.product-specs {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
margin-top: 20px;
}
.product-spec-item {
display: flex;
justify-content: space-between;
border-bottom: 1px dashed var(--border-color);
padding-bottom: 8px;
font-size: 14px;
}
.product-spec-item span:first-child {
color: var(--muted-color);
}
.product-spec-item span:last-child {
font-weight: 500;
color: var(--text-color);
}

.seller-info {
background: #fff;
border-radius: 5px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.seller-info:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.seller-header {
margin-bottom: 15px;
}
.seller-avatar {
width: 50px;
height: 50px;
border-radius: 50%;
overflow: hidden;
margin-right: 15px;
}
.seller-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.seller-name {
font-size: 16px;
font-weight: 700;
color: var(--kontrast-color);
}
.seller-info .small {
font-size: 12px;
color: var(--muted-color);
}
.seller-contact {
margin-top: 10px;
}
.seller-btn {
width: 100%;
margin-bottom: 10px;
padding: 8px 16px;
font-size: 14px;
font-weight: 600;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: background-color 0.2s ease, color 0.2s ease;
}
.seller-btn.btn-primary {
background-color: var(--kontrast-color);
border: none;
color: #fff;
}
.seller-btn.btn-primary:hover {
background-color: var(--kontrast-color);
}
.seller-btn.btn-outline-primary {
border: 1px solid var(--kontrast-color);
color: var(--kontrast-color);
background-color: #fff;
}
.seller-btn.btn-outline-primary:hover {
background-color: var(--kontrast-color);
color: #fff;
}
.seller-info-line {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 10px;
color: var(--muted-color);
font-size: 14px;
}
.online-indicator {
width: 10px;
height: 10px;
border-radius: 50%;
}
.seller-contact hr {
border-color: var(--border-color);
}

.seller-phone-show {
background-color: var(--kontrast-color) !important;
color: #fff !important;
border: none !important;
}
.seller-phone-hidden {
background-color: #fff !important;
color: var(--kontrast-color) !important;
border: 1px solid var(--kontrast-color) !important;
font-weight: 600 !important;
}
.seller-phone-hidden .bi-telephone,
.seller-phone-hidden .phone-number {
color: var(--kontrast-color) !important;
}

.favorite-btn {
position: absolute;
top: 10px;
right: 10px;
width: 36px;
height: 36px;
background: rgba(255, 255, 255, 0.8);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: none;
color: var(--muted-color);
font-size: 18px;
cursor: pointer;
transition: all 0.2s ease;
z-index: 10;
}
.favorite-btn:hover,
.favorite-btn.active {
color: var(--secondary-color);
}
.favorite-btn.active i {
color: var(--secondary-color);
}

.product-badge {
position: absolute;
top: 10px;
left: 10px;
background-color: var(--vip-color);
color: var(--text-color);
font-size: 11px;
font-weight: 600;
padding: 4px 8px;
border-radius: 4px;
z-index: 10;
}

.similar-products {
margin-top: 40px;
}
.similar-products h3 {
font-size: clamp(19px, 2.5vw, 20px);
font-weight: 700;
color: var(--text-color);
margin-bottom: 26px;
}
.similar-product-item {
background: #fff;
border-radius: 5px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
text-decoration: none;
color: inherit;
display: block;
height: 100%;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.similar-product-item:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.similar-product-img {
height: 140px;
width: 100%;
object-fit: cover;
padding: 10px;
border-radius: 15px;
}
.similar-product-info {
padding: 0 10px 10px;
}
.similar-product-title {
font-size: 14px;
font-weight: 700;
color: var(--kontrast-color);
margin: 7px 0;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
.similar-product-price {
font-size: 15px;
font-weight: 700;
color: var(--text-color);
}
.similar-product-price::after {
content: " ₸";
}

.safety-tips {
background-color: #fff;
border: 1px solid var(--border-color);
border-radius: 5px;
padding: 15px;
margin-top: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.safety-tips h4 {
font-size: 18px;
font-weight: 700;
color: var(--kontrast-color);
margin-bottom: 10px;
display: flex;
align-items: center;
}
.safety-tips ul {
margin-bottom: 0;
padding-left: 20px;
list-style: none;
}
.safety-tips li {
font-size: 14px;
color: var(--text-color);
margin-bottom: 5px;
position: relative;
padding-left: 20px;
line-height: 1.7;
}
.safety-tips li::before {
content: "•";
position: absolute;
left: 0;
color: var(--kontrast-color);
font-size: 18px;
line-height: 1;
}

.share-btn {
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 16px;
text-decoration: none;
transition: opacity 0.2s ease;
}
.share-btn:hover {
opacity: 0.9;
}
.share-btn.facebook {
background-color: #3b5998;
}
.share-btn.telegram {
background-color: #0088cc;
}
.share-btn.vk {
background-color: #4C75A3;
}
.share-btn.whatsapp {
background-color: #25D366;
}

.review-section {
background: #fff;
border-radius: 5px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin-top: 20px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review-section:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.review-section h3 {
font-size: clamp(19px, 2.5vw, 20px);
font-weight: 700;
color: var(--text-color);
margin-bottom: 15px;
}
.rating-stars {
    display: flex;
justify-content: left;
    flex-direction: row-reverse;
    gap: 5px;
    margin-bottom: 15px;
}
.rating-stars input {
    display: none;
}
.rating-stars label {
    font-size: 22px;
    color: #ddd;
    cursor: pointer;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: var(--secondary-color);
}

.rating-stars input:checked ~ label {
    color: var(--secondary-color);
}
.review-textarea {
width: 100%;
min-height: 100px;
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 10px;
font-size: 14px;
transition: border-color 0.2s ease;
}
.review-textarea:focus {
outline: none;
border-color: var(--kontrast-color);
}
.review-submit {
background-color: var(--kontrast-color);
color: #fff;
border: none;
padding: 8px 16px;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
transition: background-color 0.2s ease;
}
.review-submit:hover {
background-color: var(--kontrast-color);
}

.report-modal .modal-content,
.review-modal .modal-content,
.share-modal .modal-content {
border-radius: 12px;
border: none;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.report-modal .modal-header,
.review-modal .modal-header,
.share-modal .modal-header {
border-bottom: 1px solid var(--border-color);
background-color: #fff;
padding: 20px;
}
.report-modal .modal-title,
.review-modal .modal-title,
.share-modal .modal-title {
font-size: clamp(19px, 2.5vw, 20px);
font-weight: 700;
color: var(--text-color);
}
.report-modal .modal-body,
.review-modal .modal-body {
padding: 20px;
}
.report-modal textarea,
.review-modal textarea {
width: 100%;
min-height: 100px;
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 10px;
font-size: 14px;
}
.report-modal .btn-primary,
.review-modal .btn-primary {
background-color: var(--kontrast-color);
border: none;
border-radius: 6px;
padding: 10px 20px;
font-size: 14px;
font-weight: 600;
transition: background-color 0.2s ease;
}
.report-modal .btn-primary:hover,
.review-modal .btn-primary:hover {
background-color: var(--kontrast-color);
}
.report-modal .btn-secondary,
.review-modal .btn-secondary {
background-color: var(--muted-color);
border: none;
border-radius: 6px;
padding: 10px 20px;
font-size: 14px;
font-weight: 600;
transition: background-color 0.2s ease;
}
.report-modal .btn-secondary:hover,
.review-modal .btn-secondary:hover {
background-color: #4a5b70;
}
.share-modal .modal-body {
display: flex;
gap: 15px;
justify-content: center;
padding: 20px;
}

.card {
background: #fff;
border-radius: 5px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.card-body {
padding: 20px;
}
.card-title {
font-size: 16px;
font-weight: 700;
color: var(--text-color);
}
.card-img-top {
    height: 80px;
    object-fit: cover;
    object-position: center 13%;
    border-radius: 5px 5px 0 0;
}
.card-body .small {
font-size: 13px;
color: var(--text-color);
}
.card-body .fw-bold {
font-size: 13px;
font-weight: 700;
color: var(--text-color);
}
.card-body .fw-bold::after {
content: " ₸";
}
.btn-sm.btn-outline-secondary {
border: 1px solid var(--border-color);
color: var(--muted-color);
font-size: 13px;
padding: 4px 12px;
border-radius: 6px;
transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-sm.btn-outline-secondary:hover {
background-color: var(--kontrast-color);
color: #fff;
}
 
.seller-contact-mobile {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #fff;
padding: 12px 20px;
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
z-index: 1000;
display: none;
flex-direction: row;
gap: 10px;
}
.seller-contact-mobile .seller-btn {
flex: 1;
margin-bottom: 0;
padding: 8px;
font-size: 12px;
}

.reviews-section {
background: #fff;
border-radius: 5px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin-top: 20px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
height: auto;
max-height: 750px;
display: flex;
flex-direction: column;
}
.reviews-section:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.reviews-section h3 {
font-size: clamp(19px, 2.5vw, 20px);
font-weight: 700;
color: var(--text-color);
margin-bottom: 15px;
}
.reviews-container {
flex: 1;
overflow-y: auto;
padding-right: 10px;
}
.review-item {
border-bottom: 1px solid var(--border-color);
padding: 10px 0;
}
.review-item:last-child {
border-bottom: none;
}
.review-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 5px;
}
.review-name {
font-size: 15px;
font-weight: 600;
color: var(--kontrast-color);
}
.review-date {
font-size: 12px;
color: var(--muted-color);
}
.review-rating {
display: flex;
gap: 4px;
margin-bottom: 5px;
}
.review-rating .bi-star-fill {
font-size: 14px;
color: var(--secondary-color);
}
.review-comment {
font-size: 14px;
color: var(--text-color);
line-height: 1.6;
}
.reviews-banner {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
.reviews-banner img {
  max-width: 100%;
  height: auto;
}
.reviews-container::-webkit-scrollbar {
width: 6px;
}
.reviews-container::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 5px;
}
.reviews-container::-webkit-scrollbar-thumb {
background: var(--kontrast-color);
border-radius: 5px;
}
.reviews-container::-webkit-scrollbar-thumb:hover {
background: var(--kontrast-color);
}
@media (max-width: 992px) {
.product-gallery {
height: auto;
}
.swiper-thumbnails {
height: 50px;
}
.swiper-thumbnails .swiper-slide {
width: 75px;
height: 50px;
}
.swiper-button-next,
.swiper-button-prev {
width: 36px;
height: 36px;
}
.swiper-button-next:after,
.swiper-button-prev:after {
font-size: 14px;
}
.product-specs {
grid-template-columns: 1fr;
}
.seller-contact-mobile {
display: flex !important;
}
.seller-contact .seller-phone-hidden {
display: none;
}
.seller-contact .seller-phone-show {
display: none;
}
}
@media (max-width: 768px) {
.swiper-thumbnails {
height: 40px;
}
.swiper-thumbnails .swiper-slide {
width: 60px;
height: 40px;
}
.swiper-button-next,
.swiper-button-prev {
width: 32px;
height: 32px;
}
.swiper-button-next:after,
.swiper-button-prev:after {
font-size: 14px;
}
}
@media (max-width: 576px) {
.product-gallery {
margin-bottom: 15px;
}
.swiper-thumbnails {
height: 30px;
}
.swiper-thumbnails .swiper-slide {
width: 45px;
height: 30px;
border-radius: 4px;
}
.swiper-button-next,
.swiper-button-prev {
width: 32px;
height: 32px;
}
.swiper-button-next:after,
.swiper-button-prev:after {
font-size: 12px;
}
.product-header .d-flex {
flex-direction: column;
align-items: flex-start;
}
.product-header .text-muted {
margin-top: 5px;
font-size: 12px;
}
.product-price {
font-size: 16px;
}
.badge {
font-size: 11px;
padding: 4px 6px;
}
.share-buttons {
gap: 8px;
}
.share-btn {
width: 32px;
height: 32px;
font-size: 14px;
}
.seller-name {
font-size: 15px;
}
.seller-avatar {
width: 40px;
height: 40px;
}
.seller-info-line {
font-size: 13px;
}
.similar-product-title {
font-size: 15px;
}
.similar-product-price {
font-size: 14px;
}
}
@media (min-width: 992px) {
.seller-phone-hidden {
display: none;
}
.seller-phone-show {
display: inline-block;
}
}
.checkbox-input {
    appearance: none;
    width: 1rem; 
    height: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem; 
    background-color: #fff;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    margin-right: 0.5rem; 
    vertical-align: middle;
    position: relative; 
}

.checkbox-input:checked {
    background-color: var(--kontrast-color);
    border-color: var(--kontrast-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 80%;
    background-position: center;
}

.checkbox-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-input:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-check-label {
    vertical-align: middle; 
    line-height: 1.5; 
}

.form-check {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem; 
}
@media (max-width: 576px) {
  .modal-dialog {
    max-height: 80vh;
    overflow-y: auto;
  }
}

.seller-phone-mobile.loading .phone-number::after {
  content: " ⏳";
}