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

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-container {
    flex: 0 0 200px;
}

.logo-container img {
    max-height: 60px;
    width: auto;
}

.header-search {
    flex: 1;
    max-width: 600px;
}

.header-search form {
    position: relative;
    display: flex;
}

.search-field {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 16px;
}

.header-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-phone i {
    color: var(--primary-color);
    font-size: 24px;
}

.phone-content {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 12px;
    color: var(--gray-dark);
}

.phone-number {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.header-account a,
.header-cart a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-dark);
    text-decoration: none;
}

.header-account i,
.header-cart i {
    font-size: 24px;
    margin-bottom: 5px;
}

.header-cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Main Navigation */
.main-navigation {
    background-color: var(--primary-color);
    padding: 10px 0;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s;
}

.primary-menu > li > a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), #005a87);
    color: white;
    padding: 40px 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.newsletter-form form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    min-width: 300px;
}

.newsletter-form button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer Styles */
.footer-widgets {
    background-color: var(--gray-dark);
    color: white;
    padding: 60px 0;
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.widget-area h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

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

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

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: white;
}

.company-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #ccc;
}

/* Payment Methods */
.payment-methods {
    background-color: #222;
    padding: 20px 0;
    text-align: center;
}

.payment-methods h4 {
    color: white;
    margin-bottom: 15px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 30px;
    color: #ccc;
}

/* Copyright */
.copyright {
    background-color: #111;
    color: #ccc;
    padding: 15px 0;
    text-align: center;
}


/* Layout Styles */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-8, .col-md-4, .col-md-12 {
    padding: 0 15px;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Post Cards */
.post-card {
    background: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--gray-dark);
}

.post-excerpt {
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://via.placeholder.com/1920x600');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
}

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

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    padding: 20px;
    margin: 0;
    color: var(--primary-color);
}

.category-card p {
    padding: 0 20px 20px;
    margin: 0;
    color: var(--gray-dark);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 16px;
}

.product-price {
    padding: 0 15px 15px;
    font-weight: bold;
    color: var(--secondary-color);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.sale-badge {
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
}

.page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-code h1 {
    font-size: 120px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-message h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.error-actions {
    margin: 30px 0;
}

.btn-home, .btn-back {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-home:hover, .btn-back:hover {
    background: #005a87;
}

.help-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.help-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
}

.help-links i {
    font-size: 30px;
    margin-bottom: 10px;
}