/*
Theme Name: RashiKart Max (Slider + MultiPage)
Theme URI: http://rashikart.com
Author: Professional Developer
Description: 100% Dynamic eCommerce theme with Banner Slider, AstroTalk aesthetics, full pages, and WooCommerce.
Version: 5.0
Text Domain: rashikart
*/

:root {
    --primary: #F7CA3E; 
    --dark: #222222;
    --text: #444444;
    --light: #F9F9F9;
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --container: 1300px;
}

body, html { margin: 0; padding: 0; font-family: var(--font-body); color: var(--text); background-color: var(--light); overflow-x: hidden; }
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; }
.site-container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* TOP BAR */
.top-bar { background: #000; color: #fff; text-align: center; padding: 10px 15px; font-size: 13px; font-weight: bold; letter-spacing: 0.5px; }

/* HEADER */
.site-header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.site-branding img { max-width: 180px; display: block; }

/* NAVIGATION */
.main-navigation { flex-grow: 1; display: flex; justify-content: center; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 15px 25px; flex-wrap: wrap; justify-content: center; }
.main-navigation li { position: relative; }
.main-navigation a { font-size: 15px; font-weight: 600; color: var(--dark); padding: 10px 0; display: flex; align-items: center; }
.main-navigation a i { font-size: 10px; margin-left: 6px; color: #888; }
.main-navigation a:hover { color: #e3a900; }
.main-navigation ul ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); min-width: 240px; z-index: 100; flex-direction: column; padding: 10px 0; border-top: 3px solid var(--primary); }
.main-navigation li:hover > ul { display: flex; }
.main-navigation ul ul li a { padding: 12px 20px; font-weight: 400; font-size: 14px; border-bottom: 1px solid #f5f5f5; }
.main-navigation ul ul li a:hover { background: #f9f9f9; color: var(--dark); padding-left: 25px; }

.header-icons { display: flex; align-items: center; gap: 20px; }
.header-icons a { font-size: 20px; color: var(--dark); position: relative; }
.cart-count { position: absolute; top: -8px; right: -12px; background: #e32222; color: #fff; font-size: 11px; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-menu-btn { display: none; font-size: 26px; cursor: pointer; color: var(--dark); }

/* SLIDER */
.hero-slider-wrap { position: relative; width: 100%; height: 550px; overflow: hidden; background: #000; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; background-size: cover; background-position: center; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; z-index: 1; }
.slider-content { max-width: 650px; background: rgba(255,255,255,0.92); padding: 50px; border-radius: 10px; margin-left: 5%; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.slider-content h1 { font-family: var(--font-heading); font-size: 48px; color: var(--dark); margin: 0 0 20px; line-height: 1.2; }
.slider-content p { font-size: 20px; color: #555; margin-bottom: 30px; line-height: 1.5; }
.btn-primary { background: var(--dark); color: #fff; padding: 15px 40px; border-radius: 30px; font-size: 16px; font-weight: bold; text-transform: uppercase; display: inline-block; border: none; cursor: pointer; letter-spacing: 1px; }
.btn-primary:hover { background: var(--primary); color: var(--dark); }
.slider-controls { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); z-index: 10; padding: 0 30px; pointer-events: none; }
.slider-controls button { background: rgba(0,0,0,0.5); color: #fff; border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 20px; cursor: pointer; pointer-events: auto; transition: 0.3s; }
.slider-controls button:hover { background: var(--primary); color: #000; }

/* PRODUCT GRID */
.products-section { padding: 90px 0; background: #fff; }
.section-title { text-align: center; font-family: var(--font-heading); font-size: 38px; color: var(--dark); margin-bottom: 60px; position: relative; }
.section-title::after { content: ''; display: block; width: 70px; height: 4px; background: var(--primary); margin: 15px auto 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product-card { text-align: center; border: 1px solid #eaeaea; border-radius: 12px; padding: 25px; transition: 0.3s; background: #fff; }
.product-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.08); transform: translateY(-8px); border-color: var(--primary); }
.product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; margin-bottom: 20px; }
.product-card .black-placeholder { width: 100%; aspect-ratio: 1/1; background-color: #111; color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 8px; margin-bottom: 20px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.product-card h3 { font-family: var(--font-heading); font-size: 20px; color: var(--dark); margin: 0 0 12px; }
.product-card .price { font-weight: bold; color: var(--dark); font-size: 18px; margin-bottom: 20px; display: block; }
.product-card .btn-add { background: var(--dark); color: #fff; padding: 12px 25px; border-radius: 25px; font-size: 15px; font-weight: 600; display: inline-block; width: 100%; text-transform: uppercase; }
.product-card .btn-add:hover { background: var(--primary); color: var(--dark); }

/* PAGES & CONTENT */
.page-header { background: #111; color: #fff; padding: 80px 0; text-align: center; background-image: url('https://via.placeholder.com/1920x400/111111/222222'); background-size: cover; background-blend-mode: overlay; }
.page-header h1 { font-family: var(--font-heading); font-size: 46px; margin: 0; color: var(--primary); }
.page-content-area { padding: 80px 0; min-height: 50vh; background: #fdfdfd; }
.content-wrapper { max-width: 1000px; margin: 0 auto; background: #fff; padding: 60px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); line-height: 1.9; font-size: 17px; color: #444; border-top: 5px solid var(--primary); }
.content-wrapper h2 { font-family: var(--font-heading); margin-top: 40px; color: var(--dark); font-size: 32px; }
.content-wrapper h3 { font-family: var(--font-heading); color: var(--dark); font-size: 24px; }
.content-wrapper img { border-radius: 12px; margin: 30px 0; max-width: 100%; height: auto; }
.content-wrapper ul { padding-left: 20px; }
.content-wrapper li { margin-bottom: 10px; }

/* FOOTER */
.site-footer { background: #0a0a0a; color: #bbb; padding: 80px 0 20px; font-size: 15px; }
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; margin-bottom: 60px; }
.footer-widget h3 { font-family: var(--font-heading); font-size: 22px; color: var(--primary); margin: 0 0 25px; }
.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget ul li { margin-bottom: 15px; }
.footer-widget a:hover { color: #fff; padding-left: 5px; }
.site-info { text-align: center; border-top: 1px solid #222; padding-top: 25px; font-size: 14px; color: #666; }

/* WOOCOMMERCE FIXES */
.woocommerce ul.products li.product { text-align: center; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-heading); color: var(--dark); font-size: 20px; margin-bottom: 12px; }
.woocommerce ul.products li.product .price { color: var(--dark); font-weight: bold; font-size: 18px; }
.woocommerce ul.products li.product .button { background: var(--dark); color: #fff; border-radius: 25px; padding: 12px 25px; text-transform: uppercase; font-weight: 600; }
.woocommerce ul.products li.product .button:hover { background: var(--primary); color: var(--dark); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .slider-content h1 { font-size: 40px; }
}
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .mobile-menu-btn { display: block; order: 3; }
    .header-icons { order: 2; margin-left: auto; margin-right: 20px; }
    .main-navigation { width: 100%; order: 4; margin-top: 15px; }
    .main-navigation ul { display: none; flex-direction: column; width: 100%; background: #f9f9f9; border-top: 1px solid #ddd; }
    .main-navigation ul.active { display: flex; }
    .main-navigation a { padding: 15px 20px; border-bottom: 1px solid #eee; justify-content: space-between; }
    .main-navigation ul ul { position: static; display: flex; box-shadow: none; padding-left: 20px; border-top: none; background: #f0f0f0; }
    
    .hero-slider-wrap { height: 450px; }
    .slider-content { margin: 0 20px; padding: 30px; }
    .slider-content h1 { font-size: 32px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .content-wrapper { padding: 30px; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; text-align: center; }
    .hero-slider-wrap { height: 400px; }
    .slider-content h1 { font-size: 28px; }
}
