File manager - Edit - /home/webapp69.cm.in.th/u69319090042/Shop/style.css
Back
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap'); :root { --primary: #307987; /* Dark teal/cyan accent */ --primary-hover: #3d98a8; --primary-light: rgba(48, 121, 135, 0.2); --dark: #000000; --light: rgba(25, 25, 25, 0.85); /* Dark background for cards/containers */ --gray-bg: transparent; /* Transparent to let the brick image show through */ --gray-border: rgba(255, 255, 255, 0.15); --text-color: #f4f4f4; /* Light text */ --text-muted: #a0a0a0; --success: #2ec4b6; --danger: #e63946; --shadow: 0 8px 30px rgba(0, 0, 0, 0.6); --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4); --radius: 12px; --radius-sm: 8px; --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', 'Sarabun', sans-serif; } body { background-image: url('images/bg.png'); background-size: cover; background-attachment: fixed; background-position: center; color: var(--text-color); line-height: 1.6; } a { text-decoration: none; color: inherit; transition: var(--transition); } /* Header & Navigation */ header { background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--gray-border); box-shadow: var(--shadow-sm); } .header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; } .logo { font-size: 24px; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 8px; } .logo span { color: var(--primary); } .search-bar { flex: 0 1 500px; display: flex; background: var(--gray-bg); border: 1px solid var(--gray-border); border-radius: 50px; padding: 4px 6px; transition: var(--transition); } .search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 183, 197, 0.25); background: var(--light); } .search-bar input { border: none; background: transparent; padding: 8px 15px; flex-grow: 1; outline: none; font-size: 14px; } .search-bar button { border: none; background: var(--primary); color: var(--light); padding: 8px 20px; border-radius: 50px; cursor: pointer; font-weight: 600; transition: var(--transition); } .search-bar button:hover { background: var(--primary-hover); } .nav-actions { display: flex; align-items: center; gap: 20px; } .nav-link { font-weight: 500; color: var(--text-color); position: relative; padding: 5px 0; } .nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary); transition: var(--transition); } .nav-link:hover::after, .nav-link.active::after { width: 100%; } .cart-icon { position: relative; font-size: 20px; cursor: pointer; } .cart-count { position: absolute; top: -8px; right: -10px; background: var(--danger); color: var(--light); font-size: 11px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; } .user-menu { display: flex; align-items: center; gap: 10px; font-size: 14px; } /* Primary Button style */ .btn { display: inline-block; padding: 10px 24px; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: var(--transition); border: none; text-align: center; font-size: 14px; } .btn-primary { background: var(--primary); color: var(--light); } .btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 183, 197, 0.4); } .btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); } .btn-outline:hover { background: var(--primary-light); } /* Secondary & Container Layouts */ .container { max-width: 1200px; margin: 40px auto; padding: 0 20px; } /* Auth Cards */ .auth-card { max-width: 400px; margin: 80px auto; background: var(--light); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); } .auth-card h2 { margin-bottom: 24px; text-align: center; font-weight: 700; color: var(--dark); } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; } .form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-border); border-radius: var(--radius-sm); outline: none; transition: var(--transition); font-size: 14px; } .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 183, 197, 0.2); } /* Homepage Banner */ .hero-banner { background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%); border-radius: var(--radius); padding: 60px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; overflow: hidden; position: relative; border: 1px solid rgba(255, 183, 197, 0.3); } .hero-text { max-width: 50%; } .hero-text h1 { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: var(--dark); } .hero-text h1 span { color: var(--primary); } .hero-text p { font-size: 16px; color: var(--text-muted); margin-bottom: 30px; } .hero-image img { max-width: 400px; border-radius: var(--radius); box-shadow: var(--shadow); } /* Category Grid */ .section-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: var(--dark); display: flex; justify-content: space-between; align-items: center; } .categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; } .category-card { background: var(--light); border-radius: var(--radius); padding: 30px 20px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-border); transition: var(--transition); } .category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); } .category-card .icon { font-size: 32px; margin-bottom: 12px; display: inline-block; } .category-card h3 { font-size: 16px; font-weight: 600; } /* Products Grid */ .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; } .product-card { background: var(--light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-border); transition: var(--transition); display: flex; flex-direction: column; } .product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); } .product-image { position: relative; padding-top: 125%; /* 4:5 aspect ratio */ overflow: hidden; } .product-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: var(--transition); } .product-card:hover .product-image img { transform: scale(1.05); } .product-details { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; } .product-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 48px; } .product-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; } .product-price { font-size: 18px; font-weight: 700; color: var(--primary-hover); } /* Product Detail Page */ .product-detail-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: var(--light); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); } .detail-image img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 600px; } .detail-info h2 { font-size: 32px; font-weight: 700; margin-bottom: 15px; } .detail-price { font-size: 28px; font-weight: 700; color: var(--primary-hover); margin-bottom: 20px; } .detail-desc { color: var(--text-muted); margin-bottom: 30px; font-size: 15px; line-height: 1.8; } .detail-action { display: flex; gap: 15px; align-items: center; margin-bottom: 30px; } .quantity-selector { display: flex; align-items: center; border: 1px solid var(--gray-border); border-radius: var(--radius-sm); overflow: hidden; } .quantity-selector button { border: none; background: var(--gray-bg); width: 40px; height: 40px; cursor: pointer; font-size: 16px; transition: var(--transition); } .quantity-selector button:hover { background: var(--primary-light); } .quantity-selector input { width: 50px; height: 40px; border: none; text-align: center; font-size: 15px; font-weight: 600; outline: none; } /* Cart Page */ .cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; } .cart-items { background: var(--light); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); } .cart-item { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--gray-border); } .cart-item:last-child { border-bottom: none; } .cart-item-img { width: 80px; height: 100px; border-radius: var(--radius-sm); object-fit: cover; } .cart-item-details { flex-grow: 1; } .cart-item-details h4 { font-size: 16px; font-weight: 600; margin-bottom: 5px; } .cart-item-details p { color: var(--text-muted); font-size: 14px; } .cart-summary { background: var(--light); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); height: fit-content; } .summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 15px; } .summary-row.total { border-top: 1px solid var(--gray-border); padding-top: 15px; font-size: 18px; font-weight: 700; } /* Points reward details */ .points-reward { background: var(--primary-light); border-radius: var(--radius-sm); padding: 15px; margin-bottom: 20px; font-size: 14px; color: var(--dark); display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 183, 197, 0.5); } /* Admin Dashboard layout */ .admin-container { display: flex; min-height: calc(100vh - 75px); } .sidebar { width: 250px; background: var(--light); border-right: 1px solid var(--gray-border); padding: 30px 20px; } .sidebar-menu { list-style: none; } .sidebar-menu li { margin-bottom: 10px; } .sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: var(--radius-sm); font-weight: 500; color: var(--text-color); transition: var(--transition); } .sidebar-link:hover, .sidebar-link.active { background: var(--primary-light); color: var(--primary-hover); font-weight: 600; } .admin-main { flex-grow: 1; padding: 40px; background: var(--gray-bg); } /* Stat Cards */ .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; } .stat-card { background: var(--light); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-border); } .stat-card h4 { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; } .stat-card .value { font-size: 28px; font-weight: 700; color: var(--dark); } /* Tables */ .table-container { background: var(--light); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-border); overflow-x: auto; } table { width: 100%; border-collapse: collapse; text-align: left; } table th { padding: 15px; border-bottom: 2px solid var(--gray-border); font-weight: 600; color: var(--text-muted); font-size: 14px; } table td { padding: 15px; border-bottom: 1px solid var(--gray-border); font-size: 14px; vertical-align: middle; } /* Status Badges */ .badge { display: inline-block; padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; } .badge-pending { background: #ffe3e3; color: var(--danger); } .badge-shipped { background: #e3faf2; color: var(--success); } .badge-delivered { background: #e7f5ff; color: #3b5bdb; } /* Alerts */ .alert { padding: 15px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; } .alert-success { background-color: #d3f9d8; color: #2b8a3e; border: 1px solid #b2f2bb; } .alert-danger { background-color: #ffe3e3; color: #c92a2a; border: 1px solid #ffc9c9; }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.31 |
proxy
|
phpinfo
|
Settings