:root {
    --primary: #0c5c29;
    --primary-dark: #1E6F21;
    --secondary: #6c757d;
    --dark: #343a40;
    --border: #e9ecef;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
--footer: #006325;
}

/* ===== LAYOUT & GENERAL STYLES ===== */
.main-content {
    flex: 1;
}

.content-wrapper {
    margin-top: 0;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

/* ===== HEADER & NAVIGATION ===== */
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
background-color:#218838;
}
.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.header-logo {
    height: 40px;
    max-height: 50px;
    margin-right: 10px;
    object-fit: contain;
}

.site-title {
    font-weight: bold;
    margin-left: 10px;
    color: var(--primary);
    font-size: 1.5rem;
}

.category-nav {
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 1rem;
}

/* ===== PRODUCT CONTAINER & CARDS ===== */
.product-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    margin-bottom: 20px;
    height: 100%;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.card-text {
    flex-grow: 1;
}

.product-description {
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--secondary);
    min-height: 60px;
    margin-bottom: 1rem;
}

/* ===== PRODUCT IMAGE GALLERY ===== */
.carousel-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.main_image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-container:hover .carousel-control-prev,
.carousel-container:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.thumbnail_images {
    margin-top: 20px;
}

.thumbnail_images ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail_images ul li {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 3px;
}

.thumbnail_images ul li:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.thumbnail_images ul li.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.thumbnail_images ul li img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

/* ===== PRODUCT DETAILS ===== */
.right-side {
    padding: 2.5rem !important;
}

.border-end {
    border-right: 1px solid var(--border) !important;
}

.heart {
    color: #ccc;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.heart:hover {
    color: #ff4757;
    transform: scale(1.2);
}

.heart.active {
    color: #ff4757;
}

.content p {
    color: var(--secondary);
    line-height: 1.6;
    font-size: 1rem;
}

h3 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
    display: block;
}

.ratings {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ratings i {
    color: var(--warning);
    margin-right: 2px;
}

.ratings span {
    color: var(--secondary);
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.buttons {
    margin: 2rem 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-dark {
    background-color: var(--primary);
    border: none;
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 160px;
}

.btn-dark:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(44, 90, 160, 0.4);
}

.btn-outline-dark {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 160px;
}

.btn-outline-dark:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(44, 90, 160, 0.3);
}

/* ===== PRODUCT META & DESCRIPTION ===== */
.product-meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--secondary);
    font-size: 1.2rem;
}

.meta-item i {
    margin-right: 12px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.description-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    padding: 2.5rem;
    margin-top: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

/* ===== JUMBOTRON ===== */
.jumbotron {
    background: rgba(255, 255, 255, 0.95);
    margin-top: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
}

/* ===== ALERTS & MODALS ===== */
.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 2rem;
    padding: 1.25rem;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background-color: var(--primary);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.form-control {
    border-radius: 10px;
    padding: 14px 18px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.3rem rgba(44, 90, 160, 0.15);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer);
    color: white;
    padding: 3rem 0 0.5rem;
    margin-top: auto;
}

.footer h5 {
    color: var(--border);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: white;
    transform: translateX(5px);
}

.copyright {
    border-top: 1px solid #495057;
    padding-top: 0.2rem;
    margin-top: 0.5rem;
    text-align: center;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .border-end {
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    .main_image img {
        height: 400px;
    }
    
    .right-side {
        padding: 1.5rem !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        opacity: 1;
        width: 40px;
        height: 40px;
    }

    .content-wrapper {
        margin-top: 0;
        min-height: calc(100vh - 150px);
    }

    .header-logo {
        max-height: 40px;
        height: 35px;
    }

    .footer {
        padding: 2rem 0 1rem;
        margin-top: 20px;
    }

    .buttons {
        flex-direction: column;
    }

    .btn-dark,
    .btn-outline-dark {
        min-width: 100%;
        text-align: center;
    }

    .thumbnail_images ul li img {
        width: 60px;
        height: 60px;
    }

    .description-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .jumbotron {
        padding: 2rem 1rem;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .main_image img {
        height: 300px;
    }

    .price {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .form-control {
        padding: 12px 15px;
    }
}

/* ===== ANIMATIONS & ENHANCEMENTS ===== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover effects for interactive elements */
.interactive-hover {
    transition: all 0.3s ease;
}

.interactive-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}