/* ============================================================
   BASE.CSS - GLOBAL STYLES, VARIABLES, RESET
   ============================================================ */

:root {
    --accent-color: #00509d;
    /* Основной синий */
    --accent-hover: #003d7a;
    /* Темно-синий */
    --dark-blue: #004080;
    /* Цвет заголовка каталога */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --border-color: #e1e1e1;
}

/* 1. GLOBAL RESET */
* {
    border-radius: 0 !important;
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    /* Fix horizontal scroll on mobile */
}

a {
    color: var(--text-color);
    transition: 0.2s;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. LAYOUT UTILITIES */
.container {
    /* Bootstrap override if needed, but usually default is fine */
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
}

.breadcrumb li {
    display: inline-block;
}

.breadcrumb li+li:before {
    content: "›";
    padding: 0 8px;
    color: #999;
}

.breadcrumb a {
    color: #00509d;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #003d7a;
    text-decoration: underline;
}

/* Buttons (Global) */
.btn {
    border-radius: 0;
}

/* Buttons (Cart) */
.cart-btn-link {
    color: var(--accent-color);
    text-decoration: underline;
    font-size: 14px;
    padding: 12px 20px;
    display: inline-block;
}

.cart-btn-link:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

.cart-btn-primary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 10px 30px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
}

.cart-btn-primary:hover {
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
}

/* Quantity Selector */
.quantity-selector {
    max-width: 150px;
    display: inline-flex !important;
    align-items: center;
}

.quantity-selector .form-control {
    border: none;
    padding: 5px;
    text-align: center;
    background: #f8f9fa;
    font-size: 14px;
    min-width: 50px;
}

.quantity-selector .btn {
    border: none;
    background: #f8f9fa;
    color: #333;
    border-radius: 0 !important;
    padding: 5px 10px;
}

.quantity-selector .btn:hover {
    background: #e9ecef;
}

/* ============================================================
   TABLET RESPONSIVE TRANSITIONS (768px - 991px)
   ============================================================ */

/* Global smooth transitions for layout elements */
.container,
.row,
[class*="col-"] {
    transition: all 0.3s ease-out;
}

/* Tablet-specific container adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Sidebar (left column) - keep visible but narrower */
    #column-left {
        width: 30%;
        flex: 0 0 30%;
        max-width: 30%;
        transition: all 0.3s ease-out;
    }

    /* Main content area - adjust width */
    #content.col-sm-9,
    #content.col-md-9 {
        width: 70%;
        flex: 0 0 70%;
        max-width: 70%;
        transition: all 0.3s ease-out;
    }

    /* Full-width content when no sidebar */
    #content.col-sm-12,
    #content.col-md-12 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}