
/*-----------------------------------*\
 * #style.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */





/*-----------------------------------*\
 * #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  --middle-blue-green: hsl(176, 35%, 63%);
  --sonic-silver: hsl(0, 0%, 44%);
  --eerie-black: hsl(0, 0%, 9%);
  --ocean-green: hsl(148, 45%, 58%);
  --candy-pink: hsl(356, 65%, 63%);
  --cultured: hsl(0, 0%, 96%);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);

  /**
   * typography
   */

  --ff-jost: "Jost", sans-serif;

  --fs-1: 2.5rem;
  --fs-2: 1.75rem;
  --fs-3: 1.625rem;
  --fs-4: 1.5rem;
  --fs-5: 1.375rem;
  --fs-6: 1.25rem;
  --fs-7: 1.125rem;
  --fs-8: 0.938rem;
  --fs-9: 0.875rem;
  --fs-10: 0.813rem;

  --fw-500: 500;
  --fw-600: 600;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.75s ease;
  --cubic-out: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-in: cubic-bezier(0.33, 0.85, 0.56, 1.02);

  /**
   * spacing
   */

  --section-padding: 60px;

}





/*-----------------------------------*\
 * #RESET
\*-----------------------------------*/

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li { list-style: none; }

a { text-decoration: none; }

a,
img,
span,
input,
button,
ion-icon { display: block; }

input,
button {
  background: none;
  border: none;
  font: inherit;
}

button {
  text-align: left;
  cursor: pointer;
}

input {
  width: 100%;
  outline-color: var(--middle-blue-green);
}

img { height: auto; }

ion-icon { pointer-events: none; }

html {
  font-family: var(--ff-jost);
  color: var(--sonic-silver);
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  padding-block: 70px;
}





/*-----------------------------------*\
 * #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 15px; }

a,
button { transition: var(--transition-1); }

h3 > a { color: inherit; }

.h1,
.h2,
.h3,
.h4 {
  color: var(--eerie-black);
  font-weight: var(--fw-600);
}

.h1 {
  font-size: var(--fs-1);
  line-height: 1;
}

.h2 { font-size: var(--fs-2); }

.h3 { font-size: var(--fs-6); }

.h4 {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.btn {
  background: var(--background, var(--eerie-black));
  color: var(--color, var(--white));
  font-weight: var(--fw-600);
  height: var(--height, 60px);
  padding-inline: 50px;
  border: 1px solid var(--border-color, var(--eerie-black));
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-primary:is(:hover, :focus) {
  --background: var(--white);
  --color: var(--eerie-black);
  --border-color: var(--eerie-black);
}

.btn-secondary {
  --height: 50px;
  --background: var(--white);
  --color: var(--eerie-black);
  --border-color: var(--white);
}

.btn-secondary:is(:hover, :focus) {
  --background: var(--eerie-black);
  --color: var(--white);
  --border-color: var(--eerie-black);
}

.btn-outline {
  --height: 50px;
  --background: var(--white);
  --color: var(--eerie-black);
  --border-color: var(--eerie-black);
  padding-inline: 40px;
}

.btn-outline:is(:hover, :focus) {
  --background: var(--eerie-black);
  --color: var(--white);
  --border-color: var(--eerie-black);
}

.section { padding-block: var(--section-padding); }

.w-100 { width: 100%; }

.section-title {
  text-align: center;
  margin-bottom: 30px;
}





/*-----------------------------------*\
 * #HEADER
\*-----------------------------------*/

.header-search { display: none; }

.header {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--white);
  width: 100%;
  padding-block: 20px;
  z-index: 4;
  transition: var(--transition-1);
}

