/* ==========================================================================
   GreatKart Black and Gold Elegance Theme Engine
   Palette:
     White:      #FFFFFF
     Light Gray: #E5E5E5
     Orange:     #FCA311 (Buttons, Badges)
     Dark Blue:  #14213D (Hover on Orange Buttons, Dark Surfaces)
     Black:      #000000 (Text on White Surfaces)
   Rules:
     - Orange for buttons, but NOT for texts.
     - Dark Blue for hovering on orange buttons.
     - Black for texts on white surfaces.
     - White for background and text on dark surfaces.
   ========================================================================== */

:root {
  --palette-white: #FFFFFF;
  --palette-gray: #E5E5E5;
  --palette-gold: #FCA311;
  --palette-navy: #14213D;
  --palette-black: #000000;

  --primary: #FCA311;
  --primary-rgb: 252, 163, 17;
  --bs-primary: #FCA311 !important;
  --bs-primary-rgb: 252, 163, 17 !important;
  --bs-link-color: #000000 !important;
  --bs-link-color-rgb: 0, 0, 0 !important;
  --bs-link-hover-color: #14213D !important;
  --bs-link-hover-color-rgb: 20, 33, 61 !important;
  --theme-primary: #FCA311;
  --theme-hover: #14213D;
  --theme-active: #000000;
  --theme-focus-shadow: rgba(252, 163, 17, 0.25);
}

/* Base Surfaces & Text on Light Surfaces: BLACK */
body {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}

/* Global Link Styles: Black, Hover Dark Blue (NOT Orange) */
a {
  color: #000000;
  text-decoration: none;
  transition: color 0.18s ease-in-out;
}
a:hover {
  color: #14213D;
}

/* Dark Surfaces: Top Announcement Bar (Dark Blue #14213D, White Text #FFFFFF) */
.announcement-bar {
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
  min-height: 42px;
  display: flex;
  align-items: center;
  background-color: #14213D !important;
  color: #FFFFFF !important;
}
.announcement-bar .announcement-text,
.announcement-bar .announcement-text a {
  font-size: 0.95rem !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #FFFFFF !important;
  transition: opacity 0.2s ease;
}
.announcement-bar .announcement-text a:hover {
  opacity: 0.92;
  color: #FFFFFF !important;
}
.announcement-bar .announcement-contact,
.announcement-bar .announcement-contact a {
  font-size: 0.9rem !important;
  font-weight: 500;
  color: #FFFFFF !important;
}

/* Filter Group & Store Sidebar: Black Text on White Surfaces */
.filter-group .card-header a {
  color: #000000 !important;
}
.filter-group .card-header a:hover {
  color: #14213D !important;
}
.filter-group .card-header .title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #000000 !important;
  letter-spacing: -0.2px;
  margin-bottom: 0 !important;
}
.filter-group .icon-control {
  color: #14213D;
  font-size: 0.9rem;
}
.list-menu a {
  color: #000000 !important;
  font-size: 0.95rem;
}
.list-menu a:hover {
  color: #14213D !important;
}

/* Store Product Count: Black Text */
.store-items-count {
  font-size: 1.1rem !important;
  font-weight: 500;
  color: #000000;
  letter-spacing: -0.1px;
}
.store-items-count strong,
.store-items-count b {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #000000 !important;
  margin-right: 2px;
}

/* Product Card Grid */
.card-product-grid {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  color: #000000;
}
.card-product-grid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.12) !important;
  border-color: #FCA311;
}
.card-product-grid .fix-height {
  height: auto !important;
  overflow: visible !important;
}
.card-product-grid .info-wrap {
  overflow: visible !important;
}

/* Primary Buttons: ORANGE (#FCA311) */
.btn-primary {
  color: #FFFFFF !important;
  background-color: #FCA311 !important;
  border-color: #FCA311 !important;
  font-weight: 600 !important;
  transition: all 0.22s ease-in-out !important;
}

/* Hover on Orange Buttons: DARK BLUE (#14213D) */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle,
.btn-primary:not(:disabled):not(.disabled):active {
  color: #FFFFFF !important;
  background-color: #14213D !important;
  border-color: #14213D !important;
  box-shadow: 0 4px 14px rgba(20, 33, 61, 0.4) !important;
  transform: translateY(-1px);
}

/* Outline Primary Buttons */
.btn-outline-primary {
  color: #000000 !important;
  border-color: #FCA311 !important;
  background-color: transparent !important;
  font-weight: 600 !important;
  transition: all 0.22s ease-in-out !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  color: #FFFFFF !important;
  background-color: #14213D !important;
  border-color: #14213D !important;
  box-shadow: 0 4px 14px rgba(20, 33, 61, 0.4) !important;
  transform: translateY(-1px);
}

/* Backgrounds & Text */
.bg-primary {
  background-color: #FCA311 !important;
}

/* Section Titles: Dark Surface (#14213D) with White Text (#FFFFFF) */
.section-title {
  background-color: #14213D !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

/* NOT Orange for Texts: Text on white surfaces is Black (#000000) */
.text-primary {
  color: #000000 !important;
}

.border-primary {
  border-color: #FCA311 !important;
}

/* Badges: Orange background, White text */
.badge.bg-primary,
.badge-primary {
  background-color: #FCA311 !important;
  color: #FFFFFF !important;
}

/* Links */
a.text-primary:hover,
.link-primary:hover {
  color: #14213D !important;
}

/* Form Controls & Inputs */
.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: #FCA311 !important;
  box-shadow: 0 0 0 0.25rem rgba(252, 163, 17, 0.25) !important;
  outline: 0;
}

