/*
Theme Name: Indus Prime
Theme URI: http://localhost/Indusprimepk
Author: Antigravity
Author URI: https://example.com
Description: Premium E-Commerce Theme for Indus Prime
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indusprime
*/

/* Color Palette */
:root {
    --bg-dark: #1a1a1a;
    --gold: #D4AF37;
    --gold-light: #EBD074;
    --gold-dark: #B08D2A;
    --text-light: #F4F4F4;
    --text-muted: #A0A0A0;
    --glass-bg: rgba(26, 26, 26, 0.7);
    --glass-border: rgba(212, 175, 55, 0.3);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .logo { font-family: 'Cinzel', serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg-dark);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}
.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--gold);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--gold);
    cursor: pointer;
}
.btn-secondary:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 20px 0;
}
.header.scrolled {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-toggle {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}
.menu-toggle:hover { color: var(--gold-light); }
.logo h1 {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.logo h1 a { color: inherit; }
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
}
.search-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 10px 20px;
    padding-right: 50px;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}
.search-bar:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}
.search-bar::placeholder { color: var(--text-muted); }
.search-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s;
}
.search-btn:hover { transform: scale(1.1); }
.header-actions .cart-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}
.header-actions .cart-btn:hover { transform: scale(1.1); }

/* Side Drawer */
.side-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 200;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}
.side-drawer.open { left: 0; }
.close-drawer {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.8rem;
    align-self: flex-end;
    margin: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}
.close-drawer:hover { transform: rotate(90deg); }
.drawer-content { padding: 20px 40px; }
.drawer-nav li { margin-bottom: 25px; }
.drawer-nav a {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}
.drawer-nav a:hover {
    color: var(--gold);
    padding-left: 10px;
}

/* Back to Top Hover */
#backToTop:hover {
    background: var(--gold-light);
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .side-drawer { width: 100%; left: -100%; }
    .side-drawer.open { left: 0; }
    .logo h1 { font-size: 1.5rem; }
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.overlay.active { opacity: 1; visibility: visible; }

/* Hero Section */
.hero {
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26,26,26,0.3) 0%, rgba(26,26,26,0.8) 100%);
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}
.hero h2 {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* Essentials Section */
.essentials-section {
    padding: 100px 0;
    background: var(--bg-dark);
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
}
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.category-item {
    text-align: center;
    cursor: pointer;
    width: 140px;
}
.category-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--gold) 0%, transparent 100%);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}
.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    transition: transform 0.5s ease;
}
.category-item:hover .category-icon {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}
.category-item:hover .category-icon img {
    transform: scale(1.1);
}
.category-item h3 {
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s;
}
.category-item:hover h3 { color: var(--gold); }

/* Story Section */
.story-section {
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26,26,26,0.85);
}
.story-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    text-align: center;
}
.story-text {
    max-width: 800px;
    background: rgba(0,0,0,0.5);
    padding: 50px;
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}
.story-text .gold-text {
    color: var(--gold);
    margin-bottom: 30px;
}
.story-text .gold-text::after {
    left: 50%;
    transform: translateX(-50%);
}
.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: #111;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}
.footer .logo h2 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .search-container { display: none; }
    .hero h2 { font-size: 3rem; }
}
@media (max-width: 768px) {
    .hero h2 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .categories-grid { gap: 20px; }
    .category-item { width: 100px; }
    .category-icon { width: 80px; height: 80px; }
    .story-text { padding: 30px 20px; }
}

/* WordPress Specific Classes */
.wp-block-group { margin-bottom: 20px; }

/* WooCommerce Specific Overrides */
.woocommerce-section {
    color: var(--text-light);
}
.woocommerce-section h1, .woocommerce-section h2, .woocommerce-section h3 {
    color: var(--gold);
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
    color: var(--bg-dark) !important;
    border-radius: 30px !important;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}
.woocommerce ul.products li.product .price {
    color: var(--gold) !important;
}
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    color: var(--text-light) !important;
}

/* Header Cart Count */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Product Page Enhancements */
.gold-text { color: var(--gold) !important; }

/* Fitrut Score */
.fitrut-score {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(212, 175, 55, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    margin: 15px 0;
    border: 1px solid var(--glass-border);
}
.score-label { font-weight: 600; color: var(--text-light); }
.score-bar {
    flex-grow: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.score-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    box-shadow: 0 0 10px var(--gold);
}
.score-text { color: var(--gold); font-weight: bold; }

/* Health Benefits */
.health-benefits { margin: 25px 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.health-benefits h3 { color: var(--text-light); font-size: 1.2rem; margin-bottom: 15px; }
.health-benefits ul li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.health-benefits ul li i { color: var(--gold); }

/* WooCommerce Tabs Overrides */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: transparent !important;
    border-bottom: 2px solid var(--gold) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--gold) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent !important; border: none !important; }
.woocommerce div.product .woocommerce-tabs .panel h2 { color: var(--text-light); }
.woocommerce div.product .woocommerce-tabs .panel p { color: var(--text-muted); }

/* Mobile Sticky Buy Buttons */
.mobile-sticky-buy {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    z-index: 999;
    border-top: 1px solid var(--glass-border);
}
.mobile-sticky-buy button.sticky-add-cart,
.mobile-sticky-buy a.sticky-wa-btn {
    width: 48%;
    padding: 12px 0;
    text-align: center;
    border-radius: 5px !important;
    font-weight: bold;
    text-transform: uppercase;
}
.mobile-sticky-buy button.sticky-add-cart {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
}
.mobile-sticky-buy a.sticky-wa-btn {
    background: #25D366;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}
.mobile-sticky-buy a.sticky-wa-btn i { margin-right: 5px; font-size: 1.1rem; }

@media (max-width: 768px) {
    .mobile-sticky-buy { display: flex; justify-content: space-between; }
    body.single-product { padding-bottom: 70px; }
}
