/* ================================
   MOBILE FIRST - HERO
================================ */

@media (max-width: 1199px) {
  .hero-section {
    padding-top: 0;
  }
  .heroSwiper {
    height: 420px;
  }
  .heroSwiper .swiper-button-next,
  .heroSwiper .swiper-button-prev {
    display: none;
  }
}

@media (max-width: 767px) {
  .heroSwiper {
    height: 300px;
  }
  .heroSwiper .swiper-pagination {
    bottom: 14px;
  }
  .heroSwiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
  .heroSwiper .swiper-pagination-bullet-active {
    width: 24px;
  }
  .nav-actions {
    gap: 8px;
    margin: 0 9px 0px 19px;
  }
}

@media (max-width: 480px) {
  .heroSwiper {
    height: 250px;
  }
  .heroSwiper .swiper-slide img {
    object-position: center;
  }
  .heroSwiper .swiper-pagination {
    bottom: 12px;
  }
}
@media (max-width: 991px) {
  .featured-products {
    padding: 30px 0;
    background: #e7ffe8;
  }
  .about-section {
    padding: 30px 0;
    background: #fffdf8;
  }
  .products-banner {
    height: 220px;
  }

  .banner-title {
    font-size: 36px;
  }
}

@media (max-width: 576px) {
  .products-banner {
    height: 180px;
  }

  .banner-title {
    font-size: 22px;
  }

  .banner-description {
    display: none;
  }

  .banner-subtitle {
    font-size: 11px;
  }
}
/*==================================
Cart Responsive
==================================*/

