/*
Theme Name: Cottage Handicraft
Theme URI: http://example.com/cottage-handicraft
Author: Your Name
Author URI: http://example.com
Description: A custom premium theme for Cottage Handicraft, fully responsive and ready for WooCommerce integration.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cottage-handicraft
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    --primary-brown: #8B5E3C;
    --artisan-gold: #D4A373;
    --handloom-beige: #F5F0E6;
    --charcoal-black: #2F2F2F;
    --terracotta: #C97A40;
    --sage-green: #A3B18A;
    --rustic-coral: #E07A5F;
    --bg-light: #FDFBF7;
    --white: #FFFFFF;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --shadow-sm: 0 2px 8px rgba(139, 94, 60, 0.1);
    --shadow-md: 0 8px 24px rgba(139, 94, 60, 0.15);
    --shadow-hover: 0 16px 32px rgba(139, 94, 60, 0.2);
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal-black);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--primary-brown);
    color: var(--white);
    border: 1px solid var(--primary-brown);
}

.btn-primary:hover {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(201, 122, 64, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-brown);
    border: 1px solid var(--primary-brown);
}

.btn-secondary:hover {
    background-color: var(--primary-brown);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 94, 60, 0.2);
}

/* ============================================================
   Header / Navigation
   ============================================================ */
header {
    background-color: rgba(245, 240, 230, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1.2rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-brown);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: var(--artisan-gold);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-brown);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--artisan-gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icons a {
    color: var(--charcoal-black);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icons a:hover {
    color: var(--primary-brown);
    transform: translateY(-2px);
}

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--rustic-coral);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   Hero Slider
   ============================================================ */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 650px;
    overflow: hidden;
    background-color: var(--handloom-beige);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
        rgba(245, 240, 230, 1) 0%,
        rgba(245, 240, 230, 1) 35%,
        rgba(245, 240, 230, 0.8) 45%,
        rgba(245, 240, 230, 0) 60%);
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin-left: 70px;
    margin-right: auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.4s;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--charcoal-black);
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(139, 94, 60, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot.active {
    background-color: var(--primary-brown);
    transform: scale(1.3);
    border-color: var(--artisan-gold);
}

/* ============================================================
   Features Bar (Animated Carousel)
   ============================================================ */
.features-bar {
    background-color: var(--handloom-beige);
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(139, 94, 60, 0.1);
    overflow: hidden;
}

.features-carousel {
    display: flex;
    gap: 3rem;
    animation: featuresSlide 30s linear infinite;
    width: max-content;
}

@keyframes featuresSlide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
    padding: 0.5rem 2rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    box-shadow: var(--shadow-sm);
}

.feature-text {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--charcoal-black);
    white-space: nowrap;
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-brown);
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--artisan-gold);
    border-radius: 2px;
}

/* ============================================================
   Featured Collections
   ============================================================ */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.collection-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: block;
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.collection-img-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.collection-info {
    padding: 1.5rem;
    text-align: center;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.collection-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--charcoal-black);
}

.collection-arrow {
    color: var(--artisan-gold);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-10px);
    display: inline-block;
}

.collection-card:hover .collection-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   Shop By Occasion
   ============================================================ */
.shop-by-occasion {
    background-color: var(--white);
    text-align: center;
    padding: 6rem 0;
}

.shop-by-occasion .section-header h2::after {
    display: none;
}

.shop-by-occasion-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 3.5rem;
    font-weight: 400;
}

.sbo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.sbo-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.sbo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sbo-card:hover img {
    transform: scale(1.05);
}

.sbo-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--artisan-gold);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 2;
}

/* ============================================================
   Artisan Spotlight
   ============================================================ */
.artisan-spotlight {
    background-color: var(--handloom-beige);
    padding: 6rem 0;
}

.artisan-hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.artisan-hero-img {
    flex: 1;
}

.artisan-hero-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.artisan-hero-text {
    flex: 1;
}

.artisan-hero-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
}

.artisan-hero-text p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.artisan-crafts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.artisan-craft-item {
    text-align: center;
}

.artisan-craft-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.artisan-craft-item h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-brown);
}

/* ============================================================
   Hampers Section
   ============================================================ */
.hampers-section {
    background-color: var(--bg-light);
    padding: 6rem 0;
}

.hampers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hamper-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    height: 350px;
    cursor: pointer;
}

.hamper-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hamper-card:hover img {
    transform: scale(1.05);
}

.hamper-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(139, 94, 60, 0.7), transparent);
    z-index: 1;
}

.hamper-title {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 500;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* ============================================================
   Best Sellers
   ============================================================ */
.best-sellers {
    background-color: var(--white);
    position: relative;
}

.best-sellers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--handloom-beige);
    opacity: 0.3;
    z-index: 0;
}

.best-sellers .container {
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(245, 240, 230, 0.8);
}

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

.product-img-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.add-to-cart-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    color: var(--primary-brown);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-decoration: none;
}

.product-card:hover .add-to-cart-btn {
    bottom: 20px;
    opacity: 1;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-brown);
    color: var(--white);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--charcoal-black);
    line-height: 1.4;
}

.product-price {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--terracotta);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.product-price ins {
    text-decoration: none;
    color: var(--terracotta);
}

.product-price del,
.product-price span {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
    text-decoration: line-through;
}

/* ============================================================
   About Us
   ============================================================ */
.about-us {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(to right,
            rgba(245, 240, 230, 1) 0%,
            rgba(245, 240, 230, 1) 35%,
            rgba(245, 240, 230, 0.8) 45%,
            rgba(245, 240, 230, 0) 60%),
        url('images/OIP_3.jpeg');
    background-size: cover;
    background-position: center right;
}

.about-us .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 60px;
    position: relative;
    height: 100%;
}

.about-content {
    width: 100%;
    max-width: 550px;
    padding: 2rem 0;
    z-index: 2;
    text-align: left;
}

.about-section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--charcoal-black);
    margin-bottom: 1rem;
}

.about-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: rgba(47, 47, 47, 0.2);
    max-width: 300px;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--charcoal-black);
    line-height: 1.2;
}

.about-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #D4A373;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background-color: #8B5E3C;
}

/* ============================================================
   Customer Reviews
   ============================================================ */
.reviews {
    background-color: var(--white);
}

.review-card {
    background: var(--bg-light);
    padding: 3rem 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(139, 94, 60, 0.1);
}

.quote-icon {
    color: var(--artisan-gold);
    opacity: 0.2;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.review-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--charcoal-black);
    line-height: 1.5;
}

.reviewer-name {
    font-weight: 600;
    color: var(--primary-brown);
    font-size: 1.1rem;
}

.stars {
    color: var(--artisan-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    background-color: var(--charcoal-black);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--handloom-beige);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo svg {
    fill: var(--artisan-gold);
    width: 32px;
    height: 32px;
}

.footer-desc {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--artisan-gold);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    flex: 1;
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--artisan-gold);
}

.newsletter-form .btn {
    padding: 0.8rem 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .collections-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sbo-grid,
    .hampers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .artisan-hero {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-container {
        margin-left: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-container {
        margin-left: 0;
    }

    .collections-grid,
    .products-grid,
    .sbo-grid,
    .hampers-grid,
    .artisan-crafts {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-logo {
        justify-content: center;
    }

    .review-card {
        padding: 2rem;
    }

    .about-us .container {
        padding-left: 2rem;
    }

    .about-us {
        background-image:
            linear-gradient(to right,
                rgba(245, 240, 230, 0.95) 0%,
                rgba(245, 240, 230, 0.8) 50%,
                rgba(245, 240, 230, 0) 100%),
            url('images/OIP_3.jpeg');
    }
}
