/* ========================================                         
   BASE STYLES

   ======================================== */

:root {
    --color-brand: #000a5e;
    --color-btn-primary: #000a5e;/*0b6dd6;*/ /*#1964b4*/
}   
   
/* Base font */
body {
    font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
    background-color: #ebebeb;
    color: #373737;
    margin: 0;
    padding: 0;
}

.btn {
    border-radius: 6px;
}
.form-control,
.form-select {
    border-radius: 6px;
}
.form-control { 
	font-size: 15px;
	border-color: #757575;
}



* {
    font-family: inherit;
    box-sizing: border-box;
}

/* Links */
a {
    color: #1565c0;
    text-decoration: none;
}

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

/* Form controls */
input,
button,
select,
textarea,
.form-control,
.form-select,
.btn {
    font-family: Arial, Helvetica, sans-serif;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
}
h1 {
    color: #373737;
    font-size: 24px;
    line-height: 28px;
    font-weight: 700 !important;
}
h1 .h1_span {
    font-weight: 500 !important;
}
h2 {
    color: #373737;
    font-size: 20px;
    font-weight: 600 !important;
    margin-top: 30px;
    margin-bottom: 20px;
}
h3 {
    color: #373737;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600 !important;
}

::placeholder {
    color: #aaa;
    opacity: 1;
}  


/* Pagination */                     
.pagination .page-item {
	margin:3px;
}
.pagination .page-item.active .page-link {
    background-color: var(--color-btn-primary);
    border-color: #ffffff;
	color: #ffffff;
}  
.pagination .page-link {
    color: #898989;
	border: none;
	padding: 0px 5px;
	background: none;
}
.pagination .page-link:hover {
    color: var(--color-btn-primary);
	background: none;
}
/* Disabled - no background */
.pagination .page-item.disabled .page-link {
    background: none;
    color: #ccc;
}

/* Rodyklės per CSS */
.page-arrow {
    display: inline-block;
    border: 1px solid #888;
    border-width: 1px 1px 0 0;
    height: 8px;
    width: 8px;
    margin-bottom: 1px;
    vertical-align: middle;
}
.page-arrow-prev {
    transform: rotate(225deg) skew(7deg, 7deg);
    margin-right: 2px;
}
.page-arrow-next {
    transform: rotate(45deg) skew(7deg, 7deg);
    margin-left: 2px;
}

/* Nav mygtukų tekstas */
.page-arrow-text {
    vertical-align: middle;
    font-size: 0.85rem;
}

/* Nav mygtukai — su border mobile */
@media (max-width: 767px) {
    .page-item-nav .page-link {
        border: 1px solid #ddd !important;
        border-radius: 6px !important;
        padding: 3px 8px;
    }
    .page-item-nav.disabled .page-link {
        border-color: #eee !important;
    }
}

/* Ankstesnis/Sekantis mygtukai — pašalinti &laquo; &raquo; */
.pagination .page-item:first-child .page-link span[aria-hidden],
.pagination .page-item:last-child .page-link span[aria-hidden] {
    display: none;
}









.btn-produktas {
    background-color: #fff;
    color: var(--color-btn-primary);
    border: 1px solid var(--color-btn-primary);
    border-radius: 6px;
	line-height:25px;
    min-width: 170px;
}
.btn-produktas:hover,
.btn-produktas:focus,
.btn-produktas:active {
    background-color: var(--color-btn-primary);
    color: #fff;
    border-color: var(--color-btn-primary);
    text-decoration: none;
}
/* Button hover when hovering parent item */
.product-card:hover .btn-produktas,
.product-list-item:hover .btn-produktas,
.offer-item:hover .btn-produktas {
    background-color: var(--color-btn-primary);
    color: #fff;
    border-color: var(--color-btn-primary);
    text-decoration: none;
}

.table-paspaudimai {}
.table-outer-border {
    border: 1px solid #dee2e6;
}

.content-block {
    overflow: hidden;
    border-radius: 5px;
    background-color: #fff;
    margin-bottom: 15px;
}
.content-block-content {
    padding: 15px;
}

