/* ===== Desktop Skin Overrides ===== */

/* Core color variables (from your design reference) */
:root {
  
  --primary-dark:    #8B1C1C;  
  --primary:         #C62828;   
  --secondary:       #F57C00;   
  --light-primary:   #FFCDD2;   
  --button-active:   #A31515;  

  --accent:          #FF9800;   
  --orange:          #FF6F00;   
  --green:           #2E7D32;   
  --red:             #D32F2F;   

  --text-color:      #212121;
  --light-text:      #757575;
  --divider:         #E0E0E0;
  --white:           #FFFFFF;
}

/* ===== Desktop: Top-Horizontal Menu ===== */
@media (min-width: 768px) {

  /* 1) Base fixed navbar */
  #mainNavCollapseCollapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    background: rgba(240, 240, 240, 0.92) !important; /* 92% - grey */
    backdrop-filter: blur(8px);

    border-bottom: 1px solid var(--divider);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 1040;
  }

  /* 2) Push page content below the bar */
  .main-content {
    margin-top: 60px; /* adjust to navbar height */
  }

  /* 3) Horizontal nav-items */
  #mainNavCollapse .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0 2rem;
  }

  #mainNavCollapse .nav-item {
    position: relative;
  }

  #mainNavCollapse .nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.5s, color 0.5s;
  }

  #mainNavCollapse .nav-link:hover,
  #mainNavCollapse .nav-link:focus {
    background-color: var(--light-primary);
    color: var(--text-color);
  }

  /* 4) First-level dropdown panels */
  #mainNavCollapse .nav-item > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--white);
    border: 1px solid var(--divider);
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1030;
    padding: 0.5rem 0;
  }

  #mainNavCollapse .nav-item:hover > ul,
  #mainNavCollapse .nav-item:focus-within > ul {
    display: block;
  }

  #mainNavCollapse .nav-item > ul .nav-link {
    padding: 0.5rem 1.25rem;
    white-space: nowrap;
  }

  /* 5) Nested (3rd-level) fly-out menus */
  #mainNavCollapse .nav-item > ul li {
    position: relative;
  }
  #mainNavCollapse .nav-item > ul li > ul {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 180px;
    background-color: var(--white);
    border: 1px solid var(--divider);
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  #mainNavCollapse .nav-item > ul li:hover > ul,
  #mainNavCollapse .nav-item > ul li:focus-within > ul {
    display: block;
  }

  /* 6) Active styling */
  #mainNavCollapse .nav-item.active > .nav-link {
    color: var(--button-active) !important;
  }
  #mainNavCollapse .nav-item.active > .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--button-active);
  }




 /* 1) Prepare links */
#mainNavCollapse .nav-link {
  position: relative;
  overflow: hidden;
}

/* 2) Full-link fill layer */
#mainNavCollapse .nav-link::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 100%;
  background-color: var(--light-primary);
  transition: width 0.4s ease;
  z-index: -11;
}

/* 3) Fill on hover/focus, unfill on exit */
#mainNavCollapse .nav-link:hover::before,
#mainNavCollapse .nav-link:focus::before {
  width: 100%;
  transition: width 0.4s ease !important;
}

/* 4) Keep text/icons above the fill */
#mainNavCollapse .nav-link > * {
  position: relative;
  z-index: 2000;
}

/* 5) Active item: soft glow instead of harsh LED dot */
#mainNavCollapse .nav-item.active .nav-link {
  color: var(--button-active) !important;
  box-shadow: inset 0 -3px 40px rgba(49,63,159,0.2), /* subtle bottom glow */
              inset 0  3px 6px rgba(49,63,159,0.0); /* gentle top lift */
}

/* Remove default bullets from all nav ULs */
#mainNavCollapse .navbar-nav ul {
  list-style: none;   /* no dots */
  padding-left: 0;    /* reset browser padding */
  margin-left: 0;
}

/* Desktop: sub-items flush left with parent */
@media (min-width: 768px) {
  .navbar-nav ul .nav-item .nav-link {
    padding-left: 1rem; /* slight indent if you want */
    text-align: left;
  }
}

/* -----END OF MENU CSS----- */

  header.text-center {
    position: relative;
    top: 1.0rem;    /* pushes header down */
  }
}

