/* --- CSS VARIABLES --- */
:root {
  --primary-accent: #012f31;
  --secondary-dark: #012f31;
  --light-bg: whitesmoke;
  --text-color: #012f31;
}

/* --- UTILITY / ANIMATION CLASSES --- */
.view-block-main {
  animation: appear 0.5s linear;
}

.view-block {
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

@keyframes appear {
  from {
    opacity: 0;
    scale: 0;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.pointer-events-none {
  pointer-events: none;
}

/* --- Base/Body Styles --- */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background: whitesmoke;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.line-break {
  background-color: #012f31 !important;
  padding: 0px !important;
  margin: 0px !important;
  color: #012f31;
  width: 100%;
  margin-bottom: 50px !important;
}
/* Dashboard overrides the general line-break margin */
#admin-dashboard .line-break {
  margin-bottom: 0px !important;
}

/* --- NAVBAR Layout (Common) --- */
.navbar .container,
.navbar .container-fluid {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding-left: 12px;
  padding-right: 12px;
  position: relative;
}

/* constrain logo column so it cannot grow and push into the typewriter */
.navbar .col-lg-3,
.navbar .navbar-brand-row {
  flex: 0 0 auto;
  max-width: 250px;
  padding-left: 0;
  padding-right: 0;
}
/* make sure the logo image scales nicely */
.nav-logo {
  width: 350px;
  max-width: 350px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border: transparent !important;
  outline: transparent !important;
  box-shadow: transparent !important;
  background: transparent !important;
}

.navbar .col-lg-9 {
  flex: 1 1 auto;
  padding-left: 12px;
  padding-right: 12px;
}

/* --- NAVBAR Styling (Common) --- */
.navbar {
  background-color: #012f31 !important;
  padding: 8px 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* Added for dashboard sticky bar */
  /* position: sticky; */
  top: 0;
  z-index: 100;
}

.navbar-brand,
.navbar-title {
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: whitesmoke !important;
  display: block;
  text-align: center;
  max-width: 100%;
  padding: 0 8px;
  margin: 0;
  position: static;
  transform: none;
  z-index: 1060;
  height: 50px;
}
/* Dashboard specific title style */
.navbar-title {
  color: white !important;
}

#cursor {
  display: inline-block;
  color: whitesmoke;
  animation: blink 0.7s infinite;
  margin-left: 6px;
}
.navbar-title #cursor {
  color: white;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
#typewriter-text {
  display: inline-block;
  vertical-align: middle;
}

.nav-link {
  color: whitesmoke;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 4px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: ease 1s;
  font-weight: 600;
  display: block;
  border: 1px solid whitesmoke !important;
}
.nav-link:hover {
  background-color: whitesmoke;
  transition: ease 0.5s;
  box-shadow: 0 5px 15px whitesmoke !important;
  color: #012f31 !important;
}

/* Dashboard Toggler */
.navbar-toggler {
  border: 1px solid white !important;
  border-radius: 6px;
  z-index: 1070;
  background: transparent;
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* --- Desktop Layout (Min Width 992px) --- */
@media (min-width: 992px) {
  .line-break {
    display: block;
  }
  #navbar-content-row {
    display: flex !important;
    margin-top: 8px; /* Standard navbar spacing */
  }
  /* Dashboard override */
  #admin-dashboard #navbar-content-row {
    margin-top: 0;
  }

  #nav-links-grid,
  .navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  #admin-dashboard .navbar-nav {
    justify-content: flex-end;
  }

  #nav-links-grid > div {
    flex: 0 0 auto;
    width: auto;
  }

  .nav-link {
    min-width: 110px;
    text-align: center;
  }
  #admin-dashboard .nav-link {
    font-size: 1rem;
  }

  /* Dashboard specific styles */
  #admin-dashboard .navbar-collapse {
    display: flex !important;
    justify-content: flex-end;
    width: 100%;
  }
  #admin-dashboard .navbar-brand-row {
    width: auto;
    justify-content: center !important;
  }
}

