@media (min-width: 427px) {
  .mobile_show {
    display: none !important;
  }
}
@media (max-width: 426px) {
  .mobile_show {
    display: block !important;
  }
  .mobile_hide {
    display: none !important;
  }
  [data-prefix="product"] [class*="ct-container"] > article[class*="post"] {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  main.product-page {
    max-width: unset;
    padding: 0;
  }
  .product-layout {
    flex-direction: column;
    gap: 17px;
    margin-bottom: 28px;
  }
  .product-gallery {
    width: 100%;
    padding: 0 24px;
    margin-bottom: 17px;
  }
  .product-gallery-controls {
    display: flex;
    align-items: center;
    gap: 19px;
    margin-top: 17px;
  }
  .product-gallery-controls .swiper-button-prev,
  .product-gallery-controls .swiper-button-next {
    position: initial !important;
    min-width: 34px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px;
    transform: unset;
    margin-top: 0;
  }
  .product-gallery-controls .swiper-button-prev svg,
  .product-gallery-controls .swiper-button-next svg {
    width: 13px !important;
    height: 23px !important;
  }
  .product-gallery-controls .swiper-pagination {
    position: initial;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: auto;
  }
  .product-gallery-controls .swiper-pagination .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #797979;
  }
  .product-gallery-controls
    .swiper-pagination
    .swiper-pagination-bullet-active {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.25);
    background: #371803;
  }
  .gallery-thumbs {
    display: none !important;
  }
  .product-content > .product-details {
    position: initial;
    padding: 0 24px;
    margin-bottom: 28px;
  }
  .product-title {
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    order: -1;
  }
  .product-rating-row {
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
  }
  .product-rating-row > span:first-child {
    font-size: 13px;
    line-height: 20px;
  }
  .product-rating-stars svg {
    width: 20px;
    height: 20px;
  }
  .product-rating-count {
    font-size: 13px;
    line-height: 20px;
  }
  .product-price-row {
    justify-content: flex-end;
    order: -1;
    margin: 26px auto 0;
  }
  .product-price-row > div {
    align-items: center;
    gap: 9px;
  }
  .product-old-price {
    font-size: 18px;
    line-height: 19px;
  }
  .product-old-price::before {
    top: 6.5px;
    height: 1.3px;
  }
  .product-price {
    font-size: 34px;
    line-height: 34px;
  }
  .product-discount-badge {
    right: -75px;
    border-radius: 25px;
    padding: 2px 8px 1px;
    font-size: 10px;
    line-height: 15px;
  }
  .add-to-cart-btn {
    display: block !important;
    width: 280px;
    margin: 22px auto 0;
    padding: 9px 0 8px;
    font-size: 15px;
    line-height: 25px;
    order: -1;
  }
  .stock-status {
    justify-content: center;
    margin-top: 4px;
    margin-left: 0;
  }
  .stock-status img {
    width: 21px;
    height: 21px;
  }
  .stock-status .stock-text {
    font-size: 14px;
    line-height: 27px;
  }
  .meta-info {
    margin-top: 32px;
  }
  .meta-info .meta-item {
    gap: 12px;
    margin-bottom: 16px;
  }
  .meta-info .meta-item .meta-icon {
    width: 27px;
  }
  .meta-info .meta-item span {
    font-size: 14px;
    line-height: 28px;
  }
  .product-guarantees {
    margin-top: 25px;
    padding: 18px 23px;
  }
  .product-guarantees .guarantee-list {
    gap: 15px;
  }
  .product-guarantees .guarantee-list li {
    gap: 10px;
  }
  .product-guarantees .guarantee-list li img {
    width: 19px;
    height: 15px;
  }
  .product-guarantees .guarantee-list li span {
    font-size: 14px;
    line-height: 15px;
  }
  .product-section {
    width: 100%;
    padding: 20px 25px;
  }
  .product-section-head {
    justify-content: initial;
  }
  .product-section-head > span {
    font-size: 20px;
    line-height: 25px;
  }
  .product-section-head > .rating-stars {
    margin-left: 6px;
  }
  .product-section-head > .rating-stars svg {
    width: 17px;
    height: 16px;
  }
  .product-section-icon {
    margin-left: auto;
  }
  .product-section-icon img {
    width: 18px;
  }
  .product-description .product-section-body > p {
    font-size: 16px;
    line-height: 25px;
  }
  .product-description .product-section-body > ul > li {
    font-size: 15px;
    line-height: 25px;
  }
  .product-specifications .specs-table {
    padding-right: 0;
  }
  .product-specifications .specs-table .specs-row span {
    font-size: 14px !important;
    line-height: 25px !important;
  }
  .product-reviews .review-items {
    gap: 0;
  }
  .product-reviews .review-items .review-item {
    margin-top: 15px;
    padding-top: 17px;
    border-top: 0.5px solid #cebfad;
  }
  .product-reviews .review-items .review-item:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .product-reviews .review-items .review-item > div .review-author {
    font-size: 15px;
    line-height: 13px;
  }
  .product-reviews .review-items .review-item > p {
    font-size: 14px;
    line-height: 24px;
  }
  .product-faq .faq-items .faq-item .question {
    font-size: 16px;
    line-height: 25px;
  }
  .product-faq .faq-items .faq-item .question::before {
    top: 2.5px;
    width: 3px;
  }
  .product-faq .faq-items .faq-item .answer {
    font-size: 14px;
    line-height: 24px;
  }
  .video-section {
    width: calc(100% - 80px);
    height: initial;
    margin: 42px auto 0;
  }
  .video-section img {
    display: block;
  }
  .video-section svg {
    width: 76px;
    height: 47px;
  }
  .why-choose-us {
    max-width: unset;
    margin-top: 47px;
    padding: 0 23px;
  }
  .why-choose-us > span {
    display: block;
    text-align: center;
    font-size: 24px;
    line-height: 25px;
  }
  .why-choose-us-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 33px;
    margin-top: 19px;
  }
  .why-choose-us-item span {
    margin-top: 8px;
    font-size: 16px;
    white-space: initial;
    text-align: center;
  }
  .why-choose-us-item img {
    display: block;
    margin: 0 auto;
  }
  .why-choose-us-item p {
    margin-top: 9px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
  }
  .guitar-checkup {
    width: 100%;
    margin-top: 40px;
    padding: 0 17px;
  }
  .checkup-title {
    text-align: center;
    font-size: 24px;
    line-height: 32px;
  }
  .checkup-title img {
    width: 27px;
  }
  .checkup-box {
    margin-top: 20px;
    padding: 18px 18px 18px 24px;
  }
  .checkup-list {
    gap: 17px;
  }
  .checkup-list li {
    gap: 14px;
  }
  .checkup-list li img {
    width: 22px;
    height: 22px;
  }
  .checkup-list li span {
    font-size: 15px;
    line-height: 17px;
  }
  .related-products-section {
    margin-top: 35px;
    padding: 0 25px;
  }
  .related-title {
    display: block;
    text-align: center;
    font-size: 24px;
    line-height: 25px;
  }
  .related-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    margin-top: 24px;
  }
  .related-card-thumb img {
    height: 230px;
  }
  .related-card-title {
    margin-top: 8px;
    font-size: 14px;
    line-height: 20px;
  }
  .related-card-prices {
    gap: 5px;
    margin-top: 12px;
  }
  .related-card-price {
    font-size: 12px;
    line-height: 20px;
  }
  .related-card-old-price {
    font-size: 10px;
    line-height: 20px;
  }
  .related-card .add-to-cart {
    top: 7px;
    right: 7px;
    width: 32px;
    height: 32px;
  }
  .related-card .add-to-cart img {
    width: 27px;
  }
  .ct-woocommerce-cart-form {
    gap: 0 !important;
  }
  #payment ul.wc_payment_methods {
    margin: 0 25px;
  }
  .woocommerce-checkout-payment .place-order button[type="submit"] {
    font-size: 17px;
    padding: 16px 50px;
    line-height: 1;
  }
  .woocommerce-checkout-review-order-table .checkout-product-name a {
    display: block;
    font-size: 14px;
  }
  .product-gallery-container {
    /* max-height: 466px; */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .product-reviews .review-items .reviews-gallery {
    gap: 20px;
  }

  /* Show custom pagination on mobile only */
  .custom-pagination-container {
    flex: 1;
    display: flex !important;
    justify-content: flex-start; /* Changed from center to flex-start */
    overflow: hidden;
    max-width: 124px; /* Width for 7 bullets instead of 8 */
    min-height: 24px; /* Ensure proper height */
    align-items: center;
    margin: 0 auto; /* Center the container itself */
    position: relative; /* For proper transform positioning */
  }

  .custom-pagination {
    display: flex;
    align-items: center;
    gap: 6px; /* Smaller gap for mobile */
    transition: transform 0.3s ease;
    overflow: visible;
    white-space: nowrap;
    padding: 5px 0;
  }

  .custom-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #797979;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
  }

  .custom-pagination-bullet:hover {
    background: #5a5a5a;
    transform: scale(1.1);
  }

  .custom-pagination-bullet.active {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.25);
    background: #371803;
  }

  /* Hide standard pagination on mobile */
  .product-gallery-controls .swiper-pagination {
    display: none !important;
  }

  [data-vertical-spacing*="top"] {
    padding-top: 0 !important;
  }
  [data-vertical-spacing*="bottom"] {
    padding-bottom: 0 !important;
  }
  .shop_table.cart .before_actions h3 {
    padding: 0 15px;
    font-weight: 600;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
  }
  .ct-woocommerce-checkout .section-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
  }
  .woocommerce-cart-form__contents .coupon input {
    text-align: center;
  }
  .ct-woocommerce-checkout #order_review_heading {
    font-size: 16px;
    line-height: 18px;
  }
  .ct-woocommerce-cart-form .cart_totals .wc-proceed-to-checkout a {
    padding: 10px 27px;
    font-size: 16px !important;
    line-height: 18px;
  }

  .product-section.product-reviews .rating-stars {
    display: flex;
    flex: 1;
    padding: 0 4px 4px;
    align-items: flex-start;
  }
}
