/*
Theme Name: Elegance Clothing
Theme URI: https://yoursaas.lk
Author: Your Name
Author URI: https://yoursaas.lk
Description: A premium clothing store theme for Sri Lankan businesses
Version: 1.0.0
License: GPL v2 or later
Text Domain: elegance
*/

/* ===== All the CSS I provided goes here ===== */
/* Copy everything from the <style> tags in my previous message */

/* ===== styles.css ===== */
/* Global styles for your clothing store */

:root {
    /* Color Scheme - Elegant Clothing Store */
    --primary-dark: #1a1a1a;      /* Black for elegance */
    --primary-light: #f8f8f8;     /* Light gray */
    --accent-gold: #c49b63;        /* Gold accent */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #eaeaea;
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.1);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.3;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; margin-bottom: 30px; }
h3 { font-size: 24px; margin-bottom: 15px; }
h4 { font-size: 18px; margin-bottom: 10px; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 1px solid var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header {
    padding: 20px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-gold);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-gold);
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icons a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-gold);
    color: var(--white);
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-dark);
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 18px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-gold);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.newsletter-form button {
    padding: 10px 15px;
    background: var(--accent-gold);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #b3864a;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }
}

/* Style WooCommerce Default Add to Cart Button */
.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: rgba(255,255,255,0.95);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

/* WooCommerce Default Button Styling */
.product-actions .button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px !important;
    background: #1a1a1a !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    border: none !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
    width: 100%;
}

.product-actions .button:hover {
    background: #c49b63 !important;
    transform: translateY(-2px) !important;
}

.product-actions .button.added {
    display: none !important;
}

.product-actions .button.loading {
    opacity: 0.7;
}

/* Quick View Button */
.btn-quick-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f8f8;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.btn-quick-view:hover {
    background: #e0e0e0;
}

/* Out of Stock */
.out-of-stock {
    display: block;
    text-align: center;
    padding: 10px;
    background: #e0e0e0;
    color: #999;
    border-radius: 4px;
    font-size: 13px;
}

/* Header Icons Common Styles */
.header-icons a {
    position: relative;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 18px;
    margin-left: 15px;
}

/* Cart Counter */
.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #c49b63;
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wishlist Counter - Same as Cart Counter */
.wishlist-icon {
    position: relative;
}

.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #c49b63;
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bounce Animation for Both Counters */
.cart-count.bounce,
.wishlist-count.bounce {
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 768px) {
    .header-icons a {
        margin-left: 12px;
        font-size: 16px;
    }
    
    .cart-count,
    .wishlist-count {
        width: 14px;
        height: 14px;
        font-size: 9px;
        top: -6px;
        right: -6px;
    }
}

/* ===== PRODUCT CARD BUTTONS - REMOVE BLUE, KEEP BOTTOM-TO-TOP ===== */

/* Product Card Container */
.product-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Product Image Container */
.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* ===== PRODUCT ACTIONS - BOTTOM TO TOP ANIMATION ===== */
.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 10;
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