/* --- Mobile Layout (Max Width 991px) --- */
@media (max-width: 991px) {
  .navbar .container,
  .navbar .container-fluid {
    flex-direction: column;
    align-items: center;
  }
  .navbar .col-lg-3,
  .navbar .col-lg-9,
  .navbar .navbar-brand-row {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .nav-logo {
    max-width: 200px; /* mobile logo size */
  }

  .line-break {
    display: none;
  }
  .navbar-brand,
  .navbar-title {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
    height: 30px;
  }

  #navbar-content-row {
    flex-wrap: wrap;
  }

  #nav-links-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -6px;
    margin-top: 8px;
    justify-content: center;
  }

  #nav-links-grid > div {
    padding: 0 6px;
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 600;
    color: whitesmoke;
    scale: 1;
    font-size: 1rem;
  }
  #admin-link-item {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 8px;
    margin-bottom: 0 !important;
  }

  #cursor {
    display: none;
  }
  #typewriter-text {
    max-width: 100%;
    font-size: 20px;
  }

  /* Dashboard Mobile Specifics */
  #admin-dashboard .navbar-toggler {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 8px;
  }
  #admin-dashboard .navbar-collapse {
    width: 100%;
    background: var(--secondary-dark);
    padding: 18px;
    z-index: 1040;
    overflow-y: hidden;
    transition: height 0.3s ease;
    margin-top: 0;
  }
  #admin-dashboard .navbar-nav {
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    align-items: stretch;
    padding-top: 8px;
    width: 100%;
  }
  #admin-dashboard .nav-link:hover {
    background-color: var(--primary-accent);
    color: white !important;
  }
}

/* --- BUTTONS (Common) --- */
.hero-btn-1,
.hero-btn {
  background-color: #012f31;
  color: whitesmoke;
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 8px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: ease 1s;
}

.hero-btn-1:hover,
.hero-btn:hover {
  background-color: whitesmoke;
  transition: ease 0.5s;
  box-shadow: 0 5px 15px #012f31;
  color: var(--primary-accent);
  cursor: pointer;
}

.hero-btn-2 {
  background-color: whitesmoke;
  color: #012f31;
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 8px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: ease 1s;
}
.hero-btn-2:hover {
  background-color: #012f31;
  color: whitesmoke;
  transition: ease 0.5s;
  box-shadow: 0 5px 15px whitesmoke;
  cursor: pointer;
}
/* Admin Dashboard Primary Button */
.btn-primary-custom {
  background-color: var(--primary-accent);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 20px;
  transition: background-color 0.3s;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: white; /* Ensure text is white */
}
.btn-primary-custom:hover {
  background-color: #011b1c; /* Slightly darker shade of primary-accent for hover */
  color: whitesmoke;
}

/* --- FORMS/INPUTS (Common) --- */
.form-label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}
.form-control,
.form-select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: border-color 0.3s;
}
.form-control:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 0.2rem rgba(2, 42, 44, 0.25);
}
/* Small screen adjustment for inputs */
@media (max-width: 767px) {
  .form-control,
  .form-select {
    padding: 9px 12px;
  }
}
/* Very small screen adjustment for inputs */
@media (max-width: 575px) {
  #admin-dashboard .form-control,
  #admin-dashboard .form-select {
    padding: 8px;
    font-size: 0.9rem;
  }
}

/* --- SECTION HEADERS / DIVIDERS (Common) --- */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--primary-accent);
  margin: 0 auto;
  border-radius: 2px;
}
/* Override for dark backgrounds */
.brands-section .section-divider {
  background: var(--secondary-dark);
}

/* --- PRODUCT CARD STYLES (Common to index.html and products.html) --- */
.product-card {
  /* border: 1px solid #eee; */
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #012f31;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
.product-card:hover {
  /* transform: translateY(-8px); */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Whitesmoke box-shadow for cards in the infinite carousel */
.carousel-product-wrapper .product-card {
  box-shadow: 0 0 10px rgba(245, 245, 245, 0.6);
}

.carousel-product-wrapper .product-card:hover {
  box-shadow: 0 0 15px 5px rgba(245, 245, 245, 0.8);
}

.product-img-wrapper {
  height: 220px;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  overflow: hidden;
}
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}
.product-card:hover .product-img-wrapper img {
  transform: scale(1.2);
  overflow: hidden;
}

.price-tag {
  color: var(--primary-accent);
  font-weight: 800;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.card-title {
  font-weight: 700;
  color: var(--secondary-dark);
  font-size: clamp(1rem, 3vw, 1.25rem);
}

.brand-badge {
  font-size: 0.8rem;
  background-color: whitesmoke;
  color: var(--text-color);
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  font-weight: 600;
  display: block;
  width: fit-content;
}

/* Mobile adjustments for product card images */
@media (max-width: 767px) {
  #index .product-img-wrapper {
    height: 160px;
  }
  #products .product-img-wrapper {
    height: 180px;
  }
}
@media (max-width: 575px) {
  #index .product-img-wrapper {
    height: 200px;
  }
  #products .product-img-wrapper {
    height: 150px;
    padding: 15px;
  }
  #products .card-body {
    padding: 10px;
  }
  #products .brand-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}

