/* CTE Custom Single Product Styles */
.cte-single-product h1, 
.cte-single-product h2, 
.cte-single-product h3, 
.cte-single-product h4, 
.cte-single-product h5, 
.cte-single-product h6 {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.cte-single-product .text-price {
  color: #dc2626;
  font-weight: 700;
}

.cte-single-product .line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cte-single-product .hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.cte-single-product .hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cte-single-product .glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cte-single-product .safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

.cte-single-product .aspect-product {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.cte-single-product button, 
.cte-single-product a, 
.cte-single-product input {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cte-single-product .shadow-soft {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

/* Modal for Fullscreen Image */
#cte-image-modal.active {
    display: flex;
}

/* Collapse/Expand for Product Content */
.product-content-collapsed {
    max-height: 15rem; /* ~240px */
    overflow: hidden;
    position: relative;
}

.product-content-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    background: linear-gradient(transparent, white);
}

.product-content-expanded {
    max-height: none;
}

/* WooCommerce Variable Form Styling */
.cte-variable-form-wrapper .variations {
    width: 100%;
}
.cte-variable-form-wrapper .variations td {
    padding: 8px 0;
    display: block;
}
.cte-variable-form-wrapper .variations label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 4px;
    display: block;
}
.cte-variable-form-wrapper select {
    width: 100%;
    height: 48px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m19 9-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}
.cte-variable-form-wrapper .single_variation_wrap {
    margin-top: 16px;
}
.cte-variable-form-wrapper .woocommerce-variation-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 16px;
}
.cte-variable-form-wrapper .woocommerce-variation-availability {
    font-size: 0.75rem;
    color: #059669;
    margin-bottom: 12px;
}
.cte-variable-form-wrapper .quantity {
    display: none !important;
}
.cte-variable-form-wrapper .single_add_to_cart_button {
    display: none !important;
}

/* Fix for standard WooCommerce messages */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.875rem;
    margin-bottom: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
