/* CSS Document */
/* Craftvara Brand-Aligned Styles */

/* ========== IMPORT FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap');

/* ========== GLOBAL ========== */
body {
    font-family: 'Lato', sans-serif;
    background-color: #EAE7DD;
    color: #2C2C2C;
    margin: 0;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: #A67B5B;
}

a {
    color: #A67B5B;
    text-decoration: none;
}

a:hover {
    color: #D7B64D;
}

/* ========== BUTTON OVERRIDES ========== */
.btn {
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

/* ========== CUSTOM COLORS ========== */
.bg-craft-dark {
    background-color: #1a1a1a;
    color: #EAE7DD;
}

.text-craft-gold {
    color: #D7B64D;
}

.text-craft-copper {
    color: #A67B5B;
}

/* ========== HEADER FIXED PADDING HELPERS ========== */
body .container {
    padding-top: 40px;
}

body .container-footer {
    padding-top: 20px;
}

/* ========== FOOTER LINK OVERRIDES ========== */
footer a {
    color: #D7B64D;
}

footer a:hover {
    color: #A67B5B;
}

/* ========== NAVBAR TIGHTENING ========== */
.navbar {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    background-color: #EAE7DD;
    border-bottom: 1px solid #A67B5B;
}

.navbar-brand img {
    height: 34px;
}

.form-check-label a {
    color: #A67B5B;
    text-decoration: underline;
}

.form-check-label a:hover {
    color: #D7B64D;
}

/* ========== VENDOR STORE HEADER FIX (SCROLLS, NOT STICKY/FIXED) ========== */
.vendor-store-header {
    background: #fff;
    border-bottom: 2px solid #D7B64D;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    padding: 24px 20px 15px 20px;
    position: static;
    width: 100%;
    z-index: 1;
}

@media (max-width: 900px) {
    .vendor-store-header {
        padding: 18px 8px 12px 8px;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 600px) {
    .vendor-store-header {
        padding: 10px 4px 8px 4px;
    }
    .vendor-store-header h2 {
        font-size: 1.35rem !important;
        margin-bottom: 2px !important;
    }
}

/* ========== PRODUCT GRID & CARDS ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px,1fr));
    gap: 1.2rem;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
}

/* Product Thumbnail - Professional Look */
.product-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #ececec;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    background: #faf8f4;
    transition: box-shadow 0.15s;
}

.product-image:hover {
    box-shadow: 0 3px 16px #A67B5B22;
}

@media (max-width: 600px) {
    .product-image {
        height: 72px;
        border-radius: 5px;
    }
}

.product-card .desc {
    flex: 1;
    font-size: 1.01rem;
    min-width: 0;
}

.product-card .price {
    font-weight: bold;
    color: #D7B64D;
    margin-top: 10px;
    font-size: 1.09rem;
}

/* === Make "Add to Cart" buttons align bottom in all grid tiles === */
.add-cart-btn {
    margin-top: auto !important;
    width: 100%;
    min-height: 38px;
    display: block;
    font-size: 1rem;
    font-weight: 600;
    background: #A67B5B;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 18px;
    transition: background 0.17s;
}

.add-cart-btn:hover {
    background: #D7B64D;
    color: #222;
}

/* ========== CARD & THUMBNAIL TWEAKS FOR MOBILE ========== */
@media (max-width: 575.98px) {
    .card.h-100 {
        min-height: unset;
        padding: 10px 2px 8px 2px;
    }
    .card-img-top {
        height: 60px !important;
        padding: 4px !important;
    }
    .card-title {
        font-size: 1.05rem !important;
    }
    .d-flex.flex-wrap img {
        width: 36px !important;
        height: 36px !important;
        margin-right: 2px !important;
        border-radius: 4px !important;
    }
}

/* ========== THUMBNAILS ========== */
.d-flex.thumbnails-wrap {
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 9px;
    gap: 8px 8px;
}

.thumbnail-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid #eee;
    background: #faf8f4;
    cursor: pointer;
    margin: 0 3px 6px 0;
}

@media (max-width: 600px) {
    .thumbnail-img {
        width: 54px;
        height: 54px;
    }
}

/* ==== Craftvara Homepage Hero & Featured Vendors (TIGHTER VERSION) ==== */
.hero-section {
    background: linear-gradient(120deg, #eae7dd 60%, #d7b64d15 100%);
    padding: 10px 0 10px 0;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 22px;
    box-shadow: 0 2px 12px #a67b5b0c;
    position: relative;
}

.hero-section img {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin-bottom: 14px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 2px 6px #a67b5b22);
}

.hero-title {
    padding: 0 0 0 0;
    font-size: 2.0rem;
    font-family: 'Playfair Display', serif;
    color: #A67B5B;
    margin-bottom: 7px;
}

.hero-sub {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 12px;
    font-family: 'Lato', sans-serif;
}

.hero-cta {
    background: #A67B5B;
    color: #fff;
    font-weight: bold;
    padding: 9px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px #d7b64d15;
    transition: background .17s;
    display: inline-block;
    margin-top: 2px;
}

.hero-cta:hover {
    background: #D7B64D;
    color: #222;
}

.featured-vendors-title {
    color: #A67B5B;
    font-size: 1.28rem;
    margin: 0 0 18px 0;
    text-align: center;
    font-family: 'Playfair Display', serif;
    padding-top: 0;
}

.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.vendor-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px #a67b5b18;
    padding: 14px 7px 12px 7px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 210px;
    transition: box-shadow .18s;
    border: 1px solid #eee;
}

