/*
Theme Name: Martfury Child
Template: martfury
Description: Custom child theme for Martfury with product page redesign.
Author: Salman
Version: 1.2
*/

/* === Custom Single Product Page Styling === */

.custom-single-product {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
  align-items: flex-start;
  background-color: #fff;
}

.csp-image {
  flex: 1 1 45%;
  text-align: center;
}

.csp-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.csp-info {
  flex: 1 1 45%;
}

.csp-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
}

.csp-price {
  font-size: 22px;
  font-weight: 500;
  color: #e63946;
  margin-bottom: 20px;
}

/* === Short Description Box === */

.csp-short-desc-box {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

/* === Add to Cart + Share Button === */

.csp-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.csp-add-to-cart button,
.csp-add-to-cart .single_add_to_cart_button {
  font-size: 16px !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
}

.csp-share-btn {
  background-color: #0073aa;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.csp-share-btn:hover {
  background-color: #005f8a;
}

/* === Share Popup === */

.share-popup {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.share-popup-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  animation: zoomIn 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.share-popup-content h3 {
  margin-bottom: 1rem;
  color: #222;
  font-size: 20px;
  font-weight: 600;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 1.6rem;
  color: #666;
  transition: 0.3s;
}

.close-popup:hover {
  color: #000;
}

.share-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.share-icons a,
.share-icons button {
  display: inline-block;
  margin: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
}

.share-icons a:hover,
.share-icons button:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Platform Colors */
.share-whatsapp {
  background: #25d366;
}

.share-facebook {
  background: #3b5998;
}

.share-linkedin {
  background: #0077b5;
}

.share-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

#copy-link {
  background: #444;
}

/* === Animations === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* === Tabs Section === */

.csp-tabs {
  margin-top: 40px;
  background: #fafafa;
  border-radius: 8px;
  padding: 15px;
}

.csp-tab-nav {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
}

.csp-tab-nav li {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 6px 6px 0 0;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.csp-tab-nav li:hover {
  background: #f1f1f1;
  color: #0073aa;
}

.csp-tab-nav li.active {
  background: #fff;
  border: 1px solid #ddd;
  border-bottom: none;
  color: #0073aa;
}

.csp-tab {
  display: none;
  padding: 15px 10px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  border: 1px solid #ddd;
  border-top: none;
}

.csp-tab.active {
  display: block;
}

/* === Reviews Section === */

.csp-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.csp-review {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.csp-review strong {
  font-size: 15px;
  color: #222;
}

.csp-review div {
  color: #555;
  font-size: 14px;
}

/* === More Products Grid === */

.csp-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.csp-more-item {
  text-align: center;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  transition: all 0.3s ease;
  background: #fff;
}

.csp-more-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.csp-more-item img {
  max-width: 100%;
  border-radius: 6px;
}

.csp-more-item h4 {
  font-size: 15px;
  margin-top: 8px;
  color: #222;
}

.csp-more-item div {
  color: #e63946;
  font-weight: 500;
}

/* === FAQ Section === */

.csp-faq {
  margin-bottom: 15px;
}

.csp-faq h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.csp-faq p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

/* === Responsive Design === */

@media (max-width: 768px) {
  .custom-single-product {
    flex-direction: column;
  }

  .csp-image,
  .csp-info {
    flex: 1 1 100%;
  }

  .csp-tab-nav {
    flex-wrap: wrap;
  }

  .csp-tab-nav li {
    flex: 1 1 48%;
    text-align: center;
  }

  .share-popup-content {
    width: 95%;
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .csp-tab-nav li {
    flex: 1 1 100%;
  }

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

  .csp-share-btn {
    width: 100%;
  }
}






















.csp-image {
  text-align: center;
  margin-bottom: 15px;
}

.csp-main-image {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  transition: 0.3s ease;
}

.csp-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.csp-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.csp-thumb.active,
.csp-thumb:hover {
  border: 2px solid #0073aa;
}














div.mf-compare-button{
	display: none;
}













.csp-fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.csp-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.csp-fullscreen-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.csp-fullscreen-modal.active {
  display: flex;
}

.csp-fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.csp-close-fullscreen {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;






/* === Tabs Section === */
.csp-tabs {
  margin-top: 50px;
  background: #fafafa;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.csp-tab-nav {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-bottom: 2px solid #ddd;
  overflow-x: auto;
}

.csp-tab-nav li {
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 8px 8px 0 0;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.csp-tab-nav li:hover {
  background: #f1f1f1;
  color: #0073aa;
}

.csp-tab-nav li.active {
  background: #fff;
  border: 1px solid #ddd;
  border-bottom: none;
  color: #0073aa;
}

.csp-tab-content {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  padding: 20px;
}

/* Hide inactive tabs */
.csp-tab {
  display: none;
}

.csp-tab.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Reviews List */
.csp-review-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.csp-review {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.csp-review strong {
  font-size: 15px;
  color: #222;
}

.csp-review div {
  color: #555;
  font-size: 14px;
}

/* More Products Grid */
.csp-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.csp-more-item {
  text-align: center;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  transition: all 0.3s ease;
}

.csp-more-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.csp-more-item img {
  max-width: 100%;
  border-radius: 6px;
}

.csp-more-item h4 {
  font-size: 15px;
  margin-top: 8px;
  color: #222;
}

.csp-more-item div {
  color: #e63946;
  font-weight: 500;
}

/* FAQ Section */
.csp-faq {
  margin-bottom: 15px;
}

.csp-faq h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.csp-faq p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .csp-tab-nav {
    flex-wrap: wrap;
  }

  .csp-tab-nav li {
    flex: 1 1 48%;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .csp-tab-nav li {
    flex: 1 1 100%;
  }























/* Attributes block */
.csp-attributes-block {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.csp-attribute {
  background: #fff;
  border: 1px solid #eee;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
}

.csp-attribute strong {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

.woocommerce-variation-add-to-cart .variations {
  margin-bottom: 12px;
}

/* Make select elements match your theme */
.csp-add-to-cart select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  min-width: 160px;
}

/* Improve mobile stacking */
@media (max-width: 640px) {
  .csp-attributes-block { gap: 8px; }
  .csp-attribute { flex: 1 1 100%; }
}










.csp-attr-select-wrap { display:inline-block; margin-right:10px; }
.csp-attr-select-wrap.has-value select { border-color: #0073aa; box-shadow: 0 0 0 3px rgba(0,115,170,0.06); }