/* ========================================================================
   ELEGANT FURNITURE THEME OVERRIDES
   ======================================================================== */

/* 1. Global Typography & Colors */
:root {
    --primary-color: #5a7c5a; /* Sage Green */
    --secondary-color: #c9a96e; /* Gold */
    --text-dark: #333333;
    --text-muted: #888888;
    --bg-light: #fcfbf9;
    --white: #ffffff;
    --border-color: #eaeaea;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-body) !important;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
    font-weight: 600;
}

/* 2. Elegant Sections */
.elegant-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.elegant-title {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.elegant-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.elegant-divider {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

/* 3. Elegant Product Cards */
.elegant-product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.elegant-product-image {
    position: relative;
    width: 100%;
    height: 280px;
    background-color: #f9f9f9;
    overflow: hidden;
}

.elegant-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.elegant-product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    transition: bottom 0.3s ease;
    display: flex;
    justify-content: center;
}

.elegant-product-card:hover .elegant-product-actions {
    bottom: 0;
}

.elegant-btn-add {
    background-color: #00a652;
    color: var(--white);
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.elegant-btn-add:hover {
    background-color: #008d46;
}

.elegant-product-info {
    padding: 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-family: var(--font-body) !important;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
}

.price-new {
    color: var(--primary-color);
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 400;
    margin-left: 8px;
}

/* 4. Elegant Category Cards */
.elegant-category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.category-image-wrap {
    position: relative;
    width: 100%;
    height: 250px;
}

.category-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.category-name {
    color: var(--white);
    font-size: 24px;
    letter-spacing: 1px;
    border: 2px solid var(--white);
    padding: 10px 25px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.elegant-category-card:hover .category-image-wrap img {
    transform: scale(1.1);
}

.elegant-category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.elegant-category-card:hover .category-name {
    background: var(--white);
    color: var(--text-dark);
}

/* Fix container issues for standard bootstrap row spacing */
.mt-5 { margin-top: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

/* Fix product grid alignment */
.elegant-section .row {
    display: flex;
    flex-wrap: wrap;
}

.elegant-section .row::before,
.elegant-section .row::after {
    display: none !important;
}

/* Fix slider navigation buttons to be on the sides */
.elegant-section .yt-content-slider {
    position: relative;
}

.elegant-section .owl-nav,
.elegant-section .owl-controls .owl-buttons,
.elegant-section .owl2-nav {
    display: block !important;
    margin: 0 !important;
    position: static !important;
}

.elegant-section .owl-nav button,
.elegant-section .owl-controls .owl-buttons div,
.elegant-section .owl2-nav div,
.elegant-section .owl2-nav button,
.elegant-section .owl2-prev,
.elegant-section .owl2-next {
    position: absolute !important;
    top: 35% !important; /* Slightly above center to align with images */
    transform: translateY(-50%) !important;
    margin: 0 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    border: 1px solid #777 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #555 !important;
    font-size: 16px !important;
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
}

.elegant-section .owl-nav button:hover,
.elegant-section .owl-controls .owl-buttons div:hover,
.elegant-section .owl2-nav div:hover,
.elegant-section .owl2-nav button:hover,
.elegant-section .owl2-prev:hover,
.elegant-section .owl2-next:hover {
    background-color: #5ab1e6 !important; /* Light blue on hover */
    color: #fff !important;
    border-color: #5ab1e6 !important;
}

.elegant-section .owl-prev,
.elegant-section .owl-controls .owl-buttons .owl-prev,
.elegant-section .owl2-prev {
    left: -20px !important; /* Push outside to the left */
}

.elegant-section .owl-next,
.elegant-section .owl-controls .owl-buttons .owl-next,
.elegant-section .owl2-next {
    right: -20px !important; /* Push outside to the right */
}

/* Ensure font-awesome icons inside buttons are centered */
.elegant-section .owl2-nav i {
    margin: 0;
    line-height: 1;
}

/* Home banner specific slider overrides */
.home-banner .owl-prev,
.home-banner .owl-controls .owl-buttons .owl-prev,
.home-banner .owl2-prev {
    left: 20px !important; /* Pull inside */
    top: 50% !important; /* Center vertically */
}

.home-banner .owl-next,
.home-banner .owl-controls .owl-buttons .owl-next,
.home-banner .owl2-next {
    right: 20px !important; /* Pull inside */
    top: 50% !important; /* Center vertically */
}

