/*
 * Custom Product Configurator Styles
 */

article.product .product-configurator-wrapper { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 2em; margin-bottom: 40px; }
article.product .product-configurator-image { flex: 1; min-width: 300px; max-width: 50%; box-shadow: 0 0 10px rgba(0,0,0,0.1); padding: 15px; background-color: #fff; text-align: center; align-self: flex-start; }
article.product .product-configurator-image img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
article.product .product-configurator-options { flex: 1; min-width: 300px; max-width: 45%; padding: 20px; background-color: #f9f9f9; border: 1px solid #eee; box-sizing: border-box; }
.custom-product-form h3 { margin-top: 0; color: #333; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }
.garment-description { font-size: 0.9em; color: #555; margin: 5px 0 15px 0; padding: 0 5px; }
.details-collapsible { margin-bottom: 15px; }
.details-collapsible-trigger { background-color: #f1f1f1; color: #444; cursor: pointer; padding: 12px; width: 100%; border: 1px solid #ddd; text-align: left; outline: none; font-size: 1em; transition: background-color 0.3s ease; }
.details-collapsible-trigger:hover { background-color: #e9e9e9; }
.details-collapsible-trigger::after { content: '\25BC'; font-size: 0.8em; color: #777; float: right; margin-left: 5px; transition: transform 0.3s ease; }
.details-collapsible-trigger.active::after { transform: rotate(180deg); }
.details-collapsible-content { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: #ffffff; border: 1px solid #ddd; border-top: none; white-space: pre-wrap; }
.custom-price-display { font-size: 1.3em; font-weight: bold; margin-top: 25px; margin-bottom: 25px; color: #222; }
.custom-price-display .full-price.strikethrough { text-decoration: line-through; color: #999; font-size: 0.8em; margin-right: 10px; }
.custom-price-display .sale-price { color: #c00; }
.sku-display-wrapper { font-size: 0.9em; color: #555; margin-top: -20px; margin-bottom: 20px; }
.cart-message { margin-top: 15px; }
.cart-message p { padding: 10px; border-radius: 4px; text-align: center; margin: 0; }
.cart-message.success p { color: #155724; background-color: #d4edda; }
.cart-message.error p { color: #721c24; background-color: #f8d7da; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; }
.color-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ddd; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; }
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.selected { border-color: #0073aa; box-shadow: 0 0 5px rgba(0, 115, 170, 0.5); }
.color-swatch[style*="#FFFFFF"] { border-color: #ccc; }
.color-swatch[style*="#FFFFFF"].selected { border-color: #0073aa; }
.form-field-inline { display: flex; align-items: center; gap: 15px; }
.form-field-inline label { margin-bottom: 0; flex-shrink: 0; }
.form-field-inline .color-swatches { margin-top: 0; }
.image-zoom-container { position: relative; overflow: hidden; cursor: zoom-in; margin: 0 auto; border: 1px solid #eee; max-width: 768px; }
#initial-image-zoom-container { margin-top: 0; max-width: 100%; border: none; }
#configured-image-zoom-container { min-height: 350px; background-color: #fff; }
#full-print-image-container { border: 1px solid #eee; }
.image-zoom-container img { transition: transform 0.2s ease-out; }
.image-zoom-container:hover img { transform: scale(2.5); }
article.product #configured-image-preview { position: relative !important; width: 100%; background-color: #fff; padding: 0; margin: 0 !important; max-width: 768px !important; }
article.product #configured-image-preview img { display: block; width: 100%; height: auto; }
article.product #configured-image-preview #garment-base-image { position: relative; z-index: 1; }
article.product #configured-image-preview #design-overlay-image { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; z-index: 2; pointer-events: none; }
.external-design-links { margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee; text-align: center; }
.external-design-links h4 { margin-top: 0; margin-bottom: 10px; font-size: 1em; color: #555; font-weight: normal; }
.external-design-links .external-link { display: inline-block; margin: 5px; padding: 8px 15px; border-radius: 4px; text-decoration: none; font-weight: bold; color: #fff; transition: opacity 0.3s ease; position: relative; overflow: hidden; }
.external-design-links .external-link:hover { opacity: 0.85; }
.external-design-links .redbubble { background-color: #e81922; }
.external-design-links .threadless { background-color: #000000; }
.external-design-links .teepublic { background-color: #4880c2; }
.external-link .sale-icon { position: absolute; top: -10px; right: -10px; background-color: #ffc107; color: #000; padding: 15px 10px 5px; font-size: 10px; line-height: 1; transform: rotate(45deg); box-shadow: 0 0 5px rgba(0,0,0,0.3); font-weight: bold; }
.brand-showcase-link { display: block; text-align: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
.brand-showcase-link a { text-decoration: none; font-weight: bold; color: #333; transition: color 0.2s ease; }
.brand-showcase-link a:hover { color: #0073aa; }
.related-products-section { margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; clear: both; background-color: #111; }
.related-products-section h2 { text-align: center; margin-bottom: 25px; color: #eee; }
.related-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 15px; }
.related-product-item { text-align: center; }
.related-product-item > a { display: block; border: none; background-color: #fff; transition: box-shadow 0.3s ease, transform 0.3s ease; margin-bottom: 10px; }
.related-product-item > a:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.related-product-item img { width: 100%; height: auto; display: block; }
.related-product-info { padding: 0 10px; }
.related-product-title { font-size: 1em; margin: 0 0 5px 0; }
.related-product-title a { text-decoration: none; color: #ababab; border: none; margin-bottom: 0; }
.related-product-title a:hover { color: #0073aa; }
.related-product-categories { font-size: 0.85em; color: #777; }
.related-product-categories a { color: #f18200; text-decoration: none; border: none; margin-bottom: 0; }
.related-product-categories a:hover { color: #0073aa; text-decoration: underline; }
.details-collapsible-content table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.details-collapsible-content th, .details-collapsible-content td { border: 1px solid #ddd; padding: 8px; text-align: left; }
.details-collapsible-content th { background-color: #f2f2f2; }
.fp-nav-container { text-align: center; margin-top: 15px; }
.fp-nav-btn { background-color: #f1f1f1; color: #333; border: 1px solid #ccc; padding: 8px 16px; font-size: 14px; font-weight: bold; cursor: pointer; transition: background-color 0.2s ease; margin: 0 5px; border-radius: 4px; }
.fp-nav-btn:hover { background-color: #e1e1e1; }
.fp-nav-btn:disabled { background-color: #f9f9f9; color: #aaa; cursor: not-allowed; }
.image-disclaimer { font-size: 0.8em; color: #777; text-align: center; margin-top: 15px; font-style: italic; }
@media (max-width: 768px) {
    article.product .product-configurator-wrapper { flex-direction: column-reverse !important; }
    article.product .product-configurator-image, article.product .product-configurator-options { max-width: 100%; }
    .related-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .related-products-grid { grid-template-columns: 1fr; } }
#design-variation-container {
    margin-bottom: 20px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#design-variation-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9em;
}

.variation-swatches {
    display: flex;
    gap: 10px;
}

.variation-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #f1f1f1;
    cursor: pointer;
    font-size: 0.85em;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.variation-btn:hover {
    background: #e9e9e9;
}

.variation-btn.selected {
    background: #333;
    color: #fff;
    border-color: #333;
}

