/**
 * Theme Overrides - Markite Child Theme
 * 
 * Organization by Section/Page:
 * 1. Base Styles (Fonts, Global Resets, Utilities)
 * 2. Site Header & Navigation
 * 3. Site Footer
 * 4. Page Headers & Breadcrumbs
 * 5. Shop Page (Product Cards, Services Section)
 * 6. Popup Modals
 * 7. Responsive Design
 * 
 * @package markite-child
 * @since 2.0.0
 * @updated December 16, 2024
 */

/* =============================================================================
   1. BASE STYLES - FONTS, GLOBAL RESETS, UTILITIES
   ============================================================================= */

/* Font Definitions */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/worksans/v24/worksans-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/worksans/v24/worksans-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Work Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/worksans/v24/worksans-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Work Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/worksans/v24/worksans-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Global Resets */
::selection {
  background: var(--accent-color);
  color: #ffffff;
}

::-moz-selection {
  background: var(--accent-color);
  color: #ffffff;
}

.btn,
.m-btn,
.page-numbers,
.form-select,
.input-text,
.submenu {
  border-radius: unset !important;
}


/* Utility Classes */
.fill {
  background-color: var(--accent-color) !important;
}

.outline {
  border: 1px solid var(--accent-color) !important;
  color: var(--accent-color) !important;
  background-color: var(--bs-white) !important;
}

.disabled {
  cursor: not-allowed !important;
}

/* Button Components */
.link-btn a,
.link-btn button {
  color: var(--accent-color) !important;
}

.m-btn {
  background: var(--accent-color);
}

.m-btn.m-btn-2 {
  background: var(--accent-color);
}

/* =============================================================================
   2. SITE HEADER & NAVIGATION
   ============================================================================= */

/* Header Layout */
.header__area .container .row > div:first-child {
  width: 30%;
}

.header__area .container .row > div:last-child {
  width: 70%;
}

/* Header Logo */
.main-logo,
.sticky-logo {
  width: 400px !important;
  height: auto;
  max-width: 100%;
}

/* Header Buttons */
.header__btn a {
  background-color: var(--accent-color) !important;
  color: var(--bs-white) !important;
}

/* Header Login */
.header__login-2 a {
  color: var(--accent-color) !important;
}

.header__login-2 a:hover {
  transform: translateY(-2px);
}

.header__login a.active {
  color: var(--accent-color) !important;
  font-weight: 600;
}

.header__login a::after {
  background: unset;
}

/* Main Navigation Menu */
.main-menu.mms {
  margin-left: 40px;
}

.main-menu ul li.active > a {
  font-weight: 600;
}

.main-menu ul li a {
  display: inline-block;
  padding: 26px 0 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-color) !important;
  text-transform: capitalize;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.main-menu ul li a:hover {
  transform: translateY(-2px);
}

/* Sidebar Toggle */
.sidebar-toggle-btn .line {
  background-color: var(--accent-color) !important;
}

/* =============================================================================
   3. SITE FOOTER
   ============================================================================= */

/* Footer Background */
.footer-style-1,
.footer-style-1 .footer__area {
  background: var(--footer-bg);
}

/* Footer Lists */
.footer__area ul {
  padding-left: 0;
  list-style: none;
}

.footer__area ul li a {
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer__area ul li a:hover {
  transform: translateY(-2px);
}

/* Footer Widget Areas */
#custom_html-13 .textwidget {
  display: flex;
  align-items: center;
  justify-content: between;
}

/* Footer Images */
.footer__area .footer-partner-logo {
  height: 50px ;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.footer__area .footer-payment-icon {
  height: 30px;
  width: auto;
  padding: 5px 10px;
  background: white;
  border-radius: 4px;
  object-fit: contain;
}

.footer__area .footer-cartinuum-logo {
  max-width: 200px;
  height: auto;
}

.footer__area .linkedin-icon {
  width: 38px;
  height: 38px;
  transition: all 0.3s ease;
}

.footer__area .linkedin-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 119, 181, 0.3);
}

/* Footer Copyright */
.footer__area .small {
  font-size: 13px;
  line-height: 1.6;
}

/* =============================================================================
   4. PAGE HEADERS & BREADCRUMBS
   ============================================================================= */

/* Breadcrumb */
.bg-shape img {
  height: 290px;
}


/* =============================================================================
   5. SHOP PAGE - PRODUCT CARDS & SERVICES SECTION
   ============================================================================= */

/* Product Card Component */
.product-card {
  border: 1px solid #c3dccf !important;
  border-radius: unset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Product Image Area */
.product-image-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.product-image-area img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.product-image-area:hover img {
  filter: brightness(0.7);
}

/* Product Hover Overlay */
.product-hover-overlay {
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-image-area:hover .product-hover-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Product Badges */
.product-badge-free {
  background-color: #ebffb4;
  color: #000000;
}

.product-badge-paid {
  background-color: #8c7cb6;
  color: #fff;
}

/* Product Content */
.product-title,
.product-description {
  color: var(--accent-color) !important;
}

.product-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
}

.product-description p {
  margin: 0;
}

.product-description p img {
  display: none !important;
}

/* Services Section - Product Cards */
.services-products-area .product-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: auto !important;
}

