@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght@400;600&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}

@layer base {
  :root {
    --font-proxima-nova: "Proxima Nova", sans-serif;
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    --radius: 0.5rem;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
    font-family: "Times New Roman", Times, serif !important;
    background-color: var(---background) !important;
    color: #fff !important;
  }
}
.main-page {
  max-width: 1180px !important;
  width: 100% !important;
  padding-top: 2.5rem;
  padding-bottom: 3.75rem;
}

@media (max-width: 768px) {
  .main-page {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }
}

/* Typography Support Style */
.typography-support {
  font-size: 18px;
  font-weight: normal;
  line-height: 32px;
  color: #fff !important;
}

/* Button Styles */
.primary-action-button {
  background: var(--gray-900, #212121);
  color: var(--white);
  box-shadow: 0px 4px 6px -1px rgba(33, 33, 33, 0.2),
    0px 2px 4px -2px rgba(33, 33, 33, 0.2);
}

.secondary-action-button {
  border: 1px solid var(--blue-gray-900, #263238);
  background: var(--white);
  color: #fff !important;
}

.tertiary-action-button {
  background: var(--white);
  color: #fff !important;
}

.primary-terminal-action-button {
  background: var(--red-500);
  box-shadow: 0px 4px 6px -1px rgba(244, 67, 54, 0.2),
    0px 2px 4px -2px rgba(244, 67, 54, 0.2);
  color: var(--white);
  transition: opacity 0.3s ease;
}

.primary-terminal-action-button:hover {
  opacity: 0.7;
}

.secondary-terminal-action-button {
  border: 1px solid var(--red-500, #8b1d40);
  background: var(--white);
  color: var(--red-500);
}

.tertiary-terminal-action-button {
  background: var(--white);
  color: #fff !important;
}

/* Default styles for editor */
.richtext-relative {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  margin: 0;
}

/* Adjusted Tippy styles */
div[id^="tippy-"] {
  left: 23px !important;
}

button.richtext-inline-flex {
  width: 100% !important;
  overflow: hidden !important;
}

/* ------------------------------Blog Page---------------------------- */
#sg-breadcrumb-container-wrapper {
  margin-top: 0px;
  display: none !important;
}

/* -----------------------------Widget Wrapper------------------------------------- */
#sg-widget-wrapper {
  margin-bottom: 3rem;
}

#sg-widget-blogList-wrapper {
  margin-bottom: 3.75rem;
}

/* This is for next widget below tabs widget */
#sg-widget-tabs-widget-wrapper {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  #sg-widget-wrapper {
    margin-bottom: 40px;
    margin-top: 0px;
  }
  #sg-widget-blogList-wrapper {
    margin-bottom: 2.5rem;
  }
  /* This is for next widget below tabs widget */
  #sg-widget-tabs-widget-wrapper {
    margin-bottom: 2.5rem;
  }
}

/*----------------------------- Breadcrumb Styles----------------------------- */
#sg-breadcrumb-container {
  margin-bottom: 24px;
}

#sg-breadcrumb-normal {
  color: #fff !important;
}

#sg-breadcrumb-selected {
  color: #fff !important;
}

#sg-breadcrumb-list {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  margin-bottom: 0px !important;
}

@media (max-width: 768px) {
  #sg-breadcrumb-container {
    margin-bottom: 1rem;
  }
}

/* --------------------------Banner With Share Widget Styles------------------------- */
#sg-bannerWithShare-content-container p {
  margin-bottom: 0px !important;
  padding: 0px !important;
}

#sg-bannerWithShare-left-wrapper {
  max-width: 798px;
}

#sg-bannerWithShare-image-container {
  margin-bottom: 24px;
}

#sg-bannerWithShare-categoryContainer {
  margin-bottom: 0px;
}

#sg-bannerWithShare-categoryName {
  color: #8800ec;
}

#sg-bannerWithShare-separator {
  color: #474747;
}

#sg-bannerWithShare-readTime {
  padding: 0px;
}

#sg-bannerWithShare-title {
  padding-bottom: 0px;
  margin-bottom: 0px;
}

