/* Root variables */
:root {
    --primary: #b91165e6;
    --accent: #d3cbbd;
    --bg-alt: #f8f4ef; 
    --bg-light: #f5f3e9b4;
    --bg: #fcfbf9;
    --text-primary: #5c5854;
    --text-secondary: #ffffff;
    --link-hover-bg: #ffcf406c;
    --accent-warning: #e7b877;
    --bg-dropdown: rgba(252, 249, 245, 0.9);
    --shadow-light: rgba(92, 88, 84, 0.15); 
    --border-standard: #d4cec1; 
    --rounded-lg: 12px; 
    --navbar-footer-bg: #f2ece6;
    --divider: #ccc3b4; 
  }

/* General Styles */

html {
    height: 100%;
}

body {
    font-family: 'Georgia', serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    margin: auto;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Content Areas */
.content-wrapper {
    width: 90%;
    margin: auto;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--rounded-lg);
    box-shadow: 0 4px 8px var(--shadow-light);
    flex: 1 1 auto;
    justify-content: center;
}

.content-padding {
    margin-top: 100px;
}

.padding-top {
    margin-top: 50px;
}

h1, 
h2 {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: var(--primary);
    margin-bottom: 20px;
    
}

h1, 
h2, 
h3 {
    text-align: center;
    text-decoration: underline;
}

p {
    font-size: 1em;
    color: var(--text-primary);
    line-height: 1.8;
}

.button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-secondary);
    padding: 5px 20px;
    border-radius: var(--rounded-lg);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--link-hover-bg);
    color: var(--text-primary);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    border-radius: 8px;
    background-color: var(--navbar-footer-bg);
    border-bottom: 2px solid var(--divider);
    text-wrap: nowrap;
    width: 98%;
    justify-content: space-between;
    margin:auto;
}

.container {
    margin: 4px auto;
    display: flex;
    flex: 1;
}

.nav-mid {
    list-style-type: none;
    padding: 0;
}

.nav-left, 
.nav-mid, 
.nav-right {
    font-size: 14px;
    display: flex;
    align-items: center;
    margin: auto;
    text-align: center;
}

.logo {
    max-height: 40px;
}



.nav-mid li {
    position: relative;
}

.nav-mid li:not(:last-child) {
    margin-right: 10px; 
}

.nav-mid li:not(:last-child):after {
    content: ""; 
    position: absolute;
    top: 50%;
    right: -5px;
    height: 100%; 
    width: 1px; 
    background-color: var(--divider); 
    transform: translateY(-50%);
}

footer {
    font-size: 14px;
    background-color: var(--navbar-footer-bg);
    text-align: center;
    border-top: 1px solid var(--divider);
    border-radius: var(--rounded-lg);
    padding: 10px 0;
    width: 98%;
    margin: auto;

}

.hidden {
    display: none;
}

/* Icons and Dropdowns */
.icon-link, 
.icon-link img, 
.cart-count {
    height: 24px;
}

.cart-count {
    margin-left: 10px;
}

.icon-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-dropdown);
    box-shadow: 0 8px 16px var(--shadow-light);
    border-radius: var(--rounded-lg);
    padding: 8px;
    z-index: 1000;
    width: max-content;
    margin-top: -2px;
    margin-left: 20px;
    opacity: 0; 
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.dropdown-content a {
    display: block; 
    padding: 8px; 
    color: inherit; 
    text-decoration: none; 
    white-space: nowrap;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block; 
    opacity: 1;
    transform: scale(1);
}


/* Links and Buttons */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    padding: 4px;
}

a:hover {
    background-color: var(--link-hover-bg);
    color: var(--text-secondary);
    transition: opacity 0.3s ease-in-out;
}

