:root {
    --primary: #fc6119;
    --secondary: #5F656F;
    --light: #F5F5F5;    
    --dark: #02245B;
    --color-secondary: #4682b4;
}

/* General Styling */
h1, h2, .h1, .h2, .fw-bold {
    font-weight: 700 !important;
}

h3, h4, .h3, .h4, .fw-medium {
    font-weight: 600 !important;
}

h5, h6, .h5, .h6, .fw-semi-bold {
    font-weight: 500 !important;
}


.btn {
    transition: .5s;
    font-weight: 500;
    border-radius: 30px; /* Rounded corners for all buttons */
}

.btn-square {
    width: 38px;
    height: 38px;
    border-radius: 50%; /* Perfect circle for square buttons */
}

.btn-sm-square {
    width: 32px;
    height: 32px;
    border-radius: 50%; /* Perfect circle for small square buttons */
}

.btn-lg-square {
    width: 48px;
    height: 48px;
    border-radius: 50%; /* Perfect circle for large square buttons */
}

.btn-primary,
.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-outline-dark {
    color: #5A3E36;
    border-color: #5A3E36;
}

.btn-outline-dark:hover {
    background-color: #5A3E36;
    color: white;
    border-color: #5A3E36;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/* Spinner */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* Topbar Styling */
.topbar-right {
    position: relative;
    background: var(--primary);
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}

/* Navbar Styling */
/* Define brown color for navigation */
:root {
    --brown: #5A3E36;
}

.nav-link {
    color: var(--brown);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
    height: 100px;
}

.navbar-title {
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 8px;
    transform: translateY(10%);
    text-transform: capitalize;
    padding-left: 8%;
    color: var(--primary);
}

.navbar-logo {
    height: 80px;
    padding-left: 0%;
}

.navbar .navbar-brand {
    position: relative;
    padding-right: 50px;
    height: 10px;
    display: flex;
    align-items: center;
}

.navbar .navbar-brand::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 100%;
    top: 0;
    right: -25px;
    transform: skewX(-30deg);
}

.navbar .navbar-nav .nav-link {
    margin-right: 20px;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 1000;
    color: var(--brown); /* Ensure nav links are brown by default */
}

.navbar .dropdown-menu .dropdown-item {
    font-weight: 700;
    padding: 8px 15px;
    color: var(--brown); /* Brown for dropdown items */
}

.navbar .dropdown-menu .dropdown-item:hover {
    color: var(--primary); /* Keep hover orange */
    background: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary); /* Keep active and hover states orange */
    background: none;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-toggle {
    color: var(--brown); /* Ensure dropdown toggles are brown by default */
}

.navbar .dropdown-toggle.active {
    color: var(--primary); /* Keep active state orange */
    background: none;
}

.navbar .dropdown-menu .dropdown-item.active {
    color: var(--primary); /* Keep active state orange */
    background: none;
}

/* Ensure text-brown class works properly */
.text-brown {
    color: var(--brown) !important;
}

/* Product Description Section */
.container.my-5 {
    background-color: #f8f9fa;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container h3 {
    text-transform: uppercase;
    color: var(--dark);
}

/* Table Styling */
.table {
    margin-top: 80px;
    border: 2px solid #000;
    color: #000;
}

.table.text-brown th,
.table.text-brown td {
    color: var(--brown);
}

.table th {
    font-weight: 900; /* Extra bold for th elements */
    color: var(--brown);
    border: 1px solid var(--brown);
    padding: 10px;
    background-color: rgba(90, 62, 54, 0.1); /* Light brown background */
}

.table td {
    font-weight: normal; /* Regular weight for td elements */
    color: var(--brown);
    border: 1px solid var(--brown);
    padding: 10px;
}

/* Image Styling */
.container img {
    border: 2px solid #000;
    border-radius: 10px;
    max-width: 100%;
    margin-bottom: 15px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* List Styling */
ul.text-muted {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

ul.text-muted li {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #333;
}

ul.text-muted li strong {
    color: #0057b3;
    font-weight: bold;
}

/* Footer Styling */
.footer {
    width: 100%;
    background-color: var(--brown);
    padding: 10px 0;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .row.g-4 > div {
    text-align: left;
}

.footer .col-lg-4 {
    max-width: 30%;
    flex: 0 0 auto;
    margin: 0 auto;
}

.footer .row.g-4 {
    justify-content: space-around;
    gap: 30px;
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        background-color: rgb(248, 247, 247) !important;
    }
    
    .footer .col-lg-4 {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}