/* AMAZON-STYLE ULTRA-MINIMAL */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #111;
    background-color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: #D12F31;
    text-decoration: none;
}

a:hover {
    color: #222;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

p {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.7;
}

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

/* LAYOUT */
#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1;
    padding: 60px 20px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

/* HEADER */
#header {
    background-color: #000;
    border-bottom: 1px solid #ddd;
    padding: 20px 0 0 0;
    width: 100%;
}

#header-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
}

#site-title h1 {
    margin: 0;
    font-size: 24px;
}

#site-title img {
    max-width: 100px;
    height: auto;
}

#site-description {
    text-align: center;
    font-size: 13px;
    color: #fff;
    margin: 8px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#site-description img {
    display: none;
}

/* NAV */
#navigation {
    margin-top: 16px;
    background-color: #222;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    justify-content: center;
}

.menu-main-menu-container {
    display: flex;
    justify-content: center;
    max-width: 960px;
    width: 100%;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    background-color: transparent;
    margin: 0;
    padding: 0;
}

.menu a {
    display: block;
    padding: 16px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #444;
    transition: background 0.15s;
}

.menu li:last-child a {
    border-right: none;
}

.menu a:hover {
    background-color: #D12F31;
    color: #fff;
}

/* FEATURED */
#featured-img {
    background-color: #f5f5f5;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

#featured-img .img {
    max-width: 100%;
    max-height: 280px;
    object-fit: cover;
}

/* PAGE CONTENT */
.page-content {
    background-color: transparent;
    border: none;
    overflow: visible;
    margin-bottom: 0;
}

/* GALLERY */
.gallery-wrapper {
    padding: 40px 0;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

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

/* PRODUCT CARDS */
.friend_container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.friend_container:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: #999;
}

.friend_container_image_wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.friend_container_image_link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.friend_container_image_link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.friend_container_image_link:hover img {
    transform: scale(1.08);
}

.friend_container_info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.friend_container_title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
    line-height: 1.4;
}

.friend_container_subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    flex: 1;
}

.friend_container_button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #222;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    text-transform: uppercase;
}

.friend_container_button:hover {
    background-color: #D12F31;
    color: #fff;
    text-decoration: none;
}

/* PRODUCT DETAIL */
.wheel_axel_area {
    padding: 40px 0;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.wheel_axel_row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.wheel_img {
    text-align: center;
    background-color: #f5f5f5;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel_img img {
    max-width: 90%;
    height: auto;
}

.wheel_content {
    padding: 0;
}

.wheel_content p {
    color: #555;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
}

.wheel_content h3 {
    font-size: 20px;
    margin: 32px 0 8px;
}

.wheel_content h4 {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin: 32px 0 8px;
}

.wheel_content b {
    color: #D12F31;
    font-size: 32px;
    display: block;
    margin: 24px 0;
}

.wheel_details {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 24px;
    margin-top: 24px;
}

.details-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.details-item:last-child {
    border-bottom: none;
    display: block;
    padding: 8px 0 0 0;
}

.details-item:last-child .details-label {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.2;
}

.details-item:last-child .details-value {
    display: block;
    text-align: left;
    width: 100%;
    line-height: 1.4;
    margin: 4px 0 0 0;
    padding: 0;
    font-size: 14px;
}

.details-label {
    font-weight: 600;
    color: #111;
    flex: 0 0 150px;
    flex-shrink: 0;
}

.details-value {
    color: #555;
    text-align: right;
    flex: 1;
    padding-left: 16px;
}

/* BUTTONS */
.btn, button[type="submit"], .find_btn {
    display: inline-block;
    padding: 10px 16px;
    background-color: #222;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn:hover, button[type="submit"]:hover, .find_btn:hover {
    background-color: #D12F31;
    color: #fff;
    text-decoration: none;
}

/* ADD TO CART */
.btn-add-to-cart {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #D12F31;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 32px;
}

.btn-add-to-cart:hover {
    background-color: #b8232a;
    color: #fff;
    text-decoration: none;
}

/* RELATED BOOKS */
.related-books {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #ddd;
}

.related-books h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.related-books-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.related-book-item {
    text-align: center;
}

.related-book-link {
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.related-book-link img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
    border-radius: 2px;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.related-book-link:hover img {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #999;
}

.related-book-title {
    font-size: 13px;
    color: #111;
    font-weight: 600;
    line-height: 1.4;
}

.related-book-link:hover .related-book-title {
    color: #D12F31;
}

/* PAGINATION */
.pagination {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 60px;
}

.pagination a, .pagination .prev-next, .pagination .page-number, .pagination .current {
    padding: 6px 10px;
    background-color: transparent;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
    font-size: 13px;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    transition: all 0.15s;
}

.pagination a:hover, .pagination .prev-next:hover, .pagination .page-number:hover {
    background-color: #D12F31;
    color: #fff;
    border-color: #D12F31;
    text-decoration: none;
}

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

/* LISTS */
.list-group {
    list-style: none;
}

.list-group-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    color: #111;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.15s;
}

.list-group-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.list-group-item b {
    color: #111;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.list-group-item p {
    color: #666;
    margin: 4px 0;
    font-size: 13px;
}

.cart-item {
    background-color: #ffffff !important;
}

.cart-item:hover {
    background-color: #ffffff !important;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #ddd;
}

table thead {
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

table th {
    font-weight: 700;
    color: #111;
    padding: 12px;
    text-align: left;
    font-size: 13px;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    color: #111;
    font-size: 13px;
}

table tr:last-child td {
    border-bottom: none;
}

table a {
    color: #D12F31;
}

/* FORMS */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: #111;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    color: #111;
    transition: all 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: #D12F31;
}

/* MESSAGES */
.error-message {
    color: #c0392b;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 12px;
    background-color: #f8d7da;
    border-radius: 2px;
    font-size: 13px;
}

.success-message {
    color: #155724;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 12px;
    background-color: #d4edda;
    border-radius: 2px;
    font-size: 13px;
}

/* SUBSCRIPTION */
.subscription-box {
    border: 1px solid #ddd;
    padding: 32px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 24px;
    background-color: #f9f9f9;
    border-radius: 2px;
}

.subscription-box h3 {
    text-align: center;
    color: #111;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.subscription-box input {
    background-color: #fff;
    color: #111;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 2px;
    font-family: inherit;
    transition: all 0.15s;
}

.subscription-box input:focus {
    outline: none;
    border-color: #D12F31;
}

/* FOOTER */
#footer {
    background-color: #222;
    color: #fff;
    padding: 48px 0;
    border-top: 1px solid #444;
    width: 100%;
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
}

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

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

