/**
 * Magento Base Styles - Core components from Blank/Luma theme
 * Converted to pure CSS for Lutish Companytheme
 * @version 1.0.13 - Unified breadcrumb styles for category and product pages
 */

/*=== Reset & Base ===*/
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; }
body { margin: 0; padding: 0; font-size: 1.4rem; line-height: 1.42857143; color: #333; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
img { border: 0; height: auto; max-width: 100%; vertical-align: top; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
fieldset { border: 0; margin: 0; padding: 0; }

/*=== Typography ===*/
h1, h2, h3, h4, h5, h6 { margin: 0 0 10px; font-weight: 700; line-height: 1.2; }
h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
p { margin: 0 0 10px; }
a { color: #006bb4; text-decoration: none; transition: color .3s; }
a:hover { color: #e62129; text-decoration: underline; }

/*=== Lists ===*/
.items, .product-items { margin: 0; padding: 0; list-style: none none; }

/*=== Forms ===*/
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
textarea,
select {
    background: #fff;
    border: 1px solid #c2c2c2;
    border-radius: 1px;
    font-size: 14px;
    height: 32px;
    line-height: 1.42857143;
    padding: 0 9px;
    vertical-align: baseline;
    width: 100%;
    box-sizing: border-box;
}
input:focus, textarea:focus, select:focus { border-color: #006bb4; outline: none; }
textarea { height: auto; min-height: 100px; resize: vertical; padding: 9px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
input[type="checkbox"], input[type="radio"] { margin: 0 5px 0 0; vertical-align: middle; }
label { display: inline-block; margin-bottom: 5px; font-weight: 600; color: #333; }
.field { margin-bottom: 20px; }
.field .label { display: block; margin-bottom: 5px; }
.field .control { width: 100%; }
.fieldset { border: 0; margin: 0 0 20px; padding: 0; }
.fieldset > .field { margin-bottom: 15px; }
.field.choice { margin-bottom: 10px; }
.field.choice .label { display: inline; font-weight: normal; }
.required > .label:after { content: '*'; color: #e02b27; font-size: 1.2rem; margin-left: 3px; }
.field-error, div.mage-error { margin-top: 7px; color: #e02b27; font-size: 12px; }

/*=== Buttons ===*/
button, .action.primary, .action-primary {
    display: inline-block;
    background: #1979c3;
    border: 1px solid #1979c3;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 3px;
    transition: all .3s;
    text-decoration: none;
}
button:hover, .action.primary:hover { background: #006bb4; border-color: #006bb4; }
.action.secondary { background: transparent; border: 1px solid #ccc; color: #333; }
.action.secondary:hover { background: #f5f5f5; border-color: #999; }

/*=== Messages ===*/
.message { margin-bottom: 10px; padding: 10px 15px; border-radius: 3px; font-size: 13px; }
.message.info { background: #f0f6f9; border: 1px solid #c6d8e8; color: #1e5d87; }
.message.success { background: #eef9eb; border: 1px solid #c6dfc1; color: #3d661a; }
.message.warning { background: #fdf0d5; border: 1px solid #f0c549; color: #856404; }
.message.error { background: #f9e9eb; border: 1px solid #e8c6c6; color: #a51c1c; }

/*=== Tables ===*/
table { width: 100%; margin-bottom: 20px; }
table th, table td { padding: 10px; border: 1px solid #ddd; text-align: left; }
table th { background: #f5f5f5; font-weight: 600; }
.data.table th, .data.table td { padding: 12px 15px; border-bottom: 1px solid #e5e5e5; }

/*=== Layout ===*/
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.page-main { flex-grow: 1; width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.columns { display: flex; flex-wrap: wrap; }
.column.main { flex: 1; min-width: 0; }
/* sidebar widths defined in catalog-specific rules */
.container, .page-header .header.panel, .footer.content, .header.content, .navigation { max-width: 1600px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/*=== Header ===*/
.page-header { border-bottom: 1px solid #e5e5e5; margin-bottom: 20px; }
.page-header .panel.wrapper { background-color: #6e716e; color: #fff; }
.header.panel { padding: 10px 20px; }
.header.panel:after { content: ''; display: table; clear: both; }
.header.panel > .header.links { list-style: none none; float: right; font-size: 0; margin: 0; }
.header.panel > .header.links > li { display: inline-block; font-size: 14px; margin: 0 0 0 15px; }
.header.panel > .header.links > li > a { color: #fff; }
.header.content { padding: 20px; }
.header.content:after { content: ''; display: table; clear: both; }
.logo { float: left; margin: 0; max-width: 180px; }
.logo img { display: block; max-height: 50px; }

/*=== Navigation ===*/
.navigation { background: #f0f0f0; font-weight: 700; padding: 0; position: relative; z-index: 3; }
.navigation ul { margin: 0;list-style: none; }
.navigation .level0 { margin: 0; display: inline-block; position: relative; }
.navigation .level0 > .level-top { display: block; padding: 12px 15px; color: #333; line-height: 1.4; text-decoration: none; }
.navigation .level0 > .level-top:hover { color: #e62129; background: rgba(0,0,0,.03); }
.navigation .level0.active > .level-top { color: #e62129; border-bottom: 2px solid #e62129; }
.navigation .submenu { display: none; position: absolute; left: 0; top: 100%; min-width: 200px; background: #fff; border: 1px solid #e5e5e5; box-shadow: 0 5px 15px rgba(0,0,0,.1); z-index: 100; padding: 10px 0; }
.navigation .level0:hover > .submenu { display: block; }
.navigation .submenu li { margin: 0; }
.navigation .submenu a { display: block; padding: 8px 15px; color: #333; font-weight: 400; }
.navigation .submenu a:hover { background: #f5f5f5; color: #e62129; }

/*=== Breadcrumbs ===*/
/* v1.0.12 - Unified breadcrumb styles with container support */
.breadcrumbs {
    background: #f5f5f5;
    padding: 12px 0;
    margin-bottom: 20px;
    width: 100%; /* Full-width background */
}
.breadcrumbs .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}
.breadcrumbs .items,
.breadcrumbs .breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.breadcrumbs .item,
.breadcrumbs .breadcrumb-item {
    margin: 0;
}
.breadcrumbs .item:not(:last-child):after,
.breadcrumbs .breadcrumb-item:not(:last-child):after {
    content: '/';
    margin: 0 8px;
    color: #999;
}
.breadcrumbs a {
    color: #333;
    text-decoration: none;
    transition: color .3s;
}
.breadcrumbs a:hover {
    color: #e62129;
    text-decoration: none;
}
.breadcrumbs strong,
.breadcrumbs .active {
    font-weight: 600;
    color: #e62129;
}

/*=== Footer ===*/
.page-footer { margin-top: auto; background: #f4f4f4; padding: 25px 0; width: 100%; }
.footer.content { padding-top: 20px; max-width: 1280px; margin: 0 auto; }
.footer.content:after { content: ''; display: table; clear: both; }
.footer.content .links { display: inline-block; vertical-align: top; margin-bottom: 20px; }
.footer.content ul { padding: 0; list-style: none; }
.footer.content .links li { margin: 0 0 8px; }
.footer.content .links a { color: #575757; }
.footer.content .links a:hover { color: #e62129; text-decoration: none; }
.footer .copyright { display: block; padding: 10px 0; text-align: center; color: #666; font-size: 12px; }

/*=== Blocks ===*/
.block { margin-bottom: 20px; }
.block .block-title { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #e5e5e5; }
.block .block-title strong { font-size: 18px; font-weight: 600; color: #333; }
.block .block-content { padding: 0; }
.block .block-content:after { content: ''; display: table; clear: both; }

/*=== Product Items ===*/
/* Width/column layout is handled by Luma's _listings.less (calc-based, not grid) */
.products-grid { }
.product-item { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; overflow: hidden; transition: all .3s; }
.product-item:hover { border-color: #e62129; box-shadow: 0 5px 20px rgba(0,0,0,.1); transform: translateY(-3px); }
.product-item .product-item-info { display: flex; flex-direction: column; height: 100%; }
.product-item .product-item-photo { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: #f8f8f8; }
.product-item .product-item-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.product-item:hover .product-item-photo img { transform: scale(1.05); }
.product-item .product-item-details { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.product-item .product-item-name { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.product-item .product-item-name a { color: #333; }
.product-item .product-item-name a:hover { color: #e62129; text-decoration: none; }
.product-item .price-box { margin: 10px 0; }
.product-item .price-box .price { font-size: 18px; font-weight: 700; color: #e62129; }
.product-item .old-price .price { font-size: 14px; color: #999; text-decoration: line-through; margin-right: 8px; }
.product-item .product-item-actions { margin-top: auto; padding-top: 10px; }
.product-item .action.tocart { width: 100%; background: #e62129; border-color: #e62129; color: #fff; padding: 10px; }
.product-item .action.tocart:hover { background: #c41e1a; border-color: #c41e1a; }

/*=== Toolbar ===*/
.toolbar { padding: 15px 0; margin-bottom: 20px; border-bottom: 1px solid #e5e5e5; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.toolbar .sorter { display: flex; align-items: center; gap: 10px; }
.toolbar .sorter select { width: auto; min-width: 150px; }
.toolbar .pager { display: flex; align-items: center; gap: 10px; }
.toolbar .pages { display: flex; gap: 3px; }
.toolbar .pages a, .toolbar .pages strong { display: block; padding: 6px 12px; border: 1px solid #ddd; background: #fff; }
.toolbar .pages strong { background: #e62129; border-color: #e62129; color: #fff; }

/*=== Modals ===*/
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 999; display: none; }
.modal-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.3); z-index: 1000; max-width: 90%; max-height: 90vh; overflow: auto; display: none; }
.modal-popup.active { display: block; }
.modal-header { padding: 20px; border-bottom: 1px solid #e5e5e5; }
.modal-content { padding: 20px; }
.modal-footer { padding: 15px 20px; border-top: 1px solid #e5e5e5; text-align: right; }
.modal-close { position: absolute; top: 15px; right: 15px; font-size: 24px; line-height: 1; color: #999; cursor: pointer; background: none; }

/*=== Loading ===*/
.loading-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.5); z-index: 9999; display: none; align-items: center; justify-content: center; }
.loading-mask.active { display: flex; }
.loader { width: 40px; height: 40px; border: 3px solid #f0f0f0; border-top-color: #e62129; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/*=== Actions Toolbar ===*/
.actions-toolbar{margin:20px 0}
.actions-toolbar:after{content:'';display:table;clear:both}
.actions-toolbar>.primary,.actions-toolbar>.secondary{text-align:center;margin-bottom:15px}
.actions-toolbar>.primary .action,.actions-toolbar>.secondary .action{margin-bottom:10px}
@media(min-width:768px){.actions-toolbar{display:flex;justify-content:space-between;align-items:center}.actions-toolbar>.primary,.actions-toolbar>.secondary{margin-bottom:0}.actions-toolbar>.primary .action,.actions-toolbar>.secondary .action{margin-bottom:0;width:auto}}

/*=== Price Styles ===*/
.price-box{margin:5px 0}
.price{font-weight:600;color:#db1f25}
.price-from .price,.price-to .price{color:#db1f25}
.old-price .price{color:#999;text-decoration:line-through;font-weight:400}
.special-price{color:#db1f25}
.regular-price .price{color:#db1f25}

/*=== Responsive ===*/
@media(max-width:1024px){.products-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:768px){.products-grid{grid-template-columns:repeat(2,1fr);.columns{flex-direction:column}.sidebar-main,.sidebar-additional{flex:0 0 100%;max-width:100%}.toolbar{flex-direction:column;align-items:flex-start;gap:10px}.page-main,.page-header .header.panel,.header.content,.breadcrumbs,.navigation{padding-left:15px;padding-right:15px}}}
@media(max-width:480px){.products-grid{grid-template-columns:1fr}}
