/* ═══════════════════════════════════════
   Premium Shop Theme
   ═══════════════════════════════════════ */

/* ─── Base & Typography ─── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1e293b;
    background: #f8fafc;
    font-size: .875rem;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { letter-spacing: -.02em; color: #0f172a; }
a { transition: all .25s cubic-bezier(.22,1,.36,1); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ─── Cards ─── */
.card {
    border-radius: .875rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.04);
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
    transition: all .35s cubic-bezier(.22,1,.36,1);
}
.card:hover { box-shadow: 0 10px 40px rgba(0,0,0,.08); }

.product-card-enhanced {
    border-radius: .875rem;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
    border: 1px solid rgba(0,0,0,.04);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.product-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,.1) !important;
}
.product-card-enhanced img { transition: transform .5s cubic-bezier(.22,1,.36,1); }
.product-card-enhanced:hover img { transform: scale(1.06); }

.category-card-enhanced {
    border-radius: .875rem;
    overflow: hidden;
    transition: all .35s cubic-bezier(.22,1,.36,1);
    border: 1px solid rgba(0,0,0,.04);
}
.category-card-enhanced:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,.08) !important;
}

/* ─── Buttons ─── */
.btn {
    border-radius: .5rem;
    font-weight: 500;
    letter-spacing: .01em;
    font-size: .8125rem;
    transition: all .25s cubic-bezier(.22,1,.36,1);
}
.btn-lg { border-radius: .625rem; font-size: .9rem; }
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    box-shadow: 0 4px 14px rgba(99,102,241,.3);
}
.btn-primary:hover, .btn-primary:active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 6px 20px rgba(99,102,241,.4);
    transform: translateY(-1px);
}
.btn-outline-primary {
    border-width: 1.5px;
    font-weight: 500;
    color: #6366f1;
    border-color: #6366f1;
}
.btn-outline-primary:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,.3);
    transform: translateY(-1px);
}
.btn-outline-primary.rounded-pill { border-width: 1.5px; }
.btn-outline-primary.rounded-pill:hover { background: #6366f1; color: #fff; }
.btn-light { background: #f1f5f9; border: 1px solid #e2e8f0; color: #1e293b; }
.btn-light:hover { background: #e2e8f0; color: #0f172a; }

/* ─── Forms ─── */
.form-control, .form-select {
    border-radius: .5rem;
    border: 1px solid #e2e8f0;
    padding: .5rem .875rem;
    font-size: .8125rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* ─── Badges ─── */
.badge { font-weight: 500; letter-spacing: .02em; }

/* ─── Quantity ─── */
.quantity-input { width: 60px; text-align: center; }

/* ─── Footer ─── */
footer a { transition: color .2s ease; }
footer a:hover { color: var(--footer-link-hover, #fff) !important; }

/* ─── Hero sections ─── */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #4f46e5 100%);
    position: relative;
    overflow: hidden;
}
.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: .5;
}

/* ─── USP Banner ─── */
.usp-item {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem;
}
.usp-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    background: rgba(99,102,241,.08);
    color: #6366f1;
    flex-shrink: 0;
}

/* ─── Section spacing ─── */
.section-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: #0f172a;
    letter-spacing: -.03em;
}
.section-subtitle {
    color: #64748b;
    font-size: .875rem;
}
.section-divider {
    height: 3px;
    width: 48px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 2px;
    margin: .5rem auto 0;
}

/* ─── Price ─── */
.price-tag {
    font-weight: 700;
    color: #6366f1;
    letter-spacing: -.01em;
}
.text-decoration-line-through { text-decoration: line-through !important; }

/* ─── Vue Transitions ─── */
.toast-enter-active { animation: slideInRight .3s ease; }
.toast-leave-active { animation: slideOutRight .3s ease; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

.list-enter-active, .list-leave-active { transition: all .3s ease; }
.list-enter-from { opacity: 0; transform: translateY(12px); }
.list-leave-to { opacity: 0; transform: translateY(-12px); }

.bounce-enter-active { animation: bounce .4s cubic-bezier(.22,1,.36,1); }
@keyframes bounce { 0% { transform: translate(-50%,-50%) scale(0); } 50% { transform: translate(-50%,-50%) scale(1.2); } 100% { transform: translate(-50%,-50%) scale(1); } }

.fade-enter-active, .fade-leave-active { transition: opacity .25s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ─── Spinner ─── */
.spinner-border-sm { width: 1rem; height: 1rem; border-width: .15em; }

/* ─── Breadcrumb ─── */
.breadcrumb { font-size: .8rem; margin-bottom: 0; }
.breadcrumb-item+.breadcrumb-item::before { color: #cbd5e1; }
.breadcrumb a { color: #64748b; text-decoration: none; }
.breadcrumb a:hover { color: #6366f1; }

/* ─── Product quick-add overlay ─── */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
    backdrop-filter: blur(2px);
}
.product-card-enhanced:hover .product-overlay { opacity: 1; }

/* ─── Alert ─── */
.alert { border-radius: .625rem; font-size: .8125rem; }

/* ─── Tables ─── */
.table { border-radius: .625rem; overflow: hidden; font-size: .8125rem; }
.table thead th { background: #f8fafc; font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; border-bottom: 2px solid #e2e8f0; }
.table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: rgba(99,102,241,.03); }

/* ─── Dropdown ─── */
.dropdown-menu {
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 40px rgba(0,0,0,.1);
    border-radius: .625rem;
    padding: .375rem;
    font-size: .8125rem;
}
.dropdown-item {
    border-radius: .375rem;
    padding: .425rem .75rem;
    transition: all .2s;
}
.dropdown-item:hover { background: #f1f5f9; }

/* ─── Pagination ─── */
.pagination { gap: .25rem; }
.page-link {
    border-radius: .5rem !important;
    border: 1px solid #e2e8f0;
    font-size: .8rem;
    font-weight: 500;
    color: #64748b;
    padding: .375rem .75rem;
    transition: all .25s;
}
.page-link:hover { background: #f1f5f9; color: #6366f1; border-color: #cbd5e1; }
.page-item.active .page-link { background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: transparent; box-shadow: 0 2px 8px rgba(99,102,241,.3); }

/* ─── Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Quill list rendering ─── */
ol li[data-list="bullet"] { list-style-type: disc; }
ol li[data-list="bullet"]::marker { font-size: 1.2em; }
ol li[data-list="ordered"] { list-style-type: decimal; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
ul li, ol li { margin-bottom: .25rem; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .section-title { font-size: 1.25rem; }
    .hero-gradient .display-4 { font-size: 1.75rem !important; }
}