@media (max-width: 768px) {
  #sg-bannerWithShare-image-container {
    margin-bottom: 1rem;
  }

  #sg-bannerWithShare-content-container {
    margin: 0px;
  }

  #sg-bannerWithShare-categoryContainer {
    gap: 0.5rem;
    padding: 4px 0px;
  }

  #sg-bannerWithShare-categoryName {
    line-height: 28px;
  }
  #sg-bannerWithShare-left-wrapper {
    max-width: 88%;
  }
}

/* ----------------------------------Left Engagement Right Content Widget-------------------- */
#sg-leftContent-rightEngagement-engagementCard {
  margin-left: 32px;
  margin-bottom: 8px;
  width: fit-content;
}

@media (max-width: 768px) {
  #sg-leftContent-rightEngagement-engagementCard {
    margin-top: 1rem;
    margin-bottom: 0px;
    margin-left: 0px;
    width: 100%;
  }
}

/* ----------------------------------Right Engagement Left Content Widget----------------------- */
#sg-rightContent-leftEngagement-engagementCard {
  margin-right: 32px;
  margin-bottom: 8px;
  width: fit-content;
}

@media (max-width: 768px) {
  #sg-rightContent-leftEngagement-engagementCard {
    margin-top: 1rem;
    margin-bottom: 0px;
    margin-right: 0px;
    width: 100%;
  }
}

/* ------------------------------Default Carousel Widget--------------------- */
#sg-defaultCarousel-container {
  margin-top: 0.625rem;
}

#sg-defaultCarousel-heading {
  padding-bottom: 0px;
  font-size: 32px;
  line-height: 40px;
  color: #2a2a2a;
}

#sg-defaultCardWidget-content-container {
  height: 4rem;
}

#sg-defaultCardWidget-content-container h3 {
  padding: 0px;
  margin: 0px;
  line-height: 24px !important;
  color: #2a2a2a !important;
  font-size: 16px !important;
}

#sg-defaultCardWidget-image-container {
  width: 275.33px;
  height: 206.5px;
}

@media (max-width: 768px) {
  #sg-defaultCarousel-heading {
    padding-bottom: 0px;
    font-size: 20px;
    line-height: 28px;
  }
  #sg-defaultCardWidget-image-container {
    width: 100%;
    height: 216px;
  }
}

/* --------------------------------------Image CTA Widget--------------------------- */
#sg-imageWithCta-button {
  padding: 0px 0px;
  height: 2.5rem;
}

@media (max-width: 768px) {
  #sg-imageWithCta-button {
    padding: 0px 0px;
    height: 2rem;
    border-radius: 8px;
  }

  #sg-imageWithCta-button-container {
    left: 8px;
    right: 8px;
    bottom: 7.5px;
  }
}

/* ----------------------------------------------Default Tabs Widget------------------------------------ */
#sg-tabs-trigger {
  margin-bottom: calc(10px - 0.57px);
}

/* ------------------------------------------Stack Carousel Widget---------------------------------- */
#sg-stackCarousel-heading {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
}

#stackCarousel-arrow-button {
  background-color: #f5f5f5;
}

@media (max-width: 768px) {
  #sg-stackCarousel-heading {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    padding: 0px;
  }
}

/* -------------------------------------------Description Card  Widget---------------------------------- */
#sg-descriptionBlogCard-subText-container * {
  margin-bottom: 8px !important;
}

#sg-descriptionBlogCard-readMoreButton {
  bottom: -8px;
}

/* --------------------------------------------Image Text Split Small Card Widget-------------------------- */
#sg-imageTextSplitSmallCard-text {
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  #sg-imageTextSplitSmallCard-text {
    margin-bottom: 10px;
  }
}

/* ----------------------------------- Content Card List Widget------------------------------------- */
#sg-content-card-list-heading {
  margin-bottom: 1rem;
}

/* -----------------------------------Image Text Split Big Card Widget------------------------------ */
#sg-imageTextSplitBigCard-container {
  gap: 2rem;
  padding-bottom: 1.25rem;
}

#sg-imageTextSplitBigCard-text {
  margin-bottom: 0.5rem;
  line-height: 1.75rem;
}

#sg-imageTextSplitBigCard-subText-container {
  margin-bottom: 8px;
}

