/* ============================================
   TextileHub - Custom Stylesheet
   Bootstrap 5 + Custom overrides
   ============================================ */

/* ---- Google Fonts (loaded via CSS) ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- Base ---- */
* { box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #1a1a2e;
    background: #fff;
}

/* ---- NAVBAR ---- */
.navbar-brand {
    letter-spacing: -0.5px;
}
.navbar .nav-link {
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

/* ---- HERO BANNER ---- */
.banner-slide {
    min-height: 520px;
    display: flex;
    align-items: center;
}
@media (max-width: 576px) {
    .banner-slide { min-height: 360px; }
    .banner-slide h1 { font-size: 1.8rem !important; }
}

/* ---- PRODUCT CARD ---- */
.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 12px !important;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12) !important;
}
.product-img {
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-img-link:hover .product-img {
    transform: scale(1.05);
}
.product-img-link {
    display: block;
    overflow: hidden;
}
.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- CATEGORY CARD ---- */
.category-card {
    border-radius: 12px !important;
    transition: transform 0.25s, box-shadow 0.25s;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    border-radius: 12px;
}

/* ---- SIZE / COLOR BUTTONS ---- */
.size-btn {
    min-width: 52px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}
.size-btn:hover {
    background: #1a1a2e !important;
    color: #fff !important;
    border-color: #1a1a2e !important;
}
.color-btn {
    transition: all 0.2s;
}
.color-btn:hover {
    transform: scale(1.1);
}
.product-thumb {
    transition: border-color 0.2s, opacity 0.2s;
    cursor: pointer;
    border-radius: 6px;
}
.product-thumb:hover {
    border-color: #1a1a2e !important;
    opacity: 0.9;
}

/* ---- SIZE FILTER BUTTONS (product list) ---- */
.size-filter-btn {
    min-width: 44px;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.15s;
}

/* ---- CART ---- */
.cart-count-badge {
    font-size: 0.6rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- PAGINATION ---- */
.page-link {
    color: #1a1a2e;
    border-radius: 6px;
    margin: 0 2px;
}
.page-item.active .page-link {
    background: #1a1a2e;
    border-color: #1a1a2e;
}

/* ---- BREADCRUMB ---- */
.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}
.breadcrumb-item a:hover { color: #1a1a2e; }

/* ---- ADMIN PANEL ---- */
.admin-badge-status {
    font-size: 0.7rem;
    padding: 4px 8px;
}
.table > :not(caption) > * > * {
    vertical-align: middle;
}

/* ---- ALERTS ---- */
.alert {
    border-radius: 10px;
}

/* ---- BUTTONS ---- */
.btn {
    border-radius: 8px;
    font-weight: 500;
}
.btn-warning {
    color: #1a1a2e;
    font-weight: 600;
}

/* ---- FORM CONTROLS ---- */
.form-control:focus,
.form-select:focus {
    border-color: #1a1a2e;
    box-shadow: 0 0 0 0.2rem rgba(26,26,46,0.15);
}

/* ---- CARDS ---- */
.card {
    border-radius: 12px !important;
}
.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* ---- FOOTER ---- */
footer a:hover { color: #fff !important; }

/* ---- STICKY SIDEBAR ---- */
@media (max-width: 991px) {
    .sticky-top { position: relative !important; top: auto !important; }
}

/* ---- LOADER SPINNER ---- */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ---- FABRIC TYPE SECTION ---- */
section .btn-outline-warning {
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}
section .btn-outline-warning:hover {
    transform: translateY(-2px);
}

/* ---- MOBILE IMPROVEMENTS ---- */
@media (max-width: 576px) {
    .product-img { height: 180px; }
    .card-body { padding: 0.75rem !important; }
}

/* ---- PRINT ---- */
@media print {
    .navbar, footer, .btn, .sidebar { display: none !important; }
    .main-content { margin-left: 0 !important; }
}