.vendor-card:hover {
    box-shadow: 0 8px 30px #a67b5b24;
}

.vendor-card img {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    margin-bottom: 7px;
    object-fit: cover;
    background: #faf8f4;
    border: 1.5px solid #DDD;
    box-shadow: 0 2px 10px #d7b64d12;
}

.vendor-card h3 {
    font-size: 1.08rem;
    color: #A67B5B;
    margin-bottom: 3px;
    font-family: 'Playfair Display', serif;
}

.vendor-card .vendor-bio {
    font-size: 0.98rem;
    color: #444;
    margin-bottom: 6px;
    min-height: 38px;
}

.vendor-card .view-store-btn {
    background: #A67B5B;
    color: #fff;
    font-weight: 600;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 0.96rem;
    margin-top: auto;
    text-decoration: none;
    border: none;
    transition: background .15s;
    display: inline-block;
}

.vendor-card .view-store-btn:hover {
    background: #D7B64D;
    color: #222;
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.25rem;
    }
    .featured-vendors-title {
        font-size: 1.05rem;
    }
    .vendor-card {
        padding: 10px 3px 9px 3px;
    }
}

.featured-section-title {
    color: #D7B64D;
    font-size: 2.6rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-weight: 900;
    letter-spacing: 0.01em;
    margin: 32px 0 20px 0;
    line-height: 1.13;
    position: relative;
    text-shadow: 0 2px 8px #d7b64d22, 0 1px 0 #fff;
}

.featured-section-title::after {
    content: "";
    display: block;
    width: 85px;
    height: 5px;
    background: linear-gradient(90deg, #d7b64d 80%, #a67b5b 100%);
    border-radius: 3px;
    margin: 13px auto 0 auto;
    opacity: 0.92;
}

@media (max-width: 900px) {
    .featured-section-title {
        font-size: 2rem;
    }
    .featured-section-title::after {
        width: 55px;
        height: 4px;
    }
}

@media (max-width: 600px) {
    .featured-section-title {
        font-size: 1.22rem;
        margin: 16px 0 11px 0;
    }
    .featured-section-title::after {
        width: 32px;
        height: 3px;
    }
}

/* Hide spinners/arrows and prevent scroll on number inputs (Chrome, Safari, Edge, Opera) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* FILTER & PAGINATION CONTROLS */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}
.filter-bar label {
    margin-bottom: 0;
    font-weight: 600;
    color: #A67B5B;
}
.pagination {
    justify-content: center;
}

/* Item list boxes */

/* Make grid columns always the same height */
.col-6, .col-sm-4, .col-md-3, .col-lg-2 {
    display: flex;
    align-items: stretch;
}

/* COMPACT PRODUCT BOX STYLES */
.item-list-box {
    min-height: 175px;
    padding: 9px 3px 10px 3px !important;
    font-size: 0.97rem;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 7px;
    box-shadow: 0 2px 8px #cbb98c0c;
    transition: box-shadow 0.16s;
    margin-bottom: 0 !important;
}
.item-list-box:hover {
    box-shadow: 0 6px 18px #d7b64d24;
}
.item-list-box .product-image {
    width: 90px;
    height: 90px;
    margin-bottom: 5px;
    object-fit: cover;
    border-radius: 6px;
    background: #faf8f4;
}
.item-title {
    font-size: 0.97rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 98px;
    margin: 0 auto 2px auto;
}
.item-list-box .avg-stars {
    font-size: 0.93rem;
    margin-bottom: 2px;
    min-height: 18px;
}
.item-list-box .avg-stars .star {
    font-size: 0.94em;
}
.item-list-box .item-price {
    font-size: 0.98rem;
    font-weight: 700;
    color: #D7B64D;
    margin: 3px 0 2px 0;
}
.item-list-box .btn-sm {
    font-size: 0.92rem !important;
    padding: 3px 12px;
    margin-top: 3px;
}

.btn.btn-outline-primary.btn-sm {
    margin-top: auto;
    font-size: 0.91rem;
}