.content-block h1 {
    font-size: 24px;
    line-height: 24px;
    padding: 15px 15px 15px;
	border-bottom: 1px solid #dadada;
    /*padding: 15px 15px 30px;
	background-image: url('/images/linija-h1.png');
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: auto 27%;
    border-bottom: none;*/
    color: #1e232b;
    font-weight: 600 !important;
    margin-bottom: 0;
}
@media (max-width: 767px) {  
	.content-block h1 {      
		font-size: 18px;
    	line-height: 18px;
        background-image: none;
        border-bottom: 1px solid #dadada;
        padding-bottom: 15px;
    }
}

/* ========================================
   HEADER - CENTERED SEARCH LAYOUT
   ======================================== */

.site-header {
    background-color: var(--color-brand);
    padding: 10px 0;
    position: relative;
    z-index: 1050;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-left {
    flex: 0 0 auto;
    min-width: 275px;
}

.header-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 0 0 auto;
    min-width: 275px;
    display: flex;
    justify-content: flex-end;
}

.logo img {
    max-height: 45px;
	margin: 3px 0;
}

.search-form-wrapper {
    width: 100%;
}

.search-form {
    margin-bottom: 0;
}

.search-form .input-group {
    margin: 0 auto;
}

.search-input {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 10px;
    font-size: 18px;
    border-radius: 7px 0 0 7px;
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    outline: none;
}

.search-btn,
.search-btn:hover,
.search-btn:focus,
.search-btn:focus-visible,
.search-btn:active,
.search-btn.active {
    background-color: #ffcb00 !important;
    color: #000 !important;
    border: none;
    font-size: 18px;
    padding: 8px 20px;
    border-radius: 0 7px 7px 0;
    box-shadow: none !important;
    outline: none !important;
}

.site-header .form-control::placeholder {
    color: #000 !important;
    opacity: 0.5 !important;  
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 20px;
}

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

.site-footer {
    background: var(--color-brand);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.site-footer h5 {
    color: #fff;
    margin-bottom: 15px;
}

.site-footer small{
	font-size: 0.8rem;
}

.site-footer p {
    color: #a0aec0;
    margin-bottom: 10px;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}



.footer-bottom {
    margin-top: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    /*background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);*/
	background-color:var(--color-btn-primary);
    border: none;
}

.btn-primary:hover {
    /*background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);  */
	background-color:var(--color-btn-primary);
    border: none;
}

.btn-outline-primary {
    color: var(--color-btn-primary);
    border-color: var(--color-btn-primary);
}
.btn-outline-primary:hover {
    background-color: var(--color-btn-primary);
    border-color: var(--color-btn-primary);
    color: #fff;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* =============================================
   Customer Dropdown (logged in users - header)
   ============================================= */

.customer-dropdown {
    position: relative;
    flex-shrink: 0;
    z-index: 1100;
}

.customer-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
    background: none;
    border: none;
}

.customer-dropdown-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.customer-dropdown-trigger .dropdown-arrow {
    transition: transform 0.2s;
    color: rgba(255, 255, 255, 0.7);
}

/* Desktop: hover opens dropdown */
.customer-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.customer-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1100;
}

.customer-dropdown:hover .customer-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.customer-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.customer-dropdown-item:first-child {
    border-radius: 6px 6px 0 0;
}

.customer-dropdown-item:last-child {
    border-radius: 0 0 6px 6px;
}

.customer-dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.customer-dropdown-item svg {
    color: #666;
    flex-shrink: 0;
}

.customer-dropdown-item.customer-logout {
    border-top: 1px solid #e0e0e0;
    color: #dc3545;
}

.customer-dropdown-item.customer-logout:hover {
    background-color: #fff5f5;
    color: #c82333;
}

.customer-dropdown-item.customer-logout svg {
    color: #dc3545;
}

/* Mobile icon link — paslėptas desktop'e */
.customer-mobile-icon {
    display: none;
    color: rgba(255, 255, 255, 0.9);
    padding: 6px;
    align-items: center;
    text-decoration: none;
}
.customer-mobile-icon:hover {
    color: #fff;
}

