/* ===== GOOGLE FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&family=Roboto+Slab:wght@400;700&display=swap');


/* ===== VARIABLES ===== */
:root {
    --primary-bg: #c2d859;
    --footer-bg: #6EC1E4;
    --header-bg: #1E1952;
    --card-bg: #1E1952;
    --button-bg: #F621EC;
    --button-hover: #e41ad4;
    --text-primary: #333333;
    --text-light: #ffffff;
    --border-radius: 8px;
}

/* ===== BASE STYLES ===== */
body {
    background-color: var(--primary-bg) !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 400 !important;
    color: var(--text-primary) !important;
    line-height: 1.6 !important;
}
.page,.page_inner{
    background-color: var(--primary-bg) !important;
}

/* ===== HEADER STYLES ===== */
.navbar {
    background-color: var(--header-bg) !important;
    padding: 0.5rem 1rem !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 600 !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--button-bg) !important;
}

.navbar-dark .navbar-toggler {
    border-color: var(--text-light) !important;
}

.basket-mini {
    background-color: var(--button-bg) !important;
    color: var(--text-light) !important;
    border-radius: var(--border-radius) !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 500 !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
}

.basket-mini:hover {
    background-color: var(--button-hover) !important;
    transform: translateY(-2px);
}

/* ===== PRODUCT CARD STYLES ===== */
.card {
    border: none !important;
    border-radius: var(--border-radius) !important;
    transition: all 0.3s ease !important;
    background-color: transparent !important;
}


.card-title {
    color: var(--text-light) !important;
    font-family: "Roboto Slab", serif !important;
    font-weight: 400 !important;
}

.price_color {
    color: var(--text-light) !important;
    font-size: 1.2em !important;
    font-weight: 600 !important;
    font-family: "Roboto", sans-serif !important;
}


.product_pod{
    height: 400px;
    background-color: #1E1952;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    margin-bottom: 1rem !important;
    position:  relative !important;
}
.product_pod a{
    color: #fff;
    font-family: "Roboto", sans-serif !important;
}
.product_price{
    margin-top: 1rem;
    padding: 1rem;
}


.image_container img {
    max-height: 300px;
    max-width: 100%;
    border-radius: 0.25rem !important;
}
.outofstock.availability,.instock.availability{
    display: none;
}
.img-thumbnail {
    padding: 0.25rem;
    background-color: #1E1952;
    border: 1px solid #1E1952;
    border-radius: 0.25rem !important;
    max-width: 100%;
    height: auto;
}
/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: var(--border-radius) !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.btn-primary {
    background-color: var(--button-bg) !important;
    border-color: var(--button-bg) !important;
    color: var(--text-light) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--button-hover) !important;
    border-color: var(--button-hover) !important;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--button-bg) !important;
    border-color: var(--button-bg) !important;
    color: var(--text-light) !important;
}

.btn-success:hover {
    background-color: var(--button-hover) !important;
    border-color: var(--button-hover) !important;
}

.btn-secondary {
    background-color: var(--header-bg) !important;
    border-color: var(--header-bg) !important;
    color: var(--text-light) !important;
}

.btn-secondary:hover {
    background-color: #2a2469 !important;
    border-color: #2a2469 !important;
}

.btn-outline-secondary {
    border-color: var(--header-bg) !important;
    color: var(--header-bg) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--header-bg) !important;
    color: var(--text-light) !important;
}

/* ===== FORM STYLES ===== */
.form-control {
    border-radius: var(--border-radius) !important;
    border: 2px solid var(--button-bg) !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 400 !important;
}

.form-control:focus {
    border-color: var(--button-hover) !important;
    box-shadow: 0 0 0 0.2rem rgba(246, 33, 236, 0.25) !important;
}

.custom-select {
    border-radius: var(--border-radius) !important;
    border: 2px solid var(--button-bg) !important;
    font-family: "Roboto", sans-serif !important;
}

.custom-select:focus {
    border-color: var(--button-hover) !important;
    box-shadow: 0 0 0 0.2rem rgba(246, 33, 236, 0.25) !important;
}

/* ===== FOOTER STYLES ===== */
footer {
    background-color: var(--footer-bg) !important;
    color: var(--text-primary) !important;
    padding: 2rem 0 !important;
    margin-top: 3rem !important;
}

footer h5 {
    color: var(--header-bg) !important;
    font-family: "Roboto Slab", serif !important;
    font-weight: 400 !important;
    margin-bottom: 1.5rem !important;
}

footer a {
    color: var(--header-bg) !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

footer a:hover {
    color: var(--button-bg) !important;
    text-decoration: underline !important;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto Slab", serif !important;
    font-weight: 400 !important;
    color: var(--header-bg) !important;
}

.lead {
    font-family: "Roboto", sans-serif !important;
    font-weight: 400 !important;
}

strong, b {
    font-weight: 600 !important;
}

/* ===== BREADCRUMB STYLES ===== */
.breadcrumb {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: var(--border-radius) !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 400 !important;
    padding: 0.75rem 1rem !important;
}

/* ===== NAVIGATION STYLES ===== */
.navbar-form .form-control {
    border-color: var(--text-light) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
}

.navbar-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.navbar-form .btn {
    background-color: var(--button-bg) !important;
    color: var(--text-light) !important;
    border-color: var(--button-bg) !important;
}

/* ===== ALERT STYLES ===== */
.alert {
    border-radius: var(--border-radius) !important;
    font-family: "Roboto", sans-serif !important;
}

.alert-success {
    background-color: var(--button-bg) !important;
    color: var(--text-light) !important;
    border-color: var(--button-bg) !important;
}

/* ===== TABLE STYLES ===== */
.table {
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
}

.table th {
    background-color: var(--header-bg) !important;
    color: var(--text-light) !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 500 !important;
}

/* ===== PAGINATION STYLES ===== */
.pagination .page-link {
    color: var(--header-bg) !important;
    border-color: var(--header-bg) !important;
    font-family: "Roboto", sans-serif !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--header-bg) !important;
    border-color: var(--header-bg) !important;
    color: var(--text-light) !important;
}