.item-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.2rem;
    width: 100%;
    margin: 0;
    padding: 0;
}
.item-list-box {
    width: 100%;
    max-width: 210px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 600px) {
    .item-list-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .item-list-box {
        max-width: 100%;
    }
}
/* --- Profile Sidebar --- */
.user-profile-container {
    max-width: 1000px;
}
.profile-sidebar {
    border-right: 1px solid #D7B64D;
    min-height: 350px;
    background: #fff;
    padding-right: 0;
    padding-left: 0;
}
.profile-nav {
    margin-left: 0;
    margin-right: 0;
}
.profile-link {
    display: block;
    padding: 11px 18px 11px 20px;
    color: #A67B5B;
    font-weight: 600;
    border: none;
    background: none;
    transition: color 0.2s, background 0.2s;
    border-radius: 0;
}
.profile-link.active, .profile-link:hover, .profile-link:focus {
    background: #f8f5ee;
    color: #D7B64D;
    text-decoration: none;
}
.profile-section-title {
    color: #D7B64D;
    font-size: 1.08rem;
    font-family: 'Playfair Display', serif;
    padding-left: 17px;
    letter-spacing: 0.04em;
    font-weight: 700;
    background: #fff;
    border-bottom: none;
    margin-top: 6px;
}
.profile-content .tight-card {
    margin-top: 0;
    margin-bottom: 0;
    padding: 1.35rem 1.2rem 1.1rem 1.2rem !important;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 10px #d7b64d14;
    border: 1px solid #ececec;
    min-width: 250px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.profile-heading {
    color: #A67B5B;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 1.26rem;
    margin-bottom: 15px;
}
.vendor-logo-thumb {
    max-width: 100px;
    max-height: 100px;
    border-radius: 13px;
    border: 2px solid #D7B64D;
    box-shadow: 0 2px 8px #a67b5b22;
    background: #faf8f4;
    margin-top: 5px;
    margin-bottom: 5px;
}
.delete-account-btn {
    margin-top: 2.6rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    padding: 10px 0;
    border-radius: 8px;
    width: 80%;
    max-width: 300px;
}
@media (max-width: 900px) {
    .user-profile-container {
        max-width: 100vw;
        padding-left: 6px;
        padding-right: 6px;
    }
    .profile-sidebar {
        min-height: unset;
        border-right: none;
        border-bottom: 1px solid #D7B64D;
    }
}
@media (max-width: 600px) {
    .profile-sidebar, .profile-content .tight-card {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .profile-content .tight-card {
        padding-top: 10px !important;
        padding-bottom: 8px !important;
    }
    .profile-heading {
        font-size: 1.09rem;
        margin-bottom: 8px;
    }
    .delete-account-btn {
        width: 100%;
        font-size: 1rem;
        padding: 8px 0;
    }
}
#vendorFormWrapper {
    margin-top: 12px;
    margin-bottom: 8px;
    background: #faf8f4;
    padding: 12px 9px 9px 12px;
    border: 1px solid #D7B64D;
    border-radius: 7px;
}


/* === Responsive search grid with exactly 4 columns on desktop === */
.search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    width: 100%;
	align-items: stretch;
}
.search-grid .search-card {
    background: #fff;
    border: 1.5px solid #e0dac3;
    border-radius: 12px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 14px;
    box-shadow: 0 1.5px 7px #a67b5b09;
    padding: 13px 8px 9px 8px;
    text-align: center;
    transition: box-shadow 0.14s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
.search-grid .search-card:hover {
    box-shadow: 0 2.5px 18px #a67b5b25;
}
.search-thumb {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 9px;
    border: 1.5px solid #ede7d3;
}
.search-title {
    font-size: 1.06rem;
    font-weight: 600;
    color: #A67B5B;
    margin-bottom: 2px;
}
.search-card .btn {
    font-size: 0.98rem;
    margin-top: 7px;
}
/* Responsive: 2 columns on small tablets, 1 column on phones */
@media (max-width: 991px) {
    .search-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .search-grid { grid-template-columns: 1fr; gap: 10px;}
    .search-grid .search-card { width: 100%; max-width:100%;}
}


/* === End search grid/card === */

.search-list {
    width:100%;
}
.search-list .search-row {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border: 1.5px solid #e0dac3;
    border-radius: 12px;
    box-shadow:0 1.5px 7px #a67b5b09;
    margin-bottom: 10px;
    padding: 10px 16px;
    transition: box-shadow 0.12s;
}
.search-list .search-row:hover {
    box-shadow:0 2.5px 15px #a67b5b21;
}
.search-list-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 13px;
    border: 1.2px solid #ede7d3;
}
@media (max-width: 600px) {
    .search-list .search-row { flex-direction: column; align-items: center; padding: 10px 5px;}
    .search-list-thumb { margin:0 0 8px 0;}
}
.search-list-details { flex: 1 1 0; }
.search-list-title {
    font-size: 1.06rem;
    font-weight: 600;
    color: #A67B5B;
    margin-bottom: 2px;
}
.search-list-desc {
    font-size: 0.99rem;
    color: #555;
    margin-bottom: 2px;
}
.search-list .btn { font-size:0.98rem;margin-left:8px;}

.card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