.header.active {
  position: fixed;
  box-shadow: 0 2px 20px hsla(0, 0%, 0%, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-open-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.nav-open-btn span {
  width: 20px;
  height: 2px;
  background: var(--black);
  transition: var(--transition-1);
}

.nav-open-btn span:nth-child(2) {
  transform: scaleX(0.5);
  transform-origin: right;
}

.nav-open-btn:is(:hover, :focus) span:nth-child(2) { transform: scaleX(1); }

.header-actions {
  background: var(--white);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 5px;
  padding-block: 16px 10px;
  box-shadow: 0 -2px 20px hsla(0, 0%, 0%, 0.1);
  z-index: 1;
}

.header-action-btn {
  position: relative;
  width: 50px;
  text-align: center;
}

.header-action-btn ion-icon {
  margin-inline: auto;
  font-size: 22px;
  margin-bottom: 3px;
}

.header-action-label {
  color: var(--sonic-silver);
  font-size: var(--fs-10);
  transition: var(--transition-1);
}

.header-action-btn:is(:hover, :focus) .header-action-label { color: var(--eerie-black); }

.header-action-btn .btn-badge {
  position: absolute;
  top: -5px;
  right: 0;
  background: var(--background, var(--eerie-black));
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  line-height: 0;
  font-size: 13px;
  color: var(--white);
  border-radius: 50%;
}

.header-action-btn .btn-badge.green { --background: var(--middle-blue-green); }

.navbar {
  background: var(--white);
  position: fixed;
  top: 0;
  right: -300px;
  max-width: 300px;
  width: 100%;
  height: 100%;
  padding: 30px 25px;
  z-index: 3;
  visibility: hidden;
  transition: 0.25s var(--cubic-out);
}

.navbar.active {
  visibility: visible;
  transform: translateX(-300px);
  transition: 0.5s var(--cubic-in);
}

.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.nav-close-btn ion-icon { font-size: 23px; }

.navbar-link {
  padding-block: 10px;
  color: var(--eerie-black);
}

.navbar-list > li:not(:last-child) { border-bottom: 1px solid var(--cultured); }

.overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-1);
  z-index: 2;
}

.overlay.active {
  opacity: 0.7;
  pointer-events: all;
}





/*-----------------------------------*\
 * #HERO
\*-----------------------------------*/

.hero {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left;
  width: 100%;
  min-height: 80vh;
  padding-block: var(--section-padding);
  display: flex;
  align-items: center;
}

.hero .container { width: 100%; }

.hero-subtitle {
  color: var(--eerie-black);
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 35px;
  max-width: 12ch;
}





/*-----------------------------------*\
 * #LOGO CAROUSEL
\*-----------------------------------*/

.logo-carousel {
  background: var(--white);
  padding-block: 40px;
  border-bottom: 1px solid var(--cultured);
  overflow: hidden;
}

.logo-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

.logo-track {
  display: flex;
  width: calc(250px * 12);
  animation: logoScroll 30s linear infinite;
}

.logo-item {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.logo-carousel .logo-svg {
  color: #c0c0c0; /* light gray */
  transition: color var(--transition-1);
}

.logo-carousel .logo-svg:hover {
  color: var(--eerie-black); /* dark grey on hover */
}

@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 6));
  }
}





/*-----------------------------------*\
 * #CATETORY
\*-----------------------------------*/

.category { padding-top: 0; }

.category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.category-item {
  width: 100%;
  position: relative;
}

.category-banner {
  background: var(--cultured);
  aspect-ratio: 2 / 2.35;
  overflow: hidden;
}

.category-banner img {
  height: 100%;
  object-fit: cover;
  transition: var(--transition-2);
}

.category-item:hover .category-banner img { transform: scale(1.05); }

.category-item .btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  padding-inline: 30px;
}





/*-----------------------------------*\
 * #PRODUCT
\*-----------------------------------*/

.filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 50px;
}

.filter-btn {
  color: inherit;
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.filter-btn.active { color: var(--eerie-black); }

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 25px;
  margin-bottom: 60px;
}

.product-card .card-banner {
  position: relative;
  margin-bottom: 20px;
}

.product-card .card-badge {
  background: var(--eerie-black);
  color: var(--white);
  position: absolute;
  top: 0;
  left: 0;
  font-size: var(--fs-9);
  font-weight: var(--fw-500);
  padding: 3px 10px;
}

.product-card .card-badge.red { background: var(--candy-pink); }

.product-card .card-badge.green { background: var(--ocean-green); }

.product-card .card-actions {
  display: flex;
  height: 45px;
}

.product-card .card-action-btn {
  border: 1px solid var(--cultured);
  width: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--eerie-black);
}

.product-card .card-action-btn:is(:hover, :focus) { border-color: var(--eerie-black); }