/* ========================================
   MOBILE CAT BUTTON
   ======================================== */

.mobile-cat-btn {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}
.mobile-cat-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* ========================================
   BREADCRUMB HOME ICON
   ======================================== */

.breadcrumb-home svg {
    color: #555;
    vertical-align: -2px;
}
.breadcrumb-home:hover svg {
    color: #1565c0;
}

/* ========================================
   MOBILE HEADER LAYOUT
   ======================================== */

@media (max-width: 768px) {
    .mobile-cat-btn { display: flex; }

	.customer-mobile-icon {
        display: flex;
        align-items: center;
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.9);
        padding: 6px;
        cursor: pointer;
    }
    .customer-dropdown-trigger { display: none; }
    /* Menu rodomas kai paspaudžiamas icon */
    .customer-dropdown:focus-within .customer-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
	.customer-dropdown-menu {
        z-index: 2000;
    }

	
    /* Mobile: open dropdown on :focus-within (tap) */
    .customer-dropdown:focus-within .customer-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
	
	.customer-dropdown {
        position: relative;
    }

    .customer-dropdown::after {
        content: '';
        position: absolute;
        top: 4px;
        right: 4px;
        width: 8px;
        height: 8px;
        background: #28a745;
        border-radius: 50%;
        border: 2px solid var(--color-brand);  /* tas pats kaip header fonas */
    }

    .site-header {
        padding: 0;
    }
	
	/* užtamsina */
	.site-header.menu-open {
        position: relative;
    }
    .site-header.menu-open::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.65);
        z-index: 1060;  /* virš header turinio */
    }
    .main-navbar.menu-open {
        position: relative;
    }
    .main-navbar.menu-open::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.65);
        z-index: 1060;
    }
	
	
	
	

    .header-content {
        flex-wrap: wrap;
        gap: 0;
        position: relative;
        align-items: center;
        padding: 10px 5px 12px 5px;
    }

    /* Row 1 left: cat button + logo */
    .header-left {
        min-width: auto;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        order: 1;
    }

    /* Logo: absolutely centered in row 1 */
    .header-left .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
	.logo img {
	    max-height: 30px;
		margin: 15px 3px 18px 3px;
	}

    /* Row 1 right: account icon */
    .header-right {
        min-width: auto;
        margin-left: auto;
        order: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* Row 2: search full width */
    .header-center {
        order: 3;
        flex-basis: 100%;
        padding-top: 8px;
    }

    /* Smaller search */
    .search-input {
        padding: 0px 10px;
        font-size: 15px;
    }

    .search-btn,
    .search-btn:hover,
    .search-btn:focus,
    .search-btn:focus-visible,
    .search-btn:active,
    .search-btn.active {
        padding: 5px 15px !important;
        font-size: 15px !important;
    }
}

/* ========================================
   HOMEPAGE - Info Teasers
   ======================================== */

.home-teasers {
    display: flex;
    gap: 20px;
    margin: 10px 0 40px;
}

.home-teaser {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    text-align: center;
}

.home-teaser-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #1565c0;
    margin-bottom: 16px;
}

.home-teaser h3 {
    font-size: 17px;
    font-weight: 700;
    color: #373737;
    margin: 0 0 10px;
}

.home-teaser p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .home-teasers {
        flex-direction: column;
        gap: 16px;
    }
}


.table thead.table-light th {
    background-color: #e9ecef;
    color: #333;
}
.card-header {
    background-color: #e9ecef;
    color: #333;
}


@media (max-width: 767px) {  
	.main-content {
	    padding-top: 0px;
	}
    .main-content .container {
        padding-left: 0;
        padding-right: 0;
    }
	.container {
        overflow-x: hidden;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .header-left  { min-width: 160px; }
    .header-right { min-width: 160px; }
    .logo img     { max-height: 36px; }
    .search-input { font-size: 15px; }
    .search-btn,
    .search-btn:hover,
    .search-btn:focus,
    .search-btn:focus-visible,
    .search-btn:active,
    .search-btn.active {
        font-size: 15px !important;
        padding: 5px 14px !important;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}