/* Mastik - Styles */

/* Top Bar */
.top-bar {
    /*background: linear-gradient(135deg, var(--mastik-navy) 0%, #1a3a6e 100%);*/
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 45px;
}

.cart-icon {
    position: relative;
    color: var(--mastik-blue);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--mastik-blue);
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border-radius: 20px;
    border: none;
    color: #333;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-area span {
    font-weight: 500;
}

.btn-login-top {
    background: var(--mastik-blue);
    color: white;
    padding: 6px 16px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.btn-login-top:hover {
    background: #168ab5;
}

/* Sidebar */
.sidebar {
    width: 228px;
    /*background: var(--mastik-navy);*/
    min-height: calc(100vh - 45px);
    position: fixed;
    left: 0;
    top: 45px;
    overflow-y: auto;
}

.sidebar img {
    width: 85%;
    margin: 5px 0 15px 8px;
    display: block;
}

/* Menu */
    .menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    background-color: #13315ceb;
}

.menu-link:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.menu-link i:first-child {
    width: 25px;
}

.menu-link span {
    flex: 1;
}

.menu-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.menu-item.has-arrow .menu-link {
    justify-content: space-between;
}

/* Submenu */
.submenu {
    display: none;
    background: #0a1638;
    padding: 0;
    background-color: #00a8e1e8;
}

.menu-item.active .submenu {
    display: block;
}

.menu-item.active .menu-arrow {
    transform: rotate(180deg);
}

.submenu a {
    display: block;
    padding: 10px 15px 10px 45px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.submenu a:hover {
    color: white;
    background: var(--mastik-light);
    border-left-color: var(--mastik-blue);
}

/* Social Media */
.social_media {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
}

.social_media a {
    color: rgba(255,255,255,0.5);
    font-size: 16px;
}

.social_media a:hover {
    color: white;
}

/* Body Content */
.body-content {
    margin-left: 228px;
    margin-top: 45px;
    padding: 20px;
    min-height: calc(100vh - 45px);
}

.content-card {
    /*background: rgba(255,255,255,0.95);*/
    background: rgb(62 64 69);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

    .content-card h2 {
        margin: 0 0 15px;
        color: white; /*var(--mastik-navy);*/
        font-size: 20px;
    }

footer {
    text-align: center;
    padding: 15px;
    color: var(--mastik-navy);
    font-weight: 500;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    margin: 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: white;
    background-color:transparent;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--mastik-blue);
}

.breadcrumb .atual {
    font-weight: bold;
}

/* Page Title */
.page-title {
    font-size: 28px;
    color: white;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Groups Grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.group-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.group-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mastik-navy), var(--mastik-blue));
}

.group-icon i {
    font-size: 50px;
    color: white;
}

.group-info {
    padding: 20px;
    text-align: center;
}

.group-info h3 {
    margin: 0 0 8px;
    color: var(--mastik-navy);
    font-size: 18px;
    font-weight: 600;
}

.group-info p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Norma Section */
.norma-section {
    margin-bottom: 30px;
}

.norma-header {
    background: linear-gradient(135deg, var(--mastik-navy), var(--mastik-blue));
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
}

.norma-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 0 0 8px 8px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    display: block;
}

.article-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.article-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.article-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.article-name {
    padding: 15px;
    text-align: center;
    color: var(--mastik-navy);
    font-weight: 500;
}

