/* =============================================
   SHOP & PRODUCT PAGE STYLES
   Matches The Tin Plate dark theme
============================================= */

/* --- Featured Product Section (Homepage) --- */

.shop_featured_section {
  position: relative;
  overflow: hidden;
}

.shop_featured_inner {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
  border: 1px solid rgba(200, 63, 70, 0.3);
  border-radius: 20px;
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.shop_featured_inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 63, 70, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.shop_featured_badge {
  display: inline-block;
  background: var(--primary-red);
  color: #fff;
  font-family: var(--font-bebas);
  font-size: 16px;
  letter-spacing: 3px;
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 25px;
}

.shop_featured_img {
  text-align: center;
  padding: 20px;
}

.shop_featured_img img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s ease;
}

.shop_featured_img:hover img {
  transform: scale(1.05);
}

.shop_featured_text .sub_text {
  font-family: var(--font-playball);
  color: var(--primary-red);
  font-size: 24px;
  display: block;
  margin-bottom: 5px;
}

.shop_featured_text h2 {
  font-family: var(--font-bebas);
  font-size: 48px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.shop_featured_text p {
  color: var(--text-grey);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.shop_featured_price {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.shop_featured_price .price {
  font-family: var(--font-bebas);
  font-size: 42px;
  color: var(--primary-red);
  letter-spacing: 1px;
}

.shop_featured_price .size {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-grey);
  font-family: var(--font-bebas);
  font-size: 18px;
  padding: 4px 14px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.shop_featured_price .plus_shipping {
  color: var(--text-grey);
  font-size: 14px;
}


/* --- Product Page --- */

.product_page_section {
  padding: 140px 0 80px 0;
  min-height: 100vh;
}

.product_breadcrumb {
  margin-bottom: 30px;
}

.product_breadcrumb a {
  color: var(--text-grey);
  font-size: 14px;
  transition: color 0.3s;
}

.product_breadcrumb a:hover {
  color: var(--primary-red);
}

.product_breadcrumb span {
  color: var(--text-grey);
  font-size: 14px;
  margin: 0 8px;
}

.product_breadcrumb .current {
  color: #fff;
}

/* Product Gallery */
.product_gallery {
  position: sticky;
  top: 120px;
}

.product_gallery .main_image {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
  border: 1px solid rgba(105, 105, 105, 0.3);
  border-radius: 16px;
  overflow: hidden;
  padding: 30px;
  text-align: center;
  margin-bottom: 15px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product_gallery .main_image img {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product_gallery .main_image:hover img {
  transform: scale(1.03);
}

.product_gallery .thumbnail_row {
  display: flex;
  gap: 12px;
}

.product_gallery .thumb {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(105, 105, 105, 0.3);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 8px;
  background: rgba(30, 30, 30, 0.9);
  transition: all 0.3s ease;
}

.product_gallery .thumb:hover,
.product_gallery .thumb.active {
  border-color: var(--primary-red);
}

.product_gallery .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Product Details */
.product_details {
  padding-left: 30px;
}

.product_badge {
  display: inline-block;
  background: rgba(200, 63, 70, 0.15);
  color: var(--primary-red);
  font-family: var(--font-bebas);
  font-size: 16px;
  letter-spacing: 2px;
  padding: 4px 16px;
  border-radius: 6px;
  border: 1px solid rgba(200, 63, 70, 0.3);
  margin-bottom: 15px;
}

.product_details h1 {
  font-family: var(--font-bebas);
  font-size: 42px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.product_price_tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(105, 105, 105, 0.3);
}

.product_price_tag .amount {
  font-family: var(--font-bebas);
  font-size: 48px;
  color: var(--primary-red);
  letter-spacing: 1px;
  line-height: 1;
}

.product_price_tag .shipping_text {
  color: var(--text-grey);
  font-size: 14px;
}

.product_description {
  margin-bottom: 30px;
}

.product_description p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.product_description .tagline {
  font-family: var(--font-bebas);
  font-size: 22px;
  color: var(--primary-red);
  letter-spacing: 1px;
  margin-top: 15px;
}

/* Quantity Selector */
.product_actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.quantity_selector {
  display: flex;
  align-items: center;
  border: 1px solid rgba(105, 105, 105, 0.5);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(30, 30, 30, 0.9);
}

.quantity_selector button {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity_selector button:hover {
  background: rgba(200, 63, 70, 0.2);
  color: var(--primary-red);
}

.quantity_selector input {
  width: 50px;
  height: 48px;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(105, 105, 105, 0.3);
  border-right: 1px solid rgba(105, 105, 105, 0.3);
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-family: var(--font-bebas);
  letter-spacing: 1px;
  -moz-appearance: textfield;
}

.quantity_selector input::-webkit-outer-spin-button,
.quantity_selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity_selector input:focus {
  outline: none;
}

/* Buy Now Button */
.buy_now_btn {
  flex: 1;
  min-width: 200px;
  padding: 14px 35px !important;
  font-size: 22px !important;
  text-align: center;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.buy_now_btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.buy_now_btn .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.buy_now_btn.loading .spinner {
  display: inline-block;
}

.buy_now_btn.loading .btn_text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Shipping & Trust */
.shipping_note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-grey);
  font-size: 14px;
  padding: 15px 0;
  border-top: 1px solid rgba(105, 105, 105, 0.2);
  margin-top: 10px;
}

.shipping_note i {
  font-size: 20px;
  color: var(--primary-red);
}

.trust_badges {
  display: flex;
  gap: 25px;
  padding: 15px 0;
  border-top: 1px solid rgba(105, 105, 105, 0.2);
  flex-wrap: wrap;
}

.trust_badges span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-grey);
  font-size: 13px;
}

.trust_badges span i {
  font-size: 18px;
  color: #4caf50;
}

/* Product Features Section */
.product_features {
  padding: 60px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(105, 105, 105, 0.2);
}

.feature_card {
  text-align: center;
  padding: 30px 20px;
}

.feature_card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: rgba(200, 63, 70, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature_card .icon i {
  font-size: 26px;
  color: var(--primary-red);
}

.feature_card h4 {
  font-family: var(--font-bebas);
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.feature_card p {
  color: var(--text-grey);
  font-size: 14px;
  line-height: 1.6;
}


/* --- Checkout Success / Cancel Pages --- */

.checkout_result_section {
  padding: 180px 0 100px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.checkout_result_card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
  border: 1px solid rgba(105, 105, 105, 0.3);
  border-radius: 20px;
  padding: 50px 40px;
}

.checkout_result_card .result_icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.checkout_result_card .result_icon.success {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 2px solid rgba(76, 175, 80, 0.3);
}

.checkout_result_card .result_icon.cancelled {
  background: rgba(255, 152, 0, 0.15);
  color: #ff9800;
  border: 2px solid rgba(255, 152, 0, 0.3);
}

.checkout_result_card h1 {
  font-family: var(--font-bebas);
  font-size: 42px;
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.checkout_result_card p {
  color: var(--text-grey);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.checkout_result_card .result_actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.checkout_result_card .btn_outline {
  padding: 14px 30px;
  border: 1px solid rgba(105, 105, 105, 0.5);
  background: transparent;
  color: #fff;
  font-family: var(--font-bebas);
  font-size: 18px;
  letter-spacing: 1px;
  border-radius: 10px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.checkout_result_card .btn_outline:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}


/* --- Responsive --- */

@media screen and (max-width: 1200px) {
  .shop_featured_text h2 {
    font-size: 40px;
  }
  .product_details h1 {
    font-size: 36px;
  }
}

@media screen and (max-width: 992px) {
  .shop_featured_inner {
    padding: 40px 30px;
  }

  .shop_featured_text h2 {
    font-size: 36px;
  }

  .product_page_section {
    padding: 120px 0 60px 0;
  }

  .product_details {
    padding-left: 0;
    margin-top: 30px;
  }

  .product_gallery {
    position: relative;
    top: auto;
  }

  .product_gallery .main_image {
    min-height: 300px;
  }
}

@media screen and (max-width: 767px) {
  .shop_featured_inner {
    padding: 30px 20px;
    text-align: center;
  }

  .shop_featured_text h2 {
    font-size: 32px;
  }

  .shop_featured_price {
    justify-content: center;
  }

  .shop_featured_img {
    padding: 10px;
    margin-bottom: 20px;
  }

  .shop_featured_img img {
    max-height: 280px;
  }

  .product_page_section {
    padding: 110px 0 50px 0;
  }

  .product_details h1 {
    font-size: 30px;
  }

  .product_price_tag .amount {
    font-size: 40px;
  }

  .product_gallery .main_image {
    min-height: 250px;
    padding: 20px;
  }

  .product_gallery .main_image img {
    max-height: 300px;
  }

  .product_actions {
    flex-direction: column;
  }

  .buy_now_btn {
    width: 100%;
  }

  .quantity_selector {
    width: 100%;
    justify-content: center;
  }

  .quantity_selector input {
    flex: 1;
  }

  .checkout_result_section {
    padding: 130px 0 60px 0;
  }

  .checkout_result_card {
    padding: 40px 25px;
    margin: 0 15px;
  }

  .checkout_result_card h1 {
    font-size: 34px;
  }

  .feature_card {
    padding: 20px 15px;
  }

  .trust_badges {
    justify-content: center;
  }

  .shipping_note {
    justify-content: center;
  }
}

@media screen and (max-width: 479px) {
  .shop_featured_text h2 {
    font-size: 28px;
  }

  .shop_featured_price .price {
    font-size: 36px;
  }

  .product_details h1 {
    font-size: 26px;
  }

  .product_price_tag .amount {
    font-size: 36px;
  }

  .checkout_result_card h1 {
    font-size: 28px;
  }
}
