/* Dyers Remorse - Main Stylesheet */

/* Import Google Fonts - Matching the elegant script font */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* Color Variables */
:root {
    --primary-teal: #4a9fa8;
    --light-teal: #6bc5d0;
    --pink-accent: #ff6b9d;
    --dark-text: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
}

/* Typography */
.script-font {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header Styles */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-gray);
    padding: 15px 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 20px;
    color: var(--primary-teal);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--pink-accent);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.logo-icon {
    width: 60px;
    height: 60px;
}

.logo-text {
    font-size: 48px;
    color: var(--primary-teal);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    color: var(--dark-text);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
}

.header-actions a:hover {
    color: var(--primary-teal);
}

.search-icon, .cart-icon {
    font-size: 20px;
    cursor: pointer;
}

.cart-count {
    background-color: var(--pink-accent);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 5px;
}

/* Navigation */
.main-nav {
    background-color: var(--white);
    border-top: 1px solid var(--border-gray);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--dark-text);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-teal);
}

.nav-links a.active::before {
    content: "#";
    margin-right: 5px;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--white);
}

.welcome-title {
    font-size: 64px;
    color: var(--primary-teal);
    margin-bottom: 20px;
}

.welcome-tagline {
    font-size: 18px;
    color: var(--light-text);
    font-weight: 300;
}

/* Featured Products Section */
.featured-products {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 48px;
    color: var(--primary-teal);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Product Slideshow */
.product-slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.product-slideshow {
    display: flex;
    transition: transform 0.5s ease;
}

.product-item {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: var(--light-gray);
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge {
    background-color: var(--pink-accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.product-description {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-teal);
}

/* Slideshow Controls */
.slideshow-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.slideshow-btn {
    background-color: var(--primary-teal);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.slideshow-btn:hover {
    background-color: var(--light-teal);
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-gray);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-teal);
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 40px;
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
}

.form-title {
    font-size: 36px;
    color: var(--primary-teal);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-teal);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.btn:hover {
    background-color: var(--light-teal);
}

.btn-secondary {
    background-color: var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--dark-text);
}

/* Admin & Client Panels */
.panel-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-gray);
}

.panel-title {
    font-size: 36px;
    color: var(--primary-teal);
}

.panel-nav {
    display: flex;
    gap: 20px;
    list-style: none;
}

.panel-nav a {
    color: var(--dark-text);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.panel-nav a:hover,
.panel-nav a.active {
    background-color: var(--primary-teal);
    color: var(--white);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
}

.table th {
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--dark-text);
}

/* Footer */
.footer {
    background-color: var(--light-gray);
    padding: 40px 20px;
    margin-top: 80px;
    text-align: center;
    color: var(--light-text);
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 20px;
    }

    .welcome-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

    .product-item {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 36px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success {
    color: #155724;
    background-color: #d4edda;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

