/* ==========================================================================
   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   1.0 - Product Swatch Option Styles
   2.0 - Policy & SEO Content Layout Containers
   3.0 - Typography Rules (Headings & Text)
   4.0 - Callout Boxes & Highlight Components
   5.0 - Tables & FAQ Accordion Components
   6.0 - Custom Page Layouts (About Us & Banners)
   7.0 - Product Detail Page (PDP) Custom Layout
       7.1 - PDP Short Description Widget
       7.2 - Step 1/2/3 PDP Custom Form, Drag & Drop Upload & Card UI
   8.0 - Responsive & Media Queries
   ========================================================================== */

/* ==========================================================================
   1.0 - Product Swatch Option Styles
   ========================================================================== */
.product-item .swatch-option.color, 
.product-item .swatch-option.image,
.swatch-attribute-options a.swatch-option-link-layered .swatch-option {
    background-size: 100% !important;
}

.product-item .swatch-option.color, 
.product-item .swatch-option.image {
    height: 20px !important;
    width: 20px !important;
}

/* ==========================================================================
   2.0 - Policy & SEO Content Layout Containers
   ========================================================================== */
.policy-page-content,
.category-page-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    color: #333333;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.contact-form-wrap .policy-page-content {
    padding: 0 !important;
}

.category-seo-footer {
    margin-top: 50px;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}

/* ==========================================================================
   3.0 - Typography Rules (Headings & Text)
   ========================================================================== */
.policy-page-content h1,
.category-page-content h1 {
    font-size: 32px !important;
    color: #1a252f;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.policy-page-content h2,
.category-page-content h2 {
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 24px !important;
    font-weight: 600;
}

.policy-page-content p, 
.policy-page-content li,
.policy-page-content span,
.category-page-content p,
.category-page-content li,
.category-page-content span {
    font-size: 15px !important;
    color: #444444;
    margin-bottom: 15px;
}

.policy-page-content strong, 
.category-page-content strong,
.item-title {
    color: #1a252f;
    font-weight: 700;
}

.last-updated {
    text-align: center;
    color: #999999;
    font-size: 13px !important;
    margin-bottom: 40px;
}

.seo-keywords-tag {
    font-size: 13px !important;
    color: #95a5a6;
    margin-top: 15px;
    font-style: italic;
}

/* ==========================================================================
   4.0 - Callout Boxes & Highlight Components
   ========================================================================== */
.policy-box-warning,
.policy-box-info,
.policy-box-green,
.policy-box-security,
.formula-highlight {
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.policy-box-warning {
    background-color: #fdf2f2;
    border-left: 5px solid #e74c3c;
}

.policy-box-info,
.formula-highlight {
    background-color: #f8f9fa;
    border-left: 5px solid #2c3e50;
}

.policy-box-green {
    background-color: #f0f9eb;
    border-left: 5px solid #67c23a;
}

.policy-box-security {
    background-color: #f0f0ff;
    border-left: 5px solid #3498db;
}

.formula-highlight {
    font-weight: bold;
    text-align: center;
    font-size: 16px !important;
}

.important-note {
    background-color: #fff8e1;
    border: 1px dashed #ffa000;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 14.5px !important;
    color: #5d4037;
    margin: 20px 0 0 0;
}

.duty-free-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px !important;
    margin-bottom: 15px;
    border: 1px solid #c8e6c9;
}

/* ==========================================================================
   5.0 - Tables & FAQ Accordion Components
   ========================================================================== */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border: 1px solid #eee;
    border-radius: 12px;
}

.shipping-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.shipping-table th {
    background-color: #fcfcfc;
    font-weight: 600;
    color: #666666;
}

.shipping-table th, 
.shipping-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ml-faq-answer {
    padding-left: 25px;
    border-left: 2px solid #f2f2f2;
}

.policy-footer {
    margin-top: 60px;
    padding: 40px;
    background: #f4f7f9;
    text-align: center;
    border-radius: 15px;
}

.policy-footer a {
    color: #2c3e50;
    font-weight: bold;
    text-decoration: underline;
}

/* ==========================================================================
   6.0 - Custom Page Layouts (About Us & Banners)
   ========================================================================== */
.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}
.about-feature-item { padding: 10px; }
.about-feature-item svg { margin-bottom: 10px; color: #2c3e50; }
.about-feature-item strong { display: block; margin-bottom: 8px; font-size: 18px !important; }

.banner-style36 .banner-title {
    font-size: 36px !important;
    line-height: 1.2;
    color: #222222;
    margin-bottom: 25px;
}

.banner-style36 .assurance-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.banner-style36 .assurance-list li {
    font-size: 16px !important;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #444444;
}

.banner-style36 .assurance-list li span {
    color: #2ecc71;
    margin-right: 12px;
    font-weight: bold;
}

.banner-style36 .bc-actions {
    margin-top: 2px;
}

/* ==========================================================================
   7.0 - Product Detail Page (PDP) Custom Layout
   ========================================================================== */
.memorial-description-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333333;
    line-height: 1.8;
    margin: 20px auto;
    padding: 10px;
}

