/* Base font size */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Base layout and focus styles */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
    color: #212529;
    transition: background-color 0.3s, color 0.3s;
}

main.flex-fill {
    flex: 1;
}

.form-floating > .form-control::placeholder,
.form-floating > .form-control-plaintext::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control:focus::placeholder,
.form-floating > .form-control-plaintext:focus::placeholder {
    text-align: start;
}

/* Product image styling */
.product-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Sidebar layout */
.sidebar-left {
    position: fixed;
    top: 114px; /* начинается после header */
    left: 0;
    width: 280px;
    height: calc(100vh - 114px); /* оставшееся место на экране */
    background-color: #fff;
    border-right: 1px solid #ddd;
    z-index: 1050;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideIn 0.3s ease forwards;
}

.sidebar-right {
    position: fixed;
    top: 114px;
    left: 280px;
    width: 280px;
    height: calc(100vh - 114px);
    background-color: #fff;
    border-right: 1px solid #ddd;
    z-index: 1051;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideIn 0.3s ease forwards;
}



/* List hover */
.list-group-item a:hover {
    background-color: #f8f9fa;
    font-weight: 500;
    border-radius: 5px;
}

/* Category */
.category-panel {
    padding: 10px;
}

.category-item {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.category-item:hover {
    background-color: #f0ad4e;
    color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar-left,
    .sidebar-right {
        width: 100%;
        height: auto;
        position: absolute;
        top: 60px;
        left: 0;
    }
}


/* Scroll lock */
body.no-scroll {
    overflow: hidden;
}

/* Back button */
.back-btn {
    padding: 6px 12px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.back-btn:hover {
    background-color: #f0ad4e;
    color: white;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 🌙 Dark mode support */
body.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

body.dark-mode .sidebar-left,
body.dark-mode .sidebar-right {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode .list-group-item a:hover,
body.dark-mode .back-btn:hover,
body.dark-mode .category-item:hover {
    background-color: #f0ad4e;
    color: #000;
}

body.dark-mode .back-btn {
    background-color: #2c2c2c;
    border-color: #444;
}

/* RTL support */
body[dir="rtl"] {
    direction: rtl;
}

body[dir="rtl"] .sidebar-left {
    left: auto;
    right: 0;
    border-left: 1px solid #ddd;
    border-right: none;
}

body[dir="rtl"] .sidebar-right {
    left: auto;
    right: 320px;
    border-left: 1px solid #ddd;
    border-right: none;
}

/* added */
.no-scroll {
    overflow: hidden;
}

/* Design WilBre*/
.navbar {
    background: linear-gradient(90deg, #00ad45, #008748) !important;
    color: white !important;
}

    .navbar .nav-link,
    .navbar .navbar-brand {
        color: white !important;
        font-weight: bold;
        font-size: 16px;
    }

    .navbar .navbar-brand {
        font-size: 24px;
    }

    .navbar .btn-warning {
        background-color: white !important;
        color: #d633d6 !important;
        border: none;
    }

        .navbar .btn-warning:hover {
            background-color: #f0e6f6 !important;
            color: #8e2de2 !important;
        }

form.d-flex input.form-control {
    background-color: white;
    border-radius: 20px;
    padding-left: 15px;
    font-size: 16px;
    border: none;
}

form.d-flex button.btn {
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 16px;
}



/* Центровка иконок и текста в nav */
.navbar-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Убираем стандартный отступ между иконками на мобилках */
@media (max-width: 768px) {
    .navbar-nav {
        gap: 1rem !important;
    }

    form.d-flex {
        flex-direction: column;
    }

        form.d-flex input,
        form.d-flex button {
            width: 100%;
            margin-bottom: 0.5rem;
        }
}

.category-item {
    border: none !important;
}


/* 17.06.2025 */
footer a {
    width: 20%;
}

footer small {
    font-size: 11px;
}


.quantity-control {
    font-size: 18px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 10px;
    background-color: #f1f1f1;
    color: #333;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    padding: 0;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #ddd;
}

.quantity-number {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

.nav-item .badge {
    font-size: 0.75rem;
    padding: 4px 6px;
}

.navbar-logo {
    height: 50px;
    width: auto;
    background-color: transparent; /* Ensure no background */
    border-radius: 50%; /* Make it round */
    object-fit: cover; /* Keeps the aspect ratio nicely */
}


.slider {
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}

.slider img {
    width: 80%;
    height: auto;
    border-radius: 20px;
    transition: opacity 1s ease-in-out;
}

/* VerifyPhone */
.code-box {
    width: 60px;
    height: 60px;
    font-size: 28px;
    text-align: center;
    margin: 0 5px;
    border: 2px solid #ccc;
    border-radius: 10px;
}

.code-inputs {
    justify-content: center;
}

input.code-box:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, .5);
}
/* VerifyPhone */
.carousel-item img {
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    max-height: 400px
}
.search-form {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
    .search-form input {
        width: 80%;
    }

    .search-form button {
        width: 19%;
    }


img {
    border-radius: 5px;
}
button.btn-danger {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
}

<!-- CSS -->
 .product-details-container {
     display: flex;
     gap: 30px;
     margin-top: 20px;
     flex-wrap: wrap;
 }

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: 0.2s;
}

.thumbnail.active {
    border-color: #007bff;
}

.main-image img {
    max-width: 250px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.main-image img:hover {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    min-width: 280px;
}

@media (max-width: 768px) {
    .product-details-container {
        flex-direction: column;
        align-items: center;
    }

    .thumbnails {
        flex-direction: row;
    }
}




.image-slider {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.product-slide-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.product-slide-img.active {
    opacity: 1;
    z-index: 1;
}