.footer-column a {
    color: #D12F31;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

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

.footer-subscribe form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-subscribe input[type="text"],
.footer-subscribe input[type="email"] {
    padding: 10px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    font-size: 13px;
    border-radius: 2px;
    font-family: inherit;
}

.footer-subscribe input[type="text"]::placeholder,
.footer-subscribe input[type="email"]::placeholder {
    color: #999;
}

.footer-subscribe input[type="text"]:focus,
.footer-subscribe input[type="email"]:focus {
    outline: none;
    border-color: #D12F31;
}

.footer-subscribe label {
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-subscribe label input {
    margin: 0;
}

.footer-subscribe .btn {
    padding: 10px;
    font-size: 13px;
    margin-top: 6px;
}

.footer-legal .copyright {
    font-size: 12px;
    color: #999;
    margin-top: 16px;
}

/* UTILITY */
.text-center { text-align: center; }
.h-100 { height: 100%; }
.img-fluid { max-width: 100%; height: auto; }

/* RESPONSIVE */
@media (max-width: 768px) {
    #content {
        padding: 24px 12px;
    }
    
    .row {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .friend_container img {
        height: 240px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .related-books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    #content {
        padding: 16px 8px;
    }
    
    .row {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .friend_container img {
        height: 200px;
    }
    
    .friend_container_title {
        font-size: 13px;
    }
    
    .friend_container_subtitle {
        font-size: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .related-books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}






/* Responsive search form */
@media (max-width: 768px) {
    
    







/* Responsive search form */
@media (max-width: 1024px) {

@media (max-width: 768px) {
    .menu-main-menu-container {
        flex-wrap: wrap;
    }
    
    
    

/* ============ HEADER SEARCH BAR (Separate from navigation) ============ */
#header-search-bar {
    width: 100%;
    border-top: 1px solid #ddd;
}

#header-search-bar form {
    display: flex !important;
    gap: 8px;
    align-items: center;
}

#header-search-bar input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    background-color: #fff;
    color: #111;
    font-family: inherit;
    transition: all 0.2s;
}

#header-search-bar input[type="text"]:focus {
    outline: none;
    border-color: #D12F31;
    box-shadow: 0 0 4px rgba(209, 47, 49, 0.2);
}

#header-search-bar input[type="text"]::placeholder {
    color: #999;
}

#header-search-bar button {
    padding: 8px 16px;
    background-color: #D12F31;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

#header-search-bar button:hover {
    background-color: #b8232a;
}

/* Responsive search bar */
@media (max-width: 768px) {
    #header-search-bar form {
        flex-direction: column;
    }
    
    #header-search-bar input[type="text"] {
        width: 100%;
    }
    
    #header-search-bar button {
        width: 100%;
    }
}