.memorial-description-container .desc-section {
    margin-bottom: 45px;
}

.memorial-description-container .desc-title {
    color: #1a1a1a;
    font-size: 24px !important;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.memorial-description-container .desc-text {
    font-size: 16px !important;
    color: #444444;
    text-align: center;
    max-width: 850px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.memorial-description-container .sub-title {
    font-size: 20px !important;
    margin-bottom: 16px;
    color: #111111 !important;
    font-weight: 700 !important;
    border-left: 4px solid #2e7d32;
    padding-left: 12px;
    line-height: 1.3;
}

.memorial-description-container .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    background: transparent;
    padding: 0;
    border: none;
}

.memorial-description-container .feature-item {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    text-align: left;
}

.memorial-description-container .feature-item p {
    font-size: 15px !important;
    color: #444444;
    line-height: 1.7;
    margin: 0;
}

.memorial-description-container .details-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.memorial-description-container .details-column, 
.memorial-description-container .steps-column {
    flex: 1;
    min-width: 300px;
}

.memorial-description-container .check-list,
.memorial-description-container .step-list {
    list-style: none;
    padding: 0;
}

.memorial-description-container .check-list li,
.memorial-description-container .step-list li {
    font-size: 15px !important;
    color: #333333;
    margin-bottom: 14px;
}

.memorial-description-container .check-list li {
    padding-left: 28px;
    position: relative;
}

.memorial-description-container .check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: bold;
    font-size: 16px !important;
}

.memorial-description-container .step-list li {
    display: flex;
    align-items: flex-start;
}

.memorial-description-container .step-num {
    background: #2e7d32;
    color: #ffffff;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 13px !important;
    font-weight: bold;
    margin-top: 2px;
    flex-shrink: 0;
}

.memorial-description-container .thickness-guide-box,
.memorial-description-container .size-guide-box {
    background: #fafafa;
    padding: 28px 25px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.memorial-description-container .faq-box {
    background: #fffdf8;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #f7ebd3;
}

.memorial-description-container .faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0e6d2;
    padding-bottom: 15px;
}

.memorial-description-container .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.memorial-description-container .faq-item strong {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px !important;
    display: block;
}

.memorial-description-container .faq-item p {
    font-size: 15px !important;
    color: #444444;
    line-height: 1.7;
    margin: 0;
}

.memorial-description-container .internal-links-footer {
    margin-top: 50px;
    padding: 20px;
    background-color: #fcfcfc;
    border-top: 1px solid #eeeeee;
    text-align: center;
    font-size: 14px !important;
    color: #666666;
}

.memorial-description-container .internal-links-footer a {
    color: #222222;
    text-decoration: underline;
    font-weight: 600;
    margin: 0 5px;
}

/* --------------------------------------------------------------------------
   7.1 - Product Short Description (PDP 右侧简短描述组件)
   -------------------------------------------------------------------------- */
.product-short-description-box {
    margin-bottom: 22px;
    font-size: 15px !important;
    color: #444444;
    line-height: 1.6;
    background: #fcfcfc;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.product-short-description-box p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.product-short-description-box p:last-child {
    margin-bottom: 0;
}

.product-short-description-box .short-desc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-short-description-box .short-desc-list li {
    font-size: 14.5px !important;
    color: #333333;
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
    line-height: 1.6;
}

.product-short-description-box .short-desc-list li:last-child {
    margin-bottom: 0;
}

.product-short-description-box .short-desc-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: bold;
    font-size: 15px !important;
}

/* --------------------------------------------------------------------------
   7.2 - Step 1/2/3 PDP Custom Form, Drag & Drop Upload & Card UI
   -------------------------------------------------------------------------- */
/* 必填字段红色 * (包含 Custom Options 与 Swatch 产品属性) */
#product-options-wrapper .field.required > label.label::after,
#product-options-wrapper .field[aria-required="true"] > label.label::after,
.pdp-card-block .field.required > label.label::after,
.swatch-attribute.required .swatch-attribute-label::after,
.swatch-attribute .swatch-attribute-label::after {
    content: " *" !important;
    color: #e53935 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    display: inline-block !important;
    margin-left: 3px !important;
}

/* 防闪烁与表单容器基础布局 */
#product-options-wrapper .fieldset:not(.steps-processed) {
    opacity: 0.8;
    transition: opacity 0.15s ease-in-out;
}

