/* ---------------------------------------------------------
   Story Store - Digital Cartoon Marketplace CSS
   Modern, Mobile-First, Creative & Responsive Design System
   --------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --secondary-color: #FF5E62;
  --secondary-hover: #E0484C;
  --accent-color: #FFC107;
  --dark-color: #0F172A;
  --slate-dark: #1E293B;
  --slate-muted: #64748B;
  --bg-light: #F8FAFC;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 25px 35px -5px rgba(79, 70, 229, 0.18), 0 12px 12px -5px rgba(0, 0, 0, 0.04);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark-color);
}

/* Glassmorphism Navbar */
.navbar-story {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  padding: 10px 0;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* ToolMax Custom Round Cartoon Logo Badge */
.brand-logo .brand-icon-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  background-color: #0f172a;
}

.brand-logo:hover .brand-icon-logo {
  transform: rotate(6deg) scale(1.08);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.7);
}

/* Search Box */
.search-box-wrap {
  position: relative;
  max-width: 480px;
  width: 100%;
}

.search-box-wrap input {
  border-radius: 50px;
  padding-left: 46px;
  padding-right: 20px;
  height: 46px;
  border: 2px solid var(--border-color);
  background-color: #F1F5F9;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.search-box-wrap input:focus {
  background-color: #FFFFFF;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.search-box-wrap .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-muted);
  font-size: 16px;
}

/* Cart Badge Button */
.btn-cart-nav {
  position: relative;
  background: var(--primary-light);
  color: var(--primary-color);
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-cart-nav:hover {
  background: var(--primary-color);
  color: white;
}

.btn-cart-nav .badge-count {
  background: var(--secondary-color);
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 700;
}

/* Hero Section */
.hero-story {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.hero-story::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 94, 98, 0.25) 0%, rgba(255, 94, 98, 0) 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, #FFC107, #FF5E62);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #94A3B8;
  max-width: 540px;
  margin-bottom: 30px;
}

/* Category Cards */
.category-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
  color: var(--dark-color);
  display: block;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
  color: var(--primary-color);
}

.category-icon-wrapper {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  background: var(--primary-light);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon-wrapper {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1) rotate(-4deg);
}

/* Product Card & Image Frame */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.3);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #F8FAFC;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.product-thumb-wrap img,
.product-card img,
.card-img-top {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb-wrap img {
  transform: scale(1.05);
}

.product-badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--secondary-color), #E11D48);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(255, 94, 98, 0.3);
  z-index: 2;
}

.product-badge-format {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 2;
}

.product-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-title a:hover {
  color: var(--primary-color);
}

.product-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-color);
}

/* Custom Buttons */
.btn-primary-story {
  background: linear-gradient(135deg, var(--primary-color), #6366F1);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  border: none;
  font-size: 0.88rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.btn-primary-story:hover {
  background: linear-gradient(135deg, var(--primary-hover), #4F46E5);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35);
}

.btn-secondary-story {
  background: linear-gradient(135deg, var(--secondary-color), #E11D48);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  border: none;
  font-size: 0.88rem;
  box-shadow: 0 4px 10px rgba(255, 94, 98, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.btn-secondary-story:hover {
  background: linear-gradient(135deg, var(--secondary-hover), #D97706);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-story {
  border: 1.5px solid var(--border-color);
  background: transparent;
  color: var(--slate-dark);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline-story:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-light);
}

/* Details Page Specs Table */
.spec-box {
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.95rem;
}

.spec-item:last-child {
  border-bottom: none;
}

/* Format Badges */
.badge-psd { background: #001E36; color: #31A8FF; }
.badge-png { background: #022C22; color: #10B981; }
.badge-fla { background: #3B0764; color: #C084FC; }
.badge-mp4 { background: #450A0A; color: #FCA5A5; }
.badge-zip { background: #1E293B; color: #F1F5F9; }

/* Admin Dashboard Styling */
.admin-sidebar {
  background: #0F172A;
  color: #94A3B8;
  min-height: 100vh;
  padding: 24px 16px;
}

.admin-sidebar .nav-link {
  color: #94A3B8;
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Mobile Responsive Optimization */
@media (max-width: 768px) {
  .hero-story {
    padding: 30px 20px;
    border-radius: var(--radius-lg);
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .search-box-wrap {
    max-width: 100%;
    margin-top: 10px;
  }

  .product-card-body {
    padding: 10px;
  }

  .product-title {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .product-price {
    font-size: 1rem;
  }

  .btn-primary-story,
  .btn-secondary-story {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* =========================================================
   RewardJoy Style Modern Offcanvas Sidebar Navigation
   ========================================================= */
.offcanvas-reward {
  width: 290px !important;
  background: #FFFFFF !important;
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  border: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.offcanvas-reward .offcanvas-header {
  padding: 18px 20px;
  border-bottom: 1px solid #F1F5F9;
}

.sidebar-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4B5563;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.sidebar-link i {
  font-size: 1.15rem;
  color: #9CA3AF;
  width: 24px;
  text-align: center;
  transition: color 0.2s ease;
}

.sidebar-link:hover {
  background-color: #F8FAFC;
  color: #111827;
}

.sidebar-link:hover i {
  color: #4B5563;
}

/* হুবহু স্ক্রিনশটের মতো অরেঞ্জ একটিভ বাটন */
.sidebar-link.active {
  background-color: #FF6B00 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3) !important;
}

.sidebar-link.active i {
  color: #FFFFFF !important;
}

.sidebar-clock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 10px;
}
