/* base start */

        /* === Theme tokens =========================================
           Colors + fonts are injected ONCE in
           templates/home/partials/theme_variables.css (:root).
           Static tokens (shadows/motion/radius/layout/card defaults)
           also live there. Do not redefine :root in this file. */

        body.dark-mode { background-color: #121212; color: #f0f0f0; }
        #back-to-top {
            position: fixed; bottom: 40px; right: 40px; z-index: 99;
            background-color: var(--purple-600); color: white; border: none;
            border-radius: 50%; padding: 10px 17px; font-size: 18px;
            cursor: pointer; display: none; transition: .3s;
        }
        #back-to-top:hover { background-color: var(--purple-700); color: #ffffff !important; }
        .popup-message {
            position: fixed; top: 20px; right: 20px; z-index: 10000;
            background: #27ae60; color: white; padding: 12px 20px;
            border-radius: 6px; display: none; font-weight: bold;
        }
        .modal-overlay {
            position: fixed; top:0; left:0; width:100%; height:100%;
            background: rgba(0,0,0,0.6); display: none;
            justify-content: center; align-items: center; z-index: 9999;
        }
        .modal-box {
            width: 420px; background: white; border-radius: 10px;
            padding: 20px; position: relative; max-height: 90vh; overflow-y: auto;
        }
        .close-btn {
            position: absolute; top: 10px; right: 10px; font-size: 26px;
            cursor: pointer;
        }
        .mandatory-field::after {
            content: " *";
            color: red;
        }
        .form-errors {
            color: red;
        }
        .auth-title {
            color: #3498db;
            font-weight: bold;
            font-size: 24px;
            text-align: center;
            margin-bottom: 15px;
        }

/* base end         */
/* product_card.html start */
#popupMessage {
    display: none;
    position: fixed;
    top: 45px;
    left: 88%;
    transform: translateX(-50%);
    background-color: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}
#popupMessage.error {
    background-color: #e74c3c;
}
.product-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    background: #fff;
    transition: 0.3s;
    position: relative;
    height: 320px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.product-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 5px;
}
.product-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}
.price-add-cart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 5px;
}
.price {
    font-size: 14px;
    font-weight: bold;
    color: #e74c3c;
    text-align: left;
}
.old-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    display: block;
    text-align: left;
}

.wishlist-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    border: solid 2px #2980b9;
    color: #2980b9;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    background-color: transparent;
}
.wishlist-icon.active {
    background-color: #2980b9;
    color: #fff;
}
.star-rating {
    color: #f1c40f;
    font-size: 12px;
    margin-bottom: 5px;
    text-align: left;
}
.star-rating small {
    margin-left: 5px;
    font-size: 10px;
    color: #555;
}
.row.g-4.justify-content-center {
    justify-content: flex-start !important;
}
/* product_card.html end */
/* product_list.html start */
#popupMessage {
    display: none;
    position: fixed;
    top: 45px;
    right: 15px;
    background-color: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: all 0.3s ease-in-out;
}
#popupMessage.error {
    background-color: #e74c3c;
}
.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    background: #fff;
    transition: 0.3s;
    position: relative;
    height: 350px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.product-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
}
.product-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}
.price-container {
    text-align: left;
}
.price-add-cart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 5px;
}
.price {
    font-size: 15px;
    font-weight: bold;
    color: #e74c3c;
}
.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-bottom: -2px;
}


.star-rating {
    color: #f1c40f;
    font-size: 12px;
    margin-bottom: 5px;
    text-align: left;
}
.star-rating small {
    margin-left: 5px;
    font-size: 10px;
    color: #555;
}
.sort-form select {
    width: auto;
    display: inline-block;
    margin-left: 10px;
}
/* product_list.html end */
/* category-detail.html start */
#popupMessage {
    display: none;
    position: fixed;
    top: 45px;
    left: 88%;
    transform: translateX(-50%);
    background-color: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}
