/**
 * Sunsky Store Theme - Modern E-commerce Styles
 * A clean, modern e-commerce theme for Perfex CRM
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --store-primary: #2563eb;
    --store-primary-dark: #1d4ed8;
    --store-primary-light: #3b82f6;
    --store-secondary: #f59e0b;
    --store-secondary-dark: #d97706;
    --store-accent: #10b981;
    --store-dark: #1f2937;
    --store-darker: #111827;
    --store-light: #f3f4f6;
    --store-lighter: #f9fafb;
    --store-white: #ffffff;
    --store-gray: #6b7280;
    --store-gray-light: #9ca3af;
    --store-border: #e5e7eb;
    --store-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --store-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --store-radius: 8px;
    --store-radius-lg: 12px;
    --store-transition: all 0.3s ease;
}

/* ============================================
   Base Styles
   ============================================ */
body.sunsky-store-theme {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--store-lighter);
    color: var(--store-dark);
    line-height: 1.6;
}

/* ============================================
   Landing Navbar
   ============================================ */
.landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--store-transition);
}

.landing-navbar.scrolled {
    background: var(--store-white);
    box-shadow: var(--store-shadow);
}

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

.landing-navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.landing-navbar .logo-img {
    height: 40px;
    width: auto;
}

.landing-navbar .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--store-white);
}

.landing-navbar .navbar-links {
    display: flex;
    gap: 30px;
}

.landing-navbar .nav-link {
    color: var(--store-white);
    font-weight: 500;
    text-decoration: none;
    transition: var(--store-transition);
}

.landing-navbar .nav-link:hover {
    color: var(--store-secondary);
}

.landing-navbar .navbar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.landing-navbar .btn-login {
    border: 2px solid var(--store-white);
    color: var(--store-white);
    padding: 8px 20px;
    border-radius: var(--store-radius);
    font-weight: 500;
    transition: var(--store-transition);
}

.landing-navbar .btn-login:hover {
    background: var(--store-white);
    color: var(--store-dark);
}

.landing-navbar .btn-register {
    background: var(--store-secondary);
    color: var(--store-dark);
    padding: 10px 25px;
    border-radius: var(--store-radius);
    font-weight: 600;
    border: none;
    transition: var(--store-transition);
}

.landing-navbar .btn-register:hover {
    background: var(--store-secondary-dark);
}

.landing-navbar .navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--store-white);
    font-size: 24px;
    cursor: pointer;
}

.landing-navbar .mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--store-dark);
    padding: 20px;
}

.landing-navbar .mobile-menu.active {
    display: flex;
}

.landing-navbar .mobile-link {
    color: var(--store-white);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
}

@media (max-width: 991px) {
    .landing-navbar .navbar-links,
    .landing-navbar .navbar-actions {
        display: none;
    }

    .landing-navbar .navbar-toggle {
        display: block;
    }
}

/* Cart Button in Navbar */
.landing-navbar .btn-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--store-white);
    font-size: 18px;
    transition: var(--store-transition);
}

.landing-navbar .btn-cart:hover {
    background: var(--store-white);
    color: var(--store-primary);
    border-color: var(--store-white);
}

.landing-navbar .btn-cart .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--store-secondary);
    color: var(--store-dark);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Account/Logout Buttons */
.landing-navbar .btn-account,
.landing-navbar .btn-logout {
    padding: 10px 20px;
    border-radius: var(--store-radius);
    font-weight: 500;
    font-size: 14px;
    transition: var(--store-transition);
}

.landing-navbar .btn-account {
    border: 2px solid var(--store-white);
    color: var(--store-white);
    background: transparent;
}

.landing-navbar .btn-account:hover {
    background: var(--store-white);
    color: var(--store-dark);
}

.landing-navbar .btn-logout {
    background: var(--store-secondary);
    border: 2px solid var(--store-secondary);
    color: var(--store-dark);
}

