/*
 * PetLuxe Ecommerce - Main Stylesheet
 * Contains all styles for the PetLuxe website
 */

/* Base Styles & Reset */
/* Font Rendering Optimizations */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    color: #333;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Consistent Spacing */
.section-spacing {
    padding: 60px 0;
}

.section-spacing-sm {
    padding: 30px 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }

.mt-1 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.ml-1 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.5rem; }

.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.ml-2 { margin-left: 1rem; }
.mr-2 { margin-right: 1rem; }

.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.ml-3 { margin-left: 1.5rem; }
.mr-3 { margin-right: 1.5rem; }

.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.ml-4 { margin-left: 2rem; }
.mr-4 { margin-right: 2rem; }

.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.ml-5 { margin-left: 3rem; }
.mr-5 { margin-right: 3rem; }

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: #4CAF50;
    transition: color 0.2s ease;
}

a:hover {
    color: #45a049;
    text-decoration: underline;
}

ul {
    list-style: none;
}

button, .btn {
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button:hover, .btn:hover {
    background-color: #45a049;
}

/* Improved Button Styles */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Image Optimization Placeholder Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation Styles */
.site-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Search Bar Styles */
.search-bar {
    position: relative;
    margin: 0 20px;
    flex: 1;
    max-width: 500px;
    display: none; /* Hidden on mobile by default */
}

.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.search-form input:focus {
    border-color: #4CAF50;
    outline: none;
}

.search-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    color: #4CAF50;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.search-result-price {
    color: #4CAF50;
    font-size: 0.9rem;
}

.search-result-category {
    font-size: 0.8rem;
    color: #666;
    text-transform: capitalize;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: search-spin 0.6s linear infinite;
    margin-right: 10px;
}

@keyframes search-spin {
    to { transform: rotate(360deg); }
}

/* Main Navigation */
.main-nav {
    flex: 1 0 auto;
}

.nav-links {
    display: none; /* Hidden on mobile by default */
}

.nav-links.active {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 100;
}

.nav-links li {
    margin: 15px 0;
    padding: 0 20px;
}

.nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4CAF50;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    padding-left: 15px;
    margin-top: 10px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    margin: 8px 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    background: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-only {
    display: block;
}

/* Cart Icon */
.header-cart {
    margin-left: 20px;
}