.services-products-area .product-image {
  height: 150px;
  padding: 16px;
  overflow: hidden;
}

.services-products-area .product-image img {
  display: block;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.services-products-area .product-content {
  display: flex;
  flex-direction: column;
  flex: 0 0 100px;
  padding: 16px;
}

.services-products-area .product-title {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.services-products-area .product-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
}

.services-products-area .learn-more-btn {
  display: inline-block;
  align-self: flex-start;
  width: auto !important;
  padding: 12px 32px;
  margin: 0 16px;
  background: var(--accent-color);
  color: var(--bs-white);
  border: none;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-sizing: border-box;
  transition: background 0.2s;
}

/* Support Section */
.bdevs-el-title{
  color: var(--accent-color) !important;
}

.support__area .container > .row:nth-of-type(2) {
  display: flex;
  justify-content: center;
}

.support-link-btn a {
  background: var(--accent-color) !important;
  color: var(--bs-white);
  text-transform: lowercase;
}

/* Single Product Page */
.single_add_to_cart_button {
  width: 100%;
  padding: 14px 26px;
  background-color: var(--accent-color) !important;
  color: white !important;
  text-transform: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.single_add_to_cart_button:hover {
  transform: translateY(-1px);
}

/* =============================================================================
   6. POPUP MODALS - GVC TRIAL FORM
   ============================================================================= */

/* Popup Theme */
.pum-theme-default-theme {
  background-color: rgba(0, 0, 0, 0.5);
}

#popmake-2969,
#popmake-3567 {
  background: var(--bs-white);
  box-shadow: 3px 8px 24px rgba(0, 0, 0, 0.18);
}

#popmake-2969 .pum-close.popmake-close,
#popmake-3567 .pum-close.popmake-close {
  width: 52px;
  height: 52px;
  background: transparent;
  box-shadow: none;
  color: #333;
  font-size: 22px;
  font-weight: 300;
  line-height: 52px;
}

/* GVC Trial Form */
.gvc-trial-template .elementor-form .elementor-field-group .elementor-field-textual {
  background-color: transparent;
  border: 1px solid var(--accent-color);
  border-radius: unset;
}

.gvc-trial-template label.elementor-field-label {
  margin: 0 0 8px 0;
}

.gvc-trial-template .elementor-form .elementor-field-group {
  margin-bottom: 18px !important;
}

.gvc-trial-template .elementor-field-group-field_effb11f {
  font-size: 14px;
  font-style: italic;
}

.gvc-trial-template .elementor-widget-container h2.section__title {
  font-size: 22px;
  font-weight: 500;
  text-align: left;
}

.gvc-trial-template .bdevs-el.heading {
  margin-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

/* =============================================================================
   7. RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================================================= */

/* Tablets and below (991px) */
@media (max-width: 991px) {
  /* Header */
  .header__area .container .row > div:first-child {
    width: 50%;
  }
  
  .header__area .container .row > div:last-child {
    width: 50%;
  }
  
  .main-logo,
  .sticky-logo {
    width: 350px !important;
  }
  
  /* Footer */
  .footer__area .footer-partner-logo {
    height: 48px;
  }
  
  .footer__area .footer-payment-icon {
    height: 28px;
    padding: 4px 8px;
  }
  
  .footer__area .footer-cartinuum-logo {
    max-width: 180px;
  }
}

/* Mobile devices (767px and below) */
@media (max-width: 767px) {
  /* Footer */
  .footer__area ul {
    justify-content: center !important;
  }
  
  .footer__area .footer-partner-logo {
    height: 42px;
  }
  
  .footer__area .footer-payment-icon {
    height: 26px;
    padding: 4px 8px;
  }
  
  .footer__area .linkedin-icon {
    width: 36px;
    height: 36px;
  }
  
  .footer__area .footer-cartinuum-logo {
    max-width: 160px;
  }
  
  .footer__area .small {
    font-size: 12px;
  }
}

/* Extra small mobile devices (575px and below) */
@media (max-width: 575px) {
  .footer__area .footer-partner-logo {
    height: 38px;
  }
  
  .footer__area .footer-payment-icon {
    height: 24px;
    padding: 3px 6px;
  }
  
  .footer__area .footer-cartinuum-logo {
    max-width: 140px;
  }
}

/* Small mobile devices (750px and below) */
@media (max-width: 750px) {
  /* Header */
  .header__area .container .row > div:first-child {
    width: 80% !important;
  }
  
  .header__area .container .row > div:last-child {
    width: 20% !important;
  }
}
