/*
Theme Name: Thirupathi Lottery
Theme URI: https://example.com/thirupathi-lottery
Author: Your Name
Author URI: https://example.com
Description: A premium WooCommerce theme for Thirupathi Lottery Agency.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thirupathi-lottery
Tags: e-commerce, woocommerce, lottery, premium
*/

:root {
    --primary-color: #d4af37;
    /* Gold */
    --secondary-color: #1a1a1a;
    /* Dark Black/Gray */
    --accent-color: #e63946;
    /* Vibrant Red */
    --text-color: #f1f1f1;
    --bg-color: #121212;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
        /* Simplify for mobile for now */
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: radial-gradient(circle at center, #2a2a2a 0%, #121212 100%);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
}

/* WooCommerce Products */
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.products li.product {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

ul.products li.product img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

ul.products li.product .price {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

ul.products li.product .button {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

ul.products li.product .button:hover {
    background: #fff;
    color: #000;
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    border-top: var(--glass-border);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background-color: #20bc5a;
}

/* =========================================
   WooCommerce Integration Styles
   ========================================= */

/* General Wrapper */
.woocommerce-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: var(--glass-border);
}

/* Headings */
.woocommerce h2,
.woocommerce h3,
.woocommerce h4 {
    color: var(--primary-color);
}

/* Buttons */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce .button.alt,
.woocommerce input.button.alt,
.woocommerce input.button {
    background-color: var(--primary-color) !important;
    color: #000 !important;
    border-radius: 25px !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce .button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce input.button:hover {
    background-color: #fff !important;
    color: #000 !important;
    transform: translateY(-2px);
}

/* Tables (Cart, Checkout) */
.woocommerce table.shop_table {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    border-collapse: separate !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

.woocommerce table.shop_table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    padding: 15px !important;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.woocommerce table.shop_table td {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 15px !important;
    color: #ddd;
}

.woocommerce table.shop_table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Input Fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    background-color: #000;
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.woocommerce form .form-row label {
    color: #ccc;
    font-size: 0.9rem;
}

/* Messages / Alerts */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background-color: rgba(26, 26, 26, 0.9);
    color: #fff;
    border-top: 3px solid var(--primary-color);
    padding: 1rem 2rem;
    margin-bottom: 2rem !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--primary-color);
}

.woocommerce-error {
    border-top-color: var(--accent-color);
}

.woocommerce-error::before {
    color: var(--accent-color);
}

/* Cart Page Specifics */
.woocommerce-cart .cart-collaterals .cart_totals {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

/* Checkout Page Specifics */
.woocommerce-checkout #payment {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: #ccc !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: rgba(0, 0, 0, 0.5) !important;
}

/* Product Single Page */
.product .images img {
    border-radius: 10px;
    border: 1px solid #333;
}

.product .summary .price {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.product .summary .product_meta {
    color: #888;
    font-size: 0.85rem;
}