/*
 * Theme Name: Amiceed Child
 * Theme URI: https://amiceed.com
 * Description: Tema hijo de Astra para Amiceed.com — Cupones y Ofertas en Español
 * Author: Amiceed
 * Author URI: https://amiceed.com
 * Template: astra
 * Version: 1.0.1
 * Text Domain: amiceed
 */
/* ==========================================
   1. 全局样式 (PC & 移动端通用)
   ========================================== */
   
   


/* 优惠券卡片整体 */
.wpcd-coupon.wpcd-coupon-default {
  background: #ffffff !important;
  border: 1px solid #ede8f8 !important;
  border-radius: 12px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 10px rgba(108, 35, 192, 0.07) !important;
}

/* 折扣色块：品牌黄 */
.wpcd-coupon-discount-text {
  background-color: #f5c518 !important;
  color: #3a0a7a !important;
  font-weight: 800 !important;
}

/* 按钮颜色：品牌紫 */
.coupon-type, .wpcd-coupon-code-btn {
  background-color: #6c23c0 !important;
  color: #ffffff !important;
}

/*调整移动端主页hero高度 */
@media (max-width: 768px) {
  #Home figure.wp-block-image {
    max-height: 250px;
    overflow: hidden;
  }
  
  #Home figure.wp-block-image img {
    max-height: 250px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
  }
}

/* ── 分类页网格卡片样式 ── */
.wpcd-coupon-grid .wpcd-coupon,
.wpcd-coupons-grid .wpcd-coupon {
  background: #ffffff !important;
  border: 1px solid #ede8f8 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(108, 35, 192, 0.07) !important;
  transition: all 0.2s ease !important;
}

.wpcd-coupon-grid .wpcd-coupon:hover,
.wpcd-coupons-grid .wpcd-coupon:hover {
  box-shadow: 0 6px 20px rgba(108, 35, 192, 0.15) !important;
  transform: translateY(-2px) !important;
  border-color: #c4a8f0 !important;
}

/* ── 网格卡片折扣色块改黄色 ── */
.wpcd-coupon-grid .wpcd-coupon-discount-text,
.wpcd-coupons-grid .wpcd-coupon-discount-text {
  background-color: #f5c518 !important;
  color: #3a0a7a !important;
  font-weight: 800 !important;
}

/* ── 网格卡片 Coupon 按钮 ── */
.wpcd-coupon-grid .coupon-type,
.wpcd-coupons-grid .coupon-type {
  background-color: #6c23c0 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
}

/* ── 网格卡片标题颜色 ── */
.wpcd-coupon-grid .wpcd-coupon-title a,
.wpcd-coupons-grid .wpcd-coupon-title a {
  color: #2d0a63 !important;
}

/* ── 网格卡片社交图标 ── */
.wpcd-coupon-grid .wpcd-btn-social.wpcd-btn-xs,
.wpcd-coupons-grid .wpcd-btn-social.wpcd-btn-xs {
  background-color: #6c23c0 !important;
  border-color: #6c23c0 !important;
  color: #ffffff !important;
}

/* ── 网格卡片过期日期 ── */
.wpcd-coupon-grid .wpcd-coupon-expire,
.wpcd-coupons-grid .wpcd-coupon-expire {
  color: #6c23c0 !important;
}


/* ── 分类页网格卡片 ── */
.wpcd-custom-grid .seo-card-container .wpcd-coupon {
  background: #ffffff !important;
  border: 1px solid #ede8f8 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(108, 35, 192, 0.07) !important;
  transition: all 0.2s ease !important;
}

.wpcd-custom-grid .seo-card-container .wpcd-coupon:hover {
  box-shadow: 0 6px 20px rgba(108, 35, 192, 0.15) !important;
  transform: translateY(-2px) !important;
  border-color: #c4a8f0 !important;
}

