/* General styles from user's provided block */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    display: flex; /* Added for centering and footer pushing */
    flex-direction: column; /* Added for centering and footer pushing */
    min-height: 100vh; /* Ensures body takes at least full viewport height */
    background-color: #fff; /* Explicitly set body background to white */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

nav {
    flex: 1;
    text-align: right;
}

nav ul {
    list-style: none;
    display: inline-block; /* Or flex if you prefer */
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
    transition: color 0.6s;
}

nav ul li :hover {
    color: #8f3b3b
}

a {
    text-decoration: none;
    color: #555;
}

p {
    color: #555
}

.container {
    max-width: 1200px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
}

.col-2 {
    flex-basis: 50%;
    min-width: 300px;
}

.col-2 img {
    max-width: 100%;
    padding: 50px 0;
}

.col-2 h1 {
    font-size: 40px;
    line-height: 50px;
    margin: 25px 0;
}

.btn {
    display: inline-block;
    background: #ff523b;
    color: #fff;
    padding: 8px 30px;
    border-radius: 30px;
    margin: 30px 0;
    transition: background 0.3s;
}

.btn:hover {
    background: #563434;
}

.header {
    background: radial-gradient(#fff, #ffd6d6)
}

.header .row {
    margin-top: 70px;
}
.header-NAV{
    background: #ffd6d6;
}

/* Updated color-NAV for back button spacing and layout */
.color-NAV {
    background: linear-gradient(to bottom, #ffd6d6, #fff); /* Original gradient */
    padding: 15px 25px; /* Add padding to give space for the button */
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically center content */
    justify-content: flex-start; /* Align content to the start */
    min-height: 50px; /* Ensure a minimum height */
    box-sizing: border-box; /* Include padding in height calculation */
}

.categories {
    margin: 70px 0;
}

.col-3 {
    margin-bottom: 30px;
}

.col-3 img {
    width: 300px;
    height: 300px;
}

.small-container {
    max-width: 1080px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.col-4 {
    flex-basis: 25%;
    padding: 10px;
    min-width: 200px;
    margin-bottom: 50px;
    transition: transform 0.5s, background-color 0.3s ease;
}

.col-4 img {
    width: 100%;
}

.col-4:hover {
    transform: translateY(-5px);
    background-color: #ff523b;
}

.col-4:hover h4,
.col-4:hover p,
.col-4:hover a {
    color: #fff;
}
.col-4:hover .rating .fa-star-half-stroke,
.col-4:hover .rating .fa-star {
    color: #fff;
}

.title {
    text-align: center;
    margin: 0 auto 80px;
    position: relative;
    line-height: 60px;
    color: #555;
}

.title::after {
    content: '';
    background: #ff523b;
    width: 80px;
    height: 5px;
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

h4 {
    color: #555;
    font-weight: normal;
}

.rating .fa-star-half-stroke,.rating .fa-star {
    color: #ff523b;
}

.rating-source {
    font-size: 10px;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.rating-source-icon {
    width: 30px;
    height: 10px;
    vertical-align: middle;
}

.offer {
    margin-top: 80px;
    padding: 30px 0;
    width: 100%;
    box-sizing: border-box;
}

.offer-bg {
    background: radial-gradient(#fff, #ffd6d6);
    width: 100%;
    overflow: hidden;
}

.offer .row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.offer .col-2 {
    flex: 1 1 50%;
    box-sizing: border-box;
    padding: 20px;
}

.col-2 .offer-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
    padding: 50px;
}
.offer small {
    color: #555;
}
.offer .small-container .row .col-2 small b{
    color:#ff523b
}

.bands {
    background-color: #ffffff;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.bands .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.bands .col-5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    text-align: center;
}

.bands .col-5 img {
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
    cursor: pointer;
    filter: grayscale(99%);
}
.bands .col-5 img:hover{
    filter: grayscale(1%);
}

.none{
    display: none;
    visibility: hidden;
}

.footer{
    background: #000;
    color: #8a8a8a;
    font-size: 14px;
    padding: 60px 0 20px;
}
.footer p{
    color: #8a8a8a;
}
.footer h3{
    color: #fff;
    margin-bottom: 20px;
}
.foot-col-1, .foot-col-2, .foot-col-3 .foot-col-4{
    min-width: 250px;
    margin-bottom: 20px;
}
.foot-col-1{
    flex-basis: 30%;
}
.foot-col-2{
    flex: 30%;
    text-align: center;
}
.foot-col-2 img{
    width: 180px;
    margin-bottom: 20px;
}
.foot-col-3,.foot-col-4{
    flex: 12%;
    text-align: center;
}
ul{
    list-style-type: none;
}
.app-logo{
    margin-top: 20%;
}
.app-logo img{
    width: 140px;
}
.footer hr{
    border:none;
    background: #b5b5b5;
    height: 1px;
    margin: 20px 0;
}
.footer .copyright{
    text-align: center;
}
.footer .copyright a{
    display: none;
}
/* Ensure menu-icon is hidden by default (large screens) */
.navbar .menu-icon{
    display: none;
    width: 28px;
    margin-left: 20px;
}
.row-2{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 100px auto 50px;
    position: relative;
    padding-left: 25px;
    padding-right: 25px;
    box-sizing: border-box;
    min-height: 50px;
}
.row-2 h2 {
    margin-left: 70px;
    flex-grow: 1;
    text-align: center;
}
.row-2 select {
    margin-left: auto;
}

select{
    border: 1px solid #ff523b;
    padding: 5px;
}
select:focus{
    outline: none;
}

/* --- Back Button Styling --- */
.back-button {
    text-decoration: none;
    color: #ff523b;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 12px;
    border: 1px solid #ff523b;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.back-button:hover {
    background-color: #ff523b;
    color: #fff;
    border-color: #ff523b;
}

/* Specific placement for back button on single-product page */
.single-product .back-button {
    position: absolute;
    left: 25px;
    top: 20px;
    margin-bottom: 0;
    z-index: 10;
}

@media (max-width: 600px) {
    .bands .col-5 {
      width: 100%;
    }
}

@media only screen and (max-width: 700px) {
    .bands .col-5 {
        width: 50%;
    }
    .small-container .row {
        justify-content: center;
    }
    .footer .copyright a{
        display: block;
    }
    /* Hide the full navigation menu on small screens */
    nav ul{
        position: absolute;
        top: 70px;
        left: 0;
        background: #33333383;
        width: 100%;
        overflow: hidden;
        transition: max-height 0.5s;
    }
    nav ul li{
        display: block;
        margin-right: 50px;
        margin-top: 10px;
    }
    nav ul li a{
        color: #fff;
    }
    /* Show the menu icon on small screens */
    .navbar .menu-icon {
        display: block; /* CORRECTED: Changed from 'display:  block;' to 'display: block;' */
        cursor: pointer;
    }

    /* Adjust back button for mobile */
    .row-2 .back-button,
    .single-product .back-button {
        position: static;
        display: block;
        width: calc(100% - 50px);
        margin: 10px auto;
        text-align: center;
    }

    /* Adjust heading and select for mobile row-2 */
    .row-2 h2 {
        margin-left: 0;
        text-align: center;
        width: 100%;
        order: -1;
    }
    .row-2 select {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
}
@media only screen and (max-width: 600px) {
    .row{
        text-align: center;
    }
    .col-2,.col-3,.col-4{
        flex-basis: 100%;
    }
}

/* Styles for product_detail.html - integrated from previous inline styles */
.single-product {
    margin-top: 80px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    position: relative;
}

.single-product .col-2 {
    flex-basis: 50%;
    min-width: 300px;
    padding: 20px;
    box-sizing: border-box;
}

.single-product .col-2 img {
    max-width: 100%;
    padding: 0;
    display: block;
}

.single-product .col-2 h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.single-product .col-2 h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #555;
}

.single-product .col-2 .rating {
    margin: 10px 0;
}

.single-product .col-2 .rating i {
    color: #ff523b;
    font-size: 18px;
}

.single-product .col-2 select {
    display: block;
    padding: 8px 10px;
    margin-top: 10px;
    border: 1px solid #ff523b;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.single-product .col-2 .large-size-selector {
    width: 200px;
    padding: 12px 15px;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 15px;
    border: 2px solid #ff523b;
    background-color: #fff;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ff523b%22%20d%3D%22M287%2C114.7L146.2%2C255.5L5.4%2C114.7H287z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.single-product .col-2 .large-size-selector:hover {
    background-color: #ff523b;
    color: #fff;
}
.single-product .col-2 .large-size-selector:focus {
    border-color: #563434;
    box-shadow: 0 0 0 3px rgba(255, 82, 59, 0.3);
}

.single-product .col-2 input {
    width: 50px;
    height: 30px;
    padding-left: 10px;
    font-size: 16px;
    margin-right: 10px;
    border: 1px solid #ff523b;
    border-radius: 5px;
    text-align: center;
}

.single-product .col-2 .btn {
    background: #ff523b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s;
}

.single-product .col-2 .btn:hover {
    background: #563434;
}

.single-product .col-2 h3 {
    color: #555;
    font-size: 20px;
    margin-top: 20px;
}

.single-product .col-2 p {
    color: #777;
    line-height: 1.5;
    margin-bottom: 10px;
}

.single-product .col-2 p.dynamic-price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-top: 15px;
    margin-bottom: 15px;
}

.single-product .col-2 small {
    display: block;
    color: #777;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .single-product .col-2 {
        flex-basis: 100%;
        padding: 10px;
    }
    .single-product .col-2 img {
        margin-bottom: 20px;
    }
    .single-product .col-2 .large-size-selector {
        width: 100%;
    }
}

.product-item .size-selector-container {
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
}

.product-item .size-selector {
    width: 80px;
    padding: 5px;
    border: 1px solid #ff523b;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ff523b%22%20d%3D%22M287%2C114.7L146.2%2C255.5L5.4%2C114.7H287z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 5px top 50%;
    background-size: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.product-item .size-selector:hover {
    background-color: #ff523b;
    color: #fff;
}

.product-item .size-selector option {
    padding: 5px;
}

.product-item p.dynamic-price {
    font-weight: bold;
    color: #333;
    margin-top: 5px;
    margin-bottom: 5px;
}

.w3-modal-content {
    background: radial-gradient(#fff, #ffd6d6);
    color: #000000;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px #ffd6d6;
    outline: #ff523b;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    height: auto;
    z-index: 9999;
    box-sizing: border-box;
    display: none;
}

.w3-modal-content h2 {
    color: #000000;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.w3-modal-content .w3-section label a {
    color: #ff523b !important;
    text-decoration: underline;
}

.w3-modal-content .close-button {
    background-color: transparent;
    color: #000000;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.w3-modal-content .close-button:hover {
    background-color: #ff523b;
    color: #fff;
}

.w3-modal-content .btn-modal {
    display: inline-block;
    background: #ff523b;
    color: #fff;
    padding: 8px 30px;
    border-radius: 30px;
    margin: 0;
    transition: background 0.3s;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    line-height: normal;
}

.w3-modal-content .btn-modal:hover {
    background: #563434;
}

.w3-modal-content input[type="checkbox"] {
    width: auto;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.w3-modal-content input[type="text"] {
    width: calc(100% - 100px);
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    color: #333;
}

@media (max-width: 480px) {
    .w3-modal-content {
        padding: 15px;
    }
    .w3-modal-content h2 {
        font-size: 24px;
    }
    .w3-modal-content .close-button {
        font-size: 18px;
        top: 5px;
        right: 10px;
    }
    .w3-modal-content .btn-modal {
        padding: 10px 20px;
        font-size: 14px;
    }
    .w3-modal-content input[type="text"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .w3-modal-content .w3-center button {
        width: 100%;
    }
}

.btn-Cart {
    display: inline-block;
    background: #d12711;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 14px;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-Cart:hover {
    background: #563434;
}

.product-item .add-to-cart-container {
    text-align: center;
    margin-top: 10px;
}

.product-item .size-selector {
    margin-bottom: 5px;
}

.cart-info img {
    width: 80px;
    height: 80px;
    object-fit:scale-down;
    margin-right: 10px;
    border-radius: 5px;
}

.cart-page {
    margin: 80px auto;
}

.cart-page table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cart-page th {
    text-align: left;
    padding: 5px;
    color: #fff;
    background: #ff523b;
    font-weight: normal;
}

.cart-page td {
    padding: 10px 5px;
    border-bottom: 1px solid #ddd;
}

.cart-page td:last-child {
    text-align: right;
    border-right: none;
}

.cart-page th:last-child {
    text-align: right;
    border-right: none;
}

.cart-page tr:first-child th {
    border-top: none;
}

.cart-page tr:last-child td {
    border-bottom: none;
}

.cart-info{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.cart-page td input[type="number"] {
    width: 40px;
    height: 30px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

.cart-page td a{
    color: #ff523b;
    font-size: 12px;
    text-decoration: none;
}
.cart-page td a:hover {
    text-decoration: underline;
}

.cart-page .remove-item-btn {
    font-weight: bold;
    font-size: 16px;
    color: #ff523b;
    text-decoration: none;
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.cart-page .remove-item-btn:hover {
    background-color: #ff523b;
    color: #fff;
    text-decoration: none;
}

.total-price{
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.total-price table{
    border-top: 3px solid #ff523b;
    width: 100%;
    max-width: 600px;
}

.total-price td {
    padding: 10px 15px;
    text-align: right;
    border: 1px solid #eee;
    border-top: none;
}

.total-price tr:last-child td {
    font-weight: bold;
    color: #ff523b;
}

@media (max-width: 768px) {
    .single-product .col-2 {
        flex-basis: 100%;
        padding: 10px;
    }
    .single-product .col-2 img {
        margin-bottom: 20px;
    }
    .single-product .col-2 .large-size-selector {
        width: 100%;
    }
    .cart-info p{
        display: none;
    }

    .cart-page table {
        display: block;
    }
    .cart-page thead {
        display: none;
    }
    .cart-page tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
    }
    .cart-page td {
        display: block;
        text-align: right;
        border: none;
        padding: 8px 0;
    }
    .cart-page td:first-child {
        text-align: left;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        margin-bottom: 5px;
    }
    .cart-page td:first-child::before {
        content: "Product:";
        font-weight: bold;
        float: left;
        margin-right: 5px;
    }
    .cart-page td:nth-child(2)::before {
        content: "Unit:";
        font-weight: bold;
        float: left;
        margin-right: 5px;
    }
    .cart-page td:nth-child(3)::before {
        content: "Subtotal:";
        font-weight: bold;
        float: left;
        margin-right: 5px;
    }
    .cart-page td:last-child {
        text-align: right;
        padding-top: 10px;
    }
    .cart-info {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }
    .cart-info img {
        margin-bottom: 0;
    }
    .cart-info div {
        flex-grow: 1;
    }
    .cart-page td input[type="number"] {
        display: inline-block;
        vertical-align: middle;
        margin-right: 5px;
    }
    .cart-page .total-price {
        justify-content: center;
    }
    .total-price table {
        width: 100%;
        max-width: none;
    }
}
.text-center{
    text-align: center;
}

/* Account Page Custom Styles (merged and adjusted) */
.account-container {
    max-width: 1200px; /* Changed to match .container */
    margin: 20px auto 50px; /* Adjusted top margin to reduce gap */
    padding-left: 25px; /* Added to match .container */
    padding-right: 25px; /* Added to match .container */
    padding-top: 30px; /* Kept existing padding */
    padding-bottom: 30px; /* Kept existing padding */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-grow: 1; /* Allows container to grow and push footer down */
}

.user-dashboard {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.user-dashboard h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff523b;
    padding-bottom: 10px;
}

.user-dashboard p {
    margin-bottom: 10px;
    color: #555;
}

.user-dashboard button {
    padding: 10px 20px;
    background-color: #ff523b;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    margin-right: 10px;
}

.user-dashboard button:hover {
    background-color: #563434;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="email"], /* Added email type */
.form-group input[type="password"], /* Added password type */
.form-group input[type="text"] { /* Added text type */
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.error-message {
    color: #e53e3e;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

.success-message {
    color: #48bb78;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 768px) {
    .account-container {
        margin: 20px auto;
        padding: 20px; /* Adjusted padding for smaller screens */
    }
    .color-NAV {
        padding: 10px 15px;
        min-height: 40px;
    }
    .back-button {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

/* Styles for Sign In/Sign Up Forms */
.form-box {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 400px; /* Limit width of the form box */
    margin-left: auto;
    margin-right: auto;
}

.form-box .form-group {
    margin-bottom: 20px;
    text-align: left; /* Align labels and inputs to the left within the form group */
}

.form-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-box .btn {
    width: 100%; /* Make sign-in button full width */
    max-width: none; /* Remove max-width constraint from general .btn */
    margin-top: 20px;
    margin-bottom: 15px;
}

.social-login-options {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.social-login-options p {
    margin-bottom: 15px;
    color: #555;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.social-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.google-btn {
    background-color: #db4437; /* Google red */
    color: #fff;
    border: none;
}

.google-btn:hover {
    background-color: #c0392b; /* Darker red on hover */
}

.toggle-form-text {
    margin-top: 25px;
    font-size: 0.95rem;
    color: #555;
}

.toggle-form-text a {
    color: #ff523b;
    font-weight: 600;
    text-decoration: underline;
}


.product-img-view {
    display: block; /* Essential: Allows setting width/height and other block-level properties */
    width: 100%; /* Makes the link take up the full width of its parent */
    height: 0; /* Set height to 0 to use padding-bottom for aspect ratio */
    padding-bottom: 100%; /* Creates a perfect square (1:1 aspect ratio) based on the width */
    position: relative; /* Needed for absolute positioning of the image inside */
    overflow: hidden; /* Hides any parts of the image that extend beyond the square */
    text-decoration: none; /* Optional: Remove underline from the link */
}

/* Responsive adjustments for forms */
@media (max-width: 480px) {
    .w3-modal-content {
        padding: 15px;
    }
    .w3-modal-content h2 {
        font-size: 24px;
    }
    .w3-modal-content .close-button {
        font-size: 18px;
        top: 5px;
        right: 10px;
    }
    .w3-modal-content .btn-modal {
        padding: 10px 20px;
        font-size: 14px;
    }
    .w3-modal-content input[type="text"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .w3-modal-content .w3-center button {
        width: 100%;
    }
    .form-box { /* Added for consistency with other form styles */
        padding: 20px;
    }
}
 .admin-container {
            max-width: 1000px;
            margin: 50px auto;
            padding: 30px;
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            flex-grow: 1;
        }

        .admin-container h1 {
            font-size: 2.5rem;
            color: #333;
            text-align: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #ff523b;
            padding-bottom: 15px;
        }

        .admin-section {
            background-color: #f9f9f9;
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
        }

        .admin-section h2 {
            font-size: 1.8rem;
            color: #333;
            margin-bottom: 20px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
        }

        .form-group input[type="text"],
        .form-group input[type="email"],
        .form-group input[type="tel"],
        .form-group input[type="password"] { /* Added password input type */
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 1rem;
            box-sizing: border-box;
        }

        .btn-admin {
            display: inline-block;
            background: #ff523b;
            color: #fff;
            padding: 10px 25px;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
            border: none;
            font-size: 1rem;
            margin-top: 15px;
            margin-right: 10px;
        }

        .btn-admin:hover {
            background: #563434;
        }

        .message-box {
            margin-top: 20px;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            font-weight: 600;
        }

        .message-box.success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .message-box.error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .hidden {
            display: none;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .admin-container {
                margin: 20px auto;
                padding: 20px;
            }
            .admin-container h1 {
                font-size: 2rem;
            }
            .admin-section {
                padding: 15px;
            }
            .admin-section h2 {
                font-size: 1.5rem;
            }
            .btn-admin {
                width: 100%;
                margin-right: 0;
                margin-bottom: 10px;
            }
        }
/* --- Social Login Button Styles --- */

.social-login-options {
    margin-top: 20px;
    text-align: center;
}

.social-login-options p {
    margin-bottom: 10px;
    color: #555;
}

.social-btn {
    display: flex; /* Use flexbox for icon and text alignment */
    align-items: center;
    justify-content: center;
    width: 100%; /* Adjust as needed, or set max-width */
    max-width: 300px; /* Example max-width for better appearance */
    padding: 10px 15px;
    margin-bottom: 10px; /* Space between buttons */
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.social-btn i {
    margin-right: 10px; /* Space between icon and text */
    font-size: 20px;
}

/* Google Button (existing, with slight adjustments for consistency) */
.google-btn {
    background-color: #fff;
    color: #ff523b; /* Google blue */
    border-color: #ccc;
}

.google-btn:hover {
    background-color: #f0f0f0; /* Light gray on hover */
    color: #c00; /* Red text on hover for Google, as requested */
}

/* Apple Button */
.apple-btn {
    background-color: #333; /* Dark grey for Apple */
    color: #fff; /* White logo */
    border-color: #333;
}

.apple-btn:hover {
    background-color: #f0f0f0; /* Light grey/white on hover */
    color: #c00; /* Red text on hover */
}

/* GitHub Button */
.github-btn {
    background-color: #24292e; /* Black for GitHub */
    color: #fff; /* White logo */
    border-color: #24292e;
}

.github-btn:hover {
    background-color: #f0f0f0; /* Light grey/white on hover */
    color: #c00; /* Red text on hover */
}

/* Facebook Button */
.facebook-btn {
    
    background-color: #1877F2; /* Standard Facebook blue */
    color: #fff; /* White logo */
    border-color: #1877F2;
}

.facebook-btn:hover {
    background-color: #f0f0f0; /* Light grey/white on hover */
    color: #c00; /* Red text on hover */
}