#sg-content-card-list-loadMore {
  padding: 8px 25.5px;
  line-height: 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

#sg-content-card-list-loadMore-container {
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  #sg-imageTextSplitBigCard-container {
    gap: 0.75rem;
    padding-bottom: 1.25rem;
  }
  #sg-imageTextSplitBigCard-text {
    line-height: 1.5rem;
    margin-bottom: 0.3125rem;
  }
  #sg-imageTextSplitBigCard-content-container {
    width: 100%;
  }
  #sg-imageTextSplitBigCard-subText-container {
    margin-bottom: 0px;
    margin-top: 0px;
  }
  #sg-content-card-list-loadMore {
    padding: 6px 22px;
    line-height: 1.25rem;
    font-weight: 600;
    border-radius: 0.5rem;
  }
}
#sg-search-box {
  display: none !important;
}

div#sg-categories-container {
  background: none;
  margin-top: 0px;
}

button#sg-category-list-featured-text {
  color: #fff !important;
}

button#sg-category-list-item {
  color: #fff !important;
}

h2#sg-categories-title {
  color: #fff !important;
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
}

hr#sg-categories-horizontal-line {
  border-color: #fff !important;
}

h2#sg-singleBigCardCarousel-heading {
  color: #fff !important;
  margin-bottom: 0px !important;
  padding-bottom: 3px !important;
}

div#sg-bigBlogCard-content-container {
  background: #fff !important;
  padding: 2px 10px;
}

hr#sg-singleBigCardCarousel-horizontal-line {
  border-color: #fff !important;
}
div#sg-search-container {
  display: none !important;
}
.cardHtmlContent * {
  font-size: 15px !important;
  padding: 0 !important;
  font-weight: 400 !important;
  margin: 0 !important;
  line-height: 23px !important;
}
.flex.flex-col.md\:flex-row.sg-blog-listing-page {
  gap: 12px !important;
}

#sg-search-listing-page > div:first-child,
#sg-plp-listing-page > div:first-child,
.sg-blog-listing-page > div:first-child,
.sg-blog-listing-page > div:nth-child(3) {
  position: sticky;
  top: 0;
  height: fit-content;
  padding: 16px 0 0 16px;
}

#sg-search-listing-page > div:nth-child(2),
#sg-plp-listing-page > div:nth-child(2),
.sg-blog-listing-page > div:nth-child(2),
.sg-blog-listing-page > div:nth-child(3) {
  margin-top: 0;
  padding: 16px 0 0 16px;
}

.sg-blog-listing-page {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  #sg-search-listing-page > div:first-child,
  #sg-plp-listing-page > div:first-child,
  .sg-blog-listing-page > div:first-child,
  .sg-blog-listing-page > div:nth-child(3),
  #sg-search-listing-page > div:nth-child(2),
  #sg-plp-listing-page > div:nth-child(2),
  .sg-blog-listing-page > div:nth-child(2) {
    width: 100% !important;
    padding: 0;
    position: static;
  }

  .sg-blog-list-item-1 {
    margin-bottom: 1rem;
  }
  .sg-blog-list-item-2 {
    margin-bottom: 2rem;
  }
}

#sg-singleBigCardCarousel-container {
  min-height: fit-content;
}

h3#sg-blog-card-title {
  color: #000;
}
#sg-singleBigCardCarousel-singleDot.bg-blue-600 {
  box-shadow: 0 0 6px 4px rgba(37, 99, 235, 0.5) !important; /* Blue glow */
}

#sg-singleBigCardCarousel-singleDot.bg-gray-300 {
  background-color: #fff !important; /* Override to white color if needed */
}
#sg-blog-page h1,
#sg-blog-page h2,
#sg-blog-page h3,
#sg-blog-page h4,
#sg-plp-listing-page h1,
#sg-plp-listing-page h2,
#sg-plp-listing-page h3,
#sg-plp-listing-page h4 {
  font-family: "Montserrat", sans-serif !important;
}

