/* Crafts Custom Premium Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Luxury Warm HSL Color Palette */
    --color-bg: #f9f6f0;
    --color-surface: #ffffff;
    --color-surface-muted: #f3ece0;
    --color-primary: #8c6239;
    --color-primary-hover: #6e4c2b;
    --color-primary-light: #f5ede4;
    --color-dark: #221a15;
    --color-dark-muted: #5c4e46;
    --color-border: #e6dfd5;
    --color-sale: #c94a29;
    --color-sale-light: #fdf2ee;
    
    --shadow-sm: 0 2px 4px rgba(34, 26, 21, 0.04);
    --shadow-md: 0 8px 16px rgba(34, 26, 21, 0.06);
    --shadow-lg: 0 16px 32px rgba(34, 26, 21, 0.1);
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--color-bg);
    color: var(--color-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-heading);
    color: var(--color-dark);
}

/* Premium Navigation */
.navbar-crafts {
    background-color: var(--color-dark) !important;
    border-bottom: 2px solid var(--color-primary);
    padding: 1rem 0;
}
.navbar-crafts .nav-link,
.navbar-crafts .btn,
.navbar-crafts .navbar-brand,
.navbar-crafts select,
.navbar-crafts option {
    white-space: nowrap !important;
}
.navbar-crafts .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff !important;
    letter-spacing: 1px;
}
.navbar-crafts .navbar-brand span {
    color: var(--color-primary);
}
.navbar-crafts .nav-link {
    color: #e6dfd5 !important;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}
.navbar-crafts .nav-link:hover, .navbar-crafts .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hero Carousel */
.carousel-crafts {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.carousel-crafts .carousel-item {
    height: 380px;
    background-color: var(--color-dark);
}
.carousel-crafts .carousel-caption {
    background: linear-gradient(0deg, rgba(34, 26, 21, 0.85) 0%, rgba(34, 26, 21, 0) 100%);
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 3rem 2rem 2rem;
    text-align: left;
}

/* Cards & Grid */
.product-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(140, 98, 57, 0.3);
}
.product-card .card-img-wrapper {
    position: relative;
    padding-top: 0;
    height: 200px; /* Fixed compact height, like Amazon product card images */
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card .card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill the view of the picture */
    transition: var(--transition-smooth);
}
.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* Card Buttons Uniformity */
.product-card .card-body .btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
}