.landing-navbar .btn-logout:hover {
    background: var(--store-secondary-dark);
    border-color: var(--store-secondary-dark);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--store-primary) 0%, var(--store-primary-dark) 100%);
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

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

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 22px;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-buttons .btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--store-radius-lg);
    transition: var(--store-transition);
}

.hero-buttons .btn-primary {
    background: var(--store-secondary);
    border-color: var(--store-secondary);
    color: var(--store-dark);
}

.hero-buttons .btn-primary:hover {
    background: var(--store-secondary-dark);
    border-color: var(--store-secondary-dark);
    transform: translateY(-2px);
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search .search-input-group {
    display: flex;
    background: var(--store-white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--store-shadow-lg);
}

.hero-search .search-input {
    flex: 1;
    border: none;
    padding: 18px 30px;
    font-size: 16px;
    outline: none;
}

.hero-search .search-btn {
    background: var(--store-primary);
    border: none;
    padding: 18px 30px;
    color: var(--store-white);
    font-size: 18px;
    cursor: pointer;
    transition: var(--store-transition);
}

.hero-search .search-btn:hover {
    background: var(--store-primary-dark);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    background: var(--store-white);
    padding: 60px 0;
    border-bottom: 1px solid var(--store-border);
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--store-primary-light) 0%, var(--store-primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--store-white);
    font-size: 32px;
}

.feature-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--store-dark);
}

.feature-item p {
    color: var(--store-gray);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   Section Styles
   ============================================ */
.categories-section,
.featured-section,
.new-arrivals-section {
    padding: 80px 0;
}

.categories-section {
    background: var(--store-lighter);
}

.featured-section {
    background: var(--store-white);
}

.new-arrivals-section {
    background: var(--store-lighter);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--store-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--store-gray);
}

/* ============================================
   Categories Grid
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--store-white);
    border-radius: var(--store-radius-lg);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: var(--store-transition);
    box-shadow: var(--store-shadow);
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--store-shadow-lg);
    text-decoration: none;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--store-primary);
}

.category-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--store-dark);
    margin: 0;
}

@media (max-width: 1199px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Products Grid
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--store-white);
    border-radius: var(--store-radius-lg);
    overflow: hidden;
    box-shadow: var(--store-shadow);
    transition: var(--store-transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--store-shadow-lg);
}

.product-card a {
    text-decoration: none;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--store-lighter);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--store-transition);
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--store-secondary);
    color: var(--store-dark);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-badge.new {
    background: var(--store-accent);
    color: var(--store-white);
}

.product-badge.sale {
    background: #ef4444;
    color: var(--store-white);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--store-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--store-primary);
}

@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--store-dark) 0%, var(--store-darker) 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    color: var(--store-white);
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ============================================
   Store Navigation
   ============================================ */
.store-topbar {
    background: var(--store-dark);
    color: var(--store-white);
    padding: 8px 0;
    font-size: 13px;
}

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

.store-topbar .topbar-left span {
    margin-right: 20px;
}

.store-topbar .topbar-left i,
.store-topbar .topbar-right i {
    margin-right: 5px;
}

.store-topbar .topbar-right a {
    color: var(--store-white);
    margin-left: 20px;
    text-decoration: none;
}

.store-topbar .topbar-right a:hover {
    color: var(--store-secondary);
}

.store-navbar {
    background: var(--store-white);
    box-shadow: var(--store-shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}

.store-navbar .navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.store-navbar .navbar-brand .logo-img {
    height: 45px;
}

.store-navbar .navbar-brand .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--store-primary);
}

.store-navbar .navbar-search {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.store-navbar .search-input-group {
    display: flex;
    border: 2px solid var(--store-border);
    border-radius: 50px;
    overflow: hidden;
}

.store-navbar .search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
}

.store-navbar .search-btn {
    background: var(--store-primary);
    border: none;
    padding: 12px 20px;
    color: var(--store-white);
    cursor: pointer;
}