.carousel-card {
  background-color: #012f31 !important;
  color: whitesmoke !important;
  padding-bottom: 2px !important;
  padding-top: 30px !important;
  text-align: center;
}

.carousel-card-title {
  /* padding-top: 3px; */
  color: whitesmoke !important;
}

/* --- FOOTER (Common) --- */
footer {
  background-color: var(--secondary-dark);
  color: whitesmoke;
  padding: 32px 0;
  line-height: 1.4;
  flex-shrink: 0;
  margin-top: auto;
}

footer .row {
  margin-bottom: 8px;
}
footer .row.mt-4 {
  margin-top: 16px;
  margin-bottom: 0;
}

footer h5 {
  margin-bottom: 8px;
  font-size: 1rem;
}
footer p.small {
  margin-bottom: 0;
  font-size: 0.95rem;
}

footer a {
  color: whitesmoke;
}
footer a:hover {
  color: var(--primary-accent);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
}

.item {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid whitesmoke;
  background: transparent;
  box-sizing: border-box;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.social-link {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
  border-radius: 50%;
}

/* Gradients per social network */
.social-link-insta::before {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.social-link-linkedin::before {
  background: linear-gradient(45deg, #0a66c2, #004182);
}
.social-link-youtube::before {
  background: linear-gradient(45deg, #ff0000, #cc0000);
}
.social-link-twitter::before {
  background: linear-gradient(45deg, #1da1f2, #0d8ddc);
}
.social-link-whatsapp::before {
  background: linear-gradient(45deg, #25d366, #128c7e);
}

/* Hover state: reveal the color and switch icon color to white */
.social-link:hover::before,
.social-link:focus::before {
  transform: scale(1);
}

.social-link:hover .icon,
.social-link:focus .icon {
  color: #ffffff !important;
  transform: rotate(360deg);
  transition: transform 1.5s ease, color 0.2s ease;
}

.text-dark {
  color: #012f31 !important;
}

/* Icon default style */
.icon {
  font-size: 1.35rem;
  color: whitesmoke;
  z-index: 3;
  transition: color 0.2s ease, transform 0.8s ease;
  display: inline-block;
}

#store-map {
  height: 200px; /* Standard height */
  width: 100%;
  border-radius: 8px;
  margin-top: 10px;
  overflow: hidden;
}
/* Products page and Dashboard map adjustment */
#products #store-map {
  height: 250px;
}
#admin-dashboard #store-map {
  height: clamp(200px, 50vh, 250px);
}

footer hr {
  margin: 18px 0 10px;
  opacity: 0.12;
}

#admin-link-item,
#admin-link-item-footer {
  margin-top: 0;
  margin-bottom: 0 !important;
  padding: 6px 0;
}

/* --- BACK TO TOP BUTTON (Common) --- */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1000;
  background-color: #012f31;
  color: whitesmoke;
  border: 1px solid whitesmoke;
  border-color: whitesmoke;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, opacity 0.3s;
  cursor: pointer;
}
#back-to-top:hover {
  background-color: whitesmoke;
  color: #012f31;
  border: 1px solid #012f31;
}
#back-to-top:active {
  background-color: #012f31;
  color: whitesmoke;
  border: 1px solid whitesmoke;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

/* --- MOBILE & SMALL SCREEN ADJUSTMENTS (Common) --- */
@media (max-width: 767px) {
  .navbar .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  /* Footer mobile padding */
  footer {
    padding: 30px 0 15px;
  }
}

@media (max-width: 575px) {
  /* Footer mobile padding and item size */
  .item {
    width: 48px;
    height: 48px;
  }
  .icon {
    font-size: 1.1rem;
  }
  footer {
    padding: 20px 0;
  }
  #store-map {
    height: 160px;
  }
  footer h5 {
    font-size: 0.95rem;
  }
}
@media (max-width: 380px) {
  .item {
    width: 44px;
    height: 44px;
  }
  .icon {
    font-size: 1rem;
  }
}