#popupMessage.error {
    background-color: #e74c3c;
}
.product-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    background: #fff;
    transition: 0.3s;
    position: relative;
    height: 320px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.product-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 5px;
}
.product-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.price-add-cart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 5px;
}
.price {
    font-size: 14px;
    font-weight: bold;
    color: #e74c3c;
    text-align: left;
}
.old-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    display: block;
    text-align: left;
}
.cart-btn {
    background: #0a9e48;
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-btn:hover {
    background: #1e8449;
}


.star-rating {
    color: #f1c40f;
    font-size: 12px;
    margin-bottom: 5px;
    text-align: left;
}
.star-rating small {
    margin-left: 5px;
    font-size: 10px;
    color: #555;
}

.row.g-4.justify-content-center {
    justify-content: flex-start !important;
}
/* category-detail.html end */
/* job_details.html start */
.card-title {
    font-weight: 700;
    font-size: 2rem;
}
.badge i {
    margin-right: 5px;
}
.btn-primary {
    background: #1A73E8;
    border-color: #1A73E8;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: #155ab6;
    border-color: #155ab6;
    transform: translateY(-2px);
}
.card {
    border-radius: 10px;
}
/* job_details.html end */
/* job_list.html start */
.card-hover {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.card-title {
    font-weight: 600;
    font-size: 1.25rem;
}
.card-text {
    color: #555;
}
.text-muted i {
    margin-right: 5px;
}
.card-text.text-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* job_list.html end */
/* footer start */
        footer ul li a {
            text-decoration: none;
            color: #1e1e1e;
        }
        footer ul li a:hover {
            text-decoration: underline !important; 
        }
        .dark-mode footer {
            background-color: #1e1e1e !important;
            color: #ffffff !important;
        }
        .dark-mode footer a {
            color: #ffffff !important;
        }
        .dark-mode footer a:hover {
            text-decoration: underline !important;
        }
        .dark-mode footer hr {
            border-color: #444 !important;
        }
        .dark-mode footer .small {
            color: #ccc !important;
        }
        .dark-mode footer h5,
        .dark-mode footer h6 {
            color: #ffffff !important;
        }
        .dark-mode footer i.fab {
            opacity: 0.85;
        }
/* footer end */
/* hero_section.html start */
.hero-sections.layout-3-items {
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
}
.hero-section.full-width {
    width: 100%; 
    min-height: 400px; 
}
.hero-section.half-width {
    width: calc(50% - 5px);
    min-height: 300px; 
}
.hero-section {
    background-size: cover;
    background-position: center;
    box-sizing: border-box; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1; 
}
.hero-content {
    text-align: center;
    padding: 20px;
    z-index: 2; 
    max-width: 90%; 
}
.hero-content h2 {
    color: white; 
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); 
    line-height: 1.2;
}
.hero-content p {
    color: #f0f0f0; 
    font-size: 1.5em;
    margin-bottom: 25px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); 
}
.hero-content .btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #ff5722;
    color: white;
    text-decoration: none;
    border: 2px solid #ff5722;
    border-radius: 22px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}
.hero-content .btn:hover {
    background-color: #e64a19;
    border-color: #e64a19;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .hero-sections.layout-3-items {
        gap: 5px; 
    }
    .hero-section.full-width {
        min-height: 300px;
    }
    .hero-section.half-width {
        width: 100%; 
        min-height: 200px;
    }
    .hero-content h2 {
        font-size: 1.8em;
    }
}
/* hero_section.html end */

/* ============================================
   SHARED ITEM CARD (home/partials/item_card.html)
   Single source of truth for the product card.
   Sections that include the partial set
   --items-per-view / --card-gap to control how
   many cards fit per row.
   ============================================ */