.product-card .cart-btn {
  flex-grow: 1;
  background: var(--eerie-black);
  color: var(--white);
  border-color: var(--eerie-black);
}

.product-card .cart-btn:is(:hover, :focus) {
  background: var(--white);
  color: var(--eerie-black);
}

.product-card .card-action-btn ion-icon { font-size: 20px; }

.product-card .card-title { margin-bottom: 5px; }

.product-card .card-price {
  color: var(--eerie-black);
  font-size: var(--fs-8);
  font-weight: var(--fw-500);
}

.product-card .card-price data:not(:first-child) {
  color: var(--sonic-silver);
  margin-left: 5px;
  text-decoration: line-through;
}

.product .btn { margin-inline: auto; }





/*-----------------------------------*\
 * #BLOG
\*-----------------------------------*/

.blog-title-container {
  text-align: left;
  margin-bottom: 40px;
}

.blog-subtitle {
  color: var(--middle-blue-green);
  font-size: var(--fs-10);
  font-weight: var(--fw-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.blog .section-title {
  text-align: left;
  font-size: var(--fs-2);
  margin-bottom: 0;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
}

.blog-list > li {
  width: 100%;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--cultured);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-1), box-shadow var(--transition-1);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.blog-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.blog-card .avatar {
  background: var(--eerie-black);
  color: var(--white);
  font-family: var(--ff-jost);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.blog-card .meta-info {
  display: flex;
  flex-direction: column;
}

.blog-card .author {
  color: var(--eerie-black);
  font-weight: var(--fw-600);
  font-size: var(--fs-9);
}

.blog-card .date-category {
  color: var(--sonic-silver);
  font-size: var(--fs-10);
}

.blog-card .card-title {
  font-size: var(--fs-7);
  font-weight: var(--fw-600);
  line-height: 1.3;
  margin-bottom: 15px;
  text-align: left;
}

.blog-card .card-title a {
  color: var(--eerie-black);
  transition: var(--transition-1);
}

.blog-card .card-title a:hover {
  color: var(--middle-blue-green);
}

.blog-card .card-banner {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.blog-card .card-banner img {
  height: 100%;
  object-fit: cover;
  transition: var(--transition-2);
}

.blog-card:hover .card-banner img {
  transform: scale(1.05);
}

.blog-card .card-content {
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card .card-text {
  color: var(--sonic-silver);
  font-size: var(--fs-9);
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}

.blog-card .read-more-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--middle-blue-green);
  font-weight: var(--fw-600);
  font-size: var(--fs-9);
  transition: var(--transition-1);
}

.blog-card .read-more-btn:hover {
  color: var(--eerie-black);
  transform: translateX(4px);
}

.blog-card .read-more-btn ion-icon {
  font-size: 16px;
}

.blog-footer-btn-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.blog-footer-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border-color: var(--middle-blue-green) !important;
  color: var(--middle-blue-green) !important;
}

.blog-footer-btn:is(:hover, :focus) {
  --background: var(--middle-blue-green);
  --color: var(--white);
  --border-color: var(--middle-blue-green);
}

/* Blog Modal Styling */
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.blog-modal.active {
  display: flex;
}

.blog-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.blog-modal-container {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 16px;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.3s ease forwards;
  z-index: 101;
  padding: 40px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--cultured);
  color: var(--eerie-black);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: var(--transition-1);
}

.blog-modal-close-btn:hover {
  background: var(--eerie-black);
  color: var(--white);
}

.blog-modal-content {
  color: var(--eerie-black);
}

.blog-modal-content .modal-header {
  margin-bottom: 25px;
}

.blog-modal-content .modal-meta {
  color: var(--sonic-silver);
  font-size: var(--fs-9);
  margin-bottom: 10px;
}

.blog-modal-content .modal-title {
  font-size: var(--fs-2);
  line-height: 1.3;
  font-weight: var(--fw-600);
}

.blog-modal-content .modal-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 25px;
}

.blog-modal-content .modal-body {
  color: var(--sonic-silver);
  font-size: var(--fs-7);
  line-height: 1.7;
}

.blog-modal-content .modal-body p {
  margin-bottom: 20px;
  text-align: left;
}

