/*
   CSS Reset and Basic Styles
*/
html,body,div,h1,h2,h3,h4,h5,h6,p,
footer,header,menu,nav,time,

video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

@font-face {
  font-family: "ambleregular";
  src: url("../font/Amble-Regular-webfont.ttf") format("truetype");
  font-display: swap;
}
h1 {
    text-align: center;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f3ead6;
  background-image:
    radial-gradient(
      circle at 1px 1px,
      rgba(80, 60, 35, 0.06) 1px,
      transparent 0
    ),
    radial-gradient(
      circle at 10px 10px,
      rgba(80, 60, 35, 0.04) 1px,
      transparent 0
    );
  background-size: 22px 22px, 18px 18px;
}

p {
  text-align: center;
}

.wrap {
  width: 80%;
  margin: 0 auto;
}

.clear {
  clear: both;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  background: #fff;
}

.headertop_desc {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.rectangle {
  width: 100%;
  height: 21vw;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  font-family: "Limelight", serif;
  font-size: 5vw;
  line-height: 1.5;
  color: #ffff99;
  text-decoration: none;
  background-color: #000;
}

/* ==========================================================================
   Categories and Slideshow
   ========================================================================== */

.header_slide {
  margin-top: 0;
}

.header_bottom_left {
  float: left;
  width: 25%;
}

.header_bottom_right {
  float: left;
  width: 74%;
  padding-left: 1%;
}

.categories {
  border: 3px solid #000400;
}

.categories h3 {
  padding: 10px;
  color: #fff;
  background: #b81d22;
  font-family: "Limelight", serif;
  font-size: 1.2em;
  text-align: center;
  text-transform: uppercase;
}

.categories ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.categories li a {
  display: block;
  margin: 0 20px;
  padding: 0.8em;
  border-bottom: 1px solid #eee;
  color: #4d4d4d;
  background: url("../images/drop_arrow.png") no-repeat 0 center;
  font-family: "ambleregular", Arial, sans-serif;
  font-size: 0.8em;
  text-transform: uppercase;
}

.categories li:last-child a {
  border-bottom: none;
}

.categories li a:hover {
  color: #b81d22;
}

/* ==========================================================================
   Scrolling Text
   ========================================================================== */

.marquee {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  white-space: nowrap;
}

.marquee__inner {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: clamp(16px, 3vw, 48px);
  width: max-content;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Content
   ========================================================================== */

.content {
  padding: 20px 0;
  background: #f3ead6;
}

.content h2 {
  margin: 0.4em 0 0;
  color: #992323;
  font-family: "Limelight", serif;
  font-size: 1.5em;
  font-weight: normal;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Feature Products heading */

.content_top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 35px 0 25px;
  padding: 15px 20px;
  border: 1px solid #ebe8e8;
  border-radius: 3px;
  text-align: center;
}

.content_top .heading {
  width: 100%;
  float: none;
  text-align: center;
}

.content_top .heading h3 {
  margin: 0;
  color: #383838;
  font-family: "ambleregular", Arial, sans-serif;
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
}

.content_top + .section {
  clear: both;
}

.content_bottom {
  margin-top: 2.6%;
  padding: 15px 20px;
  border: 1px solid #ebe8e8;
  border-radius: 3px;
}

/* ==========================================================================
   Product Grid
   ========================================================================== */

.section {
  clear: both;
  padding: 0;
  margin: 0;
}

.group::before,
.group::after {
  content: "";
  display: table;
}

.group::after {
  clear: both;
}

.group {
  zoom: 1;
}

.section.group {
  text-align: center;
}

.grid_1_of_4 {
  display: block;
  float: left;
  width: 23.8%;
  margin: 1% 0 1% 1.6%;
  padding: 1.5%;
  box-shadow: 0 0 11px rgb(17, 1, 1);
}

.grid_1_of_4:first-child {
  margin-left: 0;
}

.images_1_of_4 {
  position: relative;
  text-align: center;
}

.images_1_of_4 img {
  display: block;
  width: 100%;
  height: auto;
}

.images_1_of_4 h2 {
  color: #6a82a4;
  font-family: "ambleregular", Arial, sans-serif;
  font-size: 1.1em;
  font-weight: normal;
  text-transform: none;
}

.images_1_of_4 p {
  padding: 0.4em 0;
  color: #333;
  font-size: 0.8125em;
}

.images_1_of_4 p span.price {
  color: #cc3636;
  font-family: "ambleregular", Arial, sans-serif;
  font-size: 18px;
}

.star {
  color: red;
  font-weight: bold;
}

.price-details {
  margin-top: 10px;
  border-top: 1px solid #cd1f25;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  margin: 20px auto;
  border-top: 10px solid #8d8989;
  background-color: #f3ead6;
  background-image:
    radial-gradient(
      circle at 1px 1px,
      rgba(80, 60, 35, 0.06) 1px,
      transparent 0
    ),
    radial-gradient(
      circle at 10px 10px,
      rgba(80, 60, 35, 0.04) 1px,
      transparent 0
    );
  background-size: 22px 22px, 18px 18px;
}

.col_1_of_4 {
  display: block;
  float: left;
  margin: 0 0 1% 3.6%;
}

.col_1_of_4:first-child {
  margin-left: 0;
}

.span_1_of_4 {
  width: 20.5%;
  padding: 1.5% 1.5% 0 0;
  border-left: 1px solid #fcfcfc;
}

.span_1_of_4 h4 {
  margin: 0 0 0.5em;
  padding: 0 0 0.5em 20px;
  border-bottom: 2px solid #4f4f4f;
  color: #4f4f4f;
  font-family: "ambleregular", Arial, sans-serif;
  font-size: 1.2em;
  font-weight: normal;
  letter-spacing: -1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.span_1_of_4 ul {
  padding-left: 20px;
}

.span_1_of_4 li a {
  display: block;
  padding: 0.4em 0;
  color: #2a5c86;
  font-family: "ambleregular", Arial, sans-serif;
  font-size: 0.8125em;
}

.span_1_of_4 li span {
  display: block;
  margin: 10px 0;
  color: #2a5c86;
  cursor: pointer;
  font-family: "ambleregular", Arial, sans-serif;
  font-size: 1em;
}

.span_1_of_4 li a:hover,
.span_1_of_4 li span:hover {
  color: #dd0f0e;
}

/* ==========================================================================
   Navigation Buttons
   ========================================================================== */

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 30px 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-back {
  border: 1px solid #cbd5e1;
  color: #4a5568;
  background-color: rgb(234, 249, 136);
}

.btn-back .arrow {
  margin-right: 8px;
  transition: transform 0.2s ease;
}

.btn-back:hover {
  border-color: #94a3b8;
  color: #1e293b;
  background-color: #f2ff06;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-back:hover .arrow {
  transform: translateX(-4px);
}

.btn-home {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-home:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.btn-nav:active {
  transform: translateY(1px) scale(0.98);
}

/* ==========================================================================
   Center Textbox
   ========================================================================== */

.center-textbox {
  display: block;
  width: 90%;
  max-width: 95%;
  margin: 20px auto 0;
  padding: 12px 18px;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  color: inherit;
  background-color: #f3ead6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
}

.center-textbox[hidden] {
  display: none !important;
}

/* ==========================================================================
   Price Display
   ========================================================================== */

.price-display-box {
  display: block !important;
  width: 100%;
  max-width: 250px;
  clear: both !important;
  margin: 30px auto !important;
  padding: 12px 24px;
  border: 1px solid #2d8f1d;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #f3ead6;
  box-shadow: 0 0 4px rgb(17, 1, 1);
  text-align: center !important;
}

.price-label {
  margin-right: 8px;
  color: #555;
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
}

.price-amount {
  color: #2d8f1d;
  font-family: Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

/* ==========================================================================
   Responsive Product Grid
   ========================================================================== */

/* Tablet: two columns */
@media (max-width: 900px) {
  .grid_1_of_4 {
    width: 48%;
    margin: 1%;
  }

  .grid_1_of_4:nth-child(odd) {
    clear: both;
  }
}

/* Mobile: one column */
@media (max-width: 480px) {
  .marquee {
    display: none;
  }

  .nav-links {
    width: 100%;
    flex-direction: column-reverse;
  }

  .btn-nav {
    width: 100%;
  }

  .grid_1_of_4 {
    width: 100%;
    float: none;
    margin: 15px 0;
  }
}

/* ==========================================================================
   Mobile Categories and Slideshow
   ========================================================================== */

@media (max-width: 600px) {
  .categories {
    width: 100%;
  }

  .categories ul {
    padding-left: 18px;
  }

  .categories h3 {
    padding: 12px 10px;
    font-size: clamp(18px, 4vw, 22px);
    line-height: 1.2;
    white-space: normal;
  }

  .categories li a {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    font-size: clamp(14px, 3.2vw, 16px);
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 767px) {
  .header_slide {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .header_bottom_left,
  .header_bottom_right {
    width: 100% !important;
    max-width: 440px;
    float: none !important;
    margin: 0 auto;
  }

  .categories ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  .categories li {
    box-sizing: border-box;
    border-bottom: 1px solid #dedede;
    background: none !important;
  }

  .categories li a {
    display: block;
    padding: 8px 10px !important;
  }

  .bss-slides {
    width: 100% !important;
    max-width: 440px !important;
    margin: 20px auto 0 !important;
  }
}

/* ==========================================================================
   Mobile Footer
   ========================================================================== */

@media (max-width: 600px) {
  .footer .wrap {
    width: 95%;
  }

  .footer .col_1_of_4 {
    width: 100%;
    float: none;
    margin: 0 0 18px;
  }

  .footer .span_1_of_4 h4 {
    padding-left: 0;
    font-size: clamp(16px, 4vw, 20px);
    letter-spacing: 0;
  }

  .footer .span_1_of_4 ul li {
    font-size: clamp(14px, 3.2vw, 16px);
    line-height: 1.35;
  }

  .footer .social-icons img {
    width: 110px;
    max-width: 40%;
    height: auto;
  }
}
/* Reduce space between slideshow, Feature Products heading, and products */

.header_slide {
  margin-bottom: 0;
}

.main {
  margin-top: 0;
}

.content {
  padding-top: 5px;
}

.content_top {
  margin: 8px 0 8px;
  padding: 8px 12px;
}

.content_top .heading h3 {
  line-height: 1.1;
}

.section.group .grid_1_of_4 {
  margin-top: 4px;
  margin-bottom: 8px;
}

/* Smaller spacing on tablets and phones */
@media (max-width: 767px) {
  .header_slide {
    margin-bottom: 0;
  }

  .bss-slides {
    margin-top: 8px !important;
  }

  .content {
    padding-top: 2px;
  }

  .content_top {
    margin: 5px 0 5px;
    padding: 6px 10px;
  }

  .section.group .grid_1_of_4 {
    margin-top: 3px;
    margin-bottom: 8px;
  }
}

/* Extra-tight spacing on iPhones and other small screens */
@media (max-width: 480px) {
  .content {
    padding-top: 0;
  }

  .content_top {
    margin: 3px 0 3px;
    padding: 5px 8px;
  }

  .content_top .heading h3 {
    font-size: 18px;
    line-height: 1.1;
  }

  .section.group {
    gap: 8px;
  }

  .section.group .grid_1_of_4 {
    margin: 0;
  }
}
/* Custom styling to turn the raw link into a solid retail button */
.square-buy-btn {
  background-color: #0070e0; /* Solid Square Brand Blue (or match your theme color) */
  color: #ffffff !important;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
  text-transform: uppercase;
}

.square-buy-btn:hover {
  background-color: #0056b3; /* Slightly darker shade on mouse hover */
}