.cart-count {
    background-color: var(--accent);
    border-radius: 50%;
    padding: 0 8px;
    position: relative;
    right: 25px;
    transform: translate(50%, -50%);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.welcome {
    text-align: center;
}

/* Product and Collection Styles */
.product-images img, 
.collection-item img, 
.category-item img {
    width: 90%;
    height: auto;
    border-radius: var(--rounded-lg);
}


.product-info, 
.collection-container, 
.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
    align-content: center;
    
}

.collection-item, 
.category-item, 
.slideshow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-standard);
    border-radius: var(--rounded-lg);
    box-shadow: 0 2px 5px var(--shadow-light);
    transition: opacity 0.3s ease-in-out, transform 0.05s ease-in-out;
    justify-content:space-between;
    
}

.slideshow {
    max-width: 90%;
    border-radius: 20px;
    overflow: hidden;
    margin: auto;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.slideshow img {
    width: 100%;
    height: fit-content;
}

.collection-item:hover, 
.category-item:hover {
    transform: scale(1.05);
    transition: opacity 0.3s ease-in-out, transform 0.05s ease-in-out;

}

.rounded-first .item img {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.rounded-last .item img {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.collection-item span, 
.category-item span {
    color: var(--text-primary);
    padding-top: 20px;

}

/* Forms and Interactivity */
.form-section, 
.form-section form, 
.login-form, 
#support-section, 
#cart-summary,
#product-container,
#products-list,
.order-history,
.dashboard-card{
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--rounded-lg);
    box-shadow: 0 2px 5px var(--shadow-light);
    margin: auto;
    width: 70%;
    justify-content: center;
    text-align: center;
}

.order-history{
    width: 60%;
}

.order-history li {
    list-style-type: none;
}

.form-section h2 {
    color: var(--primary);
}

.input-group, 
textarea {
    width: 80%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: var(--rounded-lg);
    box-shadow: inset 0 1px 3px var(--shadow-light);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="email"], 
input[type="password"], 
input[type="text"], textarea {
    width: 80%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: var(--rounded-lg);
    box-shadow: inset 0 1px 3px var(--shadow-light);
    border: 1px solid #ccc;
    outline: 2px solid var(--accent);
    justify-content: center;
}

button[type="submit"] {
    padding: 10px 20px;
    border-radius: var(--rounded-lg);
    background-color: var(--primary);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    align-self: center;
    width: auto;
    margin-top: 10px;
    margin-bottom: 20px;
}

a, 
button {
    transition: background-color 0.3s ease;
    border-radius: var(--rounded-lg);
}

a:hover, 
button:hover {
    background-color: var(--link-hover-bg);
    color: var(--text-primary);
}

button[type="submit"]:hover {
    background-color: var(--link-hover-bg);
    color: var(--text-primary);

}

/* Support and FAQ section */
#faq-invitation, 
#terms-of-service, 
#privacy-policy  {
 text-align: center;
}

#faq-accordion {
    font-family: Georgia, 'Times New Roman', Times, serif;
    max-width: 100%;
    transition: max-height 0.3s ease-in-out;
    align-self: center;
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--rounded-lg);
    box-shadow: 0 2px 5px var(--shadow-light);
    width: 70%;
    margin: auto;
}

#faq-accordion h3 {
    background-color: var(--navbar-footer-bg);
    color: var(--text-primary);
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-bottom: 1px solid var(--divider);
    text-align: left;
}

#faq-accordion h3:hover, 
#faq-accordion h3.ui-accordion-header-active {
    color: var(--text-primary);
    transition: opacity, transform 0.3s ease-in-out;
}

#faq-accordion div {
    color: var(--primary);
    font-size: 14px;
    padding: 10px;
}

#faq-accordion h3:last-of-type {
    border-bottom: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container, 
    .nav-mid, 
    .nav-right, 
    .nav-left {
        flex-direction: column;  
        justify-content: center;
        width: max-content;
    }

    .nav-mid {
        padding-left: 0px;
    }

    .nav-mid li:not(:last-child):after {
        display: none; 
    }

    .nav-right{
        padding-right: 20px;
    }
}