@media (max-width: 767px) {
  .cart-section {
    padding: 25px 0 40px;
  }

  .cart-item {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: start !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    border-radius: 14px !important;
    position: relative;
    flex-wrap: unset !important;
  }

  .cart-image {
    width: 72px !important;
    height: 72px !important;
    border-radius: 10px;
    overflow: hidden;
  }

  .cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cart-content {
    min-width: 0;
    padding: 0 !important;
  }

  .cart-category {
    font-size: 9px;
    letter-spacing: 1.5px;
    margin: 0 0 3px;
  }

  .cart-content h3 {
    font-size: 18px;
    line-height: 1.15;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cart-price {
    font-size: 13px;
    line-height: 1.2;
  }

  .quantity-box {
    margin-top: 8px;
    height: 34px;
    display: flex;
    align-items: center;
  }

  .quantity-box button {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px;
  }

  .quantity-box input {
    width: 38px !important;
    height: 34px !important;
    font-size: 13px;
  }
  .quantity-box {
    margin: 0px 0;
  }
  .cart-total {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 9px 0 0 !important;
    border-top: 1px solid #edf0ed;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    text-align: left !important;
    flex-direction: row;
  }

  .cart-total > div {
    font-size: 15px;
    font-weight: 700;
  }

  .remove-item {
    margin: 0 !important;
    padding: 5px 8px !important;
    font-size: 11px;
    line-height: 1;
  }

  .stock-warning {
    font-size: 10px;
    line-height: 1.3;
    margin-top: 4px;
  }

  .cart-summary {
    position: static !important;
    margin-top: 15px;
    padding: 18px 15px;
    border-radius: 14px;
  }

  .cart-summary h3 {
    font-size: 23px;
    margin-bottom: 10px;
  }

  .summary-row {
    padding: 7px 0;
    font-size: 13px;
  }

  .summary-row.total {
    margin-top: 4px;
    padding-top: 12px;
    font-size: 18px;
  }

  .checkout-btn {
    margin-top: 14px;
    min-height: 44px;
    padding: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .continue-shopping {
    margin-top: 10px;
    padding: 4px;
  }

  .empty-cart {
    padding: 45px 18px;
    border-radius: 15px;
  }

  .empty-cart i {
    font-size: 45px;
  }

  .empty-cart h2 {
    font-size: 27px;
  }
}

@media (max-width: 380px) {
  .cart-item {
    grid-template-columns: 68px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 11px !important;
  }

  .cart-image {
    width: 68px !important;
    height: 68px !important;
  }

  .cart-content h3 {
    font-size: 17px;
  }

  .cart-price {
    font-size: 12px;
  }

  .quantity-box {
    margin-top: 7px;
  }

  .quantity-box button {
    width: 32px !important;
    height: 32px !important;
  }

  .quantity-box input {
    width: 36px !important;
    height: 32px !important;
  }

  .cart-total {
    padding-top: 8px !important;
  }

  .cart-total > div {
    font-size: 14px;
  }

  .remove-item {
    font-size: 10px;
  }
}
/* ================================
   GK VEDA GALLERY
================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.gallery-item {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  transition: all 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(46, 125, 50, 0.14);
}

.gallery-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f7f4;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.06);
}

.gallery-title {
  padding: 16px 18px 18px;
  font-size: 17px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .navbar-brand img {
    width: 140px;
  }
  .auth-wrapper {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .auth-intro {
    padding: 45px 40px;
  }

  .auth-intro h1 {
    font-size: 42px;
  }

  .auth-card {
    padding: 45px 40px;
  }
  #mainNavbar.scrolled .navbar-brand img {
    width: 140px;
  }

  .about-story h2 {
    margin-bottom: 10px;
  }
  .about-story p {
    margin-bottom: 2px;
  }
  .section-heading h2 {
    font-size: 36px;
  }
  .feature-card i {
    margin-bottom: 10px;
  }
  .product-category {
    margin-bottom: 2px;
  }
  .product-info h3 {
    font-size: 12px;
    margin-bottom: 0px;
  }
  .product-info {
    padding: 6px;
  }
  .product-category {
    font-size: 7px;
  }
  .product-price strong {
    font-size: 16px;
  }
  .product-price del {
    font-size: 12px;
  }
  .product-actions .cart-btn {
    font-size: 12px;
    height: 32px;
  }
  .product-actions {
    padding: 0 6px 6px;
  }
}

@media (max-width: 575px) {
  .auth-section {
    padding: 35px 15px;
    margin-top: 80px;
  }

  .auth-intro {
    padding: 40px 25px;
  }

  .auth-intro h1 {
    font-size: 36px;
  }

  .auth-card {
    padding: 35px 22px;
  }
}
/* ================================
   MOBILE
================================ */

@media (max-width: 576px) {
  .saved-address-card {
    padding: 14px;
    border-radius: 10px;
  }

  .saved-address-card.selected::after {
    position: static;
    display: block;
    margin-top: 8px;
    font-size: 12px;
  }

  .saved-address-header {
    padding-right: 0;
  }

  .saved-address-body {
    font-size: 13px;
    line-height: 1.5;
  }

  .use-address-btn {
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
  }

  .add-address-btn {
    width: 100%;
    min-height: 44px;
  }

  .address-type-options {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .address-type-btn {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
  }

  #newAddressForm {
    padding: 15px;
    border-radius: 10px;
  }
}
/* Mobile */

@media (max-width: 576px) {
  .saved-address-card {
    padding: 15px;
  }

  .saved-address-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .saved-address-use {
    width: 100%;
    text-align: center;
  }
}
/* ==============================
        MOBILE
        ============================== */

@media (max-width: 700px) {
  .order-timeline {
    display: block;
    padding: 0 0 0 15px;
    margin-bottom: 30px;
  }

  .order-timeline::before {
    top: 22px;
    bottom: 22px;
    left: 37px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-step {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 15px;
  }

  .timeline-icon {
    width: 46px;
    height: 46px;
    margin: 0;
    flex-shrink: 0;
  }

  .timeline-step strong {
    font-size: 13px;
    white-space: normal;
  }

  .timeline-step span {
    font-size: 10px;
  }
}

@media (max-width: 700px) {
  .order-actions form {
    width: 100%;
  }

  .order-actions form button {
    width: 100%;
  }

  .order-details-section {
    padding: 45px 0;
  }

  .order-details-header {
    display: block;
  }

  .order-details-header h1 {
    font-size: 37px;
  }

  .back-orders {
    margin-top: 20px;
  }

  .details-card {
    padding: 22px;
  }

  .order-detail-item {
    grid-template-columns: 55px 1fr;
  }

  .order-detail-image {
    width: 55px;
    height: 55px;
  }

  .order-detail-price {
    grid-column: 2;
    text-align: left;
  }

  .detail-summary {
    max-width: none;
  }

  .order-actions {
    flex-direction: column;
  }

  .order-actions a {
    width: 100%;
  }
}

/*
        |--------------------------------------------------------------------------
        | TABLET
        |--------------------------------------------------------------------------
        */

@media (max-width: 1100px) {
  .order-row {
    flex-wrap: wrap;
  }

  .order-middle {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .order-right {
    margin-left: auto;
  }
}

/*
        |--------------------------------------------------------------------------
        | MOBILE
        |--------------------------------------------------------------------------
        */

@media (max-width: 767px) {
  .orders-section {
    padding: 45px 0;
  }

  .orders-heading {
    margin-bottom: 25px;
  }

  .orders-heading h1 {
    font-size: 38px;
  }

  .orders-card {
    border-radius: 15px;
  }

  .order-row {
    align-items: flex-start;

    flex-direction: column;

    padding: 20px;

    gap: 18px;
  }

  .order-info {
    width: 100%;
    min-width: 0;
  }

  .order-middle {
    width: 100%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    order: initial;
  }

  .order-right {
    width: 100%;

    margin-left: 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
  }

  .order-total {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .order-status,
  .payment-status {
    justify-self: start;
  }

  .order-btn {
    justify-content: center;

    width: 100%;

    grid-column: 1 / -1;
  }
}

/*
        |--------------------------------------------------------------------------
        | SMALL MOBILE
        |--------------------------------------------------------------------------
        */

@media (max-width: 400px) {
  .order-middle {
    grid-template-columns: 1fr;
  }

  .order-right {
    grid-template-columns: 1fr;
  }

  .order-total,
  .order-btn {
    grid-column: auto;
  }

  .order-status,
  .payment-status {
    width: fit-content;
  }
}
@media (max-width: 1199px) {
  #mainNavbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: 9999 !important;
    transform: none !important;
    padding: 5px 0 !important;
    background: #fff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
  }
  #mainNavbar.scrolled {
    position: fixed !important;
    top: 0 !important;
    transform: none !important;
  }
  #mainNavbar .navbar-brand img {
    width: 125px;
    height: auto;
  }
  #mainNavbar .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
  #mainNavbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 4px 0 0 !important;
  }
  #mainNavbar .icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  #mainNavbar .icon-btn i {
    position: static;
    font-size: 18px;
  }
  #mainNavbar .icon-btn span {
    top: -2px;
    right: -2px;
  }
  #mainNavbar .navbar-toggler {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #mainNavbar .navbar-toggler i {
    font-size: 27px;
  }
  #mainNavbar .navbar-collapse {
    margin-top: 6px;
    padding: 8px 0;
    background: #fff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 58px);
    overflow-y: auto;
  }
  #mainNavbar .navbar-nav {
    width: 100%;
  }
  #mainNavbar .nav-item {
    width: 100%;
  }
  #mainNavbar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    margin: 0;
    border-radius: 0;
  }
  #mainNavbar .nav-link::after {
    display: none;
  }
  #mainNavbar .nav-link:hover,
  #mainNavbar .nav-link.active {
    background: #f1f8f2;
    color: #2e7d32;
  }
  .mobile-account-item {
    display: block !important;
    border-top: 1px solid #edf0ed;
  }
  .mobile-logout-link {
    color: #a33b3b !important;
  }
}

@media (min-width: 1200px) {
  .mobile-account-item {
    display: none !important;
  }
}

@media (max-width: 575px) {
  #mainNavbar .navbar-brand img {
    width: 120px;
  }
  #mainNavbar .icon-btn,
  #mainNavbar .navbar-toggler {
    width: 38px;
    height: 38px;
  }
}
@media (max-width:1199px) {
  #mainNavbar,
  #mainNavbar.scrolled {
    top: 0 !important;
  }
}

@media (max-width:575px) {
  #mainNavbar,
  #mainNavbar.scrolled {
    top: 0 !important;
    padding: 4px 0 !important;
  }
}