/*
Theme Name: SupremeHL WPTheme
Theme URI: https://github.com/wassayknp
Author: wassayknp
Author URI: https://github.com/wassayknp
Description: A premium, fast, and fully customizable WordPress theme developed exclusively for Supreme Handloom by wassayknp. It features a modern, colorful SaaS-inspired design, interactive sliders, dynamic customizer options, and full WooCommerce integration tailored for the traditional handloom and B2B textile industry.
Version: 1.0.2
Text Domain: supreme-handloom
*/

:root {
    /* ── Supreme Handloom Brand Palette ── */
    /* Primary: Logo Blue */
    --primary-color:  #1C9DD8;
    --primary-light:  #55C0EE;
    --primary-dark:   #1278A8;
    --primary-pale:   #E6F6FD;

    /* Secondary: Logo Crimson Red */
    --secondary-color: #E8174B;
    --secondary-light: #FF5277;
    --secondary-dark:  #B50F36;
    --secondary-pale:  #FDEAEE;

    /* Neutral / Surface */
    --bg-light:  #F7FBFE;   /* very light blue-tinted white */
    --bg-mid:    #EAF5FC;   /* soft blue-grey section bg   */
    --bg-dark:   #0D2233;   /* deep navy for topbar/footer  */
    --bg-card:   #FFFFFF;

    /* Text */
    --text-main:  #1A2F40;
    --text-muted: #5A7A90;
    --text-light: #F0F8FF;
    --white:      #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-hero:    linear-gradient(135deg, rgba(28,157,216,0.88) 0%, rgba(232,23,75,0.88) 100%);
    --gradient-card:    linear-gradient(135deg, var(--primary-pale) 0%, var(--secondary-pale) 100%);

    /* Shadows */
    --shadow-sm:      0 1px 3px rgba(28,157,216,0.08);
    --shadow-md:      0 4px 12px rgba(28,157,216,0.14);
    --shadow-lg:      0 10px 30px rgba(28,157,216,0.18);
    --shadow-xl:      0 20px 40px rgba(28,157,216,0.20);
    --shadow-colored: 0 12px 30px rgba(232,23,75,0.28);

    /* Radii */
    --border-radius-sm:   0.375rem;
    --border-radius-md:   0.5rem;
    --border-radius-lg:   1rem;
    --border-radius-xl:   1.5rem;
    --border-radius-full: 9999px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Transitions */
    --transition-fast:   0.2s ease;
    --transition-normal: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bg-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price, .woocommerce div.product span.price {
    color: var(--secondary-color) !important;
}

.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
    border-radius: var(--border-radius-full) !important;
    padding: 0.875rem 2rem !important;
    font-family: var(--font-heading) !important;
    border: none !important;
    font-weight: 600 !important;
}

.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.woocommerce span.onsale {
    background-color: var(--secondary-color) !important;
    border-radius: var(--border-radius-full) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom-color: var(--primary-color) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-color) !important;
}

.woocommerce-message, .woocommerce-info {
    border-top-color: var(--primary-color) !important;
}

.woocommerce-message::before, .woocommerce-info::before {
    color: var(--primary-color) !important;
}


/* Utilities */
.text-center { text-align: center; }
.section-padding { padding: 4rem 0; }
.mt-5 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    transition: var(--transition-normal);
    cursor: pointer;
    font-family: var(--font-heading);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 30px -5px rgba(99, 102, 241, 0.5);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Topbar Header */
.topbar {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left i { margin-right: 0.5rem; color: var(--secondary-light); }
.topbar-right a { color: var(--text-light); margin-left: 1.5rem; }
.topbar-right a:hover { color: var(--primary-light); }

/* Main Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.0rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-brand img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--bg-dark);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* SaaS Hero Section */
.hero {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Sections */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-title.left {
    text-align: left;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-subtitle.left {
    text-align: left;
    margin-left: 0;
}

/* Cards (SaaS Style) */
.category-card {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(15,23,42,0.9), transparent);
    color: var(--white);
}

.category-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-content span {
    font-weight: 600;
    color: var(--secondary-light);
    display: inline-block;
    transition: var(--transition-fast);
}

.category-card:hover .category-content span {
    transform: translateX(5px);
}

/* Features SaaS */
.features-section {
    background-color: var(--white);
    position: relative;
}

.feature-box {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-normal);
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.feature-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-normal);
}

.feature-box:hover .feature-icon-wrapper {
    color: var(--white);
}

.feature-box:hover .feature-icon-wrapper::after {
    opacity: 1;
    transform: scale(1);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-muted);
}

/* Interactive Products */
.products-bg {
    background-color: var(--bg-light);
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-add {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.product-card:hover .product-add {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Split Section SaaS */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-image {
    flex: 1;
    position: relative;
}

.split-image img {
    width: 100%;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.split-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    z-index: -1;
    opacity: 0.5;
}

.split-content {
    flex: 1;
}

/* Footer & Bottom SaaS */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer-cta {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 1000px;
    margin: -8rem auto 3rem;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-colored);
}

.footer-cta h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h4 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--secondary-light);
    padding-left: 5px;
}

.footer-links i {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .topbar { display: none; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
    }
    
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: flex; }
    
    .hero { padding: 8rem 0 6rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    
    .split-section { flex-direction: column; }
    
    .footer-cta { margin-top: 0; border-radius: 0; padding: 3rem 1.5rem; }
    .footer { padding-top: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ==========================================================================
   Modern WooCommerce Wrappers & Filters
   ========================================================================== */
.woo-modern-wrapper {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.woocommerce-result-count {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    margin-bottom: 2rem !important;
}

.woocommerce-ordering select {
    appearance: none;
    background: var(--bg-light) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%231C9DD8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 1rem center;
    background-size: 1.2rem;
    padding: 0.75rem 3rem 0.75rem 1.25rem !important;
    border: 1px solid rgba(28,157,216,0.2) !important;
    border-radius: var(--border-radius-full) !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    color: var(--primary-dark) !important;
    box-shadow: var(--shadow-sm) !important;
    cursor: pointer;
    transition: var(--transition-fast) !important;
}

.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-md) !important;
    outline: none !important;
}

.woocommerce .woocommerce-product-search {
    position: relative;
    display: flex;
    margin-bottom: 2rem;
}

.woocommerce .woocommerce-product-search input[type="search"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius-full) 0 0 var(--border-radius-full);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.woocommerce .woocommerce-product-search input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(28,157,216,0.1);
}

.woocommerce .woocommerce-product-search button[type="submit"] {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none;
    padding: 0 2rem;
    border-radius: 0 var(--border-radius-full) var(--border-radius-full) 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.woocommerce .woocommerce-product-search button[type="submit"]:hover {
    transform: none !important;
    filter: brightness(1.1);
}

.woocommerce-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F1F5F9;
}