/* =========================================================
   Paradise Textiles — Custom Stylesheet
   ========================================================= */

/* ---------- Root Variables ---------- */
:root {
    --pt-gold:    #f5c518;
    --pt-dark:    #1a1a2e;
    --pt-accent:  #e94560;
    --pt-radius:  10px;
}

/* ---------- Global ---------- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
}

/* ---------- Navbar ---------- */
.navbar {
    transition: box-shadow 0.3s;
}

/* ---------- Hero Section ---------- */
.hero-section {
    background-attachment: fixed;
    min-height: 520px;
}

/* ---------- Category Cards ---------- */
.category-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* ---------- Product Cards ---------- */
.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: var(--pt-radius);
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.product-thumb {
    transition: transform 0.3s;
}
.product-card:hover .product-thumb {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.25s;
}
.product-card:hover .product-overlay {
    opacity: 1;
}

/* ---------- Carousel Thumbnails ---------- */
.carousel-thumbnail {
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s, border-color 0.2s;
}
.carousel-thumbnail:hover,
.carousel-thumbnail.active {
    opacity: 1;
    border-color: var(--pt-gold) !important;
}

/* ---------- Cart Badge ---------- */
#cart-count {
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Admin Sidebar ---------- */
#sidebar .nav-link {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: background 0.2s;
}
#sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

/* ---------- Stat Cards ---------- */
.stat-card {
    border-radius: var(--pt-radius);
}

/* ---------- Tables ---------- */
.table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}

/* ---------- Buttons ---------- */
.btn-warning {
    background-color: var(--pt-gold);
    border-color: var(--pt-gold);
    color: #1a1a1a;
    font-weight: 600;
}
.btn-warning:hover {
    background-color: #d4a900;
    border-color: #d4a900;
    color: #1a1a1a;
}

/* ---------- Form Controls ---------- */
.form-control:focus,
.form-select:focus {
    border-color: var(--pt-gold);
    box-shadow: 0 0 0 0.2rem rgba(245, 197, 24, 0.2);
}

/* ---------- Badge Overrides ---------- */
.bg-success-subtle { background-color: #d1fae5 !important; }
.bg-warning-subtle { background-color: #fef9c3 !important; }
.bg-danger-subtle  { background-color: #fee2e2 !important; }
.bg-info-subtle    { background-color: #e0f2fe !important; }
.bg-secondary-subtle { background-color: #f1f5f9 !important; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
}

/* ---------- Pagination ---------- */
.pagination .page-link {
    color: #1a1a1a;
    border-radius: 6px;
    margin: 0 2px;
}
.pagination .page-item.active .page-link {
    background-color: var(--pt-gold);
    border-color: var(--pt-gold);
    color: #1a1a1a;
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
    .hero-section { min-height: 400px; }
    .display-4 { font-size: 2rem; }
    #sidebar { min-width: 200px; }
}

/* ---------- Loading Spinner ---------- */
.btn-loading {
    pointer-events: none;
    opacity: 0.75;
}

/* ---------- Footer ---------- */
footer a:hover {
    color: var(--pt-gold) !important;
    transition: color 0.2s;
}

/* ---------- Object Fit Utility ---------- */
.object-fit-cover { object-fit: cover; }
