
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* ========================================
   SafeCover E-Commerce Styles
   ======================================== */

   :root {
    --primary-color: #FF8C00;
    --secondary-color: #000000;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
    --transition: all 0.3s ease;
}

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

body {
    font-family: "DM Sans", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ========================================
   Top Bar
   ======================================== */
.top-bar {
    background: var(--secondary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-left span {
    display: inline-block;
}

.top-bar-right a {
    color: white;
    margin-left: 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.top-bar-right a:hover {
    color: var(--primary-color);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo-safe {
    color: var(--secondary-color);
}

.logo-cover {
    color: var(--primary-color);
    position: relative;
}

.logo-cover::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, #FF8C00 0%, #ff7c00 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('/images/hero-pattern.png') no-repeat center;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-image {
    position: relative;
    z-index: 2;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

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

/* ========================================
   Section Titles
   ======================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ========================================
   Product Cards
   ======================================== */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--light-bg);
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-badge.new {
    background: var(--success-color);
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.product-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.current-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.original-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount {
    background: #d4edda;
    color: var(--success-color);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ========================================
   Category Cards
   ======================================== */
.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.category-name {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* ========================================
   Features Section
   ======================================== */
.feature-box {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FF8C00 0%, #ff7c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.author-designation {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #1a1a1a;
    color: #b0b0b0;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-text {
    line-height: 1.8;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
}

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

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

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 25px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: white;
    transition: var(--transition);
}

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

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #2a2a2a;
    color: #808080;
}

/* ========================================
   WhatsApp Float Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1);
    color: white;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb-section {
    background: var(--light-bg);
    padding: 20px 0;
    margin-bottom: 40px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* ========================================
   Filters
   ======================================== */
.filter-sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.form-check {
    margin-bottom: 10px;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    margin: 0 3px;
    border-radius: 5px;
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .top-bar-left,
    .top-bar-right {
        text-align: center;
    }
    
    .top-bar-left span {
        display: block;
        margin-bottom: 5px;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
}