/* ── 折扣色块改黄色 ── */
.wpcd-custom-grid .wpcd-coupon-discount-text {
  background-color: #f5c518 !important;
  color: #3a0a7a !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

/* ── Coupon 按钮 ── */
.wpcd-custom-grid .coupon-type {
  background-color: #6c23c0 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
}

/* ── 标题颜色 ── */
.wpcd-custom-grid .wpcd-coupon-title a,
.wpcd-custom-grid .wpcd-coupon-title {
  color: #2d0a63 !important;
}

/* ── 社交图标 ── */
.wpcd-custom-grid .wpcd-btn-social.wpcd-btn-xs {
  background-color: #6c23c0 !important;
  border-color: #6c23c0 !important;
  color: #ffffff !important;
}

/* ── 过期日期 ── */
.wpcd-custom-grid .wpcd-coupon-expire {
  color: #6c23c0 !important;
}


/* ── 分类页优惠码标签改浅紫 ── */
.wpcd-custom-grid .wpcd-coupon-code-btn,
.wpcd-custom-grid .wpcd-c-code-container {
  background-color: #ede8f8 !important;
  color: #6c23c0 !important;
  border: 1px solid #c4a8f0 !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}

/* ── 分类页标题深紫色 ── */
.wpcd-custom-grid .wpcd-coupon-title,
.wpcd-custom-grid .wpcd-coupon-title a {
  color: #2d0a63 !important;
}

@media (max-width: 768px) {
    /* 强制文字不折行并增加水平间距 */
    .wp-block-categories-list li, 
    .widget_categories li, 
    .coupon-categories li {
        list-style-type: none !important; /* 去掉错位的圆点 */
        display: inline-block;
        margin-right: 15px;
        white-space: nowrap; /* 防止单词内部断行 */
    }

    /* 修复 Brands 字母排列 */
    .brands-list-item {
        width: 100% !important;
        display: block !important;
        margin-bottom: 10px;
    }
}

/* 仅针对手机端（屏幕宽度小于 768px）进行优化 */
@media (max-width: 767px) {
    
    /* 1. 强制容器和列表项占满全宽，消除重叠 */
    .category-dir, .brand-dir,
    .category-dir ul, .brand-dir ul,
    .category-dir li, .brand-dir li {
        width: 100% !important;
        float: none !important; /* 清除可能的浮动布局 */
/*       display: block !important;  A-Z移动端内容自适应 */
        display: flex; flex-wrap: wrap;
        box-sizing: border-box;
    }
    

    /* 2. 修复文字换行和对齐问题 */
    .category-dir li, .brand-dir li {
        padding: 8px 0 !important;
        margin: 0 !important;
        text-align: left !important;
        list-style: none !important; /* 隐藏错位的圆点 */
    }

    /* 3. 针对品牌目录中的 A-Z 索引字母进行加固 */
    .brand-dir h3, .brand-dir .letter-section {
        margin-top: 20px !important;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }

    /* 4. 如果你的文字还是太挤，可以给包裹容器增加一点内边距 */
    .category-dir, .brand-dir {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }



}


/* 侧边栏列表美化 */
.sidebar-recent-list a:hover {
    color: #f5c518 !important; /* 悬停时变成品牌黄 */
    padding-left: 5px;
    transition: all 0.2s ease;
}

.widget-title {
    border-bottom: 2px solid #6c23c0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #3a0a7a;
}

/* 让主菜单项不可点击，但保持下拉菜单正常 */
/* 针对 Featured Brands 主菜单项禁用点击（Astra 兼容） */
li.menu-item-11698 > a,
.menu-item-has-children.menu-item-11698 > a {
    pointer-events: none !important;     /* 完全禁用点击 */
    cursor: default !important;          /* 鼠标变成默认箭头 */
    color: inherit !important;           /* 保持原有颜色 */
    text-decoration: none !important;
}

li.menu-item-11698 > a:hover {
    color: inherit !important;
    background: transparent !important;
}


/* 在搜索框下方放一排圆形的小图标（如：Clothing, Electronics, Food, Travel）*/
.category-icons-container {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important;
    margin: 40px 0 !important;        /* 去掉 auto，不要水平 margin */
    width: 100% !important;           /* 撑满父容器 */
    max-width: 100% !important;       /* 取消最大宽度限制 */
    padding: 24px 16px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #f0f0f0 !important;
    box-sizing: border-box !important;
}

.cat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 16px 8px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.cat-item:hover {
    background: #f5f4ff !important;
    transform: translateY(-3px) !important;
}

.cat-icon-wrapper {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
}

/* 各分类颜色 - 按顺序 */
.cat-item:nth-child(1) .cat-icon-wrapper { background: #E1F5EE; }
.cat-item:nth-child(2) .cat-icon-wrapper { background: #FBEAF0; }
.cat-item:nth-child(3) .cat-icon-wrapper { background: #FAECE7; }
.cat-item:nth-child(4) .cat-icon-wrapper { background: #E1F5EE; }
.cat-item:nth-child(5) .cat-icon-wrapper { background: #E6F1FB; }
.cat-item:nth-child(6) .cat-icon-wrapper { background: #FAEEDA; }
.cat-item:nth-child(7) .cat-icon-wrapper { background: #FAECE7; }
.cat-item:nth-child(8) .cat-icon-wrapper { background: #E1F5EE; }
.cat-item:nth-child(9) .cat-icon-wrapper { background: #E6F1FB; }
.cat-item:nth-child(10) .cat-icon-wrapper { background: #FBEAF0; }
.cat-item:nth-child(11) .cat-icon-wrapper { background: #EEEDFE; }
.cat-item:nth-child(12) .cat-icon-wrapper { background: #EEEDFE; }

.cat-item:hover .cat-icon-wrapper {
    background: #534AB7 !important;
    box-shadow: 0 4px 12px rgba(83, 74, 183, 0.3) !important;
}

.cat-icon {
    font-size: 26px !important;
    line-height: 1 !important;
}

.cat-name {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #666 !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

.cat-item:hover .cat-name {
    color: #534AB7 !important;
}

@media (max-width: 768px) {
    .category-icons-container {
        grid-template-columns: repeat(4, 1fr) !important;
        padding: 16px !important;
        gap: 8px !important;
    }
}

@media (max-width: 480px) {
    .category-icons-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 通过 anchor id 精准定位这个 Container，去掉内边距 */
#services {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/*解决首页top-padding太大的问题 */
.wp-block-spectra-container.wp-block-spectra-container[data-spectra-id='spectra-f268e52a-b944-4b3f-aa16-6267b5619e8d'] {
        padding-top: 0px !important;
        padding-right: 40px;
        padding-bottom: 0px;
        padding-left: 40px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        margin-left: 0px;
    }
    
/* 让 cat-section 和 deals 区用同一套水平 padding ，加强首页小图标效果*/
.category-icons-container {
    margin: 32px auto 24px !important;

    /* 去掉背景色和边框，不再用大卡片包裹 */
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}



/*
 * Amiceed — 分类落地页样式（category页面css）
 * 文件位置：wp-content/themes/astra-child/snip-category.css
 *
 * 在子主题 functions.php 中用以下代码加载本文件：
 *
 *   wp_enqueue_style(
 *       'snip-category',
 *       get_stylesheet_directory_uri() . '/snip-category.css',
 *       [],
 *       '1.0.0'
 *   );
 *
 * 或者直接将此文件内容追加至子主题 style.css 末尾。
 * ─────────────────────────────────────────────────────────────────────────── */
/* ============================================
   amiceed.com - 商品页 & 分类页样式 v2
   DHL风格：明黄 + 红色克制
   ============================================ */

:root {
  --amz-yellow: #FFCC00;
  --amz-red:    #D40511;
  --amz-dark:   #1A1A1A;
  --amz-border: #E8E8E8;
  --amz-text:   #333333;
  --amz-muted:  #777777;
}

/* ─── 隐藏 Valoraciones ─────────────────────── */
.woocommerce-tabs .reviews_tab,
.woocommerce-tabs #tab-reviews { display: none !important; }

/* ─── 价格块（替代原生价格） ───────────────── */
.amz-price-block {
    background: #FFFBEA;
    border: 1px solid #E8C800;
    border-left: 4px solid #FFCC00;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    color: #5a4a00;
    margin-bottom: 14px;
    line-height: 1.5;
}
.amz-price-warning {
    display: block;
    font-size: 12px;
    color: #D40511;
    margin-top: 4px;
}

/* 隐藏商品页外（如分类页）的amz-price-block，只显示原生价格 */
.archive .amz-price-block,
.woocommerce ul.products .amz-price-block { display: none !important; }

/* 隐藏商品页的旧价格时间戳（已被新块替代） */
.single-product .amazone-price-note { display: none !important; }

/* ─── Tab 栏：只显示Descripción ───────────── */
.woocommerce-tabs .wc-tabs {
    border-bottom: 2px solid #FFCC00 !important;
}
.woocommerce-tabs .wc-tabs li.active a {
    color: #1A1A1A !important;
    border-bottom-color: #FFCC00 !important;
}

/* ─── 商品页标题 ────────────────────────────── */
.single-product h1.product_title {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #1A1A1A !important;
    margin-bottom: 12px !important;
}

/* ─── Ver precio 按钮 ───────────────────────── */
.single-product a.button,
.single-product .cart a.button {
    background: #FFCC00 !important;
    color: #1A1A1A !important;
    border: none !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    transition: background .2s !important;
    text-transform: none !important;
}
.single-product a.button:hover {
    background: #e6b800 !important;
    color: #1A1A1A !important;
}

/* ─── 分类标签链接 ──────────────────────────── */
.posted_in a, .tagged_as a {
    color: #D40511 !important;
    text-decoration: none !important;
}

/* ─── 产品相关 ──────────────────────────────── */
.related.products h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    border-left: 4px solid #FFCC00 !important;
    padding-left: 10px !important;
}

/* ─── 分类页：产品卡片 ──────────────────────── */
.woocommerce ul.products li.product {
    border: 1px solid #E8E8E8 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    transition: box-shadow .2s, transform .2s !important;
    background: #fff !important;
    padding: 0 !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1) !important;
    transform: translateY(-2px) !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    padding: 0 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 40px !important;
}
.woocommerce ul.products li.product .price {
    padding: 0 12px !important;
    font-weight: 700 !important;
}
.woocommerce ul.products li.product .button {
    background: #FFCC00 !important;
    color: #1A1A1A !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    margin: 0 12px 14px !important;
    width: calc(100% - 24px) !important;
    text-align: center !important;
    padding: 9px 0 !important;
}
.woocommerce ul.products li.product .button:hover {
    background: #e6b800 !important;
    color: #1A1A1A !important;
}
.woocommerce ul.products li.product .ast-woo-product-category {
    font-size: 11px !important;
    color: #777 !important;
    padding: 8px 12px 2px !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
}

/* ─── 分类页标题 ────────────────────────────── */
.woocommerce-products-header__title.page-title {
    border-left: 5px solid #FFCC00 !important;
    padding-left: 12px !important;
}

/* ─── SEO：结构化内容优先（视觉上不影响） ──── */
/* schema.org 相关内容已通过 WooCommerce 自动输出 */
/* 确保 description 在 DOM 靠前位置加载 */
.woocommerce-product-details__short-description {
    order: -1;
}
/* 商品页内联描述（按钮前） */
.amz-inline-description {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E8E8E8;
}
.amz-inline-description p { margin-bottom: 10px; }
.amz-inline-description strong { color: #1A1A1A; }

/* 隐藏描述Tab（已内联显示） */
.woocommerce-tabs { display: none !important; }

/* ─── 商品页：图片高度限制不变形 ─────────────── */
.single-product .woocommerce-product-gallery__image img {
    max-height: 480px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
}
.single-product .woocommerce-product-gallery {
    display: flex !important;
    align-items: center !important;
}

/* ─── 商品页：描述移到按钮前（CSS flex重排） ─── */
.single-product .summary {
    display: flex !important;
    flex-direction: column !important;
}
/* 面包屑 */
.single-product .summary .woocommerce-breadcrumb { order: 1 !important; }
/* 分类标签 */
.single-product .summary .posted_in,
.single-product .summary .tagged_as { order: 2 !important; }
/* 标题 */
.single-product .summary h1.product_title { order: 3 !important; }
/* 价格时间戳 */
.single-product .summary .price,
.single-product .summary .amz-price-block { order: 4 !important; }
/* 内联描述（移到按钮前） */
.single-product .summary .amz-inline-description { order: 5 !important; }
/* Ver precio 按钮 */
.single-product .summary .cart { order: 6 !important; }
/* 分类/标签 meta */
.single-product .summary .product_meta { order: 7 !important; }
/* 价格时间戳旧位置隐藏 */
.single-product .summary .amazone-price-note { display: none !important; }

