/*
 Theme Name:   Woodmart Child
 Theme URI:    https://tissus-deco-couture-venteenligne.fr
 Description:  Theme enfant de Woodmart pour Tissus Deco Couture
 Author:       SNT
 Template:     woodmart-7.5.2-C4tEfa
 Version:      1.0.1
 Text Domain:  woodmart-child
*/

/* Make in-content links visible — product categories and products */
.single-post .site-content a[href*="product-category"]:not([style*="background"]),
.single-post .site-content a[href*="/product/"]:not([style*="background"]),
.entry-content a[href*="product-category"]:not([style*="background"]),
.entry-content a[href*="/product/"]:not([style*="background"]),
.single-post blockquote a:not([style*="background"]),
.single-post article .entry-content a:not([style*="background"]) {
    color: #c5a46d;
    text-decoration: underline !important;
    text-decoration-color: rgba(197, 164, 109, 0.5) !important;
    text-underline-offset: 2px;
}
.single-post .site-content a[href*="product-category"]:not([style*="background"]):hover,
.single-post .site-content a[href*="/product/"]:not([style*="background"]):hover,
.single-post blockquote a:not([style*="background"]):hover,
.single-post article .entry-content a:not([style*="background"]):hover {
    color: #a8863d !important;
    text-decoration-color: #a8863d !important;
}
/* CTA buttons in articles — white text on gold background */
.entry-content a[style*="background:#c5a46d"],
.entry-content a[style*="background: #c5a46d"] {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Responsive YouTube iframe wrapper */
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="youtu.be"] {
    position: relative !important;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Mini-cart widget fix */
.widget_shopping_cart_content {
    max-width: 400px;
}
.elementor-menu-cart__product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.elementor-menu-cart__product-image {
    flex: 0 0 60px;
}
.elementor-menu-cart__product-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.elementor-menu-cart__product-name {
    flex: 1;
    font-size: 13px;
    line-height: 1.3;
}
.elementor-menu-cart__product-name a {
    color: #333 !important;
    text-decoration: none !important;
}
.elementor-menu-cart__product-price {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}
.elementor-menu-cart__product-remove a {
    display: none;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    color: #999;
    font-size: 16px;
    cursor: pointer;
}
.elementor-menu-cart__product-remove a:first-child {
    display: block;
}
.elementor-menu-cart__product-remove a:first-child::before {
    content: "×";
}
.elementor-menu-cart__subtotal {
    padding: 12px 0;
    font-size: 14px;
    border-top: 2px solid #333;
    display: flex;
    justify-content: space-between;
}
.elementor-menu-cart__footer-buttons {
    display: flex;
    gap: 8px;
    padding: 12px 0;
}
.elementor-menu-cart__footer-buttons .elementor-button {
    flex: 1;
    display: inline-block;
    padding: 10px 16px;
    text-align: center;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}
.elementor-button--view-cart {
    background: #f5f5f5;
    color: #333 !important;
    border: 1px solid #ddd;
}
.elementor-button--checkout {
    background: #c5a46d;
    color: #fff !important;
}


#post-5391 > div > div > div.wd-negative-gap.elementor-element.elementor-element-e83d784.e-flex.e-con-boxed.e-con.e-parent.e-lazyloaded > div > div.elementor-element.elementor-element-6a0f400.elementor-widget__width-initial.elementor-widget.elementor-widget-heading > div > p > a {
    color: white !important;
}

/* Single post sidebar hide is handled by single-post.php template */

/* Recommended products grid */
.tdc-recommended-products {
    margin: 40px 0;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.tdc-recommended-products h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.2rem;
    color: #242424;
    margin-bottom: 18px;
    font-style: italic;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0ebe4;
}
.tdc-recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 768px) {
    .tdc-recommended-grid { grid-template-columns: repeat(2, 1fr); }
}
.tdc-rec-card {
    text-decoration: none;
    display: block;
    text-align: center;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
}
.tdc-rec-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.tdc-rec-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.tdc-rec-card .tdc-rec-name {
    display: block;
    padding: 10px 10px 4px;
    font-size: 0.85rem;
    color: #333;
    line-height: 1.3;
    margin-bottom: 4px;
}
.tdc-rec-card .tdc-rec-price {
    display: block;
    padding: 0 10px 10px;
    font-size: 0.9rem;
    color: #c5a46d;
    font-weight: 600;
}
.tdc-rec-card .tdc-rec-unit {
    font-size: 0.75rem;
    color: #999;
}
@media (max-width: 480px) {
    .tdc-recommended-grid { grid-template-columns: 1fr; }
    .tdc-recommended-products { padding: 20px 16px; }
}

/* Discover also links */
.tdc-discover-also {
    margin: 16px 0 30px;
    font-size: 0.9rem;
    color: #666;
}
.tdc-discover-also a {
    color: #c5a46d;
    text-decoration: none;
    font-weight: 600;
}
.tdc-discover-also a:hover {
    text-decoration: underline;
}

/* Accessibility: touch targets min 48x48px */
.wd-social-icon {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wd-product-cats a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 6px;
}

/* Accessibility: improve contrast on search input placeholder */
.s::placeholder {
    color: #666 !important;
}
.woodmart-shopping-cart .dropdown-cart-header span,
.wd-dropdown select span {
    color: #555 !important;
}

/* Cookies banner: improve contrast */
.cookies-accept-btn {
    min-height: 44px;
    line-height: 44px;
}
.cookies-info-text {
    color: #333 !important;
}