/* =========================================================================
   CHAT STYLES
   ========================================================================= */
#chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #012f31; /* Match hero-btn-1 color */
  border-radius: 50%;
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
  border: 1px solid whitesmoke;
}

#chat-bubble:hover {
  transform: scale(1.05);
}

/* MODIFIED: Increased max-height, improved positioning, added transition */
#chat-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  max-height: 600px;
  height: 90vh;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  z-index: 9999;

  display: flex;
  flex-direction: column;

  /* 🔑 Genie anchor */
  transform-origin: bottom right;

  /* Hidden state */
  pointer-events: none;
  opacity: 0;
  transform: scale(0.1) translate(40px, 40px);

  transition:
    opacity 0.35s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}



/* New class for when the chat panel is actually visible (No duplication) */
#chat-panel.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translate(0, 0);
  transition: 0.6s ease-in-out;
  /* animation: genie-expand 1s cubic-bezier(0.34, 1.56, 0.64, 1); */
}

@keyframes genie-expand {
  0% {
    transform: scale(0.1) translate(40px, 40px);
  }
  80% {
    transform: scale(1.05) translate(-6px, -6px);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}


#chat-header {
  background-color: #012f31;
  color: white;
  padding: 15px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

#chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: #f8f9fa;
}

.chat-message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 85%;
  word-wrap: break-word;
}

.user-message {
  background-color: #d1e7dd; /* Light green */
  align-self: flex-end;
  margin-left: auto;
}

.bot-message {
  background-color: #e9ecef; /* Light gray */
  align-self: flex-start;
}

/* Ensure the loading indicator is vertically centered and clean */
#bot-loading {
  display: flex;
  align-items: center;
  font-style: italic;
  color: #495057;
  background-color: #e9ecef;
}

#chat-input-area {
  padding: 10px;
  border-top: 1px solid #dee2e6;
  display: flex;
  flex-shrink: 0;
}

#chat-input-area input {
  flex-grow: 1;
  border: 1px solid #ced4da;
  border-radius: 20px;
  padding: 8px 15px;
  margin-right: 10px;
}
#chat-input-area button {
  background-color: #012f31;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* NEW: Styles for the blur and scroll stop effect when chat is active */
.chat-active > :not(#chat-panel):not(#chat-bubble) {
  /* Apply blur to all body children except the chat elements */
  filter: blur(4px);
  transition: filter 0.4s ease;

  /* Stop all mouse interactions (including hover effects) */
  pointer-events: none;
}

.chat-active {
  /* Stop scroll on the body */
  overflow: hidden !important;
}

/* IMPORTANT EXCEPTION: We must re-enable pointer events for the pre-loader */
.chat-active #pre-loader {
  pointer-events: auto;
}

/* Mobile Adjustments for Chat Panel */
@media (max-width: 576px) {
  #chat-panel {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 65%;
    border-radius: 16px 16px 0 0;

    transform-origin: bottom center;
    transform: translateY(100%) scaleY(0.7);
  }

  #chat-panel.show {
    transform: translateY(0) scaleY(1);
  }
  #chat-header {
    border-radius: 0;
  }
  /*
    // 🛑 REMOVE or COMMENT OUT THIS BLOCK TO SHOW THE BUBBLE ON MOBILE
    #chat-bubble {
        display: none !important; 
    }
    */
}

/* --- NEW STYLES FOR TYPING EFFECT & LOADING --- */

/* Typing Cursor (looks like a blinking block) */
.typing-cursor {
  display: inline-block;
  color: #012f31;
  animation: blink-cursor 0.8s step-end infinite;
  font-weight: bold;
  margin-left: 2px;
}

