e-comm-flask / static /css /style.css
abdullah9873's picture
Upload folder using huggingface_hub
3c62f53 verified
Raw History Blame Contribute Delete
17.8 kB
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');
/* =================
Define CSS variables in :root
===================== */
:root {
--primary-color: #f5a623;
--secondary-color: #1d355d;
--accent-color: #0056b3;
--glass-bg: rgba(255, 255, 255, 0.1);
--background-color: #f4f4f4;
--white-color: #fff;
--text-color: #333;
--gray-color: #777;
--font-family: "PT Sans", sans-serif;
--h1-font: "Merriweather", serif;
--heading-font-size: 2rem;
--body-font-size: 1rem;
--border-radius: 8px;
--mustard: #d4a017;
}
/* ==============
Global Reset
===============*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/*==============
Body Styles
================*/
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: var(--font-family);
font-size: var(--body-font-size);
line-height: 1.6;
overflow-x: hidden;
}
/* ==============
Header Styles
================*/
header {
background-color: transparent;
padding: 1rem 2rem;
display: flex;
justify-content: center;
align-items: center;
position: sticky;
/* top: 0; */
/* z-index: 1000; */
}
/* ==============
Buttons
================*/
.btn {
background-color: var(--secondary-color);
color: var(--white-color);
border: none;
padding: 0.5rem 1.5rem;
font-size: 1rem;
border-radius: 12px;
cursor: pointer;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s, background-color 0.3s;
}
.btn:hover {
background-color: var(--primary-color);
transform: scale(1.1);
}
/*===========
Plus Btn
============= */
.plus-btn {
position: absolute;
top: 10px;
right: 10px;
width: 40px;
height: 40px;
border: none;
border-radius: 50%;
background-color: var(--secondary-color);
color: var(--white-color);
font-size: 24px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s;
}
.plus-btn:hover {
background-color: var(--accent-color);
}
/* =============
Links
================ */
a {
color: var(--primary-color);
text-decoration: none;
transition: color var(--transition-time);
list-style: none;
}
a:hover {
color: var(--accent-color);
}
/* ==============
Premium Navbar
================*/
.premium-navbar {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
width: 90%;
max-width: 1000px;
background: rgba(255, 255, 255, 0.4);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
border-radius: 40px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 25px;
z-index: 9999;
transition: all 0.3s ease;
}
.nav-brand a {
font-family: 'Merriweather', var(--font-family);
font-size: 1.5rem;
font-weight: 700;
color: var(--secondary-color);
}
.nav-brand span {
color: var(--primary-color);
font-size: 1.8rem;
}
.nav-menu {
display: flex;
gap: 2rem;
}
.nav-item {
color: var(--secondary-color);
font-weight: 600;
font-size: 1rem;
position: relative;
padding: 5px 0;
transition: color 0.3s ease;
}
.nav-item:hover, .nav-item.active {
color: var(--primary-color);
}
.nav-item::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background: var(--primary-color);
transition: all 0.3s ease;
transform: translateX(-50%);
}
.nav-item:hover::after, .nav-item.active::after {
width: 100%;
}
.nav-actions {
display: flex;
align-items: center;
gap: 1.5rem;
}
.nav-icon {
font-size: 1.5rem;
color: var(--secondary-color);
transition: transform 0.3s ease, color 0.3s ease;
}
.nav-icon:hover {
color: var(--primary-color);
transform: scale(1.1);
}
.hamburger {
display: none;
flex-direction: column;
gap: 5px;
cursor: pointer;
z-index: 10000;
}
.hamburger .bar {
width: 25px;
height: 3px;
background: var(--secondary-color);
border-radius: 3px;
transition: all 0.3s ease;
}
.hamburger.active .bar:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}
/* Mobile Navbar */
@media (max-width: 768px) {
.hamburger {
display: flex;
}
.nav-menu {
position: fixed;
top: 80px;
left: 50%;
transform: translateX(-50%) translateY(-20px);
width: 90%;
max-width: 400px;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-radius: 20px;
flex-direction: column;
align-items: center;
padding: 2rem 0;
gap: 1.5rem;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
opacity: 0;
pointer-events: none;
transition: all 0.4s ease;
}
.nav-menu.active {
opacity: 1;
pointer-events: auto;
transform: translateX(-50%) translateY(0);
}
.nav-item {
font-size: 1.2rem;
}
}
/*==================
Premium Hero Section (V2)
==================*/
.premium-hero {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap-reverse;
gap: 60px;
width: 100%;
max-width: 1400px;
margin: 0 auto;
padding: 140px 350px 80px 5%; /* 350px right padding prevents overlap with Chatbot on desktop */
min-height: 90vh;
background: radial-gradient(circle at 75% 50%, #fdf6e6, var(--background-color));
position: relative;
overflow: hidden;
}
.premium-hero::before {
content: "";
position: absolute;
top: -20%;
left: -10%;
width: 50%;
height: 50%;
background: radial-gradient(circle, rgba(74, 144, 226, 0.05), transparent 70%);
border-radius: 50%;
z-index: 0;
}
.hero-content {
flex: 1;
min-width: 320px;
z-index: 5;
position: relative;
}
.hero-subtitle {
font-size: 1rem;
color: var(--mustard);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: 1rem;
}
.hero-title {
font-size: clamp(3rem, 6vw, 5rem);
font-weight: 800;
line-height: 1.1;
margin-bottom: 1.5rem;
font-family: var(--h1-font);
background: linear-gradient(45deg, var(--secondary-color), #4a90e2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero-title sup {
font-size: 1.5rem;
color: var(--mustard);
-webkit-text-fill-color: var(--mustard);
}
.hero-description {
font-size: 1.1rem;
color: #555;
line-height: 1.8;
max-width: 500px;
margin-bottom: 2.5rem;
}
.hero-actions {
margin-bottom: 4rem;
}
.premium-btn {
background: linear-gradient(135deg, var(--secondary-color), #2c5282);
color: white;
padding: 1rem 2rem;
font-size: 1.1rem;
border-radius: 50px;
display: inline-flex;
align-items: center;
gap: 10px;
transition: all 0.3s ease;
box-shadow: 0 10px 20px rgba(29, 53, 93, 0.2);
}
.premium-btn:hover {
transform: translateY(-3px);
box-shadow: 0 15px 25px rgba(29, 53, 93, 0.3);
background: linear-gradient(135deg, #2c5282, var(--secondary-color));
}
.glass-detail-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: 20px;
padding: 20px;
max-width: 450px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease;
position: absolute;
bottom: -40px;
right: -150px; /* Overlaps visually with the hero-visuals section */
z-index: 10;
}
.glass-detail-card:hover {
transform: translateY(-5px);
}
.glass-card-text h4 {
font-size: 1.2rem;
color: var(--secondary-color);
font-weight: 700;
margin-bottom: 5px;
}
.glass-card-text span {
font-size: 0.9rem;
color: var(--mustard);
font-weight: 600;
}
.glass-card-img {
width: 90px;
height: 90px;
object-fit: cover;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/*================
Hero Visuals (Animations) - V2 Living Room Composition
================*/
.hero-visuals {
flex: 1.2;
min-width: 350px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-height: 500px;
}
.product-image {
position: absolute;
transition: transform 0.3s ease;
}
.product-image img {
width: 100%;
height: auto;
display: block;
filter: drop-shadow(0 25px 35px rgba(0,0,0,0.15));
}
/* Levitating Animations */
@keyframes floatUp {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
@keyframes floatDown {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(10px); }
}
@keyframes floatSide {
0%, 100% { transform: translateX(0) translateY(0); }
50% { transform: translateX(-8px) translateY(-5px); }
}
.floating-sofa {
bottom: 5%;
left: 50%;
transform: translateX(-50%);
width: 80%;
z-index: 2;
animation: floatUp 8s ease-in-out infinite;
}
.floating-lamp {
bottom: 10%;
left: -5%;
width: 20%;
z-index: 1;
animation: floatSide 7s ease-in-out infinite;
}
.floating-plant {
bottom: 30%;
right: -5%;
width: 30%;
z-index: 1;
animation: floatDown 6s ease-in-out infinite;
}
.floating-table {
bottom: -10%;
left: 45%;
transform: translateX(-50%);
width: 40%;
z-index: 3;
animation: floatUp 5s ease-in-out infinite;
}
/* Plus Buttons */
.plus-btn {
position: absolute;
width: 35px;
height: 35px;
font-size: 20px;
z-index: 10;
border-radius: 50%;
background: var(--primary-color);
color: white;
border: 2px solid white;
cursor: pointer;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
transition: transform 0.3s ease;
}
.plus-btn:hover {
transform: scale(1.2);
background: var(--secondary-color);
}
.sofa-btn { top: 10%; right: 10%; }
.lamp-btn { top: 20%; right: -20%; }
.plant-btn { top: 15%; left: 0%; }
.table-btn { top: -10%; right: 0%; }
/* Mobile Hero Design */
@media (max-width: 768px) {
.premium-hero {
flex-direction: column-reverse;
padding: 100px 5% 40px;
gap: 20px;
}
.hero-visuals {
min-height: 400px;
width: 100%;
}
.floating-sofa {
width: 85%;
}
.hero-content {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}
.hero-description {
margin: 0 auto 2rem;
}
.glass-detail-card {
text-align: left;
width: 100%;
position: relative;
right: auto;
bottom: auto;
margin-top: 20px;
}
}
/* ========== Luxury Marquee ========== */
.luxury-marquee {
width: 100%;
background: var(--secondary-color);
color: var(--mustard);
padding: 1.5rem 0;
overflow: hidden;
border-top: 1px solid rgba(255,255,255,0.1);
border-bottom: 1px solid rgba(255,255,255,0.1);
box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
display: flex;
white-space: nowrap;
}
.marquee-content {
display: flex;
align-items: center;
gap: 4rem;
animation: scroll-left-smooth 30s linear infinite;
padding-left: 4rem;
}
.marquee-content span {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.2rem;
font-weight: 600;
letter-spacing: 2px;
text-transform: uppercase;
font-family: var(--h1-font);
}
.marquee-content span i {
font-size: 1.5rem;
color: var(--white-color);
}
@keyframes scroll-left-smooth {
0% { transform: translateX(0); }
100% { transform: translateX(calc(-50% - 2rem)); }
}
/* ========== Featured Products Grid (High-End) ========== */
.featured-products {
padding: 100px 5%;
background-color: var(--background-color);
text-align: center;
}
.section-header {
margin-bottom: 60px;
}
.section-subtitle {
color: var(--mustard);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 3px;
font-weight: 700;
margin-bottom: 10px;
}
.section-title {
font-size: 2.5rem;
color: var(--secondary-color);
font-family: var(--h1-font);
font-weight: 800;
margin-bottom: 15px;
}
.section-desc {
color: var(--gray-color);
max-width: 600px;
margin: 0 auto;
}
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 40px;
max-width: 1300px;
margin: 0 auto;
}
.product-card {
background: var(--white-color);
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,0.03);
overflow: hidden;
transition: all 0.4s ease;
border: 1px solid rgba(0,0,0,0.05);
text-align: left;
}
.product-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.card-image-wrapper {
height: 250px;
width: 100%;
background: #fdfdfd;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
overflow: hidden;
position: relative;
}
.card-image-wrapper img {
width: 100%;
height: 100%;
object-fit: contain;
transition: transform 0.5s ease;
}
.product-card:hover .card-image-wrapper img {
transform: scale(1.08);
}
.card-content {
padding: 25px;
}
.card-content h3 {
font-size: 1.3rem;
color: var(--secondary-color);
margin-bottom: 8px;
font-weight: 700;
}
.card-content p {
font-size: 0.9rem;
color: #888;
margin-bottom: 20px;
line-height: 1.5;
}
.card-footer {
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid #eee;
padding-top: 15px;
}
.price {
font-size: 1.2rem;
font-weight: 800;
color: var(--secondary-color);
}
.premium-btn-sm {
background: var(--secondary-color);
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: none;
cursor: pointer;
transition: all 0.3s ease;
}
.premium-btn-sm:hover {
background: var(--mustard);
transform: scale(1.1);
}
/* ========== Premium Footer ========== */
.premium-footer {
background: var(--secondary-color);
color: #d1d5db;
padding: 80px 5% 20px;
border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1.5fr;
gap: 40px;
max-width: 1300px;
margin: 0 auto;
border-bottom: 1px solid rgba(255,255,255,0.1);
padding-bottom: 60px;
}
.footer-logo {
font-family: var(--h1-font);
font-size: 2.2rem;
color: var(--white-color);
margin-bottom: 20px;
}
.footer-logo span {
color: var(--mustard);
}
.footer-desc {
line-height: 1.6;
margin-bottom: 25px;
max-width: 300px;
}
.social-links {
display: flex;
gap: 15px;
}
.social-links a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: rgba(255,255,255,0.05);
border-radius: 50%;
color: var(--white-color);
font-size: 1.2rem;
transition: all 0.3s ease;
text-decoration: none;
}
.social-links a:hover {
background: var(--mustard);
transform: translateY(-3px);
}
.footer-title {
color: var(--white-color);
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 25px;
font-family: var(--h1-font);
}
.footer-col ul {
list-style: none;
padding: 0;
}
.footer-col ul li {
margin-bottom: 15px;
}
.footer-col ul li a {
color: #9ca3af;
text-decoration: none;
transition: all 0.3s ease;
position: relative;
}
.footer-col ul li a:hover {
color: var(--mustard);
padding-left: 5px;
}
.newsletter-form {
display: flex;
margin-top: 20px;
background: rgba(255,255,255,0.05);
border-radius: 30px;
padding: 5px;
border: 1px solid rgba(255,255,255,0.1);
}
.newsletter-form input {
flex: 1;
background: transparent;
border: none;
padding: 10px 15px;
color: white;
outline: none;
}
.newsletter-form input::placeholder {
color: #6b7280;
}
.newsletter-btn {
background: var(--mustard);
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s ease;
}
.newsletter-btn:hover {
transform: scale(1.1);
}
.footer-bottom {
max-width: 1300px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 20px;
font-size: 0.9rem;
}
.footer-legal a {
color: #9ca3af;
text-decoration: none;
margin-left: 20px;
transition: color 0.3s ease;
}
.footer-legal a:hover {
color: var(--white-color);
}
@media (max-width: 768px) {
.luxury-marquee {
padding: 1rem 0;
}
.marquee-content span {
font-size: 1rem;
}
.section-title {
font-size: 2rem;
}
.featured-products {
padding: 60px 5%;
}
.footer-grid {
grid-template-columns: 1fr;
gap: 40px;
}
.footer-bottom {
flex-direction: column;
gap: 15px;
text-align: center;
}
.footer-legal a {
margin: 0 10px;
}
}