.product-options-wrapper .fieldset {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

/* 步骤标题 (Step Badges) 样式 */
.pdp-option-step-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin: 12px 0 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-bottom: 2px solid #2e7d32 !important;
    padding-bottom: 6px !important;
}

.pdp-option-step-title .step-badge {
    background: #2e7d32 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

/* 卡片容器与二级大标题 */
.pdp-card-block {
    background: #fcfcfc !important;
    border: 1px solid #e5e8eb !important;
    border-radius: 8px !important;
    padding: 14px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

#product-options-wrapper .field > label.label,
.pdp-card-block label.label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin-top: 14px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

#product-options-wrapper .field:first-child > label.label,
.pdp-card-block .field:first-child > label.label {
    margin-top: 0 !important;
}

/* 图片上传拖拽卡片与动态 Photo Guide 提示卡 */
#product-options-wrapper input[type="file"].product-custom-option {
    opacity: 0 !important;
    position: absolute !important;
    z-index: -1 !important;
    width: 0.1px !important;
    height: 0.1px !important;
}

#product-options-wrapper .field.file .note,
#product-options-wrapper .field.file .field-note {
    display: none !important;
}

.custom-file-upload-zone {
    border: 2px dashed #cccccc !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 18px 14px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    margin-top: 6px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.custom-file-upload-zone:hover {
    border-color: #2e7d32 !important;
    background: #f4fdf5 !important;
}

.upload-icon-svg {
    width: 26px;
    height: 26px;
    fill: #2e7d32;
    margin-bottom: 2px;
}

.upload-btn-text {
    display: inline-block;
    background: #2e7d32;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
}

.upload-hint-text {
    font-size: 12px;
    color: #666666;
}

.selected-file-name {
    font-size: 13px;
    font-weight: 700;
    color: #2e7d32;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdp-photo-smart-tip {
    font-size: 12px !important;
    color: #555555 !important;
    background: #f0f7f2 !important;
    border-left: 3px solid #2e7d32 !important;
    padding: 8px 10px !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    border-radius: 0 4px 4px 0 !important;
    line-height: 1.4 !important;
}

/* Step 3 加购服务卡片化与移动端防换行 */
#product-options-wrapper .field.choice,
#product-options-wrapper .admin__field-option,
#product-options-wrapper .options-list .field {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

#product-options-wrapper .field.choice:hover,
#product-options-wrapper .admin__field-option:hover {
    border-color: #2e7d32 !important;
    background: #f4fdf5 !important;
}

#product-options-wrapper .field.choice:has(input:checked),
#product-options-wrapper .admin__field-option:has(input:checked) {
    border-color: #2e7d32 !important;
    background-color: #f4fdf5 !important;
    box-shadow: 0 0 0 1px #2e7d32 !important;
}

#product-options-wrapper .field.choice::before,
#product-options-wrapper .field.choice::after,
#product-options-wrapper .admin__field-option::before,
#product-options-wrapper .admin__field-option::after {
    display: none !important;
    content: "" !important;
}

#product-options-wrapper input[type="checkbox"],
#product-options-wrapper input[type="radio"],
.product-custom-option[type="checkbox"],
.product-custom-option[type="radio"] {
    display: inline-block !important;
    margin: 0 8px 0 0 !important;
    width: 18px !important;
    height: 18px !important;
    accent-color: #2e7d32 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

#product-options-wrapper .field.choice label,
#product-options-wrapper .admin__field-label,
#product-options-wrapper .options-list label {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #222222 !important;
    cursor: pointer !important;
    line-height: 1.35 !important;
}

#product-options-wrapper .price-notice,
#product-options-wrapper .price-notice .price {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #2e7d32 !important;
    margin-left: 8px !important;
    display: inline-block !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   8.0 - Responsive & Media Queries
   ========================================================================== */
@media (min-width: 601px) {
    .table-scroll-hint {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-features-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }

    .memorial-description-container .desc-title { 
        font-size: 20px !important; 
    }

    .memorial-description-container .sub-title { 
        font-size: 18px !important; 
    }

    .memorial-description-container .details-steps { 
        gap: 30px; 
    }

    .memorial-description-container .features-grid { 
        gap: 20px; 
    }
}

@media (max-width: 600px) {
    .policy-page-content,
    .category-page-content {
        margin: 20px auto;
        padding: 0 15px;
    }

    .formula-highlight {
        font-size: 14px !important;
        padding: 15px;
    }

    .table-scroll-hint {
        display: block;
        font-size: 12px !important;
        color: #999999;
        text-align: right;
        margin-bottom: 5px;
    }

    .banner-style36 .banner-title { 
        font-size: 28px !important; 
    }
}