.pagination .page-link:hover {
    background-color: var(--button-bg) !important;
    border-color: var(--button-bg) !important;
    color: var(--text-light) !important;
}

/* ===== SPECIFIC OSCAR COMPONENTS ===== */

.basket-title {
    color: #fff !important;
    font-family: "Roboto Slab", serif !important;
}

/* Checkout styles */
.checkout-page {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-radius: var(--border-radius) !important;
    padding: 2rem !important;
}

/* Dashboard styles */
.dashboard-nav {
    background-color: var(--header-bg) !important;
}

.dashboard-nav .nav-link {
    color: var(--text-light) !important;
    font-family: "Roboto", sans-serif !important;
}

.dashboard-nav .nav-link:hover {
    background-color: var(--button-bg) !important;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .card {
        margin-bottom: 1rem !important;
    }
    
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
    }
    
    .basket-mini {
        margin-top: 0.5rem !important;
        width: 100% !important;
        text-align: center !important;
    }
}

/* ===== CUSTOM UTILITY CLASSES ===== */
.text-roboto {
    font-family: "Roboto", sans-serif !important;
}

.text-roboto-400 {
    font-family: "Roboto", sans-serif !important;
    font-weight: 400 !important;
}

.text-roboto-500 {
    font-family: "Roboto", sans-serif !important;
    font-weight: 500 !important;
}

.text-roboto-600 {
    font-family: "Roboto", sans-serif !important;
    font-weight: 600 !important;
}

.text-roboto-slab {
    font-family: "Roboto Slab", serif !important;
}

.bg-custom-primary {
    background-color: var(--primary-bg) !important;
}

.bg-custom-header {
    background-color: var(--header-bg) !important;
}

.text-custom-button {
    color: var(--button-bg) !important;
}

.border-custom {
    border-color: var(--button-bg) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

/* ===== CUSTOM COMPONENTS ===== */
.custom-jumbotron {
    background-color: var(--header-bg) !important;
    color: var(--text-light) !important;
    border-radius: var(--border-radius) !important;
    padding: 2rem !important;
}

.custom-jumbotron h1 {
    color: var(--text-light) !important;
    font-family: "Roboto Slab", serif !important;
}

.custom-badge {
    background-color: var(--button-bg) !important;
    color: var(--text-light) !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 500 !important;
}

/* ===== FORM VALIDATION STYLES ===== */
.is-invalid {
    border-color: #dc3545 !important;
}

.is-valid {
    border-color: #28a745 !important;
}

.invalid-feedback {
    font-family: "Roboto", sans-serif !important;
    font-weight: 400 !important;
}

.valid-feedback {
    font-family: "Roboto", sans-serif !important;
    font-weight: 400 !important;
}

/* ===== MODAL STYLES ===== */
.modal-content {
    border-radius: var(--border-radius) !important;
    border: 2px solid var(--button-bg) !important;
}

.modal-header {
    background-color: var(--header-bg) !important;
    color: var(--text-light) !important;
    font-family: "Roboto Slab", serif !important;
}

.modal-footer .btn {
    margin-left: 0.5rem !important;
}

.page-header, .sub-header {
    border-bottom: 0px;
    margin-bottom: 0;
}

.page .page_inner {
    background: transparent;
    border-radius: 0 ;
    box-shadow: none ;
}

/*продукты в каталоге*/
    .image_container {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    .image_container img {
        width: 100%;
        height: auto;
        display: block;
    }
    .instock.availability{
        display: none;
    }
    .add-to-cart-overlay {
        position: absolute;
        bottom: 0px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.6); /* Полупрозрачный чёрный фон */
        color: white;
        text-align: center;
        padding: 0.25rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 10;
    }

    .image_container:hover .add-to-cart-overlay {
        opacity: 1;
        visibility: visible;
    }

    .add-to-cart-overlay a,
    .add-to-cart-overlay button {
        color: white;
        text-decoration: none;
        font-weight: bold;
        display: inline-block;
        padding: 4px 12px;
        border: 1px solid white;
        border-radius: 4px;
        background: transparent;
        transition: background 0.2s;
    }

    .add-to-cart-overlay a:hover,
    .add-to-cart-overlay button:hover {
        background: rgba(255, 255, 255, 0.2);
    }
/*----------------------------*/
.side_categories{
    background-color: transparent !important;
    border: none !important;
    a{
        color: #000 !important;
    }
}
.available.availability{
    display: none !important;
}

.page-header-custom {
    background:  url('/static/images/header-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 60px 0;
    margin-bottom: 30px;
    text-align: center;
}

.page-header-custom h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
}
.mini_basket_box .btn{
    white-space: nowrap;
}
.category-card {
    border: 2px solid var(--button-bg) !important;
    border-radius: var(--border-radius) !important;
    transition: all 0.3s ease !important;
    background-color: var(--card-bg) !important;
}