﻿.implementedhero-section {
    background-color: #f0f0f0;
    color: white;
    position: relative;
    width: 100%;
    height: 350px;
    background-image: url('/images/sliderphoto1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

    .implementedhero-section .overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .implementedhero-section .overlay h1 {
            text-transform: uppercase;
            position: relative;
            z-index: 2;
            margin: 0 20px;
            text-align: center;
            font-weight: bold;
            font-size: 3rem;
            color: white;
        }

@media (max-width: 600px) {
    .implementedhero-section {
        height: 180px;
        font-size: 1.8rem;
    }

        .implementedhero-section .overlay h1 {
            font-size: 2rem;
        }
}

body {
    background-color: #f5f5f5;
    color: #444;
    font-family: 'Segoe UI', sans-serif;
}

body, html {
    overflow-x: hidden;
    max-width: 100vw;
}

.row.g-4 {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    margin-bottom: 3rem;
    min-height: 200px;
}

    .row.g-4 > [class*='col-'] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        box-sizing: border-box;
    }

@media (min-width: 768px) {
    .row.g-4 {
        padding: 0 2rem;
    }
}

.card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1.2rem;
    margin: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
}

    .card:hover {
        transform: scale(1.01);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-text {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.card .text-success {
    color: #EC1C24 !important;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.admin-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.2rem;
    color: #EC1C24;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
}

    .btn-icon:hover {
        transform: scale(1.2);
        color: #c3131a;
    }


.pagination .page-link {
    color: #444;
}

.pagination .page-item.active .page-link {
    background-color: #EC1C24;
    border-color: #EC1C24;
    color: #fff;
}

.search-form {
    margin-top: 2rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.search-bar {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

    .search-bar .form-control {
        border: none;
        padding: 0.75rem 1rem;
        border-radius: 0;
        font-size: 1rem;
        color: #444;
    }

        .search-bar .form-control:focus {
            box-shadow: none;
            outline: none;
        }

.btn-search {
    background-color: #EC1C24;
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

    .btn-search:hover {
        background-color: #c3131a;
        color: #fff;
    }

.admin-controls {
    display: flex;
    gap: 8px;
    padding: 20px 0 0 16px;
}

.create-btn {
    background-color: #EC1C24;
    border-color: #EC1C24;
    color: white;
    font-weight: bold;
}

    .create-btn:hover {
        background-color: #b3161b;
        border-color: #b3161b;
        color: white;
    }

.container.mt-5 {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.5;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 1.5rem;
    background: transparent;
    list-style: none;
    font-size: 0.9rem;
    color: #666;
}

    .breadcrumb li + li::before {
        content: "›";
        padding: 0 0.5rem;
        color: #ccc;
    }

    .breadcrumb a {
        color: #EC1C24;
        text-decoration: none;
    }

        .breadcrumb a:hover,
        .breadcrumb a:focus {
            text-decoration: underline;
            outline: none;
        }

.card {
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-radius: 10px;
    padding: 2rem;
    background: #fff;
}

.row.align-items-center {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 992px) {
    .row.align-items-center {
        flex-direction: row;
        gap: 1.5rem;
    }

    .col-lg-6 {
        flex: 1 1 50%;
    }

        .col-lg-6:not(.text-center) {
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 450px;
        }
}

.col-lg-6:not(.text-center) {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.col-lg-6.text-center {
    padding-left: 0;
    padding-right: 0;
}

.row.align-items-start > .col-lg-6 {
    padding-left: 8px;
    padding-right: 8px;
}

.col-lg-6.text-center img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: block;
    margin-left: 0;
    margin-right: 0;
}

.product-name {
    padding-top: 10px;
    padding-left: 30px;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #222;
}

.label {
    font-weight: 400;
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: #444;
}

    .label strong {
        font-weight: 600;
        color: #555;
        margin-right: 0.4rem;
    }

    .label span,
    .label:not(:has(strong)) {
        color: #666;
    }

.price {
    color: #EC1C24;
    font-weight: 400;
    font-size: 1.2rem;
    margin-left: 0.4rem;
}

h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #EC1C24;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-table-container {
    margin-top: 1rem;
    overflow-x: auto;
    max-width: 100%;
}

.description-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0,0,0,0.03);
}

    .description-table tbody tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .description-table td {
        padding: 0.7rem 1.2rem;
        border-bottom: 1px solid #eee;
        vertical-align: top;
    }

        .description-table td.key {
            font-weight: 600;
            color: #444;
            width: 38%;
            white-space: nowrap;
        }

        .description-table td.value {
            font-weight: 400;
            color: #666;
            word-wrap: break-word;
        }

    .description-table tbody tr:last-child td {
        border-bottom: none;
    }

.btn.btn-red {
    background-color: #fff;
    color: #EC1C24;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    border: 2px solid #EC1C24;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    margin-top: 1.5rem;
    max-width: 140px;
}

    .btn.btn-red:hover,
    .btn.btn-red:focus {
        background-color: #EC1C24;
        color: #fff;
        outline: none;
    }

    .btn.btn-red:focus-visible {
        outline: 3px solid #EC1C24;
        outline-offset: 3px;
    }

@media (max-width: 991px) {
    .row.align-items-center {
        flex-direction: column;
    }

    .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
    }

        .col-lg-6.text-center,
        .col-lg-6:not(.text-center) {
            order: initial;
        }

        .col-lg-6.text-center {
            margin-bottom: 1.5rem;
        }

    .btn.btn-red {
        width: 100%;
        max-width: none;
        margin-top: 1.5rem;
    }
}

.description-table-container {
    margin-bottom: 2rem;
}

@media (max-width: 480px) {
    .description-table {
        font-size: 0.9rem;
    }

    .product-name {
        font-size: 1.5rem;
    }

    .label {
        font-size: 1rem;
    }
}

.product-info-grid {
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    align-items: baseline;
    font-size: 1.1rem;
}

.label-text {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    width: 180px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.value-text {
    color: #555;
    font-size: 1.1rem;
}

.price-highlight {
    color: #EC1C24;
    font-weight: 600;
}

@media (max-width: 576px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .label-text,
    .value-text {
        text-align: left;
        width: 100%;
    }
}

.product-type-buttons > .btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
    overflow: visible;
}

border: {
    1px solid #EC1C24 !important;
}

.product-type-buttons > .btn-group > a.custom-product-btn:active {
    background-color: #EC1C24 !important;
    color: #fff !important;
}

.product-type-buttons > .btn-group > a.custom-product-btn:focus {
    background-color: #EC1C24 !important;
    color: #fff !important;
    outline: none;
}

.subcategory-panel {
    max-width: 320px;
    margin: 0.5rem auto 0 auto;
    padding: 1rem 1.2rem;
    border: 2px #666;
    border-radius: 12px;
    background-color: #fff9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

    .subcategory-panel h3 {
        color: #EC1C24;
        margin-bottom: 0.3rem;
        font-weight: 700;
        font-size: 1.2rem;
    }

.subcategory-description-1 {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.subcategory-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.subcategory-panel .btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 0;
}

    .subcategory-panel .btn-group > a.custom-product-btn {
        background-color: #f5f5f5;
        color: #444;
        border: none;
        border-radius: 10px;
        padding: 12px 18px;
        font-weight: 500;
        text-align: center;
        transition: background-color 0.3s ease, color 0.3s ease;
        cursor: pointer;
        user-select: none;
        display: block;
        font-size: 1rem;
        margin: 0;
        border-radius: 10px !important;
        flex: 0 0 auto;
        max-width: 180px;
        white-space: nowrap;
    }

        .subcategory-panel .btn-group > a.custom-product-btn.active {
            background-color: #EC1C24;
            color: #fff;
        }

        .subcategory-panel .btn-group > a.custom-product-btn:hover,
        .subcategory-panel .btn-group > a.custom-product-btn:focus {
            background-color: #EC1C24;
            color: #fff;
            outline: none;
        }

@media (max-width: 599px) {
    .product-type-buttons > .btn-group {
        flex-direction: row !important;
        justify-content: center;
        gap: 12px;
        max-width: 320px;
        margin: 0 auto;
    }

        .product-type-buttons > .btn-group > a.custom-product-btn {
            white-space: nowrap;
            flex: 0 0 auto;
        }

    .subcategory-panel .btn-group {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.8rem;
        padding-bottom: 0.4rem;
        scroll-behavior: smooth;
    }

        .subcategory-panel .btn-group::-webkit-scrollbar {
            height: 6px;
        }

        .subcategory-panel .btn-group::-webkit-scrollbar-thumb {
            background-color: #EC1C24;
            border-radius: 3px;
        }
}

@media (min-width: 600px) {
    .product-type-buttons > .btn-group {
        flex-direction: row;
        justify-content: center;
        max-width: 600px;
        gap: 12px;
    }

        .product-type-buttons > .btn-group > a.custom-product-btn {
            flex: 1 1 auto;
            max-width: 260px;
        }

    .subcategory-panel {
        max-width: 900px;
        padding: 1.2rem 2rem;
        margin: 1rem auto 0 auto;
    }

        .subcategory-panel .btn-group {
            flex-direction: row;
            justify-content: center;
            max-width: 900px;
            flex-wrap: nowrap;
            overflow-x: visible;
            gap: 1rem;
            padding-bottom: 0;
        }

            .subcategory-panel .btn-group > a.custom-product-btn {
                flex: 1 1 160px;
                max-width: 180px;
            }
}

.specs-link a {
    font-size: 0.9rem;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

    .specs-link a:hover,
    .specs-link a:focus {
        color: #b3161b;
        outline: none;
        text-decoration: none;
    }

.custom-product-btn img.type-icon {
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.custom-product-btn:hover img.type-icon {
    transform: scale(1.05);
}

.custom-product-btn {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-products-message {
    font-size: 0.9rem !important;
    color: #EC1C24 !important;
    margin-top: 5rem !important;
    margin-bottom: 5rem !important;
    text-align: center !important;
    font-style: italic !important;
}

.product-type-buttons > .btn-group > a.custom-product-btn {
    border-radius: 10px !important;
}

.product-type-buttons > .btn-group > .custom-product-btn:first-child {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.product-type-buttons > .btn-group > .custom-product-btn:last-child {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.product-type-buttons > .btn-group > .custom-product-btn:hover {
    border-radius: 10px !important;
}

.product-type-buttons > .btn-group > a.custom-product-btn {
    background-color: #f5f5f5 !important;
    color: #444 !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    transition: all 0.25s ease-in-out !important;
}

    .product-type-buttons > .btn-group > a.custom-product-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 12px;
        box-shadow: inset 0 1px 3px rgba(255,255,255,0.2);
        pointer-events: none;
    }

    .product-type-buttons > .btn-group > a.custom-product-btn:hover,
    .product-type-buttons > .btn-group > a.custom-product-btn:focus {
        background-color: #EC1C24 !important;
        color: #fff !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(0,0,0,0.2) !important;
    }