.blog-modal-content .modal-body h4 {
  color: var(--eerie-black);
  font-size: var(--fs-5);
  margin-block: 25px 15px;
  font-weight: var(--fw-600);
  text-align: left;
}





/*-----------------------------------*\
 * #NEWSLATTER
\*-----------------------------------*/

.newsletter { padding-bottom: 120px; }

.newsletter-card {
  background-color: var(--cultured);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left;
  padding: 80px 15px;
  text-align: center;
}

.newsletter-card .card-title {
  color: var(--eerie-black);
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  line-height: 1.2;
  margin-bottom: 30px;
}

.newsletter-card .card-text { margin-bottom: 30px; }

.newsletter-card .input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.newsletter-card .input-field {
  background: var(--white);
  height: 60px;
  padding-inline: 50px 20px;
  border-radius: 6px;
}

.newsletter-card .input-wrapper ion-icon {
  font-size: 18px;
  position: absolute;
  top: 50%;
  left: 25px;
  transform: translateY(-50%);
}

.newsletter-card .btn { gap: 10px; }





/*-----------------------------------*\
 * #FOOTER
\*-----------------------------------*/

.footer-top {
  background: var(--cultured);
  padding-block: var(--section-padding);
}

.footer-top .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer .logo { margin-bottom: 20px; }

.footer-text {
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.social-link {
  color: var(--eerie-black);
  font-size: 18px;
  width: 35px;
  height: 35px;
  border: 1px solid var(--sonic-silver);
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.social-link:is(:hover, :focus) {
  background: var(--eerie-black);
  color: var(--white);
  border-color: var(--eerie-black);
}

.footer-list { width: 100%; }

.footer-list-title {
  color: var(--eerie-black);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  margin-bottom: 15px;
}

.footer-link {
  position: relative;
  color: inherit;
  padding-block: 5px;
}

.footer-link:is(:hover, :focus) {
  color: var(--eerie-black);
  transform: translateX(15px);
}

.footer-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%) scale(var(--scale, 0));
  transform-origin: right;
  background: var(--sonic-silver);
  width: 10px;
  height: 2px;
  transition: var(--transition-1);
}

.footer-link:is(:hover, :focus)::before { --scale: 1; }

.footer-bottom { padding-block: 20px; }

.footer-bottom a { color: inherit; }

.copyright {
  margin-bottom: 15px;
  text-align: center;
}

.copyright a {
  display: inline-block;
  color: var(--eerie-black);
  font-weight: var(--fw-600);
}

.footer-bottom-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px 15px;
  margin-bottom: 15px;
}

.footer-bottom-link:is(:hover, :focus) { color: var(--eerie-black); }

.payment {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
}





/*-----------------------------------*\
 * #MEDIA QUARIES
\*-----------------------------------*/

/**
 * responsive for larger than 480px screen
 */

@media (min-width: 480px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 3rem;
    --fs-2: 2rem;

  }



  /**
   * CATEGORY
   */

  .category-list > li { width: calc(50% - 15px); }



  /**
   * PRODUCT
   */

  .product-list > li { width: calc(50% - 12.5px); }



  /**
   * FOOTER
   */

  .footer-brand { width: 100%; }

  .footer-text { max-width: 470px; }

  .footer-list { width: calc(50% - 20px); }

}





/**
 * responsive for larger than 580px screen
 */

@media (min-width: 580px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 3.75rem;
    --fs-2: 2.375rem;
    --fs-3: 2.25rem;

  }



  /**
   * REUSED STYLE
   */

  .container {
    max-width: 550px;
    margin-inline: auto;
  }

}





/**
 * responsive for larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .container { max-width: 700px; }



  /**
   * HERO
   */

  .hero {
    background-position: center;
    min-height: 800px;
  }



  /**
   * BLOG
   */

  .blog-list > li { width: calc(50% - 15px); }

  .blog-card .card-title { min-height: 3.5rem; }

  .blog-card .card-text { min-height: 5.5rem; }



  /**
   * NEWSLETTER
   */

  .newsletter-card > * {
    max-width: 480px;
    margin-inline: auto;
  }

  .newsletter-card .card-form { position: relative; }

  .newsletter-card .input-wrapper { margin-bottom: 0; }

  .newsletter-card .btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: max-content;
    padding-inline: 35px;
    border-radius: 0 6px 6px 0;
  }



  /**
   * FOOTER
   */

  .footer-list { width: calc(33.33% - 26.66px); }

  .copyright,
  .footer-bottom-list { margin-bottom: 0; }

  .footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px 50px;
  }

}





