/* ---------------------------------------------
   🌸 Root Theme Variables
--------------------------------------------- */
:root {
    --primary-color: #f8b400;
    --secondary-color: #333;
    --accent-color: #ff80ab;
    --hover-color: #ff4081;
    --background-color: #ffd6e6;
    --text-color: #555;
    --font-family: 'Poppins', sans-serif;
}

/* ---------------------------------------------
   🌸 Global Reset & Base
--------------------------------------------- */
* {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: #f4f4f9;
    color: var(--text-color);
}

/* ---------------------------------------------
   🌸 Header & Navbar
--------------------------------------------- */
.custom-header,
.navbar {
    background-color: var(--background-color) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none !important;
}

.navbar-brand img {
    height: 80px;
    transition: transform 0.3s ease;
}
.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar .nav-link {
    color: #4a4a4a !important;
    font-weight: 600;
    font-family: var(--font-family);
    padding: 10px 15px;
}
.navbar .nav-link:hover {
    color: var(--hover-color) !important;
    background-color: #fff0f5;
    border-radius: 10px;
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.dropdown-item:hover {
    background-color: #fff0f5;
    color: var(--hover-color);
}

@media (max-width: 991px) {
    .navbar .nav-link {
        display: block;
        padding: 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* ---------------------------------------------
   🌸 Search Bar
--------------------------------------------- */
form.d-flex input[type="search"] {
    border-radius: 20px;
    padding: 6px 12px;
    border: 1px solid #ffb6c1;
}
form.d-flex button {
    border-radius: 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
}
form.d-flex button:hover {
    background-color: var(--hover-color);
}

/* ---------------------------------------------
   🌸 Cart & Wishlist Icons
--------------------------------------------- */
.navbar .cart-icon {
    position: relative;
    margin-left: auto;
}
.cart-icon i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}
.cart-icon .badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    background-color: var(--accent-color);
    color: white;
}

/* ---------------------------------------------
   🌸 Carousel
--------------------------------------------- */
.carousel-item img {
    width: 100%;
    object-fit: cover;
}
@media (max-width: 767.98px) {
    .carousel-item img {
        height: auto;
    }
}
@media (min-width: 768px) {
    .carousel-item img {
        height: 400px;
    }
}

/* ---------------------------------------------
   🌸 Banner / Landing Section
--------------------------------------------- */
.banner {
    background-color: #f9c1c1;
    padding: 50px 0;
    text-align: center;
    color: #fff;
}
.banner h2 {
    font-size: 3rem;
}
.landing-section h2 {
    text-align: center;
    margin-bottom: 30px;
}
.landing-section .card img {
    max-height: 250px;
    object-fit: cover;
}
.card:hover {
    transform: scale(1.05);
}

/* ---------------------------------------------
   🌸 Buttons
--------------------------------------------- */
.btn-custom {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 600;
}
.btn-custom:hover {
    background-color: var(--hover-color);
}
.btn-warning:hover {
    background-color: #e6a400;
}

/* ---------------------------------------------
   🌸 Footer
--------------------------------------------- */
.custom-footer {
    background-color: var(--background-color) !important;
    color: #000;
    padding: 40px 20px;
    border: none !important;
    box-shadow: none !important;
}
.custom-footer h5,
.custom-footer p,
.custom-footer a,
.custom-footer li,
.custom-footer ul,
.custom-footer small {
    color: #000 !important;
}
.custom-footer a {
    text-decoration: none;
    color: #212529;
}
.custom-footer a:hover {
    color: var(--hover-color) !important;
    text-decoration: underline !important;
}
.custom-footer hr {
    border-color: rgba(0, 0, 0, 0.3);
}
.custom-footer ul {
    padding-left: 0;
    list-style: none;
}

/* ---------------------------------------------
   🌸 Dashboard Layout
--------------------------------------------- */
.dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.dashboard h1 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
}

/* Metrics */
.metrics {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}
.metric {
    flex: 1;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.metric:hover {
    transform: translateY(-5px);
}
.metric h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #555;
}
.metric p {
    font-size: 1.8em;
    font-weight: bold;
    color: #007bff;
}

/* ---------------------------------------------
   🌸 Tables
--------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}
thead tr {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}
thead th, tbody td {
    padding: 10px;
    border: 1px solid #ddd;
}
tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}
tbody tr:hover {
    background-color: #f1f1f1;
}
td {
    text-align: center;
}

/* ---------------------------------------------
   🌸 Responsive
--------------------------------------------- */
@media (max-width: 768px) {
    .metrics {
        flex-direction: column;
    }
    .metric {
        margin-bottom: 20px;
    }
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ---------------------------------------------
   🌸 Force Matching Header & Footer
--------------------------------------------- */
.navbar,
.custom-header,
.custom-footer {
    background-color: #ffd6e6 !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}