@keyframes blink-cursor {
  from,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Typing Dots Animation (For the "Thinking" state) */
.typing-dots {
  display: inline-block;
  padding-left: 5px;
}

.typing-dots span {
  opacity: 0;
  animation: dot-flicker 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s; /* Delay the second dot */
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s; /* Delay the third dot */
}

@keyframes dot-flicker {
  0%,
  60% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* --- BRAND BLUR EFFECT --- */
.brand-logo-container {
  /* This ensures the image respects the container size on hover */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand-logo {
  /* Apply transition to the image itself for the filter effect */
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Class applied to the row/container when any logo is hovered/tapped */
.brands-container-blurred .brand-logo {
  filter: blur(2px) grayscale(50%);
  opacity: 0.6;
}

/* Remove blur/dimming only from the logo currently being hovered OR tapped/focused */
.brands-container-blurred .brand-logo-container:hover .brand-logo,
.brands-container-blurred .brand-logo-container.logo-focus-active .brand-logo {
  filter: blur(0) grayscale(0);
  opacity: 1;
  /* optional: transform: scale(1.05); */
}

/* =========================================================================
   Admin Login Specific Styles
   ========================================================================= */
.login-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 40px) 0;
}
.login-container {
  max-width: 420px;
  width: 100%;
  background: whitesmoke;
  padding: clamp(30px, 5vw, 40px);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}
.login-header {
  text-align: center;
  margin-bottom: 30px;
}
.login-header h1 {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--primary-accent);
  margin-bottom: 5px;
}
.login-header p {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-color);
}
.icon-header {
  font-size: clamp(2rem, 6vw, 2.5rem);
  color: var(--primary-accent);
  margin-bottom: 10px;
}
.login-wrapper .hero-btn-1 {
  width: 100%;
}
/* Mobile overrides */
@media (max-width: 767px) {
  .login-container {
    margin: 0 15px;
  }
  .form-group {
    margin-bottom: 15px;
  }
}
@media (max-width: 575px) {
  .login-container {
    padding: 25px;
    border-radius: 12px;
  }
  .login-header h1 {
    font-size: 1.4rem;
  }
  .icon-header {
    font-size: 2rem;
  }
  .form-label {
    font-size: 0.85rem;
  }
}

/* =========================================================================
   Index Page Specific Styles
   ========================================================================= */
.hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #012f31;
  background-color: whitesmoke;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 5vw, 40px);
  width: 100%;
  max-width: 1100px;
  text-align: center;
}
.hero-content h1 {
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.2;
}
.hero-content p {
  font-size: clamp(0.95rem, 3vw, 1.25rem);
}
.typewriter-container {
  height: 120px;
}
.feature-icon {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--primary-accent);
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.p-3:hover .feature-icon {
  transform: translateY(-5px);
}
.about-us-section,
.featured-product-section {
  background-color: #012f31;
  color: whitesmoke !important;
}
.text-muted-1 {
  color: whitesmoke !important;
}
.text-muted-2 {
  color: #012f31 !important;
}
.brands-section {
  background-color: #f7f7f7;
}
.brand-logo-container {
  padding: 15px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  mix-blend-mode: multiply;
}
.brand-logo {
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s ease;
}
.brand-logo-container:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(2, 42, 44, 0.25);
  z-index: 5;
  transition: 0.5s ease;
}
.brand-logo-container:hover .brand-logo {
  transform: scale(1.05);
}
#showroomCarousel {
  height: 350px;
  background-color: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.carousel-item-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.showroom-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