/**
 * responsive for larger than 992px screen
 */

@media (min-width: 992px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 5rem;

  }



  /**
   * RESET
   */

  body { padding-block: 0; }



  /**
   * REUSED STYLE
   */

  .container { max-width: 950px; }



  /**
   * HEADER
   */

  .header {
    position: relative;
    padding-block: 15px;
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
    margin-bottom: 67px;
  }

  .header.active {
    position: relative;
    box-shadow: none;
  }

  .header .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .header-search {
    display: block;
    position: relative;
    width: max-content;
  }

  .header-search .input-field {
    border: 1px solid hsla(0, 0%, 0%, 0.1);
    width: 280px;
    padding: 12px 30px;
    border-radius: 6px;
    transition: var(--transition-1);
  }

  .header-search .input-field:focus { outline: 1px solid var(--eerie-black); }

  .header-search .search-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--eerie-black);
  }

  .header-search .search-btn ion-icon { --ionicon-stroke-width: 30px; }

  .header .logo { margin-inline: auto; }

  .nav-open-btn,
  .header-action-btn:nth-child(2),
  .navbar-top,
  .overlay { display: none; }

  .header-actions {
    all: unset;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
  }

  .navbar {
    all: unset;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: 100%;
    background: var(--white);
  }

  .header.active .navbar {
    position: fixed;
    top: 0;
    box-shadow: 0 2px 20px hsla(0, 0%, 0%, 0.1);
  }

  .navbar-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }

  .navbar-list > li:not(:last-child) { border-bottom: none; }

  .navbar-link {
    font-size: var(--fs-7);
    font-weight: var(--fw-500);
    padding-block: 20px;
  }

  .navbar-link:is(:hover, :focus) { color: var(--middle-blue-green); }



  /**
   * CATEGORY
   */

  .category-list > li:not(:first-child, :nth-child(2)) { width: calc(25% - 22.5px); }



  /**
   * PRODUCT
   */

  .product-list > li { width: calc(33.33% - 16.66px); }

  .product-card .card-actions {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    transform: translateY(100px);
    visibility: hidden;
    transition: var(--transition-1);
  }

  .product-card .card-banner { overflow: hidden; }

  .product-card .card-banner:hover .card-actions {
    visibility: visible;
    transform: translateY(0);
  }

  .product-card .card-action-btn:first-child { border-radius: 6px 0 0 6px; }

  .product-card .card-action-btn:last-child { border-radius: 0 6px 6px 0; }



  /**
   * BLOG
   */

  .blog-list > li { width: calc(25% - 22.5px); }

  .blog-card .card-title { min-height: 5.5rem; }

  .blog-card .card-text { min-height: 7.5rem; }



  /**
   * NEWSLETTER
   */

  .newsletter-card .card-form { max-width: 650px; }

}





/**
 * responsive for larger than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 6.25rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 1150px; }



  /**
   * HEADER
   */

  .header-search .input-field { width: 350px; }



  /**
   * PRODUCT
   */

  /* .product-list > li { width: calc(25% - 18.75px); } */



  /**
   * FOOTER
   */

  .footer-brand { width: calc(40% - 30px); }

  .footer-text { max-width: 340px; }

  .footer-list { width: calc(20% - 30px); }

  .footer-bottom .container { justify-content: space-between; }

}




