@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-forest: #1b3f27;
    --primary-forest-dark: #112919;
    --primary-forest-light: #285938;
    --accent-wood: #b88755;
    --accent-wood-hover: #a27447;
    --accent-wood-light: #f7ede2;
    --bg-light: #fdfbf7;
    --bg-white: #ffffff;
    --text-dark: #222c25;
    --text-muted: #5e6c62;
    --border-color: #e5ebe7;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 8px rgba(27, 63, 39, 0.04);
    --shadow-md: 0 8px 24px rgba(27, 63, 39, 0.08);
    --shadow-lg: 0 16px 36px rgba(27, 63, 39, 0.12);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-forest-dark);
}

main > .container {
    padding: 100px 15px 40px;
}

.footer {
    background-color: var(--bg-white);
    font-size: .9em;
    border-top: 1px solid var(--border-color);
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

/* Navbar overrides */
.bg-forest {
    background: rgba(27, 63, 39, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff !important;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

/* Custom buttons */
.btn-success {
    background-color: var(--primary-forest);
    border-color: var(--primary-forest);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: var(--primary-forest-light) !important;
    border-color: var(--primary-forest-light) !important;
    transform: translateY(-1px);
}

.btn-outline-success {
    color: var(--primary-forest);
    border-color: var(--primary-forest);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-outline-success:hover, .btn-outline-success:focus {
    background-color: var(--primary-forest);
    border-color: var(--primary-forest);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.btn-outline-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-dark);
}

/* Cards & product layouts */
.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.site-index .card:hover, .store-index .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
}

.product-cover {
    height: 250px;
    object-fit: cover;
}

.product-cover-placeholder {
    height: 250px;
    background: linear-gradient(135deg, var(--accent-wood-light), #e2ede5);
}

.featured-section {
    background: linear-gradient(180deg, #f3f7f4 0%, var(--bg-light) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* Slider customized */
.hero-slider {
    --hero-nav-offset: 86px;
    margin-top: -30px;
}

.hero-slider #homeSlider,
.hero-slider #homeSlider .carousel-inner,
.hero-slider #homeSlider .carousel-item {
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-slider .slider-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: #fff;
    background: radial-gradient(circle at 15% 15%, var(--primary-forest-light), var(--primary-forest) 60%, var(--primary-forest-dark));
}

.hero-slider .slider-image {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slider .slider-image-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--desktop-object-position, center center);
    display: block;
}

.hero-slider .slider-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background: linear-gradient(90deg, rgba(18, 41, 25, 0.9), rgba(18, 41, 25, 0.4) 60%, rgba(18, 41, 25, 0.15));
}

.hero-slider .slider-overlay h2, .hero-slider .slider-panel h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-slider .slider-overlay p, .hero-slider .slider-panel p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    z-index: 1040;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.whatsapp-icon svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* Product Detail Custom Collages */
.product-gallery-collage {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, 1fr);
}

.product-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-gallery-item:hover {
    box-shadow: var(--shadow-md);
}

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

.product-gallery-item:nth-child(1) {
    grid-column: span 8;
    grid-row: span 2;
}

.product-gallery-item:nth-child(2),
.product-gallery-item:nth-child(3),
.product-gallery-item:nth-child(4),
.product-gallery-item:nth-child(5) {
    grid-column: span 4;
}

/* Active Admin buttons logout */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* About Us styling */
.about-hero {
    background: linear-gradient(135deg, var(--primary-forest-dark), var(--primary-forest));
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    color: #fff;
    margin-bottom: 3rem;
    text-align: center;
}

.about-hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.about-feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.about-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-forest);
}

/* Quick Contact modal alignment */
.modal-content {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Grid & Autocomplete Overrides */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px var(--primary-forest);
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px var(--primary-forest);
    border-bottom-width: 0;
}

.not-set {
    color: #c55;
    font-style: italic;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}