@font-face {
    font-family: 'nino';
    src: url(./bpg_nino_mtavruli_normal.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1,
h2,
h3,
p,
a,
button,
span,
div {
    font-family: 'nino';
}

html {
    scrollbar-width: thin;
    scrollbar-color: #3f51b5 #111;
}

::-webkit-scrollbar {
    width: 12px;
    /* scrollbar width */
}


/* 2) Scrollbar track (background) */

::-webkit-scrollbar-track {
    /* Dark, starry background:
- You can replace the image URL with your own star or space-themed texture. */
    background-color: #111;
    /* Fallback color */
    background-image: url('https://via.placeholder.com/200x200?text=Stars');
    background-size: cover;
    /* Make sure the star image covers the whole track */
    background-position: center;
}


/* 3) Scrollbar thumb (the draggable part) */

::-webkit-scrollbar-thumb {
    /* A subtle gradient from near-black to a bluish color */
    background: linear-gradient(180deg, #0c0e17 0%, #3f51b5 100%);
    border-radius: 6px;
    /* Rounded corners */
    border: 2px solid #111;
    /* Some spacing from track to see the starry background */
}


/* 4) Hover state for the thumb (optional) */

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1a1f2e 0%, #6376e6 100%);
}


/* 5) Active state (when user is actively clicking the thumb) */

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #2c3450 0%, #5b70d6 100%);
}


/* Body & General */

body {
    font-family: sans-serif;
    scroll-behavior: smooth;
}


/* ========== NAVBAR ========== */

.navbar-nav.main {
    width: 100%;
    justify-content: space-around;
    padding: 0 32px;
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* Hover Dropdown Behavior */

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item .nav-link,
.nav-item .nav-link:hover {
    color: white !important;
}

.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
}

.cabinet {
    color: black !important;
}

.nav-link.active {
    color: white !important;
}

.container.my-5.cabinet {
    min-height: 450px;
}


/* ========== CAROUSEL (HERO) ========== */


/* Use carousel-fade for smoother fade transitions */

.carousel.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 1s;
    transition-timing-function: ease-in-out;
}

.carousel.carousel-fade .carousel-item.active,
.carousel.carousel-fade .carousel-item-next.carousel-item-left,
.carousel.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

