/*==========================================================
  FamilyMart — Modern UI Layer
  Loaded after style.css to elevate the existing template
  to an international, premium-grocery look & feel.
==========================================================*/

:root {
  --fm-navy: #101a5c;
  --fm-navy-light: #1c2a7a;
  --fm-green: #2e9e4f;
  --fm-green-dark: #217a3c;
  --fm-green-light: #eaf8ee;
  --fm-amber: #ffb703;
  --fm-bg-soft: #f6f8f7;
  --fm-text: #24262b;
  --fm-muted: #6b7280;
  --fm-radius: 16px;
  --fm-radius-sm: 10px;
  --fm-shadow-sm: 0 4px 14px rgba(16, 26, 92, 0.06);
  --fm-shadow-md: 0 12px 30px rgba(16, 26, 92, 0.12);
  --fm-shadow-lg: 0 20px 45px rgba(16, 26, 92, 0.16);
  --fm-transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--fm-green);
  color: #fff;
}

body {
  color: var(--fm-text);
}

a {
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--fm-green);
  outline-offset: 2px;
}

/* Slim scrollbar for a polished feel */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #eef1f4;
}
::-webkit-scrollbar-thumb {
  background: #b9c0d4;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--fm-navy);
}

/*----------------------------------------
  Header
----------------------------------------*/
.header-top-area {
  background: linear-gradient(90deg, var(--fm-navy) 0%, var(--fm-navy-light) 100%);
}

.header-top-area .social-top ul li a {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--fm-transition);
}
.header-top-area .social-top ul li a:hover {
  background: var(--fm-green);
  transform: translateY(-2px);
}

.header-top-area .top-info li,
.header-top-area .top-info li a {
  color: rgba(255, 255, 255, 0.92);
}
.header-top-area .top-info li a:hover {
  color: var(--fm-amber);
}

.haeader-bottom-area {
  background-color: #ffffff;
  box-shadow: 0 2px 0 rgba(16, 26, 92, 0.04);
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.logo-area .logo-tagline {
  margin: 2px auto 0;
  font-size: 11px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--fm-green-dark);
  line-height: 1.35;
  max-width: 165px;
}
@media (max-width: 991px) {
  .logo-area .logo-tagline {
    font-size: 10px;
    max-width: 140px;
  }
}

.header-sticky.is-sticky {
  box-shadow: var(--fm-shadow-md) !important;
}

.main-navigation ul > li > a {
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--fm-text);
  position: relative;
  padding-bottom: 4px;
}
.main-navigation ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--fm-green);
  transition: width var(--fm-transition);
}
.main-navigation ul > li:hover > a,
.main-navigation ul > li.active > a {
  color: var(--fm-green-dark);
}
.main-navigation ul > li:hover > a::after,
.main-navigation ul > li.active > a::after {
  width: 100%;
}

/*----------------------------------------
  Section title
----------------------------------------*/
.section-title h2 {
  color: var(--fm-navy);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title h2 span {
  color: var(--fm-green);
}
.section-title.text-center h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--fm-green), var(--fm-amber));
}

/*----------------------------------------
  Hero slider — make the <img> fill the
  slide properly and add a soft gradient
  for contrast.
----------------------------------------*/
.hero-slider-one .single-slide {
  overflow: hidden;
}
.hero-slider-one .single-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-slider-one .single-slide::before {
  background: linear-gradient(180deg, rgba(16, 26, 92, 0.08) 0%, rgba(16, 26, 92, 0.35) 100%);
}
.hero-slider-one .slick-dots li button {
  transition: var(--fm-transition);
}
.hero-slider-one .slick-dots li.slick-active button {
  background-color: var(--fm-green) !important;
}

/*----------------------------------------
  Intro strip (H1 + trust badges)
----------------------------------------*/
.intro-strip {
  background: var(--fm-green-light);
  padding: 34px 0 30px;
  text-align: center;
  border-bottom: 1px solid #e1f0e4;
}
.intro-strip h1 {
  font-size: 26px;
  line-height: 1.35;
  color: var(--fm-navy);
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  .intro-strip h1 {
    font-size: 32px;
  }
}
.intro-strip-sub {
  color: var(--fm-muted);
  max-width: 720px;
  margin: 0 auto 22px;
  font-size: 15px;
}
.intro-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 13px;
  color: var(--fm-navy);
  box-shadow: var(--fm-shadow-sm);
}
.intro-badge i {
  color: var(--fm-green);
  font-size: 18px;
}

/*----------------------------------------
  Shop-by-category quick chips
----------------------------------------*/
#productArea ~ *,
.btn-outline-success {
  transition: var(--fm-transition);
}
.btn-outline-success {
  border-width: 2px;
  border-radius: 999px;
  font-weight: 600;
  padding: 12px 14px;
  color: var(--fm-green-dark);
  border-color: var(--fm-green);
  background: #fff;
  box-shadow: var(--fm-shadow-sm);
}
.btn-outline-success:hover,
.btn-outline-success:focus {
  background: var(--fm-green);
  border-color: var(--fm-green);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--fm-shadow-md);
}

#productArea .card,
#productArea p {
  color: var(--fm-muted);
}

