/* ============================================
   WOOCOMMERCE STYLES
   ============================================ */

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product {
    background: #fff;
    border: 1px solid var(--brdcolor-gray-200);
    border-radius: var(--wd-brd-radius);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.product:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

/* Product Image */
.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
    margin-bottom: 15px;
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.product:hover img {
    opacity: 0.9;
}

/* Product Badge */
.product .onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--wd-primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* Product Title */
.product .woocommerce-loop-product__title {
    font-family: var(--wd-entities-title-font);
    font-weight: var(--wd-entities-title-font-weight);
    font-size: 16px;
    color: var(--wd-entities-title-color);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.product:hover .woocommerce-loop-product__title {
    color: var(--wd-entities-title-color-hover);
}

/* Product Price */
.product .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--wd-primary-color);
    margin-bottom: 15px;
    display: block;
}

.product .price del {
    color: var(--color-gray-400);
    font-weight: 400;
    font-size: 15px;
    margin-right: 8px;
}

.product .price ins {
    text-decoration: none;
}

/* Add to Cart Button */
.product .button {
    width: 100%;
    height: var(--btn-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--btn-accented-bgcolor);
    color: var(--btn-accented-color);
    border: none;
    border-radius: var(--btn-accented-brd-radius);
    font-weight: var(--btn-font-weight);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.product .button:hover {
    background-color: var(--btn-accented-bgcolor-hover);
    transform: translateY(-2px);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.wishlist-button,
.compare-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bgcolor-gray-100);
    border: 1px solid var(--brdcolor-gray-200);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wishlist-button:hover,
.compare-button:hover {
    background-color: var(--wd-primary-color);
    border-color: var(--wd-primary-color);
    color: white;
}

/* Single Product Page */
.single-product .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px 0;
}

.single-product .woocommerce-product-gallery {
    position: relative;
}

.single-product .product_title {
    font-family: var(--wd-title-font);
    font-weight: var(--wd-title-font-weight);
    font-size: 32px;
    color: var(--wd-title-color);
    margin-bottom: 20px;
}

.single-product .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--wd-primary-color);
    margin-bottom: 20px;
}

.single-product .woocommerce-product-details__short-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Quantity Input */
.quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--wd-form-brd-color);
    border-radius: var(--wd-form-brd-radius);
    overflow: hidden;
}

.quantity input {
    width: 60px;
    height: var(--btn-height);
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.quantity button {
    width: 40px;
    height: var(--btn-height);
    border: none;
    background-color: var(--bgcolor-gray-100);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quantity button:hover {
    background-color: var(--bgcolor-gray-300);
}

/* Cart Page */
.woocommerce-cart-form {
    margin-bottom: 40px;
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.shop_table th,
.shop_table td {
    padding: 20px;
    border-bottom: 1px solid var(--brdcolor-gray-200);
    text-align: left;
}

.shop_table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--color-gray-700);
}

.cart_totals {
    max-width: 500px;
    margin-left: auto;
    padding: 30px;
    background-color: var(--bgcolor-gray-100);
    border-radius: var(--wd-brd-radius);
}

.cart_totals h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

/* Checkout Page */
.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    height: var(--wd-form-height);
    padding: 0 20px;
    border: 1px solid var(--wd-form-brd-color);
    border-radius: var(--wd-form-brd-radius);
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-row textarea {
    height: 120px;
    padding: 15px 20px;
    resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--wd-form-brd-color-focus);
    outline: none;
}

/* Order Review */
#order_review {
    background-color: var(--bgcolor-gray-100);
    padding: 30px;
    border-radius: var(--wd-brd-radius);
}

#order_review h3 {
    margin-bottom: 20px;
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: var(--wd-brd-radius);
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-message {
    background-color: var(--notices-success-bg);
    color: var(--notices-success-color);
}

.woocommerce-info {
    background-color: var(--wd-primary-color);
    color: white;
}

.woocommerce-error {
    background-color: var(--notices-warning-bg);
    color: var(--notices-warning-color);
}

/* Responsive */
@media (max-width: 768px) {
    .single-product .product,
    .woocommerce-checkout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