/* ===== System Message Callout ===== */
.jumbotron {
  position: relative;
  margin: 1.5rem auto;                    /* breathing room above/below */
  padding: 1.25rem 1.5rem;
  max-width: 800px;                        /* constrain for readability */
  background-color: rgba(255, 255, 255, 0.35); /* semi-transparent glass */
  backdrop-filter: blur(8px);              /* Safari / iOS */
  -webkit-backdrop-filter: blur(8px);      /* Chrome with flag */
  border-left: 6px solid var(--button-active);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: fadeInDown 0.5s ease-out;
}

/* Add a little icon before the message text */
.jumbotron blockquote::before {
  content: "\f05a";                 /* “info-circle” in FA4 */
  font-family: "FontAwesome";       /* FA 4’s font-family */
  speak: none; 
  font-style: normal; 
  font-weight: normal; 
  font-variant: normal; 
  text-transform: none; 
  display: inline-block;
  line-height: 1;
  
  position: absolute; 
  left: 1rem; 
  top: 1.1rem;
  color: var(--button-active);
  font-size: 1.5rem;
  opacity: 0.85;
}

/* Space the text over to make room for icon */
.jumbotron blockquote {
  margin-left: 2.5rem;
  color: #242424;
}

/* Style the Dismiss button to match */
.jumbotron #dismiss {
  background:  var(--button-active);   /* blue fill */
  color: var(--button-active);
  border: 2px solid var(--button-active);
  border-radius: 60px;
  padding: 0.5rem 0.75rem;
  box-shadow: none;
  transition: background-color 0.2s, color 0.2s;
}

.jumbotron #dismiss:hover {
  background-color: var(--button-active);
  color: #fff;
}

/* Fade-in animation for entrance */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== Global CTA Button Style ===== */
.btn,
button,
input[type="button"],
input[type="submit"],
a.btn {
  background-color: var(--button-active);   /* blue fill */
  color: #ffffff !important;           	    /* white text */
  border: 3px solid var(--button-active);   /* orange outline */
  border-radius: 999px;                     /* pill shape */
  padding: 0.5rem 1.5rem;                  /* vertical/horizontal padding */
  margin: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: 
    background-color 0.3s ease, 
    color 0.3s ease, 
    border-color 0.3s ease;
  text-decoration: none;               /* for <a> elements */
}

/* Outline-on-hover */
.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a.btn:hover {
  background-color: transparent !important;
  color: var(--button-active) !important;           /* button text */
  border-color: var(--primary) !important;    /* button outline */
}

/* Store page — auto-wrapping grid of cards */
.store-grid {
  display: grid;
  grid-gap: 1rem;
  /* min card width of 280px, stretch to fill */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cart wrapper: full width on mobile, max 600px on desktop */
.store-cart-wrapper {
  width: 100%;
  max-width: 600px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* The “Delete” button inside the cart */
.btn-xs {
  padding: 0.05rem 0.65rem;
  background-color: var(--red) !important;   /* button background */
  color: var(--orange) !important;    /* button text */
  border-color: var(--red) !important;    /* button outline */
  font-size: 0.75rem;
  line-height: 0.15;
}
/* On-hover */
.btn-xs:hover {
  background-color: var(--orange) !important;
  color: var(--red) !important;           /* button text */
  border-color: var(--orange) !important;    /* button outline */
}

/* ===== Store Card Polish ===== */

/* 1) Base card appearance */
.store-item .card {
  border: 1px solid #e2e2e2;            /* soft light border */
  border-radius: 8px;                  /* gentle rounding */
  background-color: #ffffff;           /* solid white for contrast */
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;                    /* contain child overflow */
}

/* 2) Hover/focus “lift” effect */
.store-item .card:hover,
.store-item .card:focus-within {
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

/* 3) Uniform accent stripe on every card */
.store-item .card {
  border-bottom: 4px solid var(--secondary);
}

/* 4) Image treatment */
.store-item .card img {
  border-radius: 50%;                  /* circle avatar */
  object-fit: cover;
  margin: 1rem auto;                   /* vertical centering */
  display: block;
}

/* 5) Card body spacing & typography */
.store-item .card-body {
  padding: 1.25rem 1rem;
}
.store-item .card-title h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.store-item .card-body p {
  margin-bottom: 0.5rem;
  color: #555;
}

/* 6) Add-to-Cart CTA alignment */
.store-item .card-body > p:last-child {
  margin-top: 1rem;
  text-align: center;
}
