/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    background: #f8f9fa;
    padding: 10px 0;
    font-size: 14px;
}

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

.user-actions a {
    margin-left: 15px;
    text-decoration: none;
    color: #666;
}

.user-actions a:hover {
    color: #333;
}

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

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

.logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.search-bar {
    flex: 1;
}

.search-bar form {
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 10px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: #fff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

/* Navigation */
.main-nav {
    background: #333;
}

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

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
}

.nav-menu a:hover {
    background: #444;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 200px;
    display: none;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #333;
    padding: 10px 20px;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

/* Main Content */
.main-content {
    min-height: 500px;
    padding: 40px 0;
}

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Cart Page Styles */
.cart-page {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.cart-page h1 {
    margin-bottom: 30px;
}

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

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

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.product-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.no-image-small {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #999;
    font-size: 12px;
}

.product-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.product-details a {
    text-decoration: none;
    color: #333;
}

.product-details a:hover {
    color: #007bff;
}

.variant-info {
    font-size: 14px;
    color: #666;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.quantity-control button:hover:not(:disabled) {
    background: #f8f9fa;
}

.quantity-control button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.price, .subtotal {
    font-weight: 600;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
}

.btn-remove:hover {
    text-decoration: underline;
}

.cart-summary {
    display: flex;
    justify-content: flex-end;
}

.summary-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
}

.summary-content h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    border-bottom: none;
    margin-top: 10px;
}

.summary-actions {
    margin-top: 20px;
}

.summary-actions .btn {
    margin-bottom: 10px;
}

/* Product Pages */
.products-page {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.products-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    white-space: nowrap;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    min-width: 120px;
}

