/* Make product page full-width and hide sidebars (GeneratePress and most themes) */
.single-product #right-sidebar,
.single-product #left-sidebar,
.single-product .sidebar {
  display: none !important;
}
.single-product .site-content .content-area {
  float: none;
  width: 100% !important;
}

/* Enlarge the product images area and add modern container border */
.single-product div.product .woocommerce-product-gallery {
  position: relative;
  max-width: 880px; /* wider gallery container */
  border: 2px solid #e6e8ec;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

/* Main image wrapper border for clarity */
/* Remove inner border on main image wrapper */
.single-product div.product .woocommerce-product-gallery__wrapper {
  border: 0;
  border-radius: 6px;
  overflow: hidden;
}

/* Space thumbnails and give them clean look */
.single-product div.product .flex-control-nav.flex-control-thumbs {
  margin-top: 12px;
  display: flex;               /* center thumbnails */
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding-left: 0;
}
.single-product div.product .flex-control-nav.flex-control-thumbs li {
  margin: 8px;
  float: none;                 /* override theme/flexslider float */
}
.single-product div.product .flex-control-nav.flex-control-thumbs img {
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 4px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover state */
.single-product div.product .flex-control-nav.flex-control-thumbs img:hover {
  border-color: #c7d2fe; /* light indigo */
}

/* Active/selected thumbnail (Woo adds .flex-active to the <img>) */
.single-product div.product .flex-control-nav.flex-control-thumbs img.flex-active {
  border-color: #2563eb; /* modern blue */
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Make the main image slightly larger within the area */
.single-product div.product .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
}

/* Hide the zoom/search icon overlay on main image */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  display: none !important;
}

/* Reduce top spacing of gallery container */
.single-product div.product .woocommerce-product-gallery { margin-top: 8px; }

/* Breadcrumb styling */
.single-product nav.woocommerce-breadcrumb {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: #154681 !important;
  background: #a3d7ff !important;
  border: 1px solid #a3d7ff !important; /* thin border */
  border-radius: 4px !important; /* reduced radius */
  padding: 6px 10px !important;
  margin-bottom: 8px !important;
  font-size: 14px;
}
.single-product .woocommerce-breadcrumb a,
.single-product .woocommerce-breadcrumb a:visited,
.single-product .woocommerce-breadcrumb a:hover,
.single-product .woocommerce-breadcrumb a:focus {
  color: #154681 !important;
  text-decoration: none !important;
}

.single-product .sdwg-features {
  margin-top: 6px;
  margin-bottom: 10px;
}
.single-product .sdwg-features .sdwg-feature {
  margin: 0 0 4px 0;
  color: #111827;
}
.single-product .sdwg-features .sdwg-feature strong {
  color: #154681;
}

/* Order CTA + Modal */
.single-product .sdwg-order { margin: 12px 0 8px; }
.single-product .sdwg-order-btn {
  display: inline-block;
  background: #1e73be;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
}
.single-product .sdwg-order-btn:hover { background: #155a92; }

.single-product .sdwg-modal { display: none; position: fixed; inset: 0; z-index: 9999; }
.single-product .sdwg-modal.is-open { display: block; }
.single-product .sdwg-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.single-product .sdwg-modal__dialog {
  position: relative;
  max-width: 680px;
  margin: 8vh auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.single-product .sdwg-modal__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8fafc; /* light background */
  color: #111827; /* dark X */
  font-size: 20px;
  padding: 0 !important; /* override global button padding */
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.single-product .sdwg-modal__close:hover,
.single-product .sdwg-modal__close:focus {
  background: #e5e7eb;
  color: #111827;
  outline: none;
}
.single-product .sdwg-contact-icons { display: flex; gap: 14px; margin: 16px 0 10px; }
.single-product .sdwg-ic { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #f3f4f6; font-size: 24px; text-decoration: none; }
.single-product .sdwg-ic--whatsapp { background: #25d366; }
.single-product .sdwg-ic--email { background: #4285F4; }
.single-product .sdwg-ic--phone { background: #111827; }
.single-product .sdwg-ic span, .single-product .sdwg-ic svg { filter: none; }
.single-product .sdwg-contact-number { margin-top: 14px; }
.single-product .sdwg-phone { font-size: 16px; margin-top: 8px; }
.single-product .sdwg-phone a {
  display: inline-block;
  margin: 6px 8px 0 0;
  padding: 6px 10px;
  border: 1px solid #e6e8ec;
  border-radius: 6px;
  background: #f8fafc;
  color: #154681;
  text-decoration: none !important;
}
.single-product .sdwg-phone a:hover {
  background: #eaf4ff;
  border-color: #a3d7ff;
}

/* Share row */
.single-product .sdwg-share { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.single-product .sdwg-featurelist { list-style: disc; padding-left: 18px; }

/* WooCommerce tabs wrapper styling - Clean Design with borders */
.single-product .woocommerce-tabs.wc-tabs-wrapper {
  border: 2px solid #d3d5db;
  border-radius: 0 0 8px 8px;
  background: #fff;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-shadow: none;
}
.single-product .woocommerce-tabs .tabs {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e6e8ec;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
}
.single-product .woocommerce-tabs .tabs li {
  list-style: none;
  margin: 0;
  flex-shrink: 0;
  min-width: fit-content;
  position: relative;
}
.single-product .woocommerce-tabs .tabs li a {
  display: inline-block;
  padding: 16px 24px;
  border-radius: 0;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  border: none;
  border-right: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.single-product .woocommerce-tabs .tabs li:last-child a {
  border-right: none;
}

/* Override all default WooCommerce tab styling */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a.active,
.single-product .woocommerce-tabs .tabs li.active a {
  background: #1e40af !important;
  color: #ffffff !important;
  outline: none !important;
  border: none !important;
  border-right: 1px solid #1e40af !important;
  position: relative;
  z-index: 2;
  font-weight: 600 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* Remove all default WooCommerce borders and styling */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  border: none !important;
  border-right: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  padding: 16px 24px !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Override WooCommerce default active state */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
.single-product .woocommerce-tabs .panel {
  margin: 0;
  padding: 20px 24px !important;
  background: #ffffff;
  border-radius: 0;
  min-height: auto;
  border: none;
  border-top: none;
}

/* Ensure all content inside tabs has proper padding */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel *,
.single-product .woocommerce-tabs .panel * {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Override any default WooCommerce content styling */
.woocommerce div.product .woocommerce-tabs .panel {
  padding: 20px 24px !important;
}

/* Hide duplicate headings in tab content */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2:first-child,
.single-product .woocommerce-tabs .panel h2:first-child {
  display: none;
}

/* Remove any internal borders or lines in content */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel hr,
.single-product .woocommerce-tabs .panel hr {
  display: none;
}

/* Remove any table borders that might create internal lines */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel table,
.single-product .woocommerce-tabs .panel table {
  border: none;
  border-collapse: separate;
  border-spacing: 0;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel table td,
.single-product .woocommerce-tabs .panel table td {
  border: none;
  border-bottom: none;
}

/* Mobile responsive tabs */
@media (max-width: 768px) {
  .single-product .woocommerce-tabs .tabs {
    gap: 4px;
    padding: 0 0 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .single-product .woocommerce-tabs .tabs::-webkit-scrollbar {
    display: none;
  }
  
  .single-product .woocommerce-tabs .tabs li {
    flex-shrink: 0;
  }
  
  .single-product .woocommerce-tabs .tabs li a {
    padding: 10px 16px;
    font-size: 13px;
    min-width: max-content;
  }
  
  .single-product .woocommerce-tabs.wc-tabs-wrapper {
    padding: 12px;
    margin: 0 10px;
    border-left: 1px solid #e6e8ec;
    border-right: 1px solid #e6e8ec;
    border-bottom: 1px solid #e6e8ec;
  }
}

@media (max-width: 480px) {
  .single-product .woocommerce-tabs .tabs li a {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .single-product .woocommerce-tabs .tabs {
    gap: 2px;
  }

  /* Share row: keep label and icons tidy on one line where possible */
  .single-product .sdwg-share { gap: 8px; }
  .single-product .sdwg-share__label { white-space: nowrap; }
  .single-product .sdwg-share__icons { flex-wrap: nowrap; }
}

/* Modern Mobile Details Section - Hide on desktop, show only on mobile */
.single-product .mobile-details-toggle {
  display: none; /* Hide by default on desktop */
}

@media (max-width: 768px) {
  .single-product .woocommerce-tabs.wc-tabs-wrapper {
    display: none; /* Hide default tabs on mobile */
  }
  
  .single-product .mobile-details-toggle {
    display: block; /* Show only on mobile */
  }
  
  /* Mobile Details Toggle */
  .single-product .mobile-details-toggle {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 16px 0; /* full-width on mobile (no side margins) */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  .single-product .mobile-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .single-product .mobile-details-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  }
  
  .single-product .mobile-details-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
  }
  
  .single-product .mobile-details-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff; /* white arrow circle */
    border: 1px solid #2c5aa0;
    border-radius: 50%;
    transition: transform 0.3s ease;
  }
  
  .single-product .mobile-details-arrow svg {
    width: 12px;
    height: 12px;
    fill: #2c5aa0; /* blue icon on white circle */
    transition: transform 0.3s ease;
  }
  
  .single-product .mobile-details-toggle.active .mobile-details-arrow svg {
    transform: rotate(180deg);
  }
  
  .single-product .mobile-details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .single-product .mobile-details-toggle.active .mobile-details-content {
    max-height: 1000px;
  }
  
  .single-product .mobile-details-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .single-product .mobile-details-tab {
    flex: 1;
    padding: 14px 16px;
    text-align: center;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .single-product .mobile-details-tab.active {
    color: #2c5aa0;
    background: #ffffff;
  }
  
  .single-product .mobile-details-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #2c5aa0;
  }
  
  .single-product .mobile-details-panel {
    display: none;
    padding: 20px;
    background: #ffffff;
  }
  
  .single-product .mobile-details-panel.active {
    display: block;
  }
  
  /* Remove duplicate panel headings like "Description" on mobile */
  .single-product .mobile-details-panel > h1:first-child,
  .single-product .mobile-details-panel > h2:first-child,
  .single-product .mobile-details-panel > h3:first-child {
    display: none !important;
  }
  
  .single-product .mobile-details-panel h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
  }
  
  .single-product .mobile-details-panel p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 12px 0;
  }
  
  .single-product .mobile-details-panel table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
  }
  
  .single-product .mobile-details-panel table th,
  .single-product .mobile-details-panel table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
  }
  
  .single-product .mobile-details-panel table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
  }
  
  .single-product .mobile-details-panel table td {
    color: #64748b;
  }
}

.single-product .sdwg-share__label { font-weight: 600; color: #111827; }
.single-product .sdwg-share__icons { display: flex; gap: 10px; }
.single-product .sdwg-sh { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; text-decoration: none; }
.single-product .sdwgs-fb { background: #1877f2; }
.single-product .sdwgs-mail { background: #6b7280; }
.single-product .sdwgs-gmail { background: #ea4335; }
.single-product .sdwgs-telegram { background: #27a7e7; }
.single-product .sdwgs-whatsapp { background: #25d366; }

/* Hide any slider arrows on product gallery thumbnails */
.single-product div.product .woocommerce-product-gallery .flex-direction-nav,
.single-product div.product .woocommerce-product-gallery .flex-direction-nav a,
.single-product div.product .woocommerce-product-gallery .flex-nav-prev,
.single-product div.product .woocommerce-product-gallery .flex-nav-next {
  display: none !important;
}

/* Hide default pager dots if they appear */
.single-product div.product .woocommerce-product-gallery .flex-control-paging { display: none !important; }

/* Hide theme's generic post navigation on product pages if it appears */
.single-product .post-navigation,
.single-product .navigation.post-navigation {
  display: none;
}


/* Latest Products Grid */
.sdwg-latest-products {
    margin: 40px 0;
    padding: 0 20px;
}

.sdwg-latest-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    color: #154681;
    margin-bottom: 30px;
    position: relative;
}

.sdwg-latest-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #a3d7ff;
    margin: 15px auto 0;
    border-radius: 2px;
}

.sdwg-latest-grid {
    display: grid;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.sdwg-latest-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.sdwg-latest-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.sdwg-latest-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.sdwg-latest-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e6e8ec;
}

.sdwg-latest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sdwg-latest-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sdwg-latest-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.sdwg-latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sdwg-latest-item:hover .sdwg-latest-image img {
    transform: scale(1.05);
}

.sdwg-latest-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 15px 20px 10px;
    color: #154681;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
  line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sdwg-latest-price {
    margin: 0 20px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c5aa0;
}

.sdwg-latest-price del {
    color: #999;
    font-weight: 400;
    margin-right: 8px;
}

.sdwg-latest-price ins {
    text-decoration: none;
    color: #2c5aa0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sdwg-latest-products {
        padding: 0 15px;
        margin: 30px 0;
    }
    
    .sdwg-latest-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .sdwg-latest-grid--4,
    .sdwg-latest-grid--3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sdwg-latest-name {
        font-size: 1rem;
        margin: 12px 15px 8px;
    }
    
    .sdwg-latest-price {
        margin: 0 15px 15px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .sdwg-latest-grid--4,
    .sdwg-latest-grid--3,
    .sdwg-latest-grid--2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sdwg-latest-title {
        font-size: 1.6rem;
    }
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
}

/* Related Products Section Spacing */
.single-product .related.products {
  margin-top: 40px !important;
  padding-top: 20px !important;
}

.woocommerce div.product .related.products {
  margin-top: 40px !important;
  padding-top: 20px !important;
}