/* Flat blog pages for Hostinger */
.navbar-link.active-link { color: var(--middle-blue-green); }
.article-header { box-shadow: 0 1px 0 hsla(0, 0%, 0%, 0.06); }
.article-page-premium {
  min-height: 100vh;
  padding: 84px 18px 96px;
  background:
    radial-gradient(circle at top left, hsla(176, 35%, 63%, 0.22), transparent 34%),
    linear-gradient(180deg, hsl(0, 0%, 98%) 0%, var(--cultured) 100%);
}
.article-sheet {
  width: min(920px, 100%);
  margin-inline: auto;
  background: var(--white);
  border: 1px solid hsla(0, 0%, 0%, 0.06);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 46px);
  box-shadow: 0 28px 90px hsla(0, 0%, 0%, 0.13), 0 2px 0 hsla(0, 0%, 100%, 0.9) inset;
}
.article-back { display: inline-flex; margin-bottom: 26px; font-weight: var(--fw-700); color: var(--middle-blue-green); }
.article-social-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.article-avatar { width: 44px; height: 44px; font-size: 1.3rem; }
.article-social-head strong { display: block; color: var(--eerie-black); font-size: var(--fs-6); }
.article-social-head span { display: block; color: var(--sonic-silver); font-size: var(--fs-7); margin-top: 2px; }
.article-category-pill {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: hsla(176, 35%, 63%, 0.18);
  color: var(--middle-blue-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--fs-8);
  font-weight: var(--fw-700);
}
.article-main-title { font-size: clamp(3.2rem, 5vw, 6.4rem); line-height: 1.04; max-width: 820px; margin-bottom: 18px; color: var(--eerie-black); }
.article-lead { font-size: clamp(1.7rem, 2vw, 2.1rem); line-height: 1.65; max-width: 780px; margin-bottom: 30px; color: var(--sonic-silver); }
.article-main-image { overflow: hidden; border-radius: 16px; margin-bottom: 34px; background: var(--cultured); box-shadow: 0 14px 35px hsla(0, 0%, 0%, 0.08); }
.article-main-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.article-body { display: grid; gap: 20px; margin-bottom: 36px; }
.article-body p { max-width: 760px; color: hsl(0, 0%, 28%); line-height: 1.9; font-size: 1.62rem; }
.article-sources { padding: 24px; background: hsl(0, 0%, 97%); border: 1px solid hsla(0, 0%, 0%, 0.06); border-radius: 14px; margin-bottom: 26px; }
.article-sources h2 { font-size: var(--fs-4); margin-bottom: 12px; color: var(--eerie-black); }
.article-sources ul { display: grid; gap: 9px; padding-left: 18px; }
.article-sources a { color: var(--middle-blue-green); text-decoration: underline; text-underline-offset: 3px; font-weight: var(--fw-600); }
.article-engagement { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid hsla(0, 0%, 0%, 0.07); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.article-engagement div { padding: 18px; text-align: center; border-right: 1px solid hsla(0, 0%, 0%, 0.07); }
.article-engagement div:last-child { border-right: 0; }
.article-engagement strong { display: block; font-size: var(--fs-3); color: var(--eerie-black); }
.article-engagement span { color: var(--sonic-silver); font-size: var(--fs-7); font-weight: var(--fw-600); }
.blog-card .date-category { display: grid; gap: 2px; line-height: 1.25; }
.blog-card .date-category span { display: block; }
.blog-card .date-category span:last-child { color: var(--middle-blue-green); font-weight: var(--fw-600); margin-top: 2px; }
.blog-card .card-banner { height: clamp(150px, 13vw, 188px) !important; aspect-ratio: auto !important; }
body:not(.blog-archive-page) .section.blog .blog-list .card-banner {
  height: clamp(150px, 13vw, 188px);
  aspect-ratio: auto;
  background: hsl(0, 0%, 96%);
}
body:not(.blog-archive-page) .section.blog .blog-list .card-banner a,
body:not(.blog-archive-page) .section.blog .blog-list .card-banner img {
  display: block;
  width: 100%;
  height: 100%;
}
body:not(.blog-archive-page) .section.blog .blog-list .card-banner img {
  object-fit: cover;
  object-position: center;
}
@media (max-width: 575px) {
  .article-page-premium { padding-inline: 0; padding-top: 54px; }
  .article-sheet { padding: 22px; border-radius: 0; }
  .article-engagement { grid-template-columns: 1fr; }
  .article-engagement div { border-right: 0; border-bottom: 1px solid var(--cultured); }
  .article-engagement div:last-child { border-bottom: 0; }
  body:not(.blog-archive-page) .section.blog .blog-list .card-banner { height: 220px; }
}
