/* ================================
   MONOLITH - Global Styles
   ================================ */

/* Material Design Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Base Typography */
body {
    background-color: #f9f9f9;
    color: #1b1b1b;
    font-family: 'Inter', sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* Hero Section Effects */
.hero-text-stroke {
    -webkit-text-stroke: 1px #1b1b1b;
    color: transparent;
}

.text-outline-thin {
    -webkit-text-stroke: 1.5px currentColor;
    color: transparent;
}

/* Scroll Indicator Animation */
@keyframes scroll-indicator {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Homepage Animations */
@keyframes float {
    0%, 100% { transform: rotate(-12deg) translateY(0); }
    50% { transform: rotate(-12deg) translateY(-10px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* No Scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #000;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ================================
   ADMIN - Specific Styles
   ================================ */

.admin-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.admin-section-title {
    font-size: 11px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #475569;
    margin-bottom: 1rem;
}

.admin-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.admin-input,
.admin-textarea,
.admin-select {
    width: 100%;
    border: 1px solid #d4d4d8;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    padding: 0.68rem 0.85rem;
    font-size: 0.92rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.admin-textarea {
    min-height: 110px;
    resize: vertical;
}

.admin-help {
    margin-top: 0.35rem;
    font-size: 11px;
    color: #6b7280;
}

.admin-error {
    margin-top: 0.4rem;
    font-size: 11px;
    font-weight: 600;
    color: #ba1a1a;
}

.admin-btn-primary,
.admin-btn-secondary,
.admin-btn-danger {
    border-radius: 10px;
    padding: 0.72rem 1rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.15s ease;
}

.admin-btn-primary {
    background: #111827;
    color: #ffffff;
}

.admin-btn-primary:hover {
    background: #000000;
}

.admin-btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

.admin-btn-secondary:hover {
    background: #e5e7eb;
}

.admin-btn-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.admin-btn-danger:hover {
    background: #fecaca;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #334155;
    transition: all 0.15s ease;
}

.admin-action-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.admin-action-btn:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.admin-action-btn-toggle-on {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.admin-action-btn-toggle-on:hover {
    background: #bbf7d0;
    border-color: #86efac;
    color: #14532d;
}

.admin-action-btn-toggle-off {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.admin-action-btn-toggle-off:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #334155;
}

.admin-action-btn-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.admin-action-btn-danger:hover {
    background: #fecaca;
    border-color: #fca5a5;
    color: #991b1b;
}

.admin-table {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.admin-table thead tr {
    background: #f8fafc;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

/* Flash Message Animation */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Row Hover Effect */
.group:hover td {
    transition: background-color 0.15s ease;
}

/* Drop Zone Active State */
#dropZone.drag-active {
    border-color: #000;
    background-color: #f3f3f3;
}

/* Form Select Arrow Override */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23777' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Admin Sidebar Active Link Animation */
.translate-x-1 {
    transform: translateX(4px);
}

/* Smooth Page Transitions */
main {
    animation: pageIn 0.2s ease-out;
}

@keyframes pageIn {
    from {
        opacity: 0.9;
    }
    to {
        opacity: 1;
    }
}

/* Delete Modal Backdrop */
#deleteModal {
    backdrop-filter: blur(4px);
}

/* Image Checkbox Overlay */
input[type="checkbox"].peer:checked + span {
    opacity: 1 !important;
}

/* Number Input - Hide Arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* ================================
   CATEGORY SIDEBAR
   ================================ */

/* Sidebar slide-in panel */
#sidebarPanel {
    backdrop-filter: blur(20px);
}

/* Line clamp for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================
   USER ORDERS - Enhanced UI
   ================================ */
.order-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.95rem 1rem;
}

.order-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #6b7280;
    margin: 0;
}

.order-stat-value {
    margin-top: 0.25rem;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #111827;
}

.order-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.order-card:hover {
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    transform: translateY(-1px);
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.22rem 0.62rem;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.order-status-pending {
    background: #f3f4f6;
    color: #4b5563;
}

.order-status-confirmed {
    background: #dbeafe;
    color: #1d4ed8;
}

.order-status-shipping {
    background: #ede9fe;
    color: #6d28d9;
}

.order-status-delivered {
    background: #dcfce7;
    color: #166534;
}

.order-status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.order-progress {
    width: 100%;
    height: 6px;
    border-radius: 9999px;
    background: #e5e7eb;
    overflow: hidden;
}

.order-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 9999px;
    transition: width 0.25s ease;
}

.order-progress-active {
    background: #111827;
}

.order-progress-cancelled {
    background: #dc2626;
}

/* ================================
   WISHLIST
   ================================ */

.wishlist-heart-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.wishlist-heart-btn:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.35);
}

.wishlist-heart-icon {
    font-size: 20px;
    line-height: 1;
    color: #111827;
    font-variation-settings: 'FILL' 0, 'wght' 350, 'GRAD' 0, 'opsz' 24;
    transition: transform 0.18s ease, color 0.18s ease;
}

.wishlist-heart-btn.is-active .wishlist-heart-icon,
.wishlist-heart-icon.is-active {
    color: #111827;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.wishlist-heart-btn:active .wishlist-heart-icon {
    transform: scale(0.92);
}

.wishlist-card-media {
    aspect-ratio: 4 / 3.8;
}

/* ================================
   COUPON SCROLL BOX
   ================================ */
.coupon-scroll-box::-webkit-scrollbar {
    width: 4px;
}

.coupon-scroll-box::-webkit-scrollbar-track {
    background: transparent;
}

.coupon-scroll-box::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 9999px;
}

.coupon-scroll-box::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

.coupon-scroll-box {
    scrollbar-width: thin;
    scrollbar-color: #d4d4d8 transparent;
}
