/* File: assets/css/home-styles.css */
/*--------------------------------------------------------------
Hero Slider
--------------------------------------------------------------*/
.hero-slider-section {
position: relative;
padding-top: 0;
margin-top: 0;
overflow: hidden;
}
.hero-slider {
position: relative;
width: 100%;
height: 80vh;
min-height: 550px;
overflow: hidden;
margin-bottom: 0;
}
.slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
visibility: hidden;
transition: opacity 1.2s ease, visibility 1.2s ease;
z-index: 1;
}
.slide.active {
opacity: 1;
visibility: visible;
z-index: 2;
}
.slide-inner {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
z-index: -1;
}
.slide-content {
position: absolute;
top: 50%;
left: 50%;
max-width: 650px;
width: 80%;
text-align: center;
color: white;
transform: translate(-50%, -50%);
z-index: 3;
opacity: 0;
animation: fadeIn 1.5s ease forwards;
animation-delay: 0.5s;
}
@keyframes fadeIn {
from { opacity: 0; transform: translate(-50%, -50%) translateY(-40px); }
to { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
}
.slide::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
z-index: 0;
}
.slide-title {
font-size: 3.5rem;
font-weight: 800;
line-height: 1.2;
margin-bottom: 1.5rem;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
text-align: center;
}
.slide-title span {
color: var(--primary-color);
background: rgba(255, 255, 255, 0.9);
padding: 0 15px;
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}
.slide-description {
font-size: 1.25rem;
line-height: 1.6;
max-width: 90%;
margin-bottom: 2rem;
text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
text-align: center;
margin-left: auto;
margin-right: auto;
}
.slide-btn {
font-size: 1.1rem;
font-weight: 600;
padding: 12px 30px;
border-radius: 50px;
text-transform: uppercase;
letter-spacing: 1px;
display: inline-block;
background-color: var(--primary-color);
color: white;
text-decoration: none;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
text-align: center;
}
.slide-btn:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
color: white;
background-color: var(--primary-dark);
}
.slider-nav {
position: absolute;
bottom: 50%;
width: 100%;
transform: translateY(50%);
display: flex;
justify-content: space-between;
padding: 0 30px;
z-index: 5;
}
.slider-nav button {
background-color: rgba(255, 255, 255, 0.2);
border: 2px solid white;
color: white;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
}
.slider-nav button:hover {
background-color: rgba(255, 255, 255, 0.4);
transform: scale(1.1);
}
.slider-nav button i {
font-size: 1.2rem;
}
.slider-dots {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 12px;
z-index: 5;
}
.slider-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid white;
}
.slider-dot.active {
background-color: var(--primary-color);
transform: scale(1.2);
}
/*--------------------------------------------------------------
Welcome Section
--------------------------------------------------------------*/
.welcome-section {
padding: 5rem 0;
position: relative;
overflow: hidden;
background-color: var(--bg-color);
background-image: url('../images/paw-pattern-light.png');
background-size: 300px;
background-repeat: repeat;
background-blend-mode: overlay;
}
.welcome-content {
display: flex;
align-items: center;
gap: 3rem;
}
.welcome-text {
flex: 1;
padding-right: 2rem;
}
.welcome-text h2 {
font-size: 2.5rem;
margin-bottom: 1.5rem;
color: var(--text-dark);
line-height: 1.3;
}
.section-title.with-accent {
position: relative;
padding-bottom: 15px;
}
.section-title.with-accent:after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 80px;
height: 3px;
background-color: var(--primary-color);
}
.welcome-text p {
font-size: 1.1rem;
line-height: 1.8;
color: var(--text-light);
margin-bottom: 2rem;
}
.welcome-image {
flex: 1;
position: relative;
}
.welcome-image img {
width: 100%;
max-width: 500px;
border-radius: 20px;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
transform: translateY(-20px);
}
.welcome-image:before {
content: "";
position: absolute;
top: 20px;
left: 20px;
width: 100%;
height: 100%;
background-color: var(--primary-color);
border-radius: 20px;
opacity: 0.1;
z-index: -1;
}
/*--------------------------------------------------------------
Section Headers
--------------------------------------------------------------*/
.section-header {
text-align: center;
margin-bottom: 3rem;
}
.section-title {
font-size: 2.5rem;
font-weight: 700;
color: var(--text-dark);
margin-bottom: 1rem;
position: relative;
display: inline-block;
}
.section-title:after {
content: "";
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 3px;
background-color: var(--primary-color);
}
.section-desc {
color: var(--text-light);
font-size: 1.1rem;
max-width: 700px;
margin: 0 auto;
}
.section-footer {
text-align: center;
margin-top: 3rem;
}
/*--------------------------------------------------------------
Featured Categories
--------------------------------------------------------------*/
.featured-categories {
padding: 5rem 0;
background-color: var(--bg-alt);
}
.category-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.category-card {
border-radius: 15px;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
background-color: var(--bg-color);
border: 1px solid rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
height: 100%;
}
.category-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.category-img {
height: 220px;
overflow: hidden;
}
.category-img img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.category-card:hover .category-img img {
transform: scale(1.05);
}
.category-content {
padding: 1.5rem;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.category-title {
font-size: 1.3rem;
font-weight: 600;
color: var(--text-dark);
margin-bottom: 0.75rem;
}
.category-desc {
color: var(--text-light);
margin-bottom: 1.5rem;
line-height: 1.6;
flex-grow: 1;
}
.btn-outline {
display: inline-block;
padding: 10px 20px;
border: 2px solid var(--primary-color);
border-radius: 50px;
color: var(--primary-color);
font-weight: 500;
text-decoration: none;
transition: all 0.3s ease;
text-align: center;
}
.btn-outline:hover {
background-color: var(--primary-color);
color: white;
transform: translateY(-3px);
}
.no-categories, .no-products {
text-align: center;
padding: 3rem 0;
color: var(--text-light);
font-style: italic;
background-color: rgba(0, 0, 0, 0.02);
border-radius: 15px;
}
.no-categories a, .no-products a {
margin-top: 1rem;
display: inline-block;
}
/*--------------------------------------------------------------
Featured Products
--------------------------------------------------------------*/
.featured-products {
padding: 5rem 0;
background-color: var(--bg-color);
}
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.product-card {
border-radius: 15px;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
background-color: var(--bg-color);
border: 1px solid rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
height: 100%;
}
.product-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.product-img {
height: 250px;
overflow: hidden;
position: relative;
}
.product-img img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
transform: scale(1.05);
}
.product-badge {
position: absolute;
top: 15px;
right: 15px;
padding: 5px 15px;
border-radius: 50px;
font-size: 0.8rem;
font-weight: 600;
z-index: 2;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.product-badge.out-of-stock {
background-color: var(--danger-color);
color: white;
}
.product-content {
padding: 1.5rem;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.product-title {
font-size: 1.2rem;
font-weight: 600;
color: var(--text-dark);
margin-bottom: 0.75rem;
line-height: 1.4;
height: 2.8em;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.product-rating {
color: #FFD700;
font-size: 0.9rem;
margin-bottom: 0.75rem;
}
.product-price {
display: flex;
align-items: center;
margin-bottom: 1rem;
}
.current-price {
font-weight: 700;
font-size: 1.3rem;
color: var(--primary-color);
}
.old-price {
font-size: 0.9rem;
color: var(--text-light);
text-decoration: line-through;
margin-left: 0.75rem;
}
.product-actions {
margin-top: auto;
}
/*--------------------------------------------------------------
Why Choose Us Section
--------------------------------------------------------------*/
.why-choose-us {
padding: 5rem 0;
background-color: var(--bg-alt);
position: relative;
overflow: hidden;
}
.benefits-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 2rem;
}
.benefit-item {
text-align: center;
padding: 2rem;
background-color: var(--bg-color);
border-radius: 15px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid rgba(0, 0, 0, 0.05);
height: 100%;
}
.benefit-item:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.benefit-icon {
font-size: 3rem;
color: var(--primary-color);
margin-bottom: 1.5rem;
display: inline-block;
position: relative;
}
.benefit-icon:after {
content: "";
position: absolute;
width: 50px;
height: 50px;
background-color: var(--primary-color);
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.7);
opacity: 0.1;
z-index: -1;
transition: transform 0.3s ease, opacity 0.3s ease;
}
.benefit-item:hover .benefit-icon:after {
transform: translate(-50%, -50%) scale(1.2);
opacity: 0.2;
}
.benefit-item h3 {
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--text-dark);
}
.benefit-item p {
color: var(--text-light);
line-height: 1.6;
margin-bottom: 0;
}
/*--------------------------------------------------------------
Testimonials Section
--------------------------------------------------------------*/
.testimonials-section {
padding: 5rem 0;
background-color: var(--bg-color);
position: relative;
overflow: hidden;
}
.testimonials-section:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('../images/quotes-pattern.png');
background-size: 200px;
background-repeat: repeat;
opacity: 0.03;
z-index: 0;
}
.testimonials-slider {
max-width: 800px;
margin: 0 auto;
position: relative;
z-index: 2;
}
.testimonial-item {
display: none;
transition: all 0.3s ease;
}
.testimonial-item.active {
display: block;
animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(40px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.testimonial-content {
padding: 2rem;
background-color: var(--bg-alt);
border-radius: 15px;
position: relative;
margin-bottom: 2rem;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.testimonial-content:after {
content: "";
position: absolute;
bottom: -15px;
left: 50px;
width: 30px;
height: 30px;
background-color: var(--bg-alt);
transform: rotate(45deg);
z-index: -1;
}
.testimonial-content p {
font-size: 1.1rem;
line-height: 1.8;
font-style: italic;
color: var(--text-dark);
margin: 0;
position: relative;
z-index: 1;
}
.testimonial-content:before {
content: "\f10d";
font-family: "Font Awesome 5 Free";
font-weight: 900;
font-size: 4rem;
color: var(--primary-color);
opacity: 0.1;
position: absolute;
top: 10px;
left: 10px;
z-index: 0;
}
.testimonial-author {
display: flex;
align-items: center;
padding-left: 2rem;
}
.testimonial-author img {
width: 70px;
height: 70px;
border-radius: 50%;
object-fit: cover;
margin-right: 1rem;
border: 3px solid var(--primary-color);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.testimonial-author h4 {
margin: 0 0 0.2rem;
font-size: 1.2rem;
font-weight: 600;
color: var(--text-dark);
}
.testimonial-author p {
margin: 0;
font-size: 0.9rem;
color: var(--text-light);
}
.testimonial-controls {
display: flex;
justify-content: center;
margin-top: 2rem;
gap: 1rem;
}
.testimonial-prev,
.testimonial-next {
width: 50px;
height: 50px;
border-radius: 50%;
background-color: var(--primary-color);
color: white;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.testimonial-prev:hover,
.testimonial-next:hover {
background-color: var(--primary-dark);
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
/*--------------------------------------------------------------
Newsletter Section
--------------------------------------------------------------*/
.newsletter-section {
padding: 5rem 0;
background-color: var(--primary-color);
color: white;
position: relative;
overflow: hidden;
}
.newsletter-section:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('../images/paw-pattern-dark.png');
background-size: 200px;
background-repeat: repeat;
opacity: 0.1;
z-index: 0;
}
.newsletter-content {
text-align: center;
max-width: 700px;
margin: 0 auto;
position: relative;
z-index: 2;
}
.newsletter-content h2 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
color: white;
}
.newsletter-content p {
font-size: 1.1rem;
margin-bottom: 2rem;
opacity: 0.9;
}
.newsletter-form .form-group {
display: flex;
max-width: 500px;
margin: 0 auto;
}
.newsletter-form input[type="email"] {
flex: 1;
height: 55px;
padding: 0 25px;
border: none;
border-radius: 50px 0 0 50px;
font-size: 1rem;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.newsletter-form input[type="email"]:focus {
outline: none;
}
.newsletter-form button {
height: 55px;
padding: 0 30px;
background-color: var(--accent-color);
color: white;
border: none;
border-radius: 0 50px 50px 0;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.newsletter-form button:hover {
background-color: #e64c2e;
transform: translateY(-3px);
}
.newsletter-form button i {
margin-left: 0.5rem;
}
/*--------------------------------------------------------------
Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 1200px) {
.hero-slider {
height: 70vh;
}
.slide-title {
    font-size: 3rem;
}

.welcome-content {
    gap: 2rem;
}

.welcome-text {
    padding-right: 1rem;
}

.welcome-text h2 {
    font-size: 2.2rem;
}
}
@media (max-width: 992px) {
.hero-slider {
height: 60vh;
}
.slide-content {
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.slide-title {
    font-size: 2.5rem;
    text-align: center;
}

.slide-description {
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.welcome-content {
    flex-direction: column;
}

.welcome-text {
    padding-right: 0;
}

.welcome-image {
    order: -1;
    margin-bottom: 2rem;
}

.welcome-image img {
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.benefits-grid {
    grid-template-columns: repeat(2, 1fr);
}

.newsletter-form .form-group {
    max-width: 400px;
}
}
@media (max-width: 768px) {
.hero-slider {
height: 0;
padding-bottom: 66.67%; /* 3:2 aspect ratio */
min-height: auto;
}
.slide-content {
    text-align: center;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 90%;
}

.slide-title {
    font-size: 2rem;
    text-align: center;
}

.slide-description {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 100%;
}

.section-title {
    font-size: 2rem;
}

.category-grid,
.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.slider-nav {
    bottom: 20px;
    top: auto;
    transform: none;
    justify-content: center;
    padding: 0;
}

.slider-nav button {
    position: absolute;
}

.slider-nav button:first-child {
    left: 20px;
}

.slider-nav button:last-child {
    right: 20px;
}

.slider-dots {
    bottom: 15px;
}

.testimonial-author {
    padding-left: 1rem;
}
}
@media (max-width: 576px) {
.hero-slider {
height: 0;
padding-bottom: 75%; /* 4:3 aspect ratio */
min-height: auto;
}
.slide::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}

.slide-content {
    top: 50%;
    width: 94%;
    max-width: 94%;
    padding: 15px;
    text-align: center;
}

.slide-title {
    font-size: 1.8rem;
    text-align: center;
}

.slide-description {
    max-width: 100%;
    text-align: center;
}

.slide-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
}

.welcome-text h2 {
    font-size: 1.8rem;
}

.section-title {
    font-size: 1.8rem;
}

.benefits-grid {
    grid-template-columns: 1fr;
}

.category-grid,
.product-grid {
    grid-template-columns: 1fr;
}

.newsletter-form .form-group {
    flex-direction: column;
}

.newsletter-form input[type="email"],
.newsletter-form button {
    width: 100%;
    border-radius: 50px;
}

.newsletter-form button {
    margin-top: 1rem;
}

.benefit-item {
    padding: 1.5rem;
}

.testimonial-content {
    padding: 1.5rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
}
}
/* Dark Mode Enhancements */
[data-theme="dark"] .welcome-section {
background-image: url('../images/paw-pattern-dark.png');
}
[data-theme="dark"] .newsletter-section:before {
opacity: 0.05;
}
[data-theme="dark"] .slide-title span {
color: var(--primary-light);
background: rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .category-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .benefit-item {
border-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .testimonial-content {
background-color: var(--bg-color);
}
[data-theme="dark"] .testimonial-content:after {
background-color: var(--bg-color);
}