#sg-blog-page p,
#sg-blog-page span,
#sg-blog-page li,
#sg-blog-page a,
#sg-plp-listing-page p,
#sg-plp-listing-page span,
#sg-plp-listing-page li,
#sg-plp-listing-page a {
  font-family: "Poppins", sans-serif !important;
}
#sg-shoppable-product-title,
#sg-shoppable-variant-selector div select option,
#sg-shoppable-variant-selector div select,
#sg-shoppable-variant-selector div span svg {
  /* Set text and SVG icon color to black and enforce with !important */
  color: #000 !important;
}

/* Hide the entire button group */
#sg-button-group {
  display: none;
}

/* Style for the "Add to Cart" button */
#sg-shoppable-add-to-cart-button {
  padding: 0.5rem; /* Add padding inside the button for spacing */
  background-color: #000 !important; /* Set background color to black, enforced */
  color: #fff !important; /* Set text color to white, enforced */
  border-radius: 20px; /* Rounded corners for a pill-shaped button */
}

/* Style for variant selector dropdown */
#sg-shoppable-variant-selector div select {
  font-family: "Poppins", sans-serif !important; /* Use Poppins font for variant selector and enforce */
}

/* Price wrapper spacing */
#sg-shoppable-price-wrapper {
  margin-top: 0; /* Remove top margin */
  margin-bottom: 1rem; /* Add space below price wrapper */
}
img#sg-shopableBlogRecoImg {
  height: 208px !important;
}

/* Drawer (side cart) is hidden by default */
#sg-cart-drawer {
  width: 0; /* Initially collapsed */
  transition: width 0.3s ease-in-out; /* Smooth open/close transition */
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1); /* Shadow effect on left edge */
  z-index: 9999;
}
#sg-cart-container {
  padding: 1rem;
}
/* Show drawer when open */
#sg-cart-drawer.open {
  width: 400px; /* Open drawer to 400px width */
}
/* Set stacking context for overlay */
#sg-cart-overlay {
  z-index: 40; /* Stack above other content */
}

/* Show overlay when open */
#sg-cart-overlay.open {
  opacity: 0.5; /* Slight transparency */
  pointer-events: auto; /* Allow clicking on overlay */
}

#sg-close-cart,
#sg-close-cart:hover {
  border: none;
  background: none;
}

#sg-cart-heading {
  padding-bottom: 1rem;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
/* Layout for each product in cart */
.cart-item {
  display: flex; /* Horizontal layout */
  padding: 2rem 0; /* Spacing top and bottom */
  border-bottom: 1px solid #eee; /* Divider line */
}

/* Image style inside cart items */
.cart-item-image {
  max-width: 120px; /* Maintain aspect ratio */
  object-fit: contain !important;
  margin-right: 1rem; /* Space after image */
}

/* Disable scrolling when drawer is open */
body.drawer-open {
  overflow: hidden;
}

#sg-cart-drawer .cart-item {
  padding: 0px !important;
  margin-bottom: 8px;
}
#sg-cart-drawer p {
  margin: 0px !important;
}
#sg-cart-drawer #sg-checkout-button {
  /* color: white !important;
  text-decoration: none !important;
  padding-block: 0.75rem; */
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fff;
  border-radius: 0;
  border: 1px solid #565750;
  background-color: #565750;
  display: block;
  text-align: center;
  padding: 7px 10px;
  margin-bottom: 15px;
}
#sg-cart-items button {
  border: none;
  color: #000;
  font-size: 15px;
  padding: 10px;
  /* border: 1px solid; */
}
#sg-cart-items button:hover {
  background: none;
}
#sg-cart-drawer h4 {
  margin: 0 !important;
  font-size: 16px;
  line-height: 24px;

  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

h2.text-xl.font-bold {
  color: #000;
}
#sg-cart-drawer h2 {
  color: #000 !important;
}
#sg-cart-items h4,
#sg-cart-items p {
  color: #000 !important;
}
#sg-cart-drawer #sg-checkout-button {
  background-color: #000 !important;
  color: white !important;
}

span.px-2 {
  width: 100%;
  color: #000;
  padding: 8px;
}

.flex.items-center.border.rounded {
  border: 1px solid #000 !important;
}
div#sg-bannerWithPublishedDate-copyShare-container {
  display: none;
}