.filter-group input.form-control {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.filter-form {
    width: 100%;
}

.products-count {
    color: #6c757d;
    font-size: 14px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f8f9fa;
}

.no-image {
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #333;
}

.product-price {
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 16px;
}

.sale-price {
    color: #dc3545;
}

.price-with-tax {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

.product-tags {
    margin-top: 10px;
}

.product-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.product-tag.new {
    background: #28a745;
    color: white;
}

.product-tag.sale {
    background: #dc3545;
    color: white;
}

.product-tag.popular {
    background: #ffc107;
    color: #212529;
}

.stock-status {
    margin-top: 10px;
    font-size: 14px;
}

.stock-in {
    color: #28a745;
}

.stock-low {
    color: #fd7e14;
}

.stock-out {
    color: #dc3545;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    border: 1px solid #dee2e6;
    color: #495057;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.pagination .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .disabled {
    color: #6c757d;
    background: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
}

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

.add-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Category Pages */
.category-list {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.page-header {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.page-header h1 {
    margin-bottom: 0;
    font-size: 28px;
    color: #333;
}

.category-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.category-section:last-child {
    border-bottom: none;
}

.category-title {
    margin-bottom: 15px;
}

.category-title a {
    color: #333;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: color 0.3s;
}

.category-title a:hover {
    color: #007bff;
    text-decoration: none;
}

.category-description {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.subcategory-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.subcategory-link:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
    border-color: #007bff;
    transform: translateY(-2px);
}

/* Category Show Page (Individual Category) */
.category-page {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.category-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.category-breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #6c757d;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: #6c757d;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    margin-top: 60px;
}

.footer-top {
    padding: 40px 0;
}

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

.footer-column h3,
.footer-column h4 {
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: #ccc;
    text-decoration: none;
}

.footer-column a:hover {
    color: #fff;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    background: #222;
    padding: 20px 0;
    text-align: center;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #333;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

/* Checkout Page */
.checkout-page {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.checkout-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.checkout-section:last-child {
    border-bottom: none;
}

.checkout-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

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

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

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.required {
    color: #dc3545;
}

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

.form-check-input {
    margin-right: 8px;
}

.order-summary {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

.order-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

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

.item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.item-variant {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.item-quantity {
    font-size: 14px;
    color: #6c757d;
}

.summary-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
}

.points {
    color: #28a745;
}

.payment-note {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    margin-top: 15px;
}

/* Stripe Elements */
#card-element {
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
}

#card-errors {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-table {
        font-size: 14px;
    }
    
    .summary-content {
        width: 100%;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
}

/* Homepage Styles */
.hero-section {
    position: relative;
    margin-bottom: 40px;
}

.hero-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    border-radius: 10px;
}

.hero-default h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-default p {
    font-size: 20px;
    opacity: 0.9;
}

.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-item.active {
    opacity: 1;
}

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

.slider-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slider-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.slider-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    cursor: pointer;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Section Styles */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.notices-section {
    background: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 40px;
}

.notices-wrapper {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.notice-date {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 20px;
    white-space: nowrap;
}

.notice-item a {
    color: #333;
    text-decoration: none;
}

.notice-item a:hover {
    color: #667eea;
}

/* Category Grid */
.categories {
    margin-bottom: 60px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

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

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

.category-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.category-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.category-card h3 {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* Product Grid */
.featured-products, .new-products {
    margin-bottom: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

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

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

.product-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.no-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.sale-price {
    color: #e74c3c;
}

.add-to-cart-btn, .out-of-stock-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn {
    background: #667eea;
    color: white;
}

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

.out-of-stock-btn {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
}

/* Banner Sections */
.banners-section, .footer-banners-section {
    margin-bottom: 60px;
}

.banners-grid, .footer-banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.banner-item, .footer-banner-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.banner-item img, .footer-banner-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.banner-item:hover img, .footer-banner-item:hover img {
    transform: scale(1.05);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* Homepage Responsive Design */
@media (max-width: 768px) {
    .hero-default h1 {
        font-size: 32px;
    }
    
    .hero-default p {
        font-size: 16px;
    }
    
    .slider-content {
        left: 20px;
        bottom: 20px;
    }
    
    .slider-content h2 {
        font-size: 24px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Product Detail Page Styles */
.breadcrumb {
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail {
    margin-bottom: 60px;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.no-image-large {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    border-radius: 10px;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #667eea;
    transform: scale(1.05);
}

.product-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

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

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 20px;
    color: #ddd;
}

.star.filled {
    color: #ffc107;
}

.rating-text {
    color: #666;
    font-size: 14px;
}

.product-price-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
}

.original-price {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
    margin-right: 15px;
}

.sale-price {
    font-size: 36px;
    font-weight: 700;
    color: #e74c3c;
}

.discount-rate {
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 15px;
}

.short-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-actions {
    margin-bottom: 30px;
}

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

.quantity-selector label {
    font-weight: 600;
    color: #333;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button:hover {
    background: #f0f0f0;
}

.quantity-selector input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    margin-bottom: 15px;
}

.stock-info {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

.stock-info.out-of-stock {
    color: #dc3545;
}

.product-meta {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-meta p {
    margin-bottom: 10px;
    color: #666;
}

.product-meta a {
    color: #667eea;
    text-decoration: none;
}

.product-meta a:hover {
    text-decoration: underline;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

/* Product Details Section */
.product-details-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 60px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-button {
    flex: 1;
    padding: 20px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #e9ecef;
}

.tab-button.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.tab-content {
    padding: 40px;
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table th,
.specs-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.specs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 200px;
}

/* Review Styles */
.review-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.review-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
    margin-bottom: 20px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

.reviews-list {
    margin-top: 40px;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 30px 0;
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-rating .star {
    font-size: 16px;
}

.review-author {
    font-weight: 600;
    color: #333;
}

.review-date {
    color: #999;
    font-size: 14px;
}

.review-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.review-item p {
    color: #555;
    line-height: 1.6;
}

/* Related Products */
.related-products {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.related-products h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Responsive Design for Product Detail */
@media (max-width: 768px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .product-info h1 {
        font-size: 24px;
    }
    
    .price,
    .sale-price {
        font-size: 28px;
    }
    
    .original-price {
        font-size: 18px;
    }
    
    .main-image img {
        height: 300px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .related-products {
        padding: 20px;
    }
}