.product-card .badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-sale);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(201, 74, 41, 0.3);
}
.product-card .badge-draft {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--color-dark-muted);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 2;
}
.product-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card .category-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.product-card .product-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.product-card .product-title a {
    color: var(--color-dark);
    text-decoration: none;
}
.product-card .product-title a:hover {
    color: var(--color-primary);
}
.product-card .price-wrapper {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-card .original-price {
    text-decoration: line-through;
    color: #8c857e;
    font-size: 0.9rem;
}
.product-card .sale-price {
    color: var(--color-sale);
    font-weight: 700;
    font-size: 1.25rem;
}
.product-card .regular-price {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Category Sidebar / Filters */
.category-sidebar {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    color: var(--color-dark-muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.category-link:hover, .category-link.active {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}
.category-link i {
    font-size: 1.2rem;
}

/* Buttons */
.btn-crafts-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.btn-crafts-primary:hover, .btn-crafts-primary:focus {
    background-color: var(--color-primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(140, 98, 57, 0.25);
}
.btn-crafts-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.5rem 1.4rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.btn-crafts-outline:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* Owner Portal Dashboard */
.owner-card {
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    background-color: var(--color-surface);
}
.owner-card:hover {
    box-shadow: var(--shadow-md);
}
.owner-sidebar {
    background-color: var(--color-dark);
    color: #ffffff;
    min-height: calc(100vh - 75px);
    border-right: 2px solid var(--color-primary);
}
.owner-sidebar .nav-link {
    color: #c4bbb3;
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-left: 4px solid transparent;
    transition: var(--transition-smooth);
}
.owner-sidebar .nav-link:hover, .owner-sidebar .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--color-primary);
}

/* Forms & Splitscreen Live Preview */
.preview-pane-sticky {
    position: sticky;
    top: 2rem;
}
.form-crafts .form-control, .form-crafts .form-select {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
}
.form-crafts .form-control:focus, .form-crafts .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(140, 98, 57, 0.15);
}

/* Details Page */
.detail-img-wrapper {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.detail-img-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

/* Footer styling */
.footer-crafts {
    background-color: var(--color-dark);
    color: #d9cfc7;
    border-top: 4px solid var(--color-primary);
    padding: 3rem 0;
    margin-top: 5rem;
}
.footer-crafts h5 {
    color: #ffffff;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}
.footer-crafts a {
    color: #bfaea5;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-crafts a:hover {
    color: #ffffff;
}
.footer-crafts .text-muted {
    color: #bfaea5 !important;
}
.footer-crafts strong {
    color: #ffffff;
}

/* Glassmorphism auth panel */
.auth-container {
    max-width: 480px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* Stars mockup rating */
.stars-rating {
    color: #ffc107;
    font-size: 0.95rem;
}

/* Responsive / Mobile View Only Custom Refinements */
@media (max-width: 767.98px) {
    /* 1. Horizontal swipeable Category sidebar instead of vertical list */
    .category-sidebar {
        padding: 1rem !important;
        margin-bottom: 1.5rem;
    }
    .category-sidebar h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem !important;
    }
    .category-sidebar .d-flex.flex-column {
        flex-direction: row !important;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px !important;
        padding-bottom: 0.5rem;
        scrollbar-width: none; /* Firefox */
    }
    .category-sidebar .d-flex.flex-column::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .category-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem;
        display: inline-flex !important;
        align-items: center;
        gap: 6px !important;
    }
    
    /* 2. Hero banner / carousel optimizations */
    .carousel-crafts .carousel-item {
        height: 240px !important;
    }
    .carousel-crafts .carousel-caption {
        padding: 2rem 1.5rem 1.5rem !important;
    }
    .carousel-crafts .carousel-caption h2 {
        font-size: 1.5rem !important;
    }
    
    /* 3. Reduce detail page image height */
    .detail-img-wrapper img {
        height: 300px !important;
    }
    
    /* 4. Optimize auth containers */
    .auth-container {
        margin: 2rem auto !important;
        padding: 1.5rem !important;
    }
    
    /* 5. Clean footer padding */
    .footer-crafts {
        padding: 2rem 0 !important;
        margin-top: 3rem !important;
    }
}

/* Interactive Product Gallery Slider Styles */
.gallery-nav {
    opacity: 0;
    transition: var(--transition-smooth);
}
.detail-img-wrapper:hover .gallery-nav {
    opacity: 1;
}
.gallery-nav:hover {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
}
.gallery-thumbnails .thumbnail-item {
    transition: var(--transition-smooth);
}
.gallery-thumbnails .thumbnail-item:hover {
    opacity: 0.8;
    transform: scale(1.05);
}
.gallery-thumbnails .thumbnail-item.active {
    box-shadow: 0 0 0 2px var(--color-primary);
}

/* Premium Social Auth Buttons */
.btn-social-google {
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
.btn-social-google:hover {
    background-color: #f8f9fa;
    border-color: #d2d2d2;
    color: #202124;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.btn-social-google .bi-google {
    color: #db4437; /* Google Red */
}

.btn-social-apple {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
.btn-social-apple:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.btn-social-mobile {
    background-color: #ffffff;
    color: #5c4e46;
    border: 1px solid #ced4da;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
.btn-social-mobile:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}


/* Modern Dashboard Action Buttons */
.btn-dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px; /* Modern Pill shape */
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.btn-dashboard-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #a07246 100%);
    color: #ffffff !important;
}
.btn-dashboard-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(140, 98, 57, 0.3);
}

.btn-dashboard-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
}
.btn-dashboard-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.btn-dashboard-dark {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #ffffff !important;
}
.btn-dashboard-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(31, 41, 55, 0.3);
}

