/**
 * Denafa Product Template - Design Italia Styles
 * Version: 1.0.0
 */

:root {
    --primary-color: #0066CC;
    --secondary-color: #17324D;
    --accent-color: #00C5CA;
    --success-color: #008758;
    --warning-color: #A66300;
    --text-color: #17324D;
    --bg-light: #F5F6F7;
}

body {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
}

/* Product content container */
.denafa-product-content {
    background: var(--bg-light);
    padding: 2rem 0;
}

.denafa-product-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.denafa-product-content .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.denafa-product-content .col-lg-8 {
    padding: 0 15px;
    flex: 0 0 auto;
}

.denafa-product-content .col-lg-4 {
    padding: 0 15px;
    flex: 0 0 auto;
}

@media (min-width: 992px) {
    .denafa-product-content .col-lg-8 {
        width: 66.666667%;
    }
    .denafa-product-content .col-lg-4 {
        width: 33.333333%;
    }
}

@media (max-width: 991px) {
    .denafa-product-content .col-lg-8,
    .denafa-product-content .col-lg-4 {
        width: 100%;
    }
    
    .denafa-product-content .col-lg-4 {
        margin-top: 2rem;
    }
}

/* Ensure content doesn't overflow */
.denafa-product-content * {
    box-sizing: border-box;
}

/* Breadcrumb */
.denafa-breadcrumb-container {
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
}

.denafa-breadcrumb-container .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.denafa-breadcrumb-container .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.denafa-breadcrumb-container .breadcrumb-item.active {
    color: var(--text-color);
}

/* Product header */
.denafa-product-header {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.product-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 103, 204, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-subtitle {
    font-size: 1.25rem;
    color: #5c6f82;
    margin-bottom: 1.5rem;
}

.product-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

/* Pricing card */
.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price-description {
    color: #5c6f82;
    margin-top: 0.5rem;
}

.btn-buy {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 4px;
    width: 100%;
    transition: background-color 0.3s;
    cursor: pointer;
}

.btn-buy:hover {
    background-color: #0052A3;
}

.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.included-list li:last-child {
    border-bottom: none;
}

.check-icon {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Content sections */
.content-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.alert-info-custom {
    background-color: rgba(0, 197, 202, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-warning-custom {
    background-color: rgba(166, 99, 0, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* Requirements list */
.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.requirement-number {
    background-color: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Process steps */
.process-step {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
}

.process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 3rem;
    bottom: -2rem;
    width: 2px;
    background-color: #e5e5e5;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Documents needed */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.document-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.document-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* FAQ Accordion */
.accordion-button {
    font-weight: 600;
    color: var(--secondary-color);
    background-color: white;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-light);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-item {
    border: 1px solid #e5e5e5;
    margin-bottom: 0.5rem;
}

.accordion-body {
    padding: 1.25rem;
}

/* Trust badges */
.trust-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-top: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-badge-icon {
    width: 32px;
    height: 32px;
    fill: var(--success-color);
}

/* Related products */
.related-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.related-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.related-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .pricing-card {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .product-title {
        font-size: 1.75rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .document-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        padding-left: 3rem;
    }
    
    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Product description formatting */
.product-description {
    line-height: 1.8;
}

.product-description p {
    margin-bottom: 1rem;
}

.product-description ul,
.product-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.product-description li {
    margin-bottom: 0.5rem;
}

/* Text utilities */
.text-muted {
    color: #5c6f82 !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.small {
    font-size: 0.875rem;
}

/* Button utilities */
.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

/* Spacing utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Hide default WooCommerce elements that we don't need */
.woocommerce-product-gallery {
    display: none !important;
}

.product_meta {
    display: none !important;
}

/* Force WooCommerce wrapper to not interfere */
.woocommerce div.product {
    display: block !important;
    width: 100% !important;
}

.woocommerce div.product .summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure WooCommerce doesn't add unwanted margins */
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    margin-bottom: 0 !important;
}

/* Clear any floats from WooCommerce */
.woocommerce::after,
.woocommerce div.product::after {
    content: "";
    display: table;
    clear: both;
}

/* Grid utilities */
.g-3 {
    margin: 0 -0.5rem;
}

.g-3 > * {
    padding: 0 0.5rem;
    margin-bottom: 1rem;
}

/* Display utilities */
.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}