.form-check-input:checked {
  background-color: #FCA311 !important;
  border-color: #FCA311 !important;
}

.form-check-input:focus {
  border-color: #FCA311 !important;
  box-shadow: 0 0 0 0.25rem rgba(252, 163, 17, 0.25) !important;
}

/* Pagination */
.pagination .page-item.active .page-link {
  background-color: #FCA311 !important;
  border-color: #FCA311 !important;
  color: #FFFFFF !important;
}

.pagination .page-link {
  color: #000000 !important;
}

.pagination .page-link:hover {
  background-color: #14213D !important;
  border-color: #14213D !important;
  color: #FFFFFF !important;
}

/* List Groups & Nav Pills */
.list-group-item.active,
.nav-pills .nav-link.active {
  background-color: #FCA311 !important;
  border-color: #FCA311 !important;
  color: #FFFFFF !important;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: #14213D !important;
  color: #FFFFFF !important;
}

/* Spinners */
.spinner-border.text-primary,
.spinner-grow.text-primary {
  color: #FCA311 !important;
}

/* Product Card Title & Hover Accents: Black on white, Dark Blue on hover */
.card .card-title a,
.product-card .card-title a {
  color: #000000 !important;
}
.card:hover .card-title a,
.product-card:hover .card-title a {
  color: #14213D !important;
}

/* Star Rating System */
.rate > input {
  display: none;
}

.rate {
  display: inline-block;
  border: 0;
}

.rate > label {
  float: right;
}

.rate > label:before {
  display: inline-block;
  font-size: 1.1rem;
  font-family: FontAwesome;
  content: "\f005";
  margin: 0;
  padding: 0.3rem 0.2rem;
  cursor: pointer;
}

.rate .half:before {
  content: "\f089";
  position: absolute;
  padding-right: 0;
}

input:checked ~ label,
label:hover ~ label {
  color: #FCA311;
}

input:checked + label:hover,
input:checked ~ label:hover,
input:checked ~ label:hover ~ label,
label:hover ~ input:checked ~ label {
  color: #14213D;
}

.rating-star i {
  color: #FCA311 !important;
}

/* Product Detail Interactive Image Zoom */
.gallery-wrap .img-big-wrap {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background-color: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
  max-height: 480px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gallery-wrap .img-big-wrap img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
  pointer-events: none;
  will-change: transform, transform-origin;
}

/* Thumbnail Gallery */
ul.thumb {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
ul.thumb li {
  list-style: none;
  margin: 0;
}
ul.thumb li img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 2px solid #E5E5E5;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
ul.thumb li img:hover,
ul.thumb li img.active {
  border-color: #FCA311 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(252, 163, 17, 0.25);
}

/* Apple SF Pro Typography Stack */
body, h1, h2, h3, h4, h5, h6, .btn, .nav-link, .card-title, input, select, textarea {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'San Francisco', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

/* ==========================================================================
   Bangla Custom Typography - FN Dinar AAborno Font
   ========================================================================== */
@font-face {
  font-family: 'FNDinarAAborno';
  src: url('../fonts/FN-DINAR_AA_BORNA.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Brand Name in Bangla ("আঙিনা") - White on dark surfaces, Black on light surfaces */
.brand-name-bangla {
  font-family: 'FNDinarAAborno', sans-serif !important;
  font-size: 2.3rem !important;
  font-weight: 700 !important;
  color: #000000 !important;
  letter-spacing: 0.5px;
  line-height: 1;
  display: inline-block;
  text-decoration: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.brand-name-bangla:hover {
  transform: scale(1.04);
  color: #14213D !important;
}

/* Bangla Brand Name in Dark Surfaces (Hero Banner & Footer) */
.section-footer .brand-name-bangla,
#intro .brand-name-bangla {
  color: #FFFFFF !important;
}
.section-footer .brand-name-bangla:hover,
#intro .brand-name-bangla:hover {
  color: #E5E5E5 !important;
}

/* Banner Headings in Bangla: White text on dark banner overlay */
.banner-title-bangla {
  font-family: 'FNDinarAAborno', sans-serif !important;
  font-size: 3rem !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.25 !important;
  color: #FFFFFF !important;
}

.banner-subtitle-bangla {
  font-family: 'FNDinarAAborno', sans-serif !important;
  font-size: 1.5rem !important;
  opacity: 0.95;
  line-height: 1.4 !important;
  color: #FFFFFF !important;
}

/* General Bangla Font Overrides */
.font-bangla {
  font-family: 'FNDinarAAborno', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Language Switcher Styling */
.lang-switcher-btn {
  font-size: 0.85rem !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  text-decoration: none !important;
}
.lang-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}
.lang-switcher-btn.active,
.announcement-bar .lang-switcher-btn.active {
  background: #FFFFFF !important;
  color: #14213D !important;
  border-color: #FFFFFF !important;
  font-weight: 700 !important;
}
