/*
	Name: Kaylan Stake
	Filename: productstylesheet.css
	Date: 11/25/2024
*/

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Nav */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #fefae0;
}


header {
    position: sticky;
    top: 0;
    background-color: #cce3de;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: auto;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4a5759;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 50px;
    width: auto;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .logo img {
        height: 40px;
    }
}

/* Product Page Layout */
.product-page {
    padding: 2rem;
}

.product-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

/* Carousel */
.carousel {
    position: relative;
    width: 500px;
    height: 500px;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    padding: 0.5rem;
    z-index: 10;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Product Info */
.product-info {
    flex: 1;
}

.product-title {
    font-size: 2rem;
    color: #333;
}

.product-price {
    font-size: 1.5rem;
    color: #4a5759;
    margin-top: 0.5rem;
}


/* Button */

.add-to-cart-btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #4a5759; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #b0c4b1; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn:active {
    background-color: #cce3de; 
    transform: translateY(0); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Product Description */
.product-description {
    margin-top: 2rem;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
}

.product-description h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-description p {
    color: #555;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

.responsive-table thead {
    background-color: #b0c4b1;
    color: white;
	text-align: center;
}

.responsive-table th, 
.responsive-table td {
    border: 1px solid #ddd;
    padding: 12px;
	text-align: center;
}

.responsive-table tbody tr:nth-child(even) {
    background-color: #faedcd;
}

.responsive-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.responsive-table tbody tr:hover {
    background-color: #cce3de;
}

@media (max-width: 600px) {
    .responsive-table thead {
        display: none; /* Hide the table header */
    }

    .responsive-table tr {
        display: block;
        margin-bottom: 10px;
    }

    .responsive-table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #ddd;
    }

    .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        font-weight: bold;
        text-align: left;
    }

    .responsive-table td[data-label=""]::before {
        content: '';
    }
}

/* Footer */

footer{
    background-color:  #faedcd;
    margin-top: 50px;
	text-align: center;
}