/* ===================================
   Custom Shop Page Styling
   =================================== */

.tawon-shop-page {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}

/* Header */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.woocommerce-products-header__title {
    font-size: 36px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Grid Layout - 3 Columns */
.tawon-products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin: 0 auto !important;
    direction: rtl !important;
    width: 100% !important;
}

@media (max-width: 1200px) {
    .tawon-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .tawon-products-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Card Styling (Bookly Style) */
.tawon-product-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.tawon-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #7cb89d;
}

/* Image */
.tawon-product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.tawon-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tawon-product-card:hover .tawon-product-image img {
    transform: scale(1.08);
}

/* Content */
.tawon-product-content {
    padding: 20px 24px;
    text-align: right;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* LTR Overrides for English */
html[lang="en"] .tawon-product-content,
body.lang-en .tawon-product-content,
html[lang="en-US"] .tawon-product-content {
    text-align: left;
}

.tawon-product-title {
    font-size: 1.15rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.4;
}

.tawon-product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.tawon-product-title a:hover {
    color: #7cb89d;
}

.tawon-product-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Footer */
.tawon-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #ecf0f1;
    flex-direction: row-reverse !important;
    margin-top: auto;
}

/* LTR Overrides for English */
html[lang="en"] .tawon-product-footer,
body.lang-en .tawon-product-footer,
html[lang="en-US"] .tawon-product-footer {
    flex-direction: row-reverse !important;
}

.tawon-product-price {
    color: #6ba877;
    font-weight: 700;
    font-size: 1.15rem;
}

.tawon-product-price del {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: normal;
    margin-left: 5px;
    opacity: 0.7;
}

.tawon-add-to-cart-btn {
    background: #6ba877;
    color: white;
    padding: 9px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(107, 168, 119, 0.3);
    display: inline-block;
}

.tawon-add-to-cart-btn:hover {
    background: #5a9665;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 168, 119, 0.4);
    color: white;
}

.tawon-add-to-cart-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.tawon-add-to-cart-btn.added {
    background: #27ae60;
}

/* Pagination */
.woocommerce-pagination {
    margin-top: 50px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    border: none !important;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.woocommerce-pagination ul li {
    border: none !important;
    overflow: visible !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    color: #2d3748;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    text-decoration: none;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
    background: #7cb89d !important;
    color: white !important;
    border-color: #7cb89d !important;
}