/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background-color: black;
    color: white;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: black;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .title {
    font-size: 1.5rem;
    font-weight: bold;
}
header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
header nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: #333;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}
header nav ul li a:hover {
    background-color: gray;
    color: black;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 1rem;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 0;
}

/* Products Section */
.scrolling-products {
    display: flex;
    overflow-x: auto;
    padding: 2rem 1rem;
    gap: 1rem;
    scrollbar-color: gray black;
    scrollbar-width: thin;
}
.scrolling-products::-webkit-scrollbar {
    height: 10px;
}
.scrolling-products::-webkit-scrollbar-thumb {
    background-color: gray;
}
.scrolling-products .product h3, .scrolling-products .product p {
    color: white;
    text-align: center;
    margin-top: 0.5rem;
}
.scrolling-products a {
    text-decoration: none;
}
.product {
    background-color: black;
    border: 1px solid gray;
    border-radius: 5px;
    text-align: center;
    padding: 1rem;
    min-width: 250px;
    transition: transform 0.3s;
}
.product:hover {
    transform: translateY(-5px);
}
.product img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: black;
    padding: 1rem;
    text-align: center;
    color: white;
}
footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
footer .footer-links .footer-button {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: #333;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}
footer .footer-links .footer-button:hover {
    background-color: gray;
    color: black;
}
footer .social a {
    font-size: 1.5rem;
    color: white;
    margin-left: 1rem;
}

/* FAQ Section */
#faq {
    padding: 2rem;
    text-align: center;
}
.faq-item {
    margin: 1.5rem 0;
}
.faq-item h2 {
    font-size: 1.5rem;
    color: gray;
}
.faq-item p {
    font-size: 1rem;
    color: white;
}
.faq-item a {
    color: white;
    text-decoration: none;
    background-color: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    transition: background-color 0.3s;
}
.faq-item a:hover {
    background-color: gray;
    color: black;
}

/* Product Details Page */
.product-details {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
}
.product-image {
    flex: 1;
    max-width: 50%;
}
.product-image img {
    width: 100%;
    border-radius: 5px;
}
.product-info {
    flex: 1;
    max-width: 50%;
    padding: 1rem;
}
.product-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.product-info p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Size Buttons */
.size-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}
.size-buttons button {
    padding: 0.5rem 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.size-buttons button:hover {
    background-color: gray;
    color: black;
}

/* Action Buttons */
.actions .buy-button, .actions .cart-button {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.actions .buy-button {
    background-color: #5cb85c;
    color: white;
}
.actions .buy-button:hover {
    background-color: #4cae4c;
}
.actions .cart-button {
    background-color: #337ab7;
    color: white;
}
.actions .cart-button:hover {
    background-color: #286090;
}

/* Dropdown Button */
.details-dropdown {
    margin-top: 1rem;
}
.details-dropdown button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.details-dropdown button:hover {
    background-color: gray;
    color: black;
}
.details-dropdown button::after {
    content: ' ↓';
    font-size: 0.8rem;
}
.details-content {
    margin-top: 1rem;
    display: none;
    background-color: #222;
    padding: 1rem;
    border-radius: 5px;
    color: white;
}

/* Sizing Info */
.sizing-info {
    margin-top: 2rem;
    font-size: 1rem;
    color: gray;
}
.sizing-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sizing-info ul li {
    margin: 0.5rem 0;
}

/* Cart Page */
#cart-container {
    margin: 2rem auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid gray;
    padding: 1rem 0;
    gap: 1rem;
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cart-item-details p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cart-item-quantity button {
    background-color: #333;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.cart-item-quantity button:hover {
    background-color: gray;
}

.cart-item-quantity span {
    font-size: 1rem;
    font-weight: bold;
}

.remove-button {
    margin-top: 0.5rem;
    background-color: red;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.remove-button:hover {
    background-color: darkred;
}

#cart-summary {
    text-align: right;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-top: 1px solid gray;
    padding-top: 1rem;
}

/* Product Details Dropdown */
.details-dropdown {
    margin-top: 1rem;
}

.details-dropdown button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.details-dropdown button:hover {
    background-color: gray;
    color: black;
}

.details-dropdown button::after {
    content: ' ↓';
    font-size: 0.8rem;
}

.details-content {
    margin-top: 1rem;
    display: none;
    background-color: #222;
    padding: 1rem;
    border-radius: 5px;
    color: white;
}

/* Size Buttons */
.size-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}


.size-buttons button {
    padding: 0.5rem 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.size-buttons button.selected {
    background-color: #5cb85c;
    color: white;
    font-weight: bold;
    border: 2px solid #4cae4c;
}


.size-buttons button:hover {
    background-color: gray;
    color: black;
}
