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

:root {
    --primary: #232f3e;
    --secondary: #febd69;
    --accent: #007185;
    --light-gray: #f3f3f3;
    --dark-gray: #333;
    --border: #ddd;
    --success: #007600;
    --error: #c40000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #111;
    background: #fff;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #c7511f;
}

/* Header Styles */
.main-header {
    background: var(--primary);
    color: #fff;
}

.header-top {
    background: #131921;
    padding: 8px 0;
    font-size: 12px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
}

.contact-info i {
    margin-right: 5px;
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.logo a:hover {
    color: #fff;
}

.search-box {
    flex: 1;
    max-width: 700px;
}

.search-box form {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    font-size: 15px;
}

.search-box button {
    padding: 10px 20px;
    background: #febd69;
    border: none;
    cursor: pointer;
    color: #333;
}

.search-box button:hover {
    background: #f7ca00;
}

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

.cart-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 3px;
    position: relative;
}

.cart-btn:hover {
    border-color: #fff;
}

.cart-count {
    position: absolute;
    top: 2px;
    left: 22px;
    color: #febd69;
    font-weight: bold;
    font-size: 16px;
}

.main-nav {
    background: #232f3e;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-list li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
}

.nav-list li a:hover {
    background: #37475a;
}

/* Main Content */
.main-content {
    min-height: 60vh;
    padding: 20px 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #232f3e 0%, #1a242f 100%);
    color: #fff;
    padding: 200px 0;
    text-align: center;
    margin-bottom: 30px;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 22px;
    margin-bottom: 25px;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-section .btn {
    display: inline-block;
    padding: 12px 35px;
    background: #febd69;
    color: #111;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.hero-section .btn:hover {
    background: #f7ca00;
    color: #111;
}

.hero-image {
    max-width: 100%;
    max-height: 400px;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
}

/* Product Grid */
.section-title {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 15px;
    transition: all 0.3s;
    background: #fff;
}

.product-card:hover {
    border-color: #aaa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.product-card h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
}

.product-card h3 a {
    color: #0066c0;
}

.product-card h3 a:hover {
    color: #c7511f;
    text-decoration: underline;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #111;
    margin-bottom: 8px;
}

.product-stock {
    font-size: 12px;
    color: #007600;
}

.product-stock.out-of-stock {
    color: #c40000;
}

.add-to-cart-btn {
    width: 100%;
    padding: 8px;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 10px;
    transition: all 0.2s;
}

.add-to-cart-btn:hover {
    background: #f7ca00;
    border-color: #fcd200;
}

.add-to-cart-btn:disabled {
    background: #ddd;
    border-color: #ddd;
    cursor: not-allowed;
}

/* Category Filter */
.category-filter {
    margin-bottom: 30px;
}

.category-filter ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
}

.category-filter li a {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}

.category-filter li a:hover,
.category-filter li a.active {
    background: #232f3e;
    color: #fff;
    border-color: #232f3e;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 12px;
    color: #555;
}

.breadcrumb a {
    color: #0066c0;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-images {
    display: flex;
    gap: 15px;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 80px;
}

.product-thumbnails .thumbnail {
    width: 70px;
    height: 70px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    padding: 2px;
    transition: all 0.2s;
}

.product-thumbnails .thumbnail:hover,
.product-thumbnails .thumbnail.active {
    border-color: #e77600;
    box-shadow: 0 0 3px 2px rgba(228,121,17,0.5);
}

.product-thumbnails .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-main-image {
    flex: 1;
}

.product-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.product-detail-info h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-detail-info .sku {
    color: #555;
    font-size: 13px;
    margin-bottom: 15px;
}

.product-detail-info .price {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-detail-info .stock {
    font-size: 14px;
    margin-bottom: 20px;
}

.product-detail-info .description {
    margin-bottom: 20px;
    line-height: 1.7;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector input {
    width: 60px;
    padding: 8px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #aaa;
    border-radius: 3px;
}

.btn-add-to-cart {
    padding: 12px 40px;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-to-cart:hover {
    background: #f7ca00;
}

/* Cart Styles */
.cart-page {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-items {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px;
}

.cart-items h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.cart-item-details h3 a {
    color: #0066c0;
}

.cart-item-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-actions input {
    width: 50px;
    padding: 5px;
    text-align: center;
}

.cart-summary {
    background: #f0f0f0;
    border-radius: 4px;
    padding: 25px;
    height: fit-content;
}

.cart-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.cart-summary-row.total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.btn-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transition: none;
}

.btn-checkout:disabled:hover {
    background: #ffd814;
    border-color: #fcd200;
    color: inherit;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Checkout Styles */
.checkout-page {
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-page h1 {
    font-size: 28px;
    margin-bottom: 30px;
}

.checkout-form {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.checkout-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 20px;
}

.checkout-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 3px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e77600;
    box-shadow: 0 0 3px 2px rgba(228,121,17,0.5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.shipping-methods {
    margin-top: 15px;
}

.shipping-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.shipping-option:hover {
    border-color: #e77600;
}

.shipping-option.selected {
    border-color: #e77600;
    background: #fffbf0;
}

.shipping-option input {
    margin-right: 15px;
}

.shipping-option .method-info {
    flex: 1;
}

.shipping-option .method-name {
    font-weight: 600;
}

.shipping-option .method-price {
    font-weight: bold;
}

/* Footer */
.main-footer {
    background: #232f3e;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
    font-size: 14px;
}

/* Messages */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.pagination a:hover {
    background: #f0f0f0;
}

.pagination .current {
    background: #232f3e;
    color: #fff;
    border-color: #232f3e;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .cart-page,
    .checkout-form {
        grid-template-columns: 1fr;
    }
}

/* Shipping Page */
.shipping-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.shipping-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.shipping-content h2 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.shipping-content h2:first-child {
    margin-top: 0;
}

.shipping-content h3 {
    font-size: 1.2rem;
    color: #444;
    margin-top: 20px;
    margin-bottom: 10px;
}

.shipping-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}
