/*
Theme Name: Custom Landing Page
Theme URI: https://github.com/
Author: Landing Page Studio
Author URI: https://www.facebook.com/profile.php?id=61586812933012
Description: A modern, conversion-optimized WordPress theme designed for single-product landing pages.
Version: 5.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-wc-landing
Tags: e-commerce, custom-background, custom-logo, one-column, accessibility-ready
*/

/* ------------------------------------------------------------------------- *
 * Reset & Base
 * ------------------------------------------------------------------------- */
:root {
    --primary-color: #d32f2f;
    --primary-gradient: linear-gradient(135deg, #f44336 0%, #e65100 100%);
    --secondary-color: #1b263b;
    --success-color: #059669;
    --success-hover: #047857;
    --background-color: #f3f4f6;
    --surface-color: #ffffff;
    --text-color: #374151;
    --heading-color: #111827;
    --border-color: #e5e7eb;
    --focus-color: rgba(16, 185, 129, 0.2);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-top: 0;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Product Grid Styles --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-header {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.site-header h2 {
    margin: 0;
    color: #4a148c;
    font-size: 28px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    padding: 15px;
    text-align: center;
    background: #fdfdfd;
}

.product-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.old-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.btn-order {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #F6A823 0%, #E65100 100%);
    color: #fff;
    padding: 14px 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(246, 168, 35, 0.3);
}

.btn-order:hover {
    background: linear-gradient(135deg, #E65100 0%, #D84315 100%);
    box-shadow: 0 6px 20px rgba(246, 168, 35, 0.4);
    transform: translateY(-2px);
}

/* Responsive Grid */
@media (max-width: 768px) {
    .product-grid {
        gap: 10px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .product-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .btn-order {
        padding: 10px 0;
        font-size: 14px;
    }
}

/* ------------------------------------------------------------------------- *
 * Checkout Form Enhancements
 * ------------------------------------------------------------------------- */
.checkout-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    margin-top: 20px;
}
.checkout-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.checkout-left {
    flex: 1 1 500px;
}
.checkout-right {
    flex: 1 1 350px;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background-color: #ffffff !important;
    color: #000000 !important;
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: #888888 !important;
    font-weight: 400;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #4a148c !important;
    box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.2) !important;
}
.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    background: linear-gradient(135deg, #8EB817 0%, #76980E 100%);
    box-shadow: 0 4px 15px rgba(118, 152, 14, 0.3);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.submit-btn:hover {
    background: linear-gradient(135deg, #76980E 0%, #5E7A0B 100%) !important;
    box-shadow: 0 6px 20px rgba(118, 152, 14, 0.4);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .checkout-layout {
        flex-direction: column;
        gap: 5px;
    }
    .checkout-left .form-group:last-child {
        margin-bottom: 0;
    }
}