.item-card {
  flex: 0 0 calc((100% / var(--items-per-view)) - (var(--card-gap) * (var(--items-per-view) - 1) / var(--items-per-view)));
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.item-card .hover-icons {
  position: absolute !important;
  top: 15px !important;
  right: 10px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 40px 40px !important;
  row-gap: 8px !important;
  opacity: 0;
  visibility: hidden;
  transform: translateX(15px);
  transition: all 0.3s ease;
  z-index: 100 !important;
}
.item-card:hover .hover-icons {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) !important;
}
.item-card .icon-circle {
  width: 38px !important;
  height: 38px !important;
  background: white !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
  cursor: pointer !important;
  transition: 0.3s !important;
  font-size: 15px !important;
  color: #333 !important;
  text-decoration: none !important;
  border: 1px solid #eee !important;
}
.item-card .icon-circle:hover {
  background: #27ae60 !important;
  color: #fff !important;
}
.item-card .love-icon.active i {
  color: var(--clr-primary) !important;
}
.item-card .love-icon.active:hover i {
  color: #107c1e !important;
}
.item-card .love-icon {
  width: 32px !important;
  height: 32px !important;
  font-size: 13px !important;
  border: 1px solid #227722 !important;
  box-shadow: 0 2px 5px rgba(12, 110, 41, 0.1) !important;
  background: #fff !important;
  color: #505050 !important;
}
.item-card .love-icon:hover {
  background: var(--clr-primary) !important;
  color: #fff !important;
  border-color: var(--clr-primary) !important;
  transform: scale(1.1);
}
.item-card .image-box {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.item-card .image-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.item-card .item-title {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  height: 36px;
  overflow: hidden;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}
.item-card .item-title:hover {
  color: #27ae60;
}
.item-card .featured-description {
  display: none;
  font-size: 13px;
  color: #64748b;
  margin: 8px 0;
  line-height: 1.4;
}
.item-card .star-rating {
  color: #f1c40f;
  font-size: 11px;
  margin-bottom: 4px;
}
.item-card .star-rating small { color: #777; }
.item-card .price-wrap {
  margin-top: auto;
  padding: 8px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.item-card .new-price {
  color: #27ae60;
  font-weight: 700;
  font-size: 15px;
}
.item-card .old-price {
  color: #999;
  text-decoration: line-through;
  font-size: 12px;
  margin-right: 0;
}
.item-card .cart-btn {
  width: 100%;
  background: #0a9e48;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
}
.item-card .cart-btn:hover {
  background: #1e8449;
}
.item-card .cart-btn.out-of-stock {
  background: #ccc;
  cursor: not-allowed;
}
.item-card .ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 30px;
  color: #fff;
  z-index: 2;
  font-weight: 600;
}
.item-card .ribbon.sale {
  background: #e74c3c;
}
.item-card .ribbon.new {
  background: #27ae60;
}
.track-list {
  display: flex;
  gap: var(--card-gap);
  transition: transform 0.4s ease-in-out;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
@media (max-width: 768px) { body { --items-per-view: 2; } }
@media (max-width: 480px) { body { --items-per-view: 1; } }

/* ============================================
   PRICE / OFFER / CART (from home/base.html)
   ============================================ */
.price-offer-wrapper {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
}
.offer-price {
    color: #e74c3c;
    font-weight: bold;
}
.offer-badge {
    font-size: 0.7rem;
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
}
.cart-line-offer, .basket-total-offer {
    line-height: 1.5;
}
.savings {
    color: #27ae60;
    font-size: 0.8rem;
    font-weight: 500;
}
.cart-item-price-display {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cart-item-original {
    font-size: 0.75rem;
    text-decoration: line-through;
    color: #999;
}
.cart-item-offer {
    font-size: 0.9rem;
    font-weight: bold;
    color: #e74c3c;
}
.cart-item-savings {
    font-size: 0.7rem;
    color: #27ae60;
}
.cart-line-total {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 2px;
    color: #333;
}
.product-price-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.product-price-wrapper .original-price {
    font-size: 1.1rem;
}
.product-price-wrapper .offer-price {
    font-size: 2rem;
    line-height: 1.2;
}
.basket-total-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.basket-original-total {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
}
.basket-final-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}
.basket-total-savings {
    font-size: 0.8rem;
    color: #27ae60;
}
@media (prefers-color-scheme: dark) {
    .original-price { color: #666; }
    .cart-line-total { color: #ddd; }
    .offer-badge { background: #c0392b; }
}

/* ============================================
   STORE-FRONT ROWS (from home/base.html)
   ============================================ */
.es-product-row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.es-product-row > .col { flex: 0 0 calc(20% - 1rem); width: auto; }
@media (max-width: 1200px) { .es-product-row > .col { flex: 0 0 calc(25% - 0.9375rem); } }
@media (max-width: 992px)  { .es-product-row > .col { flex: 0 0 calc(33.333% - 0.8333rem); } }
@media (max-width: 768px)  { .es-product-row > .col { flex: 0 0 calc(50% - 0.625rem); } }
@media (max-width: 480px)  { .es-product-row > .col { flex: 0 0 100%; } }
.es-scroll-row { position: relative; }
.es-testi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* ============================================
   CHECKOUT STEPS (from home/base.html)
   ============================================ */
.checkout-steps {
    background: #f8f9fa;
    border-radius: 50px;
    padding: 10px;
    border: 1px solid #e9ecef;
}
.checkout-steps .nav-item {
    color: #adb5bd;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 40px;
}
.checkout-steps .step-num {
    background: #dee2e6;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 0.8rem;
}
.checkout-steps .nav-item.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.checkout-steps .nav-item.active .step-num {
    background: white;
    color: #007bff;
}

/* ============================================
   TESTIMONIALS SECTION (home/testmonials.html)
   ============================================ */
#testimonial-section {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
}
#testimonial-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(5,150,105,0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}
#testimonial-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5,150,105,0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}
#testimonial-section .testimonial-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
    z-index: 2;
}
#testimonial-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}
#testimonial-section .section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-primary);
    margin-bottom: 10px;
    padding: 6px 14px;
    background: rgba(5,150,105,0.12);
    border-radius: 100px;
}
#testimonial-section h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #1a1a2e 0%, #4a4a6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#testimonial-section .grid-window {
    overflow: hidden;
    width: 100%;
    border-radius: 24px;
}
#testimonial-section .testimonial-container {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
#testimonial-section .testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    border-radius: 24px;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1),
               0 0 0 1px rgba(255,255,255,0.5) inset;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.8);
}
#testimonial-section .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -15px rgba(0,0,0,0.2),
               0 0 0 2px rgba(255,255,255,0.8) inset;
    background: rgba(255, 255, 255, 1);
}
#testimonial-section .user-img-wrapper {
    position: relative;
    margin-bottom: 12px;
}
#testimonial-section .user-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 3px solid white;
    box-shadow: 0 8px 15px -5px rgba(0,0,0,0.2);
}
#testimonial-section .user-img-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
    border-radius: 50%;
    z-index: 1;
    animation: rotate 3s linear infinite;
}
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#testimonial-section .rating {
    margin-bottom: 8px;
}
#testimonial-section .rating i {
    color: #fbbf24;
    margin: 0 2px;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(251,191,36,0.2);
}
#testimonial-section .user-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 3px;
}
#testimonial-section .user-role {
    font-size: 0.8rem;
    color: var(--clr-primary);
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#testimonial-section .user-message {
    color: #4a4a6a;
    line-height: 1.5;
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    padding: 0 8px;
    max-height: 80px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
