/* Global Styles */
:root {
    --primary: #0d6e6e;
    --primary-dark: #0a5a5a;
    --primary-light: #e6f7f7;
    --accent: #e8563a;
    --accent-light: #fff1ee;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --dark: #2c3e50;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Legacy compatibility mapping */
    --primary-color: var(--primary);
    --secondary-color: var(--accent);
    --success-color: var(--success);
    --danger-color: var(--danger);
    --dark-color: var(--dark);
    --light-color: var(--gray-100);
    --text-color: var(--gray-800);
    --text-light: var(--gray-600);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.top-header {
    background-color: var(--dark);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-links a {
    color: #fff;
    margin-left: 20px;
    transition: opacity 0.3s;
}

.top-links a:hover {
    opacity: 0.8;
}

.main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 24px;
    color: var(--primary);
    margin: 0;
    font-weight: bold;
}

.search-box .input-group {
    border-radius: 2px;
    overflow: hidden;
}

.search-box input {
    height: 45px;
    border: 1px solid var(--gray-300);
    border-right: none;
}

.search-box button {
    height: 45px;
    background-color: var(--primary);
    border: none;
    padding: 0 20px;
    color: #fff;
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

.header-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.header-icon {
    position: relative;
    font-size: 20px;
    color: var(--gray-800);
    text-decoration: none;
}

.header-icon .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Navigation */
.navbar {
    background-color: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 0;
}

.navbar-nav .nav-link {
    padding: 15px 20px;
    color: var(--gray-800);
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Hero Slider */
.hero-slider {
    margin-bottom: 30px;
}

.carousel-item {
    height: 400px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 5px;
    bottom: 50%;
    transform: translateY(50%);
    max-width: 600px;
    margin: 0 auto;
}

.carousel-caption h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 16px;
    margin-bottom: 20px;
}

.carousel-caption .btn {
    padding: 10px 30px;
    font-weight: 600;
}

/* Section Headings */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 40px;
    font-size: 16px;
}

/* Category Cards */
.category-card {
    display: block;
    text-align: center;
    padding: 20px 15px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.category-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.category-card:hover .category-image {
    background: var(--primary);
}

.category-image img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.category-image i {
    font-size: 40px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-card:hover .category-image i {
    color: #fff;
}

.category-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    transition: color 0.3s ease;
}

.category-card:hover h4 {
    color: var(--primary);
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    height: 100%;
}

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

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.5s ease;
}

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

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button, .product-actions a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
}

.product-actions button:hover, .product-actions a:hover {
    background: var(--primary);
    color: #fff;
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: var(--gray-900);
}

.product-title a:hover {
    color: var(--primary);
}

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

.product-price del {
    font-size: 14px;
    color: var(--gray-500);
    margin-left: 10px;
    font-weight: 400;
}

.product-rating {
    font-size: 13px;
    color: #ffc107;
}

.product-rating .rating-count {
    color: var(--gray-500);
    margin-left: 5px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 25px;
    font-weight: 600;
}

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

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

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

/* Footer */
.footer {
    background-color: var(--dark);
    color: #fff;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-links a {
    color: var(--gray-400);
    transition: all 0.3s ease;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.contact-info li {
    margin-bottom: 15px;
    color: var(--gray-400);
    font-size: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    width: 20px;
    margin-right: 15px;
    color: var(--primary);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 25px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-500);
}

/* Toast notification styles */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid var(--success);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px 20px;
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    max-width: 350px;
}
.toast-icon {
    font-size: 24px;
}
.toast-icon.success {
    color: var(--success);
}
.toast-icon.error {
    color: var(--danger);
}
.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--gray-800);
}
.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0 5px;
}
.toast-close:hover {
    color: var(--gray-700);
}

/* Utility Classes */
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.bg-light { background-color: var(--gray-100) !important; }
.text-white-50 { color: rgba(255,255,255,0.5) !important; }