/* Product Detail */
.product-detail-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.product-detail-row .product-header {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.product-detail-row .config-section {
    width: 380px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.product-header {
    display: flex;
    gap: 30px;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
}

.product-image {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    flex: 1;
}

.product-title {
    margin: 0 0 10px;
    color: var(--mastik-navy);
    font-size: 24px;
}

.product-code, .product-norma {
    color: #666;
    margin-bottom: 5px;
}

.product-desc {
    margin-top: 15px;
    color: #333;
}

.config-section {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.config-section h4 {
    margin: 0 0 20px;
    color: var(--mastik-navy);
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    cursor: pointer;
}

/* Styled Select */
.styled-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    color: #333;
    background: #fff;
    border: 2px solid #d0d5dd;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.styled-select:hover {
    border-color: var(--mastik-navy);
}

.styled-select:focus {
    border-color: var(--mastik-navy);
    box-shadow: 0 0 0 3px rgba(15,30,67,0.12);
    outline: none;
}

.radio-item input:disabled + span {
    opacity: 0.4;
}

.radio-item input:disabled {
    cursor: not-allowed;
}

.styled-select option:disabled {
    color: #aaa;
    background: #f5f5f5;
}

.qty-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.qty-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.qty-info {
    color: #666;
    font-size: 13px;
}

.price-box {
    background: var(--mastik-navy);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.price-label {
    color: rgba(255,255,255,0.8);
    margin-bottom: 5px;
}

.price-value {
    color: white;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
}

.login-prompt {
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.add-cart-btn {
    background: var(--mastik-blue);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}

.add-cart-btn:hover {
    background: #168ab5;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    margin-top: 20px;
}

.tab {
    padding: 12px 25px;
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    color: #666;
    border-radius: 8px 8px 0 0;
}

.tab.active {
    background: rgba(255,255,255,0.95);
    color: var(--mastik-navy);
    font-weight: 600;
}

.tab-content {
    display: none;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 0 8px 8px 8px;
}

.tab-content.active {
    display: block;
}

.specs {
    width: 100%;
    border-collapse: collapse;
}

.specs th, .specs td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.specs th {
    color: var(--mastik-navy);
    width: 200px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.download-item i {
    color: var(--mastik-blue);
    font-size: 20px;
}

.download-item a {
    color: var(--mastik-navy);
    text-decoration: none;
}

/* Compatibility */
.card {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.card h2 {
    margin: 0 0 15px;
    color: var(--mastik-navy);
    font-size: 18px;
}

.card-body {
    padding: 20px;
}

.form-card {
    max-width: 600px;
}

/* Produtos page */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    overflow: hidden;
}

.category-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mastik-navy), var(--mastik-blue));
}

.category-img i {
    font-size: 50px;
    color: white;
}

.category-info {
    padding: 15px;
    text-align: center;
}

.category-info h3 {
    margin: 0 0 8px;
    color: var(--mastik-navy);
}

.category-info p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Buttons */
.btn {
    padding: 5px 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary {
    background: var(--mastik-blue);
    color: white;
}

.btn-default {
    background: #ddd;
    color: #333;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--mastik-blue);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    overflow: hidden;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: var(--mastik-navy);
    color: white;
}

.table tr:hover {
    background: #f5f5f5;
}

/* Category Toggle */
.view-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    max-width: 400px;
}

.view-toggle .toggle-btn {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.view-toggle .toggle-btn.active {
    background: var(--mastik-blue);
    color: white;
}

.view-toggle .toggle-btn i {
    margin-right: 6px;
}

/* Search Form */
.search-form {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 25px;
}

.search-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 180px;
}

.search-field label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 13px;
}

.search-filter {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 5px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}

.search-filter:focus {
    outline: none;
    border-color: var(--mastik-navy);
}

/* ComboBox */
.combo-wrap {
    position: relative;
    width: 100%;
}

.combo-input {
    width: 100%;
    padding: 10px 36px 10px 14px;
    font-size: 15px;
    color: #333;
    background: #fff;
    border: 2px solid #d0d5dd;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
}

.combo-input:focus {
    border-color: var(--mastik-navy);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15,30,67,0.12);
}

.combo-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666;
    cursor: pointer;
    pointer-events: auto;
}

.combo-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.combo-option {
    padding: 8px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.combo-option:hover {
    background: var(--mastik-light);
    color: var(--mastik-navy);
}

.combo-empty {
    padding: 10px 14px;
    color: #999;
    font-size: 13px;
}

.search-actions {
    margin-top: 20px;
}

.search-results-count {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.btn-primary {
    background: var(--mastik-blue);
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #168ab5;
}

/* Cart Page */
.cart-table-wrap {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cart-table th, .cart-table td {
    vertical-align: middle;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cart-item-info small {
    color: #999;
    font-size: 12px;
}

.cart-qty {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    width: 60px;
}

.cart-price {
    font-weight: 600;
    color: var(--mastik-navy);
}

.btn-small {
    padding: 5px 12px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f5f5f5;
    cursor: pointer;
    margin-left: 5px;
}

.btn-small:hover {
    background: #e0e0e0;
}

.btn-remove {
    color: #c00;
    border-color: #fcc;
}

.btn-remove:hover {
    background: #fee;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
}

.empty-cart p {
    color: rgba(255,255,255,0.6);
    font-size: 18px;
}

.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.cart-actions a {
    padding: 12px 25px;
}

.table tfoot th {
    font-size: 16px;
}