:root {
    --color-page-bg: #f0f8ff;
    --color-accent: #0f766e;
    --color-accent-dark: #115e59;
    --color-accent-soft: #ccfbf1;
    --color-accent-soft-2: #e6fffb;
    --color-accent-soft-3: #f0fdfa;
    --color-accent-muted: #c7d9d6;
    --color-text-dark: rgb(51, 53, 55);
    --shadow-accent-light: rgba(15, 118, 110, 0.2);
    --shadow-accent-medium: rgba(15, 118, 110, 0.3);
    --shadow-accent-strong: rgba(15, 118, 110, 0.5);
    --gradient-accent: linear-gradient(135deg, #0f766e, #14b8a6);
    --gradient-accent-hover: linear-gradient(135deg, #115e59, #0d9488);
    --gradient-header: linear-gradient(135deg, #dff7f3 0%, #e2f4f5 100%);
}

body {
    width: 1080px;
    margin: 0px auto;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    border: #0d9488 solid 1px;
    background-color: var(--color-page-bg);
    color: var(--color-accent);
    text-shadow: 1px 1px yellowgreen;
    font-family: sans-serif;
}


a {
    text-decoration: none;
}


h1 {
    text-align: center;
}


.c-right {
    text-align: center;
}


.header {
    width: 1080px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background: var(--gradient-header);
}


.logo {
    width: 50px;
    height: 50px;
    border-radius: 15px;
}


.header a {
    width: 95px;
    text-align: center;
}


.header a:hover {
    background-color: var(--color-accent);
    color: white;
    border-radius: 15px;
}


.all-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}


.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 240px;
    height: 360px;
    padding: 0;
    margin: 20px;
    border: var(--color-accent) solid 1px;
    border-radius: 10px;
    background-color: var(--color-accent-soft);
}


.product-card img {
    position: relative;
    top: 0px;
    border: var(--color-accent) solid 1px;
    height: 200px;
    border-radius: 10px;
    margin: 0;
}


.brief-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0px;
    line-height: 0%;
}


.btn-primary {
    display: flex;
    justify-content: center;
    padding: 6px 10px;
    color: var(--color-text-dark);
    background-color: var(--color-accent-soft-2);
    border-radius: 5px;
}


.btn-primary:hover {
    background-color: var(--color-accent-muted);
    cursor: pointer;
}


/* Product Detail Page Styles */
.product-detail-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-detail-image {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}

.product-detail-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(15, 118, 110, 0.12);
    object-fit: contain;
}



.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}


.product-price-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent);
}


.product-description {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-description h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0;
    text-shadow: none;
}

.product-description p {
    color: #555;
    font-size: 14px;
    text-shadow: none;
}

.product-add-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-add-cart {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: var(--gradient-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-accent-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.btn-add-cart:hover {
    background: var(--gradient-accent-hover);
    box-shadow: 0 6px 16px var(--shadow-accent-medium);
    transform: translateY(-2px);
}

.btn-add-cart:active {
    transform: translateY(0);
}

.btn-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    color: #666;
}

.btn-add-cart:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}


/* Responsive Design
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .product-detail-image {
        flex: 1;
        min-height: 300px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 22px;
    }

    .btn-add-cart {
        padding: 12px 24px;
        font-size: 14px;
    }
}
 */

.page-image {
    width: 300px;
}


.page-image {
    max-width: 500px;
    max-height: 500px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 3px solid var(--color-accent);
    box-shadow: 0 8px 16px var(--shadow-accent-medium);
    transition: all 0.3s ease;
    object-fit: cover;
    display: block;
    margin: 20px auto;
}

.page-image:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 24px var(--shadow-accent-strong);
    border-color: var(--color-accent-dark);
}


/* Cart Styles */
.cart-container {
    width: 1080px;
    /* max-width: 1200px; */
    margin: 40px 0px;
    padding: 0px;
    /* background-color: white; */
    border-radius: 15px;
}

.cart-table-wrapper {
    width: 1080px;
    /* background-color: var(--color-accent-muted); */
    display: flex;
    justify-content: space-evenly;
}

.cart-table {
    width: 500px;
    border-collapse: separate;
    border-spacing: 0 15px;
    margin: 30px 30px;
}

.cart-table thead {
    background-color: var(--color-accent-soft);
}

.cart-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: bold;
    color: var(--color-text-dark);
    text-shadow: none;
    border-bottom: 3px solid var(--color-accent);
}

.cart-table tbody tr {
    background-color: var(--color-accent-soft-2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-table tbody tr:hover {
    background-color: var(--color-accent-soft-3);
    transform: scale(1.01);
    box-shadow: 0 4px 8px var(--shadow-accent-medium);
}

.cart-table td {
    padding: 25px 15px;
    text-align: left;
    text-shadow: none;
    vertical-align: middle;
}

.cart-table td:first-child {
    border-radius: 10px 0 0 10px;
}

.cart-table td:last-child {
    border-radius: 0 10px 10px 0;
}

.cart-table td a {
    color: var(--color-accent);
    font-weight: bold;
    transition: color 0.3s ease;
}

.cart-table td a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

.cart-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--color-accent);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.quantity-form input[type="number"] {
    width: 60px;
    padding: 8px;
    border: 2px solid var(--color-accent);
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    font-family: cursive, sans-serif;
}

.quantity-form button {
    padding: 8px 15px;
    font-size: 14px;
}

.cart-summary {
    /* background-color: var(--color-accent-soft-3); */
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    text-align: right;
}

.cart-summary h3 {
    color: var(--color-accent);
    text-shadow: 1px 1px yellowgreen;
    margin-bottom: 20px;
}

.cart-summary p {
    font-size: 18px;
    margin: 10px 0;
    text-shadow: none;
}

.cart-total {
    font-size: 24px !important;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-top: 20px !important;
}

.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

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

.empty-cart p {
    font-size: 24px;
    margin-bottom: 30px;
}



/* It's time to move on! To checkout styles */

.checkout-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px var(--shadow-accent-light);
}

.checkout-link {
    margin-top: 15px;
    text-align: center;
    color: var(--color-accent);
    font-weight: bold;
    transition: color 0.3s ease;
}

.checkout-link:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

.checkout-container h2 {
    text-align: center;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    margin-bottom: 4px;
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 4px;
}


.terms-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.terms-section {
    margin-bottom: 30px;
}

.terms-footer {
    margin-top: 30px;
    text-align: center;
}


.success-message {
    background-color: rgb(198, 239, 206);
    color: rgb(34, 139, 34);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(34, 139, 34, 0.2);
}
/* Footer Styles */
.site-footer {
    width: 1080px;
    background: var(--gradient-accent);
    color: white;
    padding: 40px 0px 0;
    position: relative;
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.footer-section nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.footer-contact address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: #fff;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-item a:hover {
    border-bottom: 1px solid #fff;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