.store-navbar .navbar-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.store-navbar .nav-action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--store-dark);
    text-decoration: none;
    font-size: 12px;
}

.store-navbar .nav-action-link i {
    font-size: 22px;
    margin-bottom: 3px;
}

.store-navbar .nav-action-link:hover {
    color: var(--store-primary);
}

.store-navbar .cart-link {
    position: relative;
}

.store-navbar .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--store-secondary);
    color: var(--store-dark);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-navbar .category-nav {
    border-top: 1px solid var(--store-border);
    padding: 10px 0;
}

.store-navbar .category-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.store-navbar .category-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--store-dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--store-radius);
    transition: var(--store-transition);
}

.store-navbar .category-menu > li > a:hover,
.store-navbar .category-menu > li > a.active {
    background: var(--store-primary);
    color: var(--store-white);
}

.store-navbar .category-menu .dropdown {
    position: relative;
}

.store-navbar .category-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--store-white);
    min-width: 220px;
    box-shadow: var(--store-shadow-lg);
    border-radius: var(--store-radius);
    padding: 10px 0;
    display: none;
    z-index: 1000;
}

.store-navbar .category-menu .dropdown:hover .dropdown-menu {
    display: block;
}

.store-navbar .category-menu .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--store-dark);
    text-decoration: none;
}

.store-navbar .category-menu .dropdown-menu li a:hover {
    background: var(--store-lighter);
    color: var(--store-primary);
}

.store-navbar .navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.store-navbar .store-mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--store-white);
    border-top: 1px solid var(--store-border);
    padding: 20px;
}

.store-navbar .store-mobile-menu.active {
    display: flex;
}

.store-navbar .mobile-search {
    margin-bottom: 15px;
}

.store-navbar .mobile-search input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
}

.store-navbar .mobile-link {
    padding: 12px 0;
    color: var(--store-dark);
    border-bottom: 1px solid var(--store-border);
    text-decoration: none;
}

.store-navbar .mobile-link i {
    width: 25px;
}

@media (max-width: 991px) {
    .store-navbar .navbar-search {
        display: none;
    }

    .store-navbar .category-nav {
        display: none;
    }

    .store-navbar .navbar-toggle {
        display: block;
    }
}

/* ============================================
   Store Footer
   ============================================ */
.store-footer {
    background: var(--store-dark);
    color: var(--store-white);
}

.store-footer .footer-main {
    padding: 60px 0;
}

.store-footer .footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--store-white);
}

.store-footer .footer-description {
    color: var(--store-gray-light);
    line-height: 1.7;
}

.store-footer .social-links {
    margin-top: 20px;
}

.store-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--store-white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--store-transition);
}

.store-footer .social-links a:hover {
    background: var(--store-primary);
}

.store-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.store-footer .footer-links li {
    margin-bottom: 12px;
}

.store-footer .footer-links a {
    color: var(--store-gray-light);
    text-decoration: none;
    transition: var(--store-transition);
}

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

.store-footer .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.store-footer .footer-contact li {
    display: flex;
    margin-bottom: 15px;
    color: var(--store-gray-light);
}

.store-footer .footer-contact i {
    width: 25px;
    color: var(--store-primary-light);
}

.store-footer .footer-contact a {
    color: var(--store-gray-light);
    text-decoration: none;
}

.store-footer .footer-contact a:hover {
    color: var(--store-white);
}

.store-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.store-footer .copyright {
    margin: 0;
    color: var(--store-gray-light);
}

.store-footer .payment-methods {
    font-size: 28px;
}

.store-footer .payment-methods i {
    margin-left: 15px;
    color: var(--store-gray-light);
}

/* ============================================
   Utility Classes
   ============================================ */
.mtop30 {
    margin-top: 30px;
}

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

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

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

.btn-outline-light:hover {
    background: var(--store-white);
    color: var(--store-dark);
}

