/*------------------------------------------------------------------
Project: E-Commerce Website
Version: 2.0
Last change: 2024
Assigned to: Le Xuan Bach
Primary use: Company E-Commerce
-------------------------------------------------------------------*/

/*------------------------------------------------------------------
[COLOR CODES]

# Text Color      : #333333
# Primary Color 01: #e65540
# Primary Color 02: #66a8a6  
# Primary Color 03: #222222

------------------------------------------------------------------*/

/*------------------------------------------------------------------
[TYPOGRAPHY]

Body            : 16px/1.6 Montserrat, Arial, sans-serif;
Title           : 18px/1.6 Poppins, Arial, sans-serif;
Paragraph       : 15px/1.7 Montserrat, Arial, sans-serif;
Input, textarea : 14px/1.6 Montserrat, Arial, sans-serif;
-------------------------------------------------------------------*/

/*[ FONT FACE ]
///////////////////////////////////////////////////////////
*/
@font-face {
  font-family: 'Montserrat-Regular';
  src: url('../fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat-Medium';
  src: url('../fonts/montserrat/Montserrat-Medium.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat-Bold';
  src: url('../fonts/montserrat/Montserrat-Bold.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat-Italic';
  src: url('../fonts/montserrat/Montserrat-Italic.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat-Black';
  src: url('../fonts/montserrat/Montserrat-Black.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Linearicons';
  src: url('../fonts/Linearicons-Free-v1.0.0/WebFont/Linearicons-Free.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Poppins-Bold';
  src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Poppins-Black';
  src: url('../fonts/poppins/Poppins-Black.ttf') format('truetype');
  font-display: swap;
}

/*[ CSS RESET & BASE STYLES ]
///////////////////////////////////////////////////////////
*/
:root {
  --primary-color: #e65540;
  --secondary-color: #66a8a6;
  --dark-color: #222222;
  --text-dark: #333333;
  --text-light: #888888;
  --border-color: #e5e5e5;
  --bg-light: #f5f5f5;
  --white: #ffffff;
  --black: #000000;
  --success: #66a8a6;
  --error: #e65540;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Breakpoints */
  --mobile: 576px;
  --tablet: 768px;
  --desktop: 992px;
  --large: 1200px;
}

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

*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body, html {
  height: 100%;
  font-family: 'Montserrat-Regular', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*[ TYPOGRAPHY ]
///////////////////////////////////////////////////////////
*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins-Bold', sans-serif;
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
  color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
}

p {
  font-family: 'Montserrat-Regular', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0 0 var(--space-md);
}

/*[ LINKS & BUTTONS ]
///////////////////////////////////////////////////////////
*/
a {
  font-family: 'Montserrat-Regular', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

a:hover {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: var(--space-sm) var(--space-lg);
  font-family: 'Montserrat-Medium', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--dark-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--dark-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--dark-color);
  border: 2px solid var(--dark-color);
}

.btn-outline:hover {
  background-color: var(--dark-color);
  color: var(--white);
}

/*[ LAYOUT & CONTAINERS ]
///////////////////////////////////////////////////////////
*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-md);
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

/*[ HEADER & NAVIGATION ]
///////////////////////////////////////////////////////////
*/
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

/* Logo */
.logo {
  font-family: 'Poppins-Bold', sans-serif;
  font-size: 1.8rem;
  color: var(--dark-color);
  text-decoration: none;
}

.logo span {
  color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  font-family: 'Poppins-Bold', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dark-color);
  transition: width 0.3s ease;
}

.nav-item > a:hover::after {
  width: 100%;
}

/* Header Icons */
.header-icons {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: color 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-btn:hover {
  color: var(--primary-color);
}

.header-icons-noti {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-color);
  color: var(--white);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  z-index: 1100;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  padding: var(--space-xl) var(--space-lg);
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-item > a {
  display: block;
  padding: var(--space-sm);
  font-size: 1.1rem;
  color: var(--text-dark);
}

.mobile-nav-item > a:hover {
  color: var(--primary-color);
}

/*[ HERO SECTIONS ]
///////////////////////////////////////////////////////////
*/
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  color: var(--white);
  max-width: 90%;
  margin: 0 auto;
  padding: var(--space-xl);
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 600px;
    margin-left: 10%;
    text-align: left;
  }
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-indicator.active {
  background: var(--white);
  transform: scale(1.2);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  min-width: 50px;
}

.hero-nav:hover {
  background: rgba(0,0,0,0.6);
}

.hero-prev {
  left: var(--space-md);
}

.hero-next {
  right: var(--space-md);
}

/*[ PRODUCT GRIDS ]
///////////////////////////////////////////////////////////
*/
.section {
  padding: var(--space-xxl) 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image {
  transform: scale(1.05);
}

.category-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md);
  background: rgba(255,255,255,0.9);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image-container {
  height: 250px;
  overflow: hidden;
  background: var(--bg-light);
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--primary-color);
  color: var(--white);
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}

.product-info {
  padding: var(--space-md);
}

.product-name {
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.product-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.product-old-price {
  text-decoration: line-through;
  color: var(--text-light);
  margin-left: var(--space-xs);
  font-size: 0.9rem;
}

/*[ CART & CHECKOUT ]
///////////////////////////////////////////////////////////
*/
.cart-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.cart-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: 600;
}

.cart-total {
  padding: var(--space-md);
  border-top: 1px solid var(--border-color);
  font-weight: 700;
  text-align: right;
}

/*[ FORMS & INPUTS ]
///////////////////////////////////////////////////////////
*/
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Montserrat-Regular', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  min-height: 44px;
}

.form-control:focus {
  border-color: var(--primary-color);
}

.form-control::placeholder {
  color: var(--text-light);
}

/* Newsletter */
.newsletter {
  background: var(--bg-light);
  padding: var(--space-xl) 0;
  text-align: center;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: var(--space-sm);
}

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/*[ FOOTER ]
///////////////////////////////////////////////////////////
*/
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: var(--space-xxl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer-column-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  min-width: 36px;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: var(--space-xxl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/*[ UTILITY CLASSES ]
///////////////////////////////////////////////////////////
*/
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

@media (max-width: 767px) {
  .d-md-none { display: none; }
  .d-md-block { display: block; }
}

/*[ LOADING & ANIMATIONS ]
///////////////////////////////////////////////////////////
*/
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*[ ACCESSIBILITY ]
///////////////////////////////////////////////////////////
*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*[ PRINT STYLES ]
///////////////////////////////////////////////////////////
*/
@media print {
  .header,
  .footer,
  .hero-controls,
  .mobile-menu-toggle {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
}

/*[ HIGH CONTRAST MODE SUPPORT ]
///////////////////////////////////////////////////////////
*/
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --text-dark: #000000;
    --border-color: #000000;
  }
  
  .btn-primary {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
  }
}

/*[ DARK MODE SUPPORT ]
///////////////////////////////////////////////////////////
*/
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #ffffff;
    --text-light: #cccccc;
    --bg-light: #1a1a1a;
    --white: #000000;
    --border-color: #444444;
  }
  
  .header {
    background: rgba(0, 0, 0, 0.98);
  }
  
  .product-card,
  .category-card {
    background: #1a1a1a;
    color: #ffffff;
  }
}

/*[ PERFORMANCE OPTIMIZATIONS ]
///////////////////////////////////////////////////////////
*/
/* Optimize image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Improve scrolling performance */
.scroll-container {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Optimize animations */
.transform-optimize {
  will-change: transform;
  backface-visibility: hidden;
}

/*[ ERROR STATES ]
///////////////////////////////////////////////////////////
*/
.error-message {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

.success-message {
  color: var(--success);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

.is-invalid {
  border-color: var(--error) !important;
}

.is-valid {
  border-color: var(--success) !important;
}

/*[ CUSTOM SCROLLBAR ]
///////////////////////////////////////////////////////////
*/
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/*[ BACK TO TOP BUTTON ]
///////////////////////////////////////////////////////////
*/
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  min-width: 50px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--dark-color);
  transform: translateY(-2px);
}

/*[ RESPONSIVE IMAGES ]
///////////////////////////////////////////////////////////
*/
.responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contain-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*[ GRID SYSTEM ]
///////////////////////////////////////////////////////////
*/
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--space-sm));
}

.col {
  flex: 1;
  padding: 0 var(--space-sm);
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-5 { flex: 0 0 41.666667%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333333%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333333%; }
.col-11 { flex: 0 0 91.666667%; }
.col-12 { flex: 0 0 100%; }

@media (max-width: 768px) {
  .col-md-1 { flex: 0 0 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; }
  .col-md-3 { flex: 0 0 25%; }
  .col-md-4 { flex: 0 0 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; }
  .col-md-6 { flex: 0 0 50%; }
  .col-md-7 { flex: 0 0 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; }
  .col-md-9 { flex: 0 0 75%; }
  .col-md-10 { flex: 0 0 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; }
  .col-md-12 { flex: 0 0 100%; }
}