.cart-icon {
    position: relative;
    display: inline-block;
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    color: #333;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #4CAF50;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Active page indicator */
.nav-link.active {
    color: #4CAF50;
    font-weight: 600;
}

/* Footer - To be completed in Task 9 */

/* Home Page Styles */

/* Typography */
.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

/* Hero Section */
.hero {
    margin-bottom: 60px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 400px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background-color: #f5f5f5;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    max-width: 50%;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.hero-image {
    max-width: 45%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #4CAF50;
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.hardware-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Apply these classes to elements that animate frequently */
.hero-carousel,
.carousel-slide,
.product-card:hover {
    will-change: transform;
    transform: translateZ(0);
}

/* Featured Categories */
.featured-categories {
    padding: 40px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 1.2rem;
    text-align: center;
}

/* Promotional Banner */
.promotional-banner {
    background-color: #4CAF50;
    padding: 40px 0;
    margin: 60px 0;
    color: white;
}

.promo-content {
    text-align: center;
}

.promo-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.promo-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.btn-secondary {
    background-color: white;
    color: #4CAF50;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
}

/* Featured Products */
.featured-products {
    padding: 40px 0;
}

.product-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.product-carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
    padding: 10px 0;
}

.product-carousel-container::-webkit-scrollbar {
    display: none;  /* Hide scrollbar for Chrome, Safari and Opera */
}

.product-card {
    flex: 0 0 auto;
    width: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-card-content {
    padding: 15px;
}

.product-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    font-weight: 600;
    color: #4CAF50;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-card .btn {
    width: 100%;
    padding: 8px;
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    margin-bottom: 15px;
    color: #333;
}

.newsletter p {
    margin-bottom: 25px;
    color: #666;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin-bottom: 15px;
}

.form-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.form-group button {
    border-radius: 0 4px 4px 0;
}

.form-message {
    height: 20px;
    color: #4CAF50;
}

.form-message.error {
    color: #f44336;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

/* Products Page Styles */

/* Page Header */
.page-header {
    background-color: #f5f5f5;
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Products Container */
.products-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

/* Filters */
.filters {
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-btn {
    background: none;
    border: none;
    text-align: left;
    padding: 8px 10px;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.filter-btn:hover {
    background-color: #eaeaea;
}

.filter-btn.active {
    background-color: #4CAF50;
    color: white;
}

/* Price Range Filter */
.price-slider {
    margin-top: 15px;
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.currency {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.price-input input {
    width: 100%;
    padding: 8px 8px 8px 25px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Checkbox Filter */
.checkbox-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Products Section */
.products-section {
    width: 100%;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-count {
    font-size: 0.9rem;
    color: #666;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-size: 0.9rem;
    color: #666;
}

.sort-options select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-content {
    padding: 15px;
}

.product-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333;
}

.product-card-content a {
    color: inherit;
    text-decoration: none;
}

.product-category {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-price {
    font-weight: 600;
    color: #4CAF50;
    font-size: 1.1rem;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.sale-badge {
    background-color: #FF5252;
    color: white;
    font-size: 0.8rem;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.stars {
    color: #FFD700;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
}

.btn-view {
    background-color: #f0f0f0;
    color: #333;
}

.btn-view:hover {
    background-color: #e0e0e0;
}

#no-products-message {
    text-align: center;
    padding: 40px 0;
}

#no-products-message p {
    margin-bottom: 20px;
    color: #666;
}

.hidden {
    display: none;
}

/* Clear filters button */
#clear-filters {
    width: 100%;
}

/* Product Detail Page Styles */

/* Breadcrumb navigation */
.breadcrumb {
    margin: 20px 0 30px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #4CAF50;
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error message */
.error-message {
    text-align: center;
    padding: 60px 0;
}

.error-message p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Product detail container */
.product-detail-container {
    margin-bottom: 60px;
}

.product-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

/* Product gallery */
.product-gallery {
    width: 100%;
}

.main-image-container {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
    text-align: center;
}

.main-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.thumbnail.active {
    border-color: #4CAF50;
}

/* Product information */
.product-info {
    width: 100%;
}

.product-info h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #FFD700;
}

.reviews-count {
    color: #666;
    font-size: 0.9rem;
}

.product-category {
    color: #666;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.product-price-container {
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4CAF50;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    margin-left: 10px;
}

.sale-badge {
    background-color: #FF5252;
    color: white;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 10px;
    display: inline-block;
}

.product-stock {
    margin-bottom: 20px;
}

.in-stock {
    color: #4CAF50;
    font-weight: 500;
}

.low-stock {
    color: #FFA000;
    font-weight: 500;
}

.out-of-stock {
    color: #FF5252;
    font-weight: 500;
}

.product-short-description {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Quantity selector */
.quantity-selector {
    display: flex;
    align-items: center;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 100%;
    background-color: #f5f5f5;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background-color: #e5e5e5;
}

.quantity-input {
    width: 50px;
    height: 100%;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 1rem;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-cart {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product detail tabs */
.product-tabs {
    margin-bottom: 40px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #4CAF50;
}

.tab-btn.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.tab-content {
    padding: 10px;
}

.tab-pane {
    display: none;
    line-height: 1.6;
    color: #666;
}

.tab-pane.active {
    display: block;
}

.features-list {
    padding-left: 20px;
}

.features-list li {
    margin-bottom: 10px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table th {
    text-align: left;
    padding: 12px 10px;
    width: 40%;
    font-weight: 600;
    color: #333;
}

.specs-table td {
    padding: 12px 10px;
    color: #666;
}

/* Related products */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Recently Viewed Products */
.recently-viewed-section {
    margin-top: 60px;
}

.recently-viewed-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.recently-viewed-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.recently-viewed-container::-webkit-scrollbar {
    height: 8px;
}

.recently-viewed-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.recently-viewed-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.recently-viewed-card {
    flex: 0 0 auto;
    width: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease;
}

.recently-viewed-card:hover {
    transform: translateY(-5px);
}

.recently-viewed-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.recently-viewed-card-content {
    padding: 10px;
}

.recently-viewed-card h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recently-viewed-price {
    font-weight: 600;
    color: #4CAF50;
    font-size: 0.9rem;
}

/* Utilities */
.hidden {
    display: none;
}

/* Cart Page Styles */

/* Cart Container */
.cart-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

/* Empty Cart Message */
.empty-cart-message {
    text-align: center;
    padding: 60px 0;
}

.empty-cart-icon {
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart-message h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.empty-cart-message p {
    color: #666;
    margin-bottom: 25px;
}

/* Cart Items Section */
.cart-items {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.cart-header {
    display: none;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    color: #666;
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    margin-bottom: 10px;
}

.cart-item-details {
    flex: 1;
    margin-bottom: 15px;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-price {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
}

.cart-quantity-btn {
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cart-quantity-btn:hover {
    background-color: #e5e5e5;
}

.cart-quantity-input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
    font-size: 0.9rem;
}

.cart-quantity-input::-webkit-inner-spin-button,
.cart-quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-total {
    font-weight: 500;
    color: #4CAF50;
}

.cart-item-remove {
    color: #FF5252;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 0;
    margin-left: 10px;
}

/* Cart Summary Section */
.cart-summary {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    align-self: flex-start;
}

.cart-summary h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
}

.summary-divider {
    height: 1px;
    background-color: #eee;
    margin: 15px 0;
}

.summary-total {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.cart-actions {
    margin-top: 25px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.btn-tertiary {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    padding: 0;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
}

.btn-tertiary:hover {
    color: #FF5252;
}

/* Checkout Form Styles */

/* Checkout Section */
.checkout-section {
    margin-bottom: 60px;
}

.checkout-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
}

/* Form Sections */
.form-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Form Elements */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #f44336;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4CAF50;
    outline: none;
}

.form-group input::placeholder {
    color: #999;
}

/* Form Validation */
.form-group.error input,
.form-group.error select {
    border-color: #f44336;
}

.error-message {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 1.2em;
}

/* Shipping Options */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shipping-option {
    position: relative;
}

.shipping-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.shipping-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shipping-option input[type="radio"]:checked + label {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

.shipping-option-info {
    flex: 1;
}

.shipping-name {
    font-weight: 500;
    color: #333;
}

.shipping-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

.shipping-price {
    font-weight: 600;
    color: #4CAF50;
}

/* Order Summary Review */
.order-summary-review {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.summary-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-total {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
}

/* Order Confirmation */
.order-confirmation {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

.confirmation-icon {
    color: #4CAF50;
    margin-bottom: 20px;
}

.order-confirmation h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.order-confirmation p {
    color: #666;
    margin-bottom: 25px;
}

.order-details {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.order-info {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-info p,
.confirmation-message p {
    margin-bottom: 5px;
}

.btn-block {
    margin-top: 20px;
}

/* About Page Styles */

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    height: 3px;
    width: 60px;
    background-color: #4CAF50;
    margin: 15px auto;
}

/* Our Story Section */
.our-story {
    padding: 60px 0;
}

.story-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.story-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
}

.story-content {
    width: 100%;
}

.story-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.story-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.commitment-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.commitment-list li {
    display: flex;
    margin-bottom: 25px;
}

.commitment-icon {
    flex: 0 0 40px;
    height: 40px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    margin-right: 15px;
}

.commitment-text h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.commitment-text p {
    margin-bottom: 0;
    color: #666;
}

/* Team Section */
.team-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.team-member {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    position: relative;
    overflow: hidden;
}

.member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
}

.member-role {
    color: #4CAF50;
    font-weight: 500;
    margin-bottom: 15px;
}

.member-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Locations Section */
.locations-section {
    padding: 60px 0;
}

.locations-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.locations-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.location-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.location-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.location-card address {
    font-style: normal;
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

.location-card p {
    margin-bottom: 10px;
    color: #666;
}

.location-card .btn {
    margin-top: 10px;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#store-map {
    width: 100%;
    height: 100%;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.method-icon {
    flex: 0 0 40px;
    height: 40px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    margin-right: 15px;
}

.method-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.method-details p {
    margin: 0 0 5px;
    color: #666;
}

.text-muted {
    color: #999;
    font-size: 0.9rem;
}

.contact-form-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.contact-form .form-actions {
    margin-top: 25px;
}

.success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
    color: #4CAF50;
    font-weight: 500;
    text-align: center;
}

.hidden {
    display: none;
}

/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #fff;
}

.footer-top {
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-column {
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #ccc;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #4CAF50;
}

.footer-links h3,
.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4CAF50;
}

.footer-newsletter p {
    margin-bottom: 20px;
    color: #ccc;
}

.footer-newsletter-form .form-group {
    display: flex;
    margin-bottom: 10px;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

.footer-newsletter-form button {
    border-radius: 0 4px 4px 0;
    padding: 0 15px;
}

.footer-newsletter-form .form-message {
    color: #4CAF50;
    font-size: 0.9rem;
    min-height: 20px;
}

.footer-bottom {
    padding: 20px 0;
    background-color: #222;
    font-size: 0.9rem;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    color: #aaa;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
}

.payment-methods img {
    height: 24px;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    color: #eee;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-buttons .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.cookie-learn-more {
    color: #4CAF50;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
}

.cookie-learn-more:hover {
    text-decoration: underline;
}

/* Browser Compatibility Fixes */

/* Fix for Firefox input fields */
input,
textarea,
select {
    font-family: inherit;
}

/* Fix for Safari/iOS input fields */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Fix for IE flexbox issues */
.flex-container {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* Fix for Edge/IE button styles */
button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Fix for IE11 SVG scaling */
svg {
    width: 100%;
    height: 100%;
}

/* Fix for iOS scrolling */
html {
    -webkit-overflow-scrolling: touch;
}

/* Fix for Chrome autofill background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
    animation: slideInUp 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Indicators */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(76, 175, 80, 0.2);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Inline loading indicators */
.inline-loading {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.inline-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Loading indicator for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}