/* ========== Global Styles ========== */

/* Color Palette */
:root {
    --primary-color: #2B6233; 
    --secondary-color: #262826;
    --background-color: #F1E3D0;
    --text-light: #F1E3D0;
    --text-dark: #333;
    --text-muted: #626966;
    --white: #ffffff;
    --black: #111;
    --hover-color: #054b0f;
}

/* ========== Body Styling ========== */
body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color) !important;
    color: var(--primary-color) !important;
    margin: 0;
    padding-top: 155px;
}

/* ========== Headings ========== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color) !important;
    font-weight: bold !important;
    text-align: center;
    margin: 10px 0;
    transition: color 0.3s ease-in-out;
}

h1 { font-size: 3em !important;}
h2 { font-size: 2.5em !important;}
h3 { font-size: 2em !important;}
h4 { font-size: 1.75em !important;}
h5 { font-size: 1.5em !important;}
h6 { font-size: 1.25em !important;}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
    color: var(--secondary-color) !important;
}

/* ========== Paragraphs and Text ========== */
p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--secondary-color) !important;
    margin-bottom: 15px;
}

.content-page{
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: bold;
    margin-left: 10%;
    margin-right: 10%;
}
.p-page {
    font-size: 20px;
    line-height: 1.6;
    color: var(--secondary-color) !important;
    margin-bottom: 15px;
    font-weight: bold;
    margin-left: 15px;
}

/* Default span color - avoid !important to allow overrides */
span {
    color: var(--secondary-color);
    font-weight: normal;
}

/* ========== Buttons ========== */
.btn-primary {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    border: 2px;
    border-color: var(--secondary-color) !important;
    transition: background 0.3s ease-in-out;
}

.btn-primary:hover {
    background: var(--hover-color) !important;
}

/* Ensure button text and spans inside buttons are white */
.btn-primary span,
.btn-add-to-cart span,
.btn-buy-now span,
button.btn span {
    color: inherit !important;
}

/* Price inside green buttons should be yellow for visibility */
.btn-add-to-cart .btn-price,
.btn-primary .btn-price {
    color: #ffc107 !important;
    font-weight: 700;
}

/* ========== Cards & Containers ========== */
.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color) !important;
}

.card-text {
    font-size: 16px;
    color: var(--text-muted);
}

/* ========== Images ========== */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ========== Links ========== */
a {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: var(--hover-color)!important;
}

/* ========== Utility Classes ========== */
.text-center {
    text-align: center;
}

.text-bold {
    font-weight: bold;
}

.text-muted {
    color: var(--text-muted);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

.list-group-item {
    background-color: var(--background-color) !important;
    color: var(--secondary-color) !important;
}

.alignment {
    transform: translateY(100px) !important;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    h1 { font-size: 2.5em !important;}
    h2 { font-size: 2em !important;}
    h3 { font-size: 1.75em !important;}
    h4 { font-size: 1.5em !important;}
    h5 { font-size: 1.25em !important;}
    h6 { font-size: 1.em !important;}
    .w-90{
        max-width:90% !important;
    }
    h1, h2, h3, h4, h5, h6 {
        text-align: center;
        }
}

@media (max-width: 768px) {
    .body{
        padding-top: 120px !important;
    }
}