.hero-carousel .carousel-item {
    height: 100vh;
    min-height: 600px;
    background-position: center;
    background-size: cover;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    color: #ffffff;
    text-align: center;
    z-index: 2;
    max-width: 700px;
    width: 100%;
    padding: 0 15px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-btns .btn {
    margin: 0 10px;
    min-width: 150px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-btns .btn:hover {
    transform: scale(1.05);
}


/* ========== კატეგორიები SECTION ========== */

#categories h2 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.category-card {
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category-card img {
    height: 180px;
    object-fit: cover;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


/* ========== FEATURED PRODUCTS CAROUSEL ========== */

#featured-products h2 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-align: center;
}


/* For a smoother fade, same approach as hero */

.carousel.carousel-fade .carousel-item {
    transition-property: opacity, transform;
    transition-duration: 1s;
    transition-timing-function: ease-in-out;
}

.product-card {
    cursor: pointer;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card .price {
    font-weight: 700;
    color: #dc3545;
    /* Price color */
}

.product-card .btn {
    transition: 0.2s;
}

.product-card .btn:hover {
    transform: scale(1.03);
}


/* ========== სერვისები SECTION ========== */

#services h2 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.service-card {
    border: none;
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #0d6efd;
}


/* ========== რატომ ჩვენ SECTION ========== */

.why-us {
    background: #f9f9f9;
    padding: 60px 0;
}

.why-us h2 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-align: center;
}

.testimonials p {
    font-style: italic;
}

.compare-list {
    list-style: none;
    padding-left: 0;
}

.compare-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.compare-list li i {
    margin-right: 10px;
    color: #0d6efd;
}


/* ========== CTA BANNER ========== */

.cta-banner {
    background: #0d6efd;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.cta-banner h3 {
    margin-bottom: 20px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.cta-banner .btn {
    min-width: 180px;
    font-weight: 600;
    margin: 5px;
    transition: transform 0.3s ease;
}

.cta-banner .btn:hover {
    transform: scale(1.05);
}


/* ========== FOOTER ========== */

footer {
    background-color: #212529;
    color: #ffffff;
    padding: 40px 0;
}

footer .footer-logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

footer a {
    color: #ffffff;
    transition: color 0.2s ease;
}

footer a:hover {
    text-decoration: underline;
    color: #0d6efd;
}


/* პროდუქტების გვერდ */

.filter-bar {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.category-btn {
    padding: 0.75rem 1.2rem;
    border: none;
    background-color: #e9ecef;
    margin: 0.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.category-btn.active,
.category-btn:hover {
    background-color: #0d6efd;
    color: white;
}

.sort-select {
    max-width: 250px;
}


/* პროდუქტის დეტალები */

.product-wrapper {
    flex-direction: row;
    margin: 5% auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 30px;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.product-image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
    cursor: zoom-in;
    border-radius: 10px;
}

.product-image-container:hover img {
    transform: scale(1.2);
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    max-width: 160px;
    margin-bottom: 20px;
}

.quantity-selector input {
    text-align: center;
    width: 60px;
    border-radius: 0;
}

.btn-add-cart {
    font-size: 1.1rem;
    padding: 12px 24px;
    border-radius: 8px;
}

.product-description {
    margin-top: 30px;
}

.product-description h5 {
    font-weight: 600;
    margin-bottom: 15px;
}


/* AUTH */

.auth-wrapper {
    max-width: 650px;
    margin: 3rem auto;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    overflow: hidden;
}

.auth-toggle {
    display: flex;
    background: #d0d6db;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.auth-toggle .btn {
    flex: 1;
    border: none;
    border-radius: 0;
    transition: background .3s, color .3s;
}

.auth-toggle .btn.active {
    background: #0d6efd;
    color: #fff;
}

.form-section {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transition: max-height .4s ease, opacity .4s ease, padding .4s ease;
}

.form-section.active {
    max-height: 1200px;
    /* big enough to fit each form */
    opacity: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.form-section h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}


/* Success alert fade-in */

.alert-success {
    display: none;
    opacity: 0;
    transition: opacity .4s ease;
}

.alert-success.show {
    display: block;
    opacity: 1;
}


/* სერვისები */

.service-list button {
    border: 1px solid #ddd;
    background-color: #fff;
    font-weight: 600;
    width: 100%;
    text-align: left;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.service-list button.active,
.service-list button:hover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.service-content img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.service-content h3 {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 15px;
}


/* about-us page */

.about-section {
    padding: 60px 20px;
}

.about-section h2 {
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 30px;
}

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

.highlight-box {
    background-color: #e7f1ff;
    padding: 20px;
    border-radius: 12px;
    font-weight: 500;
}


/* contact */

.contact-section {
    padding: 60px 20px;
}

.contact-section h2 {
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 30px;
}

.contact-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-control {
    border-radius: 8px;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
}

.contact-info i {
    color: #0d6efd;
    margin-right: 10px;
}


/* ========== AOS OVERRIDE ========== */

[data-aos] {
    transition: transform 0.6s ease, opacity 0.6s ease !important;
}


/* cart */

#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 998;
}

#cart-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 400px;
    height: 100%;
    background: #1b1b1b;
    color: #fff;
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.7);
    transition: right 0.4s ease;
    z-index: 99999;
    display: flex;
    flex-direction: column;
}

#cart-drawer.open {
    right: 0;
}

#cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #252525;
    border-bottom: 1px solid #333;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #333;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.cart-item img {
    flex-shrink: 0;
    width: 120px;
    /* height: 70px; */
    object-fit: cover;
    border-radius: 8px;
    background: #333;
}

.cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-content h6 {
    font-size: 1rem;
    margin: 0;
    margin-bottom: 5px;
    color: #f1f1f1;
}

.cart-item-content p {
    font-size: 0.9rem;
    margin: 0;
    color: #ccc;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-item-quantity button {
    background: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1rem;
    width: 30px;
    border-radius: 6px;
    transition: background 0.2s;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-quantity button:hover {
    background: #555;
}

.cart-item-quantity span {
    width: 24px;
    text-align: center;
    font-size: 1rem;
}

#cart-notification {
    position: fixed;
    top: 30%;
    left: 45%;
    background: #00cc99;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    z-index: 9999999;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: all 0.4s ease;
    z-index: 9999;
}

#cart-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.cart-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e1e1e;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 50px;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-button span {
    background: #00cc99;
    color: #fff;
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 20px;
}

.close-icon {
    font-size: 1.8rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close-icon:hover {
    color: #fff;
}

.cart-item-actions {
    gap: 16px;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    /* gap: 8px; */
}

.remove-item {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #ff4d4d;
    cursor: pointer;
    transition: transform 0.2s;
}

.remove-item:hover {
    transform: scale(1.2);
    color: #ff0000;
}