/* ===== ADD TO CART BUTTON - NO BLUE ===== */
.add-to-cart-btn,
.product-actions .button,
.product-actions a.button,
.woocommerce-loop-product__link + .button {
    width: 100% !important;
    padding: 10px 15px !important;
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

.add-to-cart-btn:hover,
.product-actions .button:hover,
.product-actions a.button:hover {
    background: #c49b63 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* Disabled/Out of Stock Button */
.add-to-cart-btn.disabled,
.add-to-cart-btn:disabled,
.product-actions .button.disabled {
    background: #999 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ===== QUICK VIEW BUTTON - NO BLUE ===== */
.quick-view-btn {
    width: 100% !important;
    padding: 10px 15px !important;
    background: #f0f0f0 !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

.quick-view-btn:hover {
    background: #e0e0e0 !important;
    color: #c49b63 !important;
}

/* ===== WISHLIST BUTTON - NO BLUE ===== */
.wishlist-btn,
.add-to-wishlist,
.product-card .wishlist-icon,
.product-actions .wishlist-btn {
    width: 100% !important;
    padding: 10px 15px !important;
    background: #f0f0f0 !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

.wishlist-btn:hover,
.add-to-wishlist:hover,
.product-actions .wishlist-btn:hover {
    background: #e0e0e0 !important;
    color: #c49b63 !important;
}

/* Wishlist active/added state */
.wishlist-btn.active,
.add-to-wishlist.added {
    background: #c49b63 !important;
    color: #ffffff !important;
}

/* ===== PRODUCT BADGES ===== */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #c49b63;
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 5;
}

.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 5;
}

.outofstock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    white-space: nowrap;
}

/* ===== PRODUCT INFO ===== */
.product-info {
    padding: 16px;
    text-align: center;
}

.product-category {
    font-size: 12px;
    color: #c49b63;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-category a {
    color: #c49b63;
    text-decoration: none;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-title a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #c49b63;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #c49b63;
}

.product-price del {
    color: #999;
    font-size: 13px;
    font-weight: normal;
    margin-right: 5px;
}

.product-price ins {
    text-decoration: none;
}

/* ===== FIX ANY REMAINING BLUE BUTTONS ===== */
button,
.button,
.add_to_cart_button,
.single_add_to_cart_button,
input[type="submit"],
input[type="button"],
.woocommerce-button,
.woocommerce-Button,
.woocommerce button,
.woocommerce .button {
    background: #1a1a1a !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
.button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
input[type="submit"]:hover,
.woocommerce button:hover,
.woocommerce .button:hover {
    background: #c49b63 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Remove blue focus outline */
button:focus,
button:active,
input:focus,
input:active,
textarea:focus,
textarea:active,
select:focus,
select:active,
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Fix any default blue links */
a {
    color: #1a1a1a;
    text-decoration: none;
}

a:hover {
    color: #c49b63;
}

/* ===== FORCE OVERRIDE - REMOVE ALL BLUE FROM PRODUCT CARDS ===== */

/* Target all buttons in product cards */
.product-card button,
.product-card .button,
.product-card a.button,
.product-card .add_to_cart_button,
.product-card .single_add_to_cart_button,
.product-card .add-to-cart-btn,
.product-card .quick-view-btn,
.product-card .btn-quick-view,
.products .button,
.products .add_to_cart_button,
li.product .button,
li.product .add_to_cart_button {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 10px 15px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Hover state */
.product-card button:hover,
.product-card .button:hover,
.product-card .add_to_cart_button:hover,
.product-card .add-to-cart-btn:hover,
.products .button:hover,
li.product .button:hover {
    background: #c49b63 !important;
    background-color: #c49b63 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* Quick View button specific */
.product-card .quick-view-btn,
.product-card .btn-quick-view {
    background: #f0f0f0 !important;
    background-color: #f0f0f0 !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.product-card .quick-view-btn:hover,
.product-card .btn-quick-view:hover {
    background: #e0e0e0 !important;
    background-color: #e0e0e0 !important;
    color: #c49b63 !important;
}

/* Disabled/Out of Stock button */
.product-card .button.disabled,
.product-card .add_to_cart_button.disabled,
.product-card .add-to-cart-btn.disabled,
.product-card button:disabled {
    background: #999999 !important;
    background-color: #999999 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    transform: none !important;
}

/* Remove any blue from WooCommerce default button */
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    border: none !important;
    color: #ffffff !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
    background: #c49b63 !important;
    background-color: #c49b63 !important;
    color: #ffffff !important;
}

/* Fix product actions container - keep bottom to top animation */
.product-actions {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease-in-out !important;
    z-index: 10 !important;
}

.product-card:hover .product-actions {
    transform: translateY(0) !important;
}

/* Remove any blue focus outline */
button:focus,
.button:focus,
.add_to_cart_button:focus,
.add-to-cart-btn:focus,
.quick-view-btn:focus,
input:focus,
a:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Fix any remaining blue links */
a {
    color: #1a1a1a;
    text-decoration: none;
}

a:hover {
    color: #c49b63;
}

/* Footer Categories Links - White Color */
.site-footer .footer-col ul li a,
.site-footer .footer-categories li a,
.site-footer .cat-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer .footer-col ul li a:hover,
.site-footer .footer-categories li a:hover,
.site-footer .cat-item a:hover {
    color: #c49b63 !important;
}