/* ========================================
   Wood Carving E-Commerce Theme - Custom CSS
   Bootstrap 5 Compatible
   ======================================== */

/* ========== CSS Variables - Wood Carving Color Palette ========== */
:root {
    /* Primary Wood Colors */
    --wood-primary: #8B4513;
    /* Saddle Brown - Rich wood */
    --wood-secondary: #D4A574;
    /* Tan - Light wood/beige */
    --wood-accent: #C9A961;
    /* Gold - Luxury touch */
    --wood-dark: #3E2723;
    /* Dark Brown - Depth */
    --wood-light: #F5F5DC;
    /* Beige - Background */
    --wood-medium: #A0826D;
    /* Medium wood tone */

    /* Complementary Colors */
    --cream: #FFF8E7;
    --ivory: #FFFFF0;
    --sand: #E8D5B7;
    --copper: #B87333;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(62, 39, 35, 0.1);
    --shadow-md: 0 4px 16px rgba(62, 39, 35, 0.15);
    --shadow-lg: 0 8px 32px rgba(62, 39, 35, 0.2);
    --shadow-xl: 0 12px 48px rgba(62, 39, 35, 0.25);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ========== Global Typography ========== */
body {
    font-family: var(--font-body);
    color: var(--wood-dark);
    background-color: var(--ivory);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--wood-dark);
    line-height: 1.3;
}

.accent-font {
    font-family: var(--font-accent);
}

/* ========== Hero Section Styles ========== */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, var(--wood-light) 0%, var(--cream) 100%);
}

.hero-carousel .carousel-item {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(62, 39, 35, 0.7) 0%, rgba(139, 69, 19, 0.5) 100%);
    z-index: 1;
}

.hero-carousel .carousel-caption {
    z-index: 2;
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--ivory);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--wood-secondary);
    font-family: var(--font-accent);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.5rem;
    color: var(--cream);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1.2s ease;
}

/* ========== Buttons ========== */
.btn-wood-primary {
    background: linear-gradient(135deg, var(--wood-primary) 0%, var(--wood-medium) 100%);
    color: var(--ivory);
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-wood-primary:hover {
    background: linear-gradient(135deg, var(--wood-medium) 0%, var(--wood-primary) 100%);
    color: var(--ivory);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-wood-secondary {
    background: transparent;
    color: var(--ivory);
    border: 2px solid var(--wood-accent);
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-wood-secondary:hover {
    background: var(--wood-accent);
    color: var(--wood-dark);
    border-color: var(--wood-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ========== Section Headings ========== */
.section-heading {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--wood-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--wood-accent), transparent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.4rem;
    color: var(--wood-medium);
    font-family: var(--font-accent);
    font-style: italic;
}

/* ========== Category Cards ========== */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    background: var(--ivory);
    border: 2px solid var(--sand);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--wood-accent);
}

.category-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--wood-light);
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(62, 39, 35, 0.7) 100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.category-card:hover .category-card-overlay {
    opacity: 1;
}

.category-card-body {
    padding: 2rem;
    text-align: center;
}

.category-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wood-dark);
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.category-card:hover .category-card-title {
    color: var(--wood-primary);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--wood-accent);
    margin-bottom: 1rem;
}

/* ========== Product Cards ========== */
.product-card {
    background: var(--ivory);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--sand);
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: var(--wood-light);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--wood-accent);
    color: var(--wood-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.product-card-body {
    padding: 1.5rem;
    text-align: center;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--wood-dark);
    margin-bottom: 0.8rem;
    min-height: 50px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wood-primary);
    margin-bottom: 1rem;
}

.btn-add-cart {
    background: var(--wood-primary);
    color: var(--ivory);
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-normal);
    width: 100%;
}

.btn-add-cart:hover {
    background: var(--wood-dark);
    color: var(--ivory);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== Mission/Vision Section ========== */
.mission-vision-section {
    background: #ffffff;
    padding: 5rem 0;
    position: relative;
}

.mission-vision-section::before {
    display: none;
}

.mission-content {
    position: relative;
    z-index: 1;
}

.mission-title {
    font-size: 2.5rem;
    color: var(--wood-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.mission-text {
    font-size: 1.5rem;
    color: var(--wood-medium);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.mission-img {
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
}

/* ========== Testimonial Cards ========== */
.testimonial-card {
    background: var(--ivory);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--wood-accent);
    transition: var(--transition-normal);
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--wood-accent);
    margin-right: 1.5rem;
}

.testimonial-author-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--wood-dark);
    margin-bottom: 0.3rem;
}

.testimonial-author-role {
    font-size: 0.95rem;
    color: var(--wood-medium);
    font-style: italic;
}

.testimonial-text {
    font-size: 1.5rem;
    color: var(--wood-dark);
    line-height: 1.6;
    font-style: italic;
    position: relative;
    padding-left: 2rem;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--wood-accent);
    font-family: var(--font-accent);
    opacity: 0.3;
}

/* ========== Why Choose Us / Features ========== */
.feature-card {
    background: var(--ivory);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid var(--sand);
    height: 100%;
}

.feature-card:hover {
    background: linear-gradient(135deg, var(--cream) 0%, var(--ivory) 100%);
    border-color: var(--wood-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--wood-primary) 0%, var(--wood-medium) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--ivory);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wood-dark);
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 1rem;
    color: var(--wood-medium);
    line-height: 1.7;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* ========== Carousel Controls ========== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--wood-primary);
    border-radius: 50%;
    padding: 20px;
}

.carousel-indicators button {
    background-color: var(--wood-accent);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* ========== Responsive Design ========== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-carousel .carousel-item {
        min-height: 500px;
    }

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

    .mission-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-carousel .carousel-item {
        min-height: 450px;
    }

    .hero-carousel .carousel-caption {
        text-align: center;
    }

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

    .category-card-img-wrapper {
        height: 200px;
    }

    .product-img-wrapper {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-carousel .carousel-item {
        min-height: 400px;
    }

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

    .btn-wood-primary,
    .btn-wood-secondary {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ========== Utility Classes ========== */
.bg-wood-light {
    background-color: var(--wood-light);
}

.bg-wood-cream {
    background-color: var(--cream);
}

.text-wood-primary {
    color: var(--wood-primary);
}

.text-wood-accent {
    color: var(--wood-accent);
}

.border-wood {
    border-color: var(--wood-accent) !important;
}

.shadow-wood {
    box-shadow: var(--shadow-md);
}