#testimonial-section .user-message::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: -20px;
    left: -5px;
    color: var(--clr-primary);
    opacity: 0.2;
    font-family: serif;
}
#testimonial-section .user-message::after {
    content: '"';
    font-size: 3rem;
    position: absolute;
    bottom: -30px;
    right: -5px;
    color: var(--clr-primary-dark);
    opacity: 0.2;
    font-family: serif;
}
#testimonial-section .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: none;
    box-shadow: 0 8px 15px -5px rgba(0,0,0,0.1),
               0 0 0 1px rgba(255,255,255,0.5);
    color: #1a1a2e;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    opacity: 1;
    visibility: visible;
}
#testimonial-section .nav-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#testimonial-section .nav-btn:hover:not(.hidden) {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 25px -5px rgba(5, 150, 105, 0.4);
}
#testimonial-section #testPrev { left: 0; }
#testimonial-section #testNext { right: 0; }
#testimonial-section .progress-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
#testimonial-section .progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(26,26,46,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}
#testimonial-section .progress-dot.active {
    width: 25px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
}
#testimonial-section .counter-badge {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}
#testimonial-section .counter-badge span {
    color: var(--clr-primary);
    font-weight: 700;
}
@media (max-width: 991px) {
    #testimonial-section h2 { font-size: 2rem; }
    #testimonial-section .testimonial-card { flex: 0 0 calc(50% - 12px); }
    #testimonial-section .testimonial-wrapper { padding: 0 50px; }
    #testimonial-section { padding: 50px 0; }
}
@media (max-width: 600px) {
    #testimonial-section { padding: 40px 0; }
    #testimonial-section h2 { font-size: 1.6rem; }
    #testimonial-section .testimonial-card { flex: 0 0 100%; }
    #testimonial-section .testimonial-wrapper { padding: 0 40px; }
    #testimonial-section .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    #testimonial-section .user-message {
        -webkit-line-clamp: 2;
        max-height: 60px;
    }
}

