/* 
 * Custom WooCommerce Styles for Etalasio Adventure Apparel
 */

/* ==========================================================================
   1. GLOBAL VARIABLES & OVERRIDES
   ========================================================================== */
:root {
    --brand-primary: #111827;
    --brand-secondary: #4b5563;
    --brand-accent: #25D366; /* Whatsapp Green */
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* ==========================================================================
   2. PRODUCT GRID (SHOP PAGE)
   ========================================================================== */
.woocommerce ul.products li.product {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 15px;
    transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Product Image Hover Zoom */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link img {
    border-radius: calc(var(--border-radius) - 2px);
    transition: transform 0.5s ease;
}

.woocommerce ul.products li.product:hover .woocommerce-LoopProduct-link img {
    transform: scale(1.03);
}

/* Typography */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-top: 15px;
    margin-bottom: 8px;
}

.woocommerce ul.products li.product .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 20px;
}

/* Add to Cart Button Grid */
.woocommerce ul.products li.product .button {
    display: inline-block;
    width: 100%;
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-radius: var(--border-radius);
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: background-color var(--transition-speed) ease;
    border: none;
    text-align: center;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #000000 !important;
}

/* YITH Wishlist Icon alignment */
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist {
    margin-top: 10px;
    text-align: center;
}

.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist a {
    color: #ef4444;
    font-size: 1.2rem;
}

/* ==========================================================================
   3. SINGLE PRODUCT PAGE
   ========================================================================== */
.woocommerce div.product div.images {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #f3f4f6;
}

.woocommerce div.product div.images img {
    border-radius: var(--border-radius);
}

.woocommerce div.product .product_title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1.2;
    margin-bottom: 10px;
}

.woocommerce div.product p.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 25px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--brand-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 25px;
}

/* Action Buttons */
.woocommerce div.product form.cart .button {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-radius: var(--border-radius);
    padding: 15px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    transition: background-color var(--transition-speed) ease;
}

.woocommerce div.product form.cart .button:hover {
    background-color: #000000 !important;
}

/* Whatsapp & Request Info buttons */
.custom-product-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.btn-request-info {
    flex: 1;
    background-color: var(--brand-primary);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--transition-speed);
}

.btn-whatsapp {
    flex: 1;
    background-color: var(--brand-accent);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color var(--transition-speed);
}

.btn-whatsapp:hover {
    background-color: #1ea952;
}

/* Meta Information (Size Guide, Delivery, etc.) */
.product-meta-custom {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.product-meta-custom ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-meta-custom ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--brand-secondary);
    font-size: 0.95rem;
}

.product-meta-custom ul li svg,
.product-meta-custom ul li i {
    width: 20px;
    color: var(--brand-primary);
}

.product-meta-custom .social-share {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-meta-custom .social-share span {
    font-weight: 600;
    color: var(--brand-primary);
}

.product-meta-custom .social-share a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform var(--transition-speed);
}

.product-meta-custom .social-share a:hover {
    transform: translateY(-2px);
}

.product-meta-custom .social-share a.facebook { background-color: #3b5998; }
.product-meta-custom .social-share a.twitter { background-color: #1da1f2; }
.product-meta-custom .social-share a.pinterest { background-color: #bd081c; }