/* Product Carousel Styles */
#productCarouselContainer {
  overflow: hidden;
  position: relative;
}
#carousel-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
  will-change: transform;
  padding: 12px 8px;
  user-select: none;
  cursor: grab;
}
#productCarouselContainer.is-dragging #carousel-track {
  cursor: grabbing;
}
.carousel-product-wrapper {
  flex: 0 0 25%;
  max-width: 25%;
}
.carousel-controls-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
#carousel-pause-btn {
  z-index: 20;
  background-color: whitesmoke;
  border-color: whitesmoke;
  color: #012f31;
}
#carousel-pause-btn:hover {
  background-color: whitesmoke;
  border-color: whitesmoke;
  color: #012f31;
}
/* Index Mobile adjustments */
@media (max-width: 767px) {
  .carousel-product-wrapper {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 575px) {
  .hero-section {
    min-height: 60vh;
    padding: 20px 0;
  }
  .carousel-product-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.offcanvas-body {
  background-color: #012f31 !important;
}

/* =========================================================================
   Showroom Page Specific Styles
   ========================================================================= */
.showroom-header {
  background-color: whitesmoke;
  color: #012f31;
  padding: 40px 0;
  text-align: center;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: zoom-in;
  height: 100%;
  background-color: white;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-caption {
  background-color: rgba(2, 42, 44, 0.85);
  color: whitesmoke;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}
.modal-content {
  background-color: var(--light-bg);
  border: none;
  border-radius: 12px;
}
.modal-body img {
  max-height: 85vh;
  object-fit: contain;
}
.btn-close {
  color: white;
  filter: invert(1);
}
.gallery-loader {
  text-align: center;
  padding: 50px;
}

/* =========================================================================
   Products Page Specific Styles
   ========================================================================= */
.product-section {
  background-color: whitesmoke;
  color: #012f31;
}
.filter-sidebar {
  background: whitesmoke;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #ddd;
  color: #012f31;
  /* position: sticky; */
  /* top: 100px; */
  height: max-content;
}

.filter-sidebar .form-check-label {
  color: #012f31;
}
.filter-sidebar .form-check-input:checked {
  background-color: #012f31 !important;
  border-color: #012f31;
}
.filter-sidebar .form-check-input {
  background-color: transparent;
  border: 1px solid #012f31;
}
.filter-sidebar .form-control,
.filter-sidebar .form-select,
.filter-sidebar .input-group button.btn-outline-secondary {
  background-color: whitesmoke;
  color: var(--text-color);
  border-color: #ccc;
}
.bg-dark {
  background-color: var(--secondary-dark) !important;
}

/* =========================================================================
   Admin Dashboard Specific Styles
   ========================================================================= */
.main-content-wrapper {
  flex-grow: 1;
}
.sidebar {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #ddd;
  /* position: sticky; */
  top: 90px;
}
.sidebar-link {
  display: block;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  color: var(--secondary-dark);
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}
.sidebar-link:hover,
.sidebar-link.active {
  background-color: var(--primary-accent);
  color: white;
  transform: translateX(5px);
}
.content-section {
  display: none;
}
.content-section.active {
  display: block;
}
.card {
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  margin-bottom: 20px;
}
.card-header {
  background-color: var(--primary-accent);
  color: white;
  border: none;
  padding: 15px 20px;
  font-weight: 700;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}
.product-table {
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* display: block; */
  width: 100%;
}
.product-table thead {
  background-color: var(--primary-accent);
  color: white;
}
.product-table tbody tr.soft-deleted {
  opacity: 0.5;
  background-color: #f2f2f2;
}
#admin-dashboard .badge.bg-info {
  background-color: var(--primary-accent) !important;
  color: white !important;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
}
.action-buttons {
  gap: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-edit,
.btn-delete,
.btn-restore,
.btn-metadata-delete {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform 0.2s, opacity 0.3s;
  white-space: nowrap;
  border: none;
}
.btn-edit {
  background-color: #3498db;
  color: white;
}
.btn-delete,
.btn-metadata-delete {
  background-color: var(--primary-accent);
  color: white;
}
.btn-restore {
  background-color: #2ecc71;
  color: white;
}
/* Dashboard Mobile Overrides */
@media (max-width: 991px) {
  .sidebar {
    position: static;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .sidebar-link {
    flex: 1 1 calc(50% - 5px);
    text-align: center;
  }
  .sidebar-link:hover,
  .sidebar-link.active {
    transform: none;
  }
}
@media (max-width: 767px) {
  .sidebar {
    position: static;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
  }
  .sidebar-link {
    flex: 1 1 calc(50% - 4px);
    font-size: 0.85rem;
    padding: 10px 8px;
  }
  .product-table table {
    font-size: 0.75rem;
  }
  .btn-edit,
  .btn-delete,
  .btn-restore {
    padding: 5px 8px;
    font-size: 0.7rem;
  }
}

/* --- Pre-Loader Specific Styles (MODIFIED to match coin flip animation) --- */
#pre-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #012f31b8;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s, visibility 0.5s;
}

#pre-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  /* Container for the logo */
  display: inline-block;
  width: 150px; /* Coin size */
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  transform: translateZ(1px);
  perspective: 900px;
  position: relative; /* Needed for ::before shadow */
}

/* Soft ambient shadow for 3D effect */
.loader-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 10;
}

.loader-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  /* Apply the new coin flip animation */
  animation: coin-flip 5.5s cubic-bezier(0.12, 0.42, 0.45, 1) infinite;
  will-change: transform;
  padding: 10px;
}

@keyframes coin-flip {
  0% {
    transform: rotate(0deg);
  }
  45% {
    transform: rotate(720deg); /* 2 fast spins forward */
  }
  65% {
    transform: rotate(1440deg); /* 4 spins */
  }
  100% {
    transform: rotate(2160deg); /* 6 spins */
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-content img {
    animation: none;
    transform: rotate(0deg);
  }
}
.lock-scroll {
  overflow: hidden !important;
}
/* END Pre-Loader Specific Styles */
