/* =====================================
   BASE RESET & SAFETY
===================================== */
/* ========= 
*,
*::before,
*::after {
  box-sizing: border-box;
}
====== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #f8f9fa;
}


/* =====================================
   GRID SAFETY (BOOTSTRAP FRIENDLY)
===================================== */

.row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.row > [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* =====================================
   CARD BASE (SAFE)
===================================== */

.card {
  border: none;
  border-radius: 14px;
  background: #ffffff;
}

.card-body {
  color: #212529;
}

.card h6,
.card-title {
  margin-bottom: 6px;
  font-weight: 600;
}

.card p,
.card-text {
  font-size: 0.90rem;
}

.card strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

/* =====================================
   PRODUCT CARD (GRID SAFE)
===================================== */

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-img {
  height: 180px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}

.product-card .card-body {
  flex-grow: 1;
}

/* =====================================
   BUTTON BASE (NO COLORS)
===================================== */

.btn {
  border-radius: 10px;
}

.btn-primary {
  border: none;
}

/* =====================================
   LINKS
===================================== */

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ===============================
   ADMIN LAYOUT (STABLE)
================================ */

.admin-wrapper {
  display: flex;
  min-height: calc(100vh - 56px); /* navbar height */
  background: var(--page-bg, #f8f9fa);
}


/* ===============================
   ADMIN SIDEBAR (THEME-AWARE)
================================ */

.admin-sidebar {
  width: 250px;
  background: var(--sidebar-gradient, #212529);
  color: var(--sidebar-text, #ffffff);
  padding-top: 56px;
  position: fixed;
  left: 0px;
  bottom: 0px;
  height: 100vh;
  z-index: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;

}

/* Links */
.admin-sidebar a {
    display:block;
  width: 250px;
  padding: 10px 15px;
  align-items: center;
  color: var(--sidebar-text, #ffffff);
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Hover */
.admin-sidebar a:hover {
  background: rgba(255,255,255,0.12);
}

/* Active */
.admin-sidebar a.active {
  background: rgba(255,255,255,0.18);
  font-weight: 600;
}


/* ===============================
   ADMIN CONTENT
================================ */

.admin-content {
  flex: 1;
  padding: 5px;
  overflow-x: hidden;
  margin-left:270px;
  margin-top:60px;
}

/* ===============================
   PRODUCT GRID WRAPPER
================================ */

.product-grid {
  margin-top: 10px;
  }

/* Optional: consistent spacing */
.product-grid .product-card {
  height: 100%;
}

/* =========================================
   FEATURED PRODUCTS — FINAL STABLE STYLES
========================================= */

.featured-products-wrapper {
  position: relative;
}

/* Make whole card clickable */
.featured-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Card base */
.featured-product-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
  transition: transform .3s ease, box-shadow .3s ease;
}

.featured-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.18);
}

/* Image container — FIXES BIG IMAGE BUG */
.featured-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f4f4f4;
  overflow: hidden;
}

/* Image itself */
.featured-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

/* Subtle zoom */
.featured-product-card:hover .featured-image-box img {
  transform: scale(1.08);
}

/* Card body */
.featured-product-card .card-body {
  padding: 20px;
}

/* Title */
.featured-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Price */
.featured-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Button stays visible but card clickable */
.featured-product-card .btn {
  pointer-events: none;
}

/* Navbar override */
.admin-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-image: var(--navbar-gradient);
}


.admin-navbar .nav-link {
  color: #fff !important;
}

/* ===============================
   ADMIN SIDEBAR – FINAL FIX
================================ */

/* Each section must stack */
.sidebar-group {
  width: 100%;
}

.sidebar-heading {
    cursor: pointer;
  display: block;
  padding: 12px 15px 6px;
  font-size: 0.90rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  justify-content: space-between;
}

/* Container for sub links */
.sidebar-sub {
  display: block;
  margin-bottom: 8px;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.12);
}

/* ARROW */
.sidebar-heading .arrow::before {
  content: "▸";
  transition: transform 0.25s ease;
  font-size: 14px;
  display: inline-block;
}

.sidebar-group.open .arrow::before {
  transform: rotate(90deg);
  
}
/* Rotate arrow when open */
.sidebar-group.open .sidebar-heading .arrow::before {
  transform: rotate(90deg);
}


/* SUBMENU */

.sidebar-submenu { 
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255,255,255,0.06);
}

.sidebar-submenu a {
  padding: 10px 36px;
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  text-decoration: none;
}

.sidebar-submenu a:hover {
  background: rgba(255,255,255,0.12);
}

/* OPEN STATE */
.sidebar-group.open .sidebar-submenu {
  max-height: 500px; /* enough for links */
}

/* DASHBOARD LINK */
.sidebar-link {
  display: block;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.12);
}

/* Indented submenu */
.sidebar-sub a {
  padding-left: 36px;
  font-size: 0.92rem;
}

/* Scrollbar */
.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 6px;
}

/* ===============================
   HERO FONT MAP
================================ */

.hero-font-inter { font-family: 'Inter', sans-serif; }
.hero-font-playfair { font-family: 'Playfair Display', serif; }
.hero-font-montserrat { font-family: 'Montserrat', sans-serif; }
.hero-font-poppins { font-family: 'Poppins', sans-serif; }
.hero-font-bebas { font-family: 'Bebas Neue', sans-serif; }
.hero-font-oswald { font-family: 'Oswald', sans-serif; }
.hero-font-dmserif { font-family: 'DM Serif Display', serif; }
.hero-font-cinzel { font-family: 'Cinzel', serif; }
.hero-font-raleway { font-family: 'Raleway', sans-serif; }
.hero-font-chunkfive { font-family: 'ChunkFive', serif; }

@font-face {
  font-family: 'ChunkFive';
  src: url('/assets/fonts/chunkfive/ChunkFive-Regular.woff2') format('woff2'),
       url('/assets/fonts/chunkfive/ChunkFive-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ICON ALIGNMENT */
.admin-sidebar i {
  width: 20px;
  margin-right: 10px;
  text-align: center;
  opacity: 0.9;
}

/* Slight hover glow */
.admin-sidebar a:hover i {
  opacity: 1;
}

/* ORDER TIMELINE */
.timeline {


  list-style: none;
  padding-left: 0;
  position: relative;
}

.timeline li {
  padding: 15px 20px;
  border-left: 3px solid #0d6efd;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  width: 14px;
  height: 14px;
  background: #0d6efd;
  border-radius: 50%;
}

/* Container to hold the columns side-by-side */
.column-container {
  display: flex;             /* Enables flexbox layout */
  width: 100%;               /* Full width of the parent */
  min-height: 100px;             /* Define the height of your rectangles */
  gap: 0;                    /* Explicitly ensures NO gap between columns */
  
}

/* Base styles for all three columns */
.column {
  flex: 1;                   /* Makes each column take up exactly 1/3 of the width */
  padding-bottom:15px;
  padding-top:15px;
}

.column h5 {
    color: #ffffff;
    }

