/*
Theme Name: R4 Pets Modern Theme
Theme URI: https://abdulwahabmalhes.com/
Author: Eng. Abdulwhaab Malhes
Description: Ultra Premium 2026 Pet Store Theme (From Prototype)
Version: 4.0.0
License: GNU General Public License v2 or later
Text Domain: r4-pets
*/

/* --- CSS Variables --- */
:root {
    --primary: #fca311;
    --primary-hover: #e8950d;
    --secondary: #14213d;
    --text-main: #2b2d42;
    --text-muted: #8d99ae;
    --bg-main: #fcfcfc;
    --bg-card: #ffffff;
    --bg-light: #fff9f2;
    --border: #edf2f4;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base --- */
html, body { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-body); color: var(--text-main); background: var(--bg-main); line-height: 1.6; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--secondary); font-weight: 800; line-height: 1.2; margin-top:0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.r4-section { padding: 100px 0; }
.bg-main { background: var(--bg-main); }
.bg-light-accent { background: var(--bg-light); }
.overflow-hidden { overflow: hidden; }

/* --- Section Heading --- */
.section-heading { margin-bottom: 60px; }
.section-heading h2 { font-size: 2.8rem; margin-bottom: 15px; }
.section-heading p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 35px; border-radius: 50px; font-weight: 700; font-family: var(--font-heading);
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border: none;
    transition: var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 20px rgba(252,163,17,0.3); }
.btn-primary:hover { background: var(--secondary); transform: translateY(-3px); color: #fff; box-shadow: var(--shadow-lg); }
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 10px 20px rgba(37,211,102,0.3); }
.btn-whatsapp:hover { background: #1ebe57; transform: translateY(-3px); color: #fff; box-shadow: var(--shadow-lg); }

/* --- Header --- */
.site-header {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 20px 0; border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; font-family: var(--font-heading); color: var(--secondary); letter-spacing: -1px; }
.logo span { color: var(--primary); }
.main-navigation ul { display: flex; list-style: none; gap: 30px; margin:0; padding:0; }
.main-navigation a { font-weight: 500; font-size: 1rem; color: var(--text-main); }
.main-navigation a:hover { color: var(--primary); }
.header-actions { display: flex; gap: 15px; }
.icon-btn { font-size: 1.2rem; background: var(--bg-main); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); transition: var(--transition); }
.icon-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Hero Section --- */
.r4-hero {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; align-items: center; overflow: hidden;
    padding-top: 80px;
}
.hero-swiper { width: 100%; height: 100%; }
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: 1;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(20,33,61,0.95) 0%, rgba(20,33,61,0.4) 100%); z-index: 2;
}
.paw-print { position: absolute; font-size: 4rem; opacity: 0.05; color: #fff; z-index: 3; }
.paw-1 { top: 25%; right: 10%; transform: rotate(15deg); }
.paw-2 { bottom: 20%; right: 25%; transform: rotate(-20deg); }
.paw-3 { top: 50%; right: 40%; transform: rotate(45deg); font-size: 2rem; }
.hero-content { position: relative; z-index: 4; max-width: 650px; color: #fff; }
.hero-content h1 { font-size: 4.5rem; color: #fff; margin-bottom: 25px; line-height: 1.1; }
.hero-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; line-height: 1.8; font-weight: 300; }
.hero-buttons { display: flex; gap: 20px; flex-wrap:wrap; }

/* --- Categories Grid --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.cat-card {
    background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); transition: var(--transition);
    border: 1px solid var(--border); display: block;
}
.cat-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.cat-img { height: 220px; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cat-card:hover .cat-img img { transform: scale(1.08); }
.cat-info { padding: 25px; text-align: center; }
.cat-info h3 { font-size: 1.4rem; margin-bottom: 5px; }
.cat-info span { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }

/* --- Products Swiper & Grid --- */
.featured-products-swiper { padding: 20px 10px 60px; }
.product-card {
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.prod-img { position: relative; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; background: #f5f5f5; }
.prod-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .prod-img img { transform: scale(1.05); }
.prod-actions {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: flex; gap: 10px; opacity: 0; transition: var(--transition);
}
.product-card:hover .prod-actions { opacity: 1; }
.action-btn {
    width: 45px; height: 45px; background: #fff; border-radius: 50%; border: none; cursor: pointer;
    font-size: 1.2rem; box-shadow: var(--shadow-md); transition: var(--transition); display:flex; align-items:center; justify-content:center;
}
.action-btn:hover { background: var(--primary); color: #fff; }
.prod-info h3 { font-size: 1.2rem; margin-bottom: 10px; }
.prod-info .price { font-weight: 800; color: var(--primary); font-size: 1.3rem; }

/* --- Shop Layout --- */
.shop-sidebar { flex: 0 0 280px; background: var(--bg-card); padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border); position: sticky; top: 100px; }
.shop-content { flex: 1; }

/* --- Footer --- */
.site-footer { background: var(--secondary); color: #fff; padding: 80px 0 30px; margin-top: auto; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--primary); }
.footer-social a { font-size: 1.5rem; display: inline-block; margin-right: 15px; color: #fff; }
.footer-social a:hover { color: var(--primary); transform: translateY(-3px); }

/* --- WooCommerce Overrides --- */
.woocommerce-products-header, .woocommerce-breadcrumb { display:none; }
.woocommerce-pagination { margin-top:40px; text-align:center; }
.woocommerce-pagination ul { border:none; list-style:none; padding:0; display:inline-flex; gap:10px; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span { padding:10px 15px; border-radius:var(--radius-sm); background:var(--bg-card); border:1px solid var(--border); font-weight:bold; }
.woocommerce-pagination ul li span.current { background:var(--primary); color:#fff; border-color:var(--primary); }

/* Cart & Checkout Modernization */
.woocommerce-cart .cart-collaterals .cart_totals, 
.woocommerce-checkout .woocommerce-checkout-review-order {
    background: var(--bg-card); padding: 30px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.woocommerce table.shop_table { border: none; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); width:100%; border-collapse:collapse; background:var(--bg-card); }
.woocommerce table.shop_table th { background: var(--bg-main); color: var(--secondary); padding: 20px; text-align:left; }
.woocommerce table.shop_table td { padding: 20px; border-top: 1px solid var(--border); vertical-align:middle; }
.woocommerce-checkout form.checkout { display: flex; flex-wrap: wrap; gap: 40px; }
.woocommerce-checkout #customer_details { flex: 1; min-width: 300px; }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { flex: 0 0 400px; }

/* My Account Dashboard */
.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 250px; background: var(--bg-card); padding: 20px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li { border-bottom: 1px solid var(--border); }
.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child { border:none; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a { display: block; padding: 15px; color: var(--text-main); font-weight: 500; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a, 
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover { color: var(--primary); background: var(--bg-main); border-radius: var(--radius-sm); }
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1; background: var(--bg-card); padding: 40px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
@media (min-width: 768px) { .woocommerce-account .woocommerce { display: flex; gap: 40px; align-items:flex-start; } }

/* Inputs and Forms */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], textarea, select {
    width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-body); background: var(--bg-main); transition: var(--transition);
}
input:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(252,163,17,0.1); }
form p { margin-bottom: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .main-navigation { display: none; }
    .hero-content h1 { font-size: 3rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .shop-sidebar { position:relative; top:0; }
}
