/* Additional styles can go here */

/* ============================================
   Payment Method Change Loader
   ============================================ */

/* Loader container */
.payment-method-loader {
  display: none;
  position: relative;
  padding: 40px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  margin: 20px 0;
}

.payment-method-loader.is-loading {
  display: block;
}

/* Spinner animation */
.payment-method-loader__spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

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

/* Loader text */
.payment-method-loader__text {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Hide order review table while loading */
.woocommerce-checkout-review-order-table.is-updating {
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.2s ease;
}


/* Trekking Packages Index grid */
 .packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

/* Card block */
 .package-card{
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

 .package-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

 .package-card__link {
  color: inherit;
  text-decoration: none;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

 .package-card__media img,
 .package-card__placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #e9eef3;
}

 .package-card__content {
  padding: 16px;
}

 .package-card__title {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  color: #1d2736;
}

 .package-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  color: #516071;
  font-weight: 600;
}

 .package-card__price {
  color: #8ea33b;
}

 .package-card__excerpt {
  color: #5a6777;
  font-size: .95rem;
}

 .pagination {
  margin: 24px 0 8px;
  text-align: center;
}

@media (max-width: 600px) {
   .package-card__media img,
   .package-card__placeholder {
    height: 160px;
  }
}

/* Current output structure: style trek-detail_package cards */
.trek-detail_package {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 16px;
}

.trek-detail_package:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.trek-detail_package h2 {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  color: #1d2736;
}

.trek-detail_package .post-meta {
  color: #516071;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.trek-detail_package .post-content {
  color: #5a6777;
  font-size: .95rem;
}

/* Header redesign - Clean White Header */

  .wp-theme-oztoeverest-theme {
    margin: 0 !important;
  }

  /* Sticky Header */
  .site-header {
    background: #ffffff;
    color: #000;
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .container {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* Header Inner Layout */
  .header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 16px 0;
  }

  /* Branding - Logo on Left */
  .site-branding {
    flex-shrink: 0;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #000;
  }

  .brand__title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
    color: #000;
  }

  .brand img,
  .brand__logo {
    max-height: 40px;
    width: auto;
    display: block;
  }

  /* Navigation - Left Aligned Next to Logo */
  .site-nav {
    flex: 1;
  }

  .primary-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
  }

  .primary-menu > li {
    margin: 0;
  }

  .primary-menu > li > a {
    color: #000;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
  }

  .primary-menu > li > a:hover {
    color: #666;
  }

  /* Cart Button - Right Side */
  .header-cart {
    flex-shrink: 0;
    margin-left: auto;
  }

  .cart-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    position: relative;
  }

  .cart-button:hover {
    background: #333;
  }

  .cart-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .cart-text {
    white-space: nowrap;
  }

  .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
  }

  /* Responsive */
  @media (max-width: 980px) {
    .header-inner {
      gap: 20px;
      padding: 12px 0;
    }

    .primary-menu {
      gap: 20px;
      flex-wrap: wrap;
    }

    .primary-menu > li > a {
      font-size: 14px;
    }

    .cart-button {
      padding: 8px 16px;
      font-size: 13px;
    }
  }

  @media (max-width: 768px) {
    .header-inner {
      flex-wrap: wrap;
      gap: 16px;
    }

    .site-nav {
      order: 3;
      flex-basis: 100%;
    }

    .primary-menu {
      gap: 16px;
      font-size: 14px;
    }

    .header-cart {
      margin-left: auto;
    }
  }
  
  .main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
  }
  /* single trek detail page */
  .package-page {
    /* grid 2 columns */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .package-page__left {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .package-page__right {
    background: #fff; 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  .trekking-package-single {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
  }
  
  .package-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  }
  
  .package-hero .hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }
  
  .package-hero .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .package-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 1.2rem;
  }
  
  .package-overview,
  .package-details,
  .package-itinerary,
  .package-includes,
  .package-gallery,
  .package-booking {
    padding: 40px 0;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .package-overview h2,
  .package-details h2,
  .package-itinerary h2,
  .package-includes h2,
  .package-gallery h2,
  .package-booking h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1d2736;
  }
  
  .details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .detail-item {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
  }
  
  .book-now-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #8ea33b;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
  }
  
  .book-now-btn:hover {
    background: #7a8f32;
  }
  
  @media (max-width: 768px) {
    .package-hero {
      height: 300px;
    }
    .package-hero h1 {
      font-size: 2rem;
    }
    .package-meta {
      flex-direction: column;
      gap: 10px;
    }
    .details-grid {
      grid-template-columns: 1fr;
    }
  }

  /* WooCommerce Single Product Page */
  .single-product-wrapper {
    padding: 40px 0;
    background: #fff;
  }

  .product-single {
    background: #fff;
  }

  /* Product Layout - Two Column */
  .product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
  }

  /* Product Images */
  .product-images {
    position: relative;
  }

  .product-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .woocommerce-product-gallery {
    margin: 0;
  }

  .woocommerce-product-gallery__wrapper {
    margin: 0;
  }

  .woocommerce-product-gallery__image {
    margin-bottom: 16px;
  }

  /* Product Summary */
  .product-summary {
    padding: 20px 0;
  }

  .product_title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #000;
    line-height: 1.2;
  }

  .woocommerce-product-rating {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .price {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
    display: block;
  }

  .price del {
    opacity: 0.5;
    font-size: 20px;
    margin-right: 8px;
  }

  .price ins {
    text-decoration: none;
  }

  .woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
  }

  /* Product Variations - Pill Style */
  .variations-pills {
    margin-bottom: 32px;
  }

  .variation-attribute {
    margin-bottom: 24px;
  }

  .variation-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .variation-pills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .variation-pill {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
  }

  .variation-pill:hover {
    border-color: #999;
    background: #f5f5f5;
  }

  .variation-pill.selected {
    border-color: #000;
    background: #000;
    color: #fff;
  }

  .variation-pill:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #e5e5e5;
    color: #999;
  }

  .variation-pill:disabled:hover {
    background: #fff;
    border-color: #e5e5e5;
  }

  .reset_variations {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    text-decoration: underline;
  }

  .reset_variations:hover {
    color: #000;
  }

  /* Add to Cart Form */
  .cart {
    margin-bottom: 24px;
  }

  .quantity {
    display: inline-block;
    margin-right: 12px;
  }

  .quantity input[type="number"] {
    width: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
  }

  .single_add_to_cart_button {
    background: #000;
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .single_add_to_cart_button:hover {
    background: #333;
  }

  .single_add_to_cart_button:disabled {
    background: #ccc;
    cursor: not-allowed;
  }

  /* Product Meta */
  .product_meta {
    font-size: 14px;
    color: #666;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
  }

  .product_meta > span {
    display: block;
    margin-bottom: 8px;
  }

  /* Product Tabs */
  .product-details-tabs {
    margin-top: 60px;
  }

  .woocommerce-tabs {
    margin-bottom: 60px;
  }

  .woocommerce-tabs .tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #e5e5e5;
  }

  .woocommerce-tabs .tabs li {
    margin: 0;
  }

  .woocommerce-tabs .tabs li a {
    display: block;
    padding: 12px 0;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
  }

  .woocommerce-tabs .tabs li.active a,
  .woocommerce-tabs .tabs li a:hover {
    color: #000;
    border-bottom-color: #000;
  }

  .woocommerce-Tabs-panel {
    padding: 24px 0;
  }

  /* Related Products */
  .related.products {
    margin-top: 60px;
  }

  .related.products h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
  }

  .related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* Responsive */
  @media (max-width: 980px) {
    .product-layout {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .product_title {
      font-size: 28px;
    }

    .price {
      font-size: 24px;
    }
  }

  @media (max-width: 768px) {
    .single-product-wrapper {
      padding: 24px 0;
    }

    .product-layout {
      gap: 24px;
    }

    .product_title {
      font-size: 24px;
    }

    .woocommerce-tabs .tabs {
      flex-direction: column;
      gap: 0;
    }

    .related.products ul.products {
      grid-template-columns: 1fr;
    }
  }

  /* ============================================
     WooCommerce Breadcrumbs
     ============================================ */

  .wp-block-breadcrumbs.wc-block-breadcrumbs {
    margin-top: 20px;
  }

  /* .wp-block-group.alignfull {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  } */

  /* ============================================
     Prevent Layout Shift - Reserve Space
     ============================================ */

  table.variations {
    min-height: 80px; /* Reserve space to prevent layout shift */
  }

  /* ============================================
     WooCommerce Catalog Sorting Dropdown
     ============================================ */

  .wp-block-woocommerce-catalog-sorting {
    margin-bottom: 24px;
  }

  .woocommerce-ordering {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .woocommerce-ordering select.orderby {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
  }

  .woocommerce-ordering select.orderby:hover {
    border-color: #999;
    background-color: #f9f9f9;
  }

  .woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
  }

  .woocommerce-ordering select.orderby option {
    padding: 8px;
    background-color: #fff;
    color: #333;
  }

  .woocommerce-ordering select.orderby option:checked {
    background: linear-gradient(#333, #333);
    background-color: #333;
    color: #fff;
  }

  /* ============================================
     Default Button Colors
     ============================================ */

  button,
  input[type="button"],
  input[type="submit"],
  .wp-block-button__link,
  .button {
    background-color: #d90c0c;
    border-radius: 4px;
    color: #fff;
    border-color: #d90c0c;
    transition: all 0.3s ease;
  }

  button:hover,
  input[type="button"]:hover,
  input[type="submit"]:hover,
  .wp-block-button__link:hover,
  .button:hover {
    background-color: #e81b1b;
    border-color: #d90c0c;
    transition: all 0.3s ease;

  }

  button:focus,
  input[type="button"]:focus,
  input[type="submit"]:focus,
  .wp-block-button__link:focus,
  .button:focus {
    outline: 2px solid #d90c0c;
    outline-offset: 2px;
  }

  /* ============================================
     WooCommerce Product Tabs - Convert to Stacked Sections
     ============================================ */

  /* Hide the tab navigation */
  .woocommerce-tabs .tabs.wc-tabs {
    display: none;
  }

  /* Show all tab panels as stacked sections */
  .woocommerce-Tabs-panel {
    display: block !important;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
  }

  .woocommerce-Tabs-panel:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* Style the section headings */
  .woocommerce-Tabs-panel h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 0;
    color: #333;
  }

  /* Style the content inside panels */
  .woocommerce-Tabs-panel p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #666;
  }

  /* Style product attributes table */
  .woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
  }

  .woocommerce-product-attributes tr {
    border-bottom: 1px solid #e5e5e5;
  }

  .woocommerce-product-attributes tr:last-child {
    border-bottom: none;
  }

  .woocommerce-product-attributes th {
    text-align: left;
    padding: 12px 0;
    font-weight: 600;
    color: #333;
  }

  .woocommerce-product-attributes td {
    padding: 12px 0;
    color: #666;
  }