/*
Theme Name: Coffee Net Khordad
Theme URI: http://example.com/coffee-net-khordad
Author: Khordad Team
Author URI: http://example.com
Description: A custom WordPress theme for Coffee Net Khordad using React components and Tailwind CSS.
Version: 7.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coffee-net-khordad
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Import Vazirmatn Font (Reliable CDN) */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.0.3/misc/Farsi-Digits/Vazirmatn-FD-font-face.css');

body {
    font-family: 'Vazirmatn FD', 'Vazirmatn', sans-serif !important;
    position: relative;
}

/* Minimal brand ambient pattern */
.khordad-animated-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-image:
        radial-gradient(ellipse 55% 40% at 12% 18%, rgba(59, 130, 246, 0.07), transparent 70%),
        radial-gradient(ellipse 45% 35% at 88% 72%, rgba(99, 102, 241, 0.05), transparent 70%),
        radial-gradient(rgba(59, 130, 246, 0.18) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
    background-position: 0 0, 0 0, 0 0;
    animation: khordad-dot-drift 48s linear infinite;
}

.khordad-animated-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.4) 100%);
}

@keyframes khordad-dot-drift {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 0 0, 0 0, 28px 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .khordad-animated-bg {
        animation: none;
    }
}

main,
nav,
footer,
.site-content {
    position: relative;
    z-index: 1;
}

/* Checkout Order Review Table */
.woocommerce-checkout-review-order-table {
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    width: 100%;
    margin-bottom: 1.5rem;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 1rem;
    border-bottom: 1px solid #F3F4F6;
    text-align: right; /* RTL */
}

.woocommerce-checkout-review-order-table th {
    background: #F9FAFB;
    font-weight: 800;
    color: #111827;
}

.woocommerce-checkout-review-order-table tfoot th {
    border-top: 2px solid #F3F4F6;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 500;
    color: #374151;
}

.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout-review-order-table .order-total td {
    font-weight: 700;
    color: #111827;
}

.woocommerce-checkout-review-order-table .order-total th {
    font-size: 1.125rem;
}

/* Payment Methods - Card Style */
#payment {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-top: 1.5rem;
}

#payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#payment ul.payment_methods li {
    margin: 0;
    background: white;
    border: 1px solid #E5E7EB; /* Default Border */
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Selected Payment Method Style */
#payment ul.payment_methods li.payment_method_selected,
#payment ul.payment_methods li input:checked + label,
#payment ul.payment_methods li:has(input:checked) {
    border: 2px solid #F59E0B !important; /* Orange/Amber-500 matching image */
    background-color: #FFFBEB; /* Amber-50 */
}

/* Label Styling */
#payment ul.payment_methods li label {
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0;
    font-size: 1rem;
}

#payment ul.payment_methods li label img {
    max-height: 32px;
    margin-right: auto; /* Push to left in RTL */
    margin-left: 0;
}

/* Radio Button */
#payment ul.payment_methods li input[type="radio"] {
    margin-left: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #F59E0B; /* Orange Accent */
}

/* Payment Box (Description) */
#payment .payment_box {
    background: transparent;
    border: none;
    padding: 0.5rem 0 0 2rem; /* Indent slightly */
    margin: 0;
    font-size: 0.875rem;
    color: #4B5563;
    position: relative;
    display: none; /* Hide description if concise like image, or style it */
}

/* Show description if needed */
#payment ul.payment_methods li.payment_method_selected .payment_box {
    display: block;
}

#payment .payment_box::before {
    display: none;
}

#payment .place-order {
    padding: 0;
    margin: 0;
}

/* Submit Button */
#place_order {
    background-color: #84cc16 !important; /* Lime-500 */
    color: white !important;
    width: 100% !important;
    padding: 1rem !important;
    border-radius: 0.75rem !important; /* rounded-xl */
    font-weight: 800 !important;
    font-size: 1.125rem !important;
    transition: all 0.2s !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    gap: 0.5rem;
}

#place_order:hover {
    background-color: #65a30d !important; /* Lime-600 */
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

#place_order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Privacy Policy Text Removal (Hidden visually as requested "No Rules") */
.woocommerce-terms-and-conditions-wrapper,
.woocommerce-privacy-policy-text {
    display: none !important;
}

/* Ensure Form Rows are clean */
.form-row {
    margin: 0 0 1rem;
    width: 100%;
}

/* Hero services card slider */
.hero-cards-slider {
  --card-spacing: 118px;
  --card-y-offset: 22px;
  --card-rotation: 10deg;
  perspective: 1200px;
  touch-action: pan-y;
}

@media (max-width: 639px) {
  .hero-cards-slider {
    --card-spacing: 88px;
    --card-y-offset: 16px;
    --card-rotation: 7deg;
  }
}

.hero-cards-slider.is-dragging {
  cursor: grabbing;
}

.hero-card {
  backface-visibility: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.hero-card.is-center {
  box-shadow: 0 28px 55px rgba(37, 99, 235, 0.28);
  border-color: rgba(255, 255, 255, 0.55) !important;
}

.hero-cards-nav {
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 639px) {
  .hero-cards-nav {
    display: none;
  }
}
