/**
 * Custom WooCommerce Styles for Shop Page with Pricing Tables
 */

/* Blog-style container for shop page */
.blog-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hide default WooCommerce elements we don't need on the shop page */
.woocommerce-ordering,
.woocommerce-result-count,
.products.columns-4,
.add_to_cart_button {
    display: none !important;
}

/* Blog-style header for shop page */
.woocommerce-products-header.blog-header {
    padding: 40px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--footer-gradient-start, #1a2a4a), var(--footer-gradient-end, #2c4278));
    color: #fff;
    border-radius: 0 0 10px 10px;
    margin-bottom: 50px;
}

.woocommerce-products-header .page-title {
    color: white !important;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.product-section-heading {
    color: white !important;
    font-weight: 400;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.5;
    opacity: 0.9;
    font-family: var(--body-font, 'Inter', sans-serif);
}

.woocommerce-product-subheading {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: var(--grey-color);
}

.woocommerce-products-header .term-description p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--grey-color);
}

/* Pricing Grid for Shop */
.pricing {
    padding: 0;
    position: relative;
    margin-bottom: 60px;
}

/* Demo link styling */
.demo-link {
    margin: 40px auto;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.demo-link .live-demo {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    min-width: 220px;
    justify-content: center;
    text-decoration: none;
}

.demo-link .live-demo:hover {
    background-color: #29a36b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.demo-link .live-demo i {
    margin-right: 10px;
}

/* Reset any sticky behaviors elsewhere */
.entry-header,
.woocommerce-products-header,
.page-header {
    position: relative !important;
    top: auto !important;
}

/* Full-width container */
.container.full-width {
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
}

/* Make pricing grid full width display */
.pricing-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

/* Adjust pricing plan width for better full-width display */
.pricing-plan {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 33.333%;
    min-width: 310px;
    flex: 1 1 0;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Plan header styling for improved look */
.plan-header {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.plan-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 700;
}

.plan-description {
    color: var(--grey-color);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
    height: 50px; /* Reduced height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price styling */
.plan-price {
    padding: 20px 0;
    text-align: center;
}

.plan-price .price {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.plan-price .price ins {
    text-decoration: none;
    color: var(--dark-color);
}

.plan-price span.price {
    display: inline;
}

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

.plan-price del {
    opacity: 0.5;
    display: block;
    font-size: 0.7em;
    margin-bottom: 5px;
    color: var(--grey-color);
}

/* Features list styling */
.plan-features {
    padding: 20px 30px;
    flex-grow: 1;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    color: var(--grey-color);
    font-size: 16px;
    line-height: 1.5;
}

.plan-features ul li:before {
    display: none;
}

.plan-features ul li i.fas.fa-check {
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 4px;
}

/* Strong elements for license limits */
.plan-features ul li strong {
    color: var(--dark-color);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

/* Custom Buy Now button styling */
.plan-cta {
    padding: 20px 30px 30px;
    text-align: center;
}

.plan-cta .button {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-cta .button.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.plan-cta .button.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plan-cta .button.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.plan-cta .button.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Make sure the featured plan stands out */
.pricing-plan.featured {
    transform: translateY(-10px);
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.pricing-plan.featured:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Badge styling */
.woocommerce span.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
}

/* Custom discount badge */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
}

/* Popular tag ribbon */
.popular-tag {
    position: absolute;
    top: 30px;
    right: -35px;
    background: var(--primary-color);
    color: white !important;
    padding: 8px 40px;
    font-size: 14px;
    font-weight: 500;
    transform: rotate(45deg);
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Feature checkmark formatting */
.plan-features ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Cart page catalog mode styling */
.empty-cart {
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.empty-cart-icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-cart-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.empty-cart-message {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    color: var(--grey-color);
}

/* View Live Demo button */
.view-live-demo {
    text-align: center;
    margin: 30px 0 0;
}

.view-live-demo .button.view-live {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.view-live-demo .button.view-live i {
    margin-right: 8px;
}

.view-live-demo .button.view-live:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .pricing-grid {
        flex-wrap: nowrap;
    }
    
    .pricing-plan {
        min-width: 280px;
    }
}

@media (max-width: 991px) {
    .pricing-grid {
        flex-wrap: wrap;
    }
    
    .pricing-plan {
        width: 48%;
        min-width: 250px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .woocommerce-products-header.blog-header {
        padding: 40px 20px;
    }
    
    .woocommerce-products-header .page-title {
        font-size: 32px;
    }
    
    .product-section-heading {
        font-size: 18px;
    }
    
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-plan, 
    .pricing-plan.featured {
        max-width: 100%;
        width: 100%;
        transform: none;
        min-width: 0;
    }
}

@media (max-width: 576px) {
    .woocommerce-products-header {
        padding: 40px 20px 60px;
    }
    
    .pricing {
        margin-top: -50px;
    }
    
    .plan-features ul li {
        font-size: 14px;
    }
    
    .view-live-demo .button.view-live {
        padding: 15px 30px;
        font-size: 18px;
    }
}

/* Cart and Checkout Styling */
.woocommerce-cart .blog-container,
.woocommerce-checkout .blog-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fix spacing after header */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-checkout .woocommerce-checkout {
    margin-top: 30px;
}

/* Style cart table */
.woocommerce-cart-form__contents {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.woocommerce-cart-form__contents thead {
    background-color: #f7f9ff;
}

.woocommerce-cart-form__contents th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.woocommerce-cart-form__contents td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

.woocommerce-cart-form__contents td.product-name a {
    color: var(--dark-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-cart-form__contents td.product-name a:hover {
    color: var(--primary-color);
}

/* Style cart totals */
.cart-collaterals {
    margin-top: 40px;
}

.cart_totals {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cart_totals h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 700;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals th {
    text-align: left;
    padding: 15px 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart_totals td {
    text-align: right;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Checkout styling */
.woocommerce-checkout .col2-set {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    flex: 1;
    min-width: 320px;
    padding: 0 15px;
    margin-bottom: 30px;
}

.woocommerce-checkout h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 700;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout-review-order {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.woocommerce-checkout label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="password"]:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: var(--primary-color);
    outline: none;
}

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

.woocommerce-checkout #order_review_heading {
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce-cart .woocommerce,
    .woocommerce-checkout .woocommerce {
        padding: 0 15px;
    }
    
    .woocommerce-cart-form__contents thead {
        display: none;
    }
    
    .woocommerce-cart-form__contents td {
        display: block;
        text-align: right;
        padding: 10px 15px;
    }
    
    .woocommerce-cart-form__contents td:before {
        content: attr(data-title) ": ";
        font-weight: 600;
        float: left;
    }
    
    .woocommerce-cart-form__contents td.product-remove,
    .woocommerce-cart-form__contents td.product-thumbnail {
        text-align: center;
    }
    
    .woocommerce-cart-form__contents td.product-thumbnail:before {
        display: none;
    }
    
    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        flex: 100%;
        min-width: 100%;
    }
} 