/* ============================================
   COMPANY SUPPORT SERVICES (home/company_support_element.html)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 30px 0;
}
.service-card {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 2rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}
.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}
.service-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER (home/footer.html)
   ============================================ */
.site-footer {
    background: linear-gradient(145deg, var(--clr-primary-xdark) 0%, #043d30 55%, #02231b 100%);
    color: rgba(255, 255, 255, 0.92);
    border-top: 3px solid var(--clr-primary);
    position: relative;
    overflow: hidden;
}
.site-footer a { transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.site-footer a:hover { opacity: 1; }
.site-footer ul li a { color: rgba(255, 255, 255, 0.78) !important; }
.site-footer ul li a:hover { color: #6ee7b7 !important; text-decoration: underline !important; }
.site-footer .hover-underline:hover { text-decoration: underline !important; color: #6ee7b7 !important; }
.site-footer .footer-heading {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}
.site-footer .footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--clr-primary);
}
.site-footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.15) !important;
    opacity: 1 !important;
}
.site-footer .btn-newsletter {
    background: var(--clr-primary);
    color: #fff;
    border: 1px solid var(--clr-primary);
    transition: all 0.25s ease;
}
.site-footer .btn-newsletter:hover,
.site-footer .btn-newsletter:focus {
    background: var(--clr-primary-dark);
    border-color: var(--clr-primary-dark);
    color: #fff;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}
.site-footer .btn-newsletter:disabled {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    opacity: 0.85;
}
.site-footer input.form-control {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 0;
}
.site-footer input.form-control::placeholder { color: rgba(255, 255, 255, 0.55); }
.site-footer input.form-control:focus {
    box-shadow: none;
    border-color: var(--clr-primary) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}
.site-footer .social-icon {
    color: rgba(255, 255, 255, 0.85);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s ease;
}
.site-footer .social-icon:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.35);
}

/* Newsletter toast (home/footer.html) */
.ajax-toast {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(110%);
    opacity: 0;
}
.ajax-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Dark mode */
.dark-mode .site-footer {
    background: linear-gradient(145deg, #043d30 0%, #02231b 100%) !important;
}
.dark-mode .site-footer a { color: #ffffff !important; }
.dark-mode .site-footer a:hover { text-decoration: underline !important; }
.dark-mode .site-footer hr { border-color: #444 !important; }
.dark-mode .site-footer .small { color: #ccc !important; }
.dark-mode .site-footer h5,
.dark-mode .site-footer h6 { color: #ffffff !important; }
.dark-mode .site-footer i.fab { opacity: 0.85; }

/* ============================================
   HOME BRANDS SECTION (home/brands.html)
   ============================================ */
.es-brands-section {
    padding: 3rem 0;
    background: #fff;
}
.es-brands-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.es-brands-title {
    position: relative;
    padding-bottom: 0.6rem;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.es-brands-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-dark));
}
.es-brands-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--clr-primary) 40%, #fff);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--clr-primary) 6%, #fff);
    transition: all 0.25s ease;
}
.es-brands-view-all:hover {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
    transform: translateX(2px);
}
.es-brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.9rem;
}
.es-brand-grid > .col { min-width: 0; }
.es-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    min-height: 60px;
    padding: 0.1rem 0.14rem;
    background: #fff;
    border: 1px solid #edf1f5;
    border-radius: 0.75rem;
    text-decoration: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}
.es-brand-card:hover {
    border-color: color-mix(in srgb, var(--clr-primary) 55%, #fff);
    box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.18);
    transform: translateY(-3px);
}
.es-brand-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition:
        filter 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}
