/* ========================================================================
   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: var(--primary-color);
    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: #466346;
}

.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; }