/*----------------------------------------
  Category / featured / essentials cards
----------------------------------------*/
.category-listing-area .card {
  border: 1px solid #eef1f4 !important;
  border-radius: var(--fm-radius) !important;
  overflow: hidden;
  box-shadow: var(--fm-shadow-sm) !important;
  transition: transform var(--fm-transition), box-shadow var(--fm-transition);
}
.category-listing-area .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--fm-shadow-lg) !important;
}
.category-listing-area .card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-listing-area .card:hover img {
  transform: scale(1.08);
}
.category-listing-area .card-body {
  border-top: 1px solid #f2f4f6;
}
.category-listing-area .card-body p {
  transition: color var(--fm-transition);
}
.category-listing-area .card:hover .card-body p {
  color: var(--fm-green-dark);
}

/*----------------------------------------
  Gallery
----------------------------------------*/
.gallery {
  --gap: 8px;
}
.gallery img {
  border-radius: var(--fm-radius-sm);
  box-shadow: var(--fm-shadow-sm);
}
.gallery .col-6,
.gallery .col-md-3 {
  position: relative;
}

/*----------------------------------------
  Banner area (New Arrivals)
----------------------------------------*/
.single-banner {
  border-radius: var(--fm-radius);
  overflow: hidden;
  box-shadow: var(--fm-shadow-sm);
  transition: box-shadow var(--fm-transition);
}
.single-banner:hover {
  box-shadow: var(--fm-shadow-lg);
}
.single-banner img {
  transition: transform 0.6s ease;
}
.single-banner:hover img {
  transform: scale(1.06);
}

/*----------------------------------------
  About us
----------------------------------------*/
.about-us-area .about-us-contents {
  background: #ffffff;
  border-radius: var(--fm-radius);
  padding: 30px;
  box-shadow: var(--fm-shadow-sm);
  border-left: 4px solid var(--fm-green);
}
.about-us-area .about-us-contents h3 {
  color: var(--fm-navy);
}
.about-us-area .about-us-contents h3 span {
  color: var(--fm-green);
}
.about-us-area .about-us-image img {
  border-radius: var(--fm-radius);
  box-shadow: var(--fm-shadow-md);
}

.button,
a.button {
  background: linear-gradient(135deg, var(--fm-green) 0%, var(--fm-green-dark) 100%);
  border: none;
  color: #fff !important;
  padding: 12px 26px;
  text-align: center;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin: 6px 4px 6px 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--fm-shadow-sm);
  transition: transform var(--fm-transition), box-shadow var(--fm-transition);
}
.button:hover,
a.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--fm-shadow-md);
  color: #fff;
}

/*----------------------------------------
  Blog / Offer cards
----------------------------------------*/
.single-blog {
  border-radius: var(--fm-radius);
  overflow: hidden;
  box-shadow: var(--fm-shadow-sm);
  transition: transform var(--fm-transition), box-shadow var(--fm-transition);
  background: #fff;
}
.single-blog:hover {
  transform: translateY(-6px);
  box-shadow: var(--fm-shadow-lg);
}
.single-blog .blog-image img {
  transition: transform 0.5s ease;
}
.single-blog:hover .blog-image img {
  transform: scale(1.05);
}
.single-blog .blog-content h4 a {
  color: var(--fm-navy);
}
.single-blog .blog-content h4 a:hover {
  color: var(--fm-green-dark);
}

/*----------------------------------------
  Team / Partners
----------------------------------------*/
.single-team {
  border-radius: var(--fm-radius);
  overflow: hidden;
  box-shadow: var(--fm-shadow-sm);
  transition: transform var(--fm-transition), box-shadow var(--fm-transition);
  background: #fff;
}
.single-team:hover {
  transform: translateY(-6px);
  box-shadow: var(--fm-shadow-lg);
}
.single-team-image img {
  transition: transform 0.5s ease;
  object-fit: cover;
}
.single-team:hover .single-team-image img {
  transform: scale(1.06);
}
.single-team-info h5 {
  color: var(--fm-navy);
}
.single-team .personsl-socail li a {
  background: var(--fm-green-light);
  color: var(--fm-green-dark);
  transition: var(--fm-transition);
}
.single-team .personsl-socail li a:hover {
  background: var(--fm-green);
  color: #fff;
  transform: translateY(-3px);
}

/*----------------------------------------
  Contact
----------------------------------------*/
#Contact .contact-infor {
  background: #fff;
  border-radius: var(--fm-radius);
  box-shadow: var(--fm-shadow-md);
  padding: 24px;
}
#Contact .contact-infor img {
  border-radius: var(--fm-radius-sm);
  margin-bottom: 16px;
}
#Contact .contact-infor h3 {
  color: var(--fm-navy);
}

/*----------------------------------------
  Footer
----------------------------------------*/
footer {
  color: rgba(255, 255, 255, 0.85);
}
footer .footer-top {
  background: linear-gradient(180deg, var(--fm-navy) 0%, #0b1447 100%);
}
footer .footer-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
footer .title-widget {
  color: #fff;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
footer .title-widget::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--fm-green);
  border-radius: 3px;
}
footer .widget-footer p,
footer .footer-list a,
footer .footer-contact a,
footer .footer-contact label {
  color: rgba(255, 255, 255, 0.7);
}
footer .footer-list a,
footer .footer-contact a {
  transition: var(--fm-transition);
}
footer .footer-list a:hover,
footer .footer-contact a:hover {
  color: var(--fm-amber);
  padding-left: 4px;
}
footer .widget-footer iframe {
  border-radius: var(--fm-radius-sm);
  filter: grayscale(0.15);
}
footer .footer-bottom {
  background: #0b1447;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
footer .footer-bottom a {
  color: var(--fm-amber);
}
footer .copy-right-text p {
  color: rgba(255, 255, 255, 0.65);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