.es-brand-card:hover .es-brand-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}
.es-brand-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.2;
    transition: color 0.25s ease;
}
.es-brand-card:hover .es-brand-name { color: var(--clr-primary); }
.es-brand-fade {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
@media (max-width: 992px) {
    .es-brand-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .es-brands-section { padding: 2.25rem 0; }
    .es-brand-grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
    .es-brand-card { min-height: 56px; }
}
@media (max-width: 480px) {
    .es-brand-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   HOME ACCESSORIES SECTION (home/accessary.html)
   ============================================ */
#accessories-section {
    position: relative;
    padding: 40px 0;
    font-family: 'Inter', sans-serif !important;
    background: transparent;
}
#accessories-section .carousel-container {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 0 20px;
    box-sizing: border-box;
}
#accessories-section .accessories-grid {
    display: flex;
    gap: 20px;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
}
#accessories-section .accessories-grid::-webkit-scrollbar { display: none; }
#accessories-section .card-set {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box;
}
#accessories-section .product-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    height: 195px;
    flex: 0 0 calc(33.333% - 13.34px);
    max-width: calc(33.333% - 13.34px);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#accessories-section .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#accessories-section .img-container {
    flex: 0 0 40%;
    position: relative;
    background: #f9f9f9;
    border-right: 1px solid #eee;
    overflow: hidden;
}
#accessories-section .img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s ease;
}
#accessories-section .product-card:hover .img-container img { transform: scale(1.05); }
#accessories-section .text-container {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    min-width: 0;
}
#accessories-section .product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    max-height: 2.8em;
    text-decoration: none;
    transition: color 0.3s ease;
}
#accessories-section .product-title:hover { color: var(--clr-primary); }
#accessories-section .stars { font-size: 0.8rem; margin-bottom: 4px; }
#accessories-section .stars .filled { color: #ffb400 !important; }
#accessories-section .stars .empty { color: #ddd !important; }
#accessories-section .price-container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
#accessories-section .old-price {
    text-decoration: line-through;
    color: #adb5bd;
    font-size: 0.8rem;
}
#accessories-section .new-price {
    color: #d9534f !important;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Accessories heading (was inline styles) */
#accessories-section .accessories-header-wrap {
    margin-bottom: 20px;
    padding: 0 5px;
    position: relative;
}
#accessories-section .accessories-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}
#accessories-section .accessories-heading .heading-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f1f5f9;
    border-radius: 2px;
}
#accessories-section .accessories-heading .heading-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--clr-primary);
    border-radius: 2px;
}

/* Sliding Action Icons - equal 8px gap, no overlap */
#accessories-section .card-actions-hover {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 10;
    background: #fff;
    padding-top: 4px;
}
#accessories-section .product-card:hover .card-actions-hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#accessories-section .action-btn {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    margin: 0;
    padding: 0;
    position: static;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: all 0.2s ease;
}
#accessories-section .action-btn:hover {
    background: var(--clr-primary) !important;
    color: #fff !important;
    border-color: var(--clr-primary) !important;
    transform: scale(1.1);
}
#accessories-section .card-actions-hover form {
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex: 0 0 32px;
}
#accessories-section .wishlist-icon.active i { color: var(--clr-primary) !important; }
#accessories-section .wishlist-icon.active:hover i { color: #fff !important; }

#accessories-section .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}
#accessories-section .carousel-prev { left: -10px; }
#accessories-section .carousel-next { right: -10px; }
#accessories-section .carousel-nav:hover {
    background-color: var(--clr-primary) !important;
    color: white !important;
    border-color: var(--clr-primary) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}
@media (max-width: 1024px) {
    #accessories-section .product-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    #accessories-section .carousel-prev { left: -5px; }
    #accessories-section .carousel-next { right: -5px; }
}
@media (max-width: 768px) {
    #accessories-section .carousel-nav {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}
@media (max-width: 600px) {
    #accessories-section .product-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    #accessories-section .carousel-prev { left: -2px; }
    #accessories-section .carousel-next { right: -2px; }
    #accessories-section .carousel-nav {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}
