File manager - Edit - /home/webapp69.cm.in.th/u69319090016/Shirts 016/style.css
Back
/* CMTC Shop Design System & Premium CSS */ :root { --primary-color: #2563eb; /* Vibrant Blue */ --primary-hover: #1d4ed8; --secondary-color: #7c3aed; /* Royal Purple */ --secondary-hover: #6d28d9; --primary-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%); --primary-gradient-hover: linear-gradient(135deg, #0369a1 0%, #1d4ed8 50%, #6d28d9 100%); --background-color: #f8fafc; --surface-color: #ffffff; --text-primary: #1e293b; --text-secondary: #64748b; --border-color: #e2e8f0; --success-color: #10b981; --card-shadow: 0 4px 14px rgba(37, 99, 235, 0.08); --hover-shadow: 0 8px 24px rgba(124, 58, 237, 0.16); --font-family: 'Prompt', sans-serif; --border-radius: 10px; --transition-speed: 0.3s; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: var(--font-family); background-color: var(--background-color); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; } a { text-decoration: none; color: inherit; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Helper Utilities */ .hidden-element { display: none !important; } /* Header & Navigation Styles */ .main-header { background: var(--primary-gradient); color: white; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25); } .header-top { border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; padding: 6px 0; } .top-nav-links { display: flex; justify-content: space-between; align-items: center; } .top-nav-left span { display: flex; align-items: center; gap: 6px; opacity: 0.9; } .top-nav-right { display: flex; align-items: center; gap: 16px; } .top-nav-right span { font-weight: 500; } .auth-btn { background: none; border: none; color: white; cursor: pointer; font-family: var(--font-family); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 5px; opacity: 0.9; transition: opacity var(--transition-speed); } .auth-btn:hover { opacity: 1; text-decoration: underline; } .header-main { padding: 16px 0; } .main-nav-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; } .logo { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; color: white; } .logo i { font-size: 30px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)); } .search-box { flex: 1; max-width: 600px; display: flex; background: white; border-radius: 4px; padding: 3px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .search-box input { flex: 1; border: none; padding: 10px 15px; font-family: var(--font-family); font-size: 14px; outline: none; border-radius: 4px 0 0 4px; } .search-box button { background: var(--primary-gradient); border: none; color: white; padding: 0 20px; border-radius: 3px; cursor: pointer; transition: all var(--transition-speed); } .search-box button:hover { background: var(--primary-gradient-hover); box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35); } .cart-icon-wrapper { position: relative; cursor: pointer; padding: 5px; transition: transform var(--transition-speed); } .cart-icon-wrapper:hover { transform: scale(1.1); } .cart-icon-wrapper i { font-size: 26px; color: white; } .cart-badge { position: absolute; top: -5px; right: -8px; background-color: white; color: var(--secondary-color); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; border: 2px solid var(--secondary-color); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); } /* Banner Slider Styling */ .banner-section { margin: 20px 0; } .banner-slider { width: 100%; height: 220px; background: linear-gradient(135deg, #0284c7, #7c3aed); border-radius: var(--border-radius); overflow: hidden; position: relative; box-shadow: var(--card-shadow); } .slide { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 40px; color: white; text-align: center; } .slide-content h2 { font-size: 32px; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .slide-content p { font-size: 16px; opacity: 0.9; } /* Categories Styles */ .categories-section { background: white; padding: 20px; border-radius: var(--border-radius); box-shadow: var(--card-shadow); margin-bottom: 20px; } .section-title { font-size: 18px; font-weight: 600; margin-bottom: 15px; position: relative; padding-left: 12px; color: var(--text-primary); } .section-title::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; background: var(--primary-gradient); border-radius: 2px; } .categories-list { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; } .category-btn { background-color: #f1f5f9; border: 1px solid var(--border-color); border-radius: 20px; padding: 8px 18px; font-family: var(--font-family); font-size: 14px; cursor: pointer; white-space: nowrap; transition: all var(--transition-speed); } .category-btn:hover, .category-btn.active { background: var(--primary-gradient); color: white; border-color: transparent; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35); } /* Products Section */ .products-section { margin-bottom: 40px; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .product-count { font-size: 14px; color: var(--text-secondary); } .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; } /* Product Card Component */ .product-card { background-color: white; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--card-shadow); transition: transform var(--transition-speed), box-shadow var(--transition-speed); display: flex; flex-direction: column; position: relative; border: 1px solid rgba(0, 0, 0, 0.03); } .product-card:hover { transform: translateY(-5px); box-shadow: var(--hover-shadow); } .product-image-container { width: 100%; padding-top: 100%; /* 1:1 Aspect Ratio */ position: relative; background-color: #fafafa; overflow: hidden; } .product-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; } .product-card:hover .product-img { transform: scale(1.05); } .product-info { padding: 15px; display: flex; flex-direction: column; flex: 1; } .product-name { font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 42px; } .product-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; } .product-sizes { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; } .size-tag { font-size: 10px; font-weight: 600; padding: 2px 6px; border: 1px solid var(--border-color); background-color: #fafafa; border-radius: 3px; color: var(--text-secondary); } .product-price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; } .product-price { font-size: 18px; font-weight: 700; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .btn-add-cart { background: var(--primary-gradient); border: none; color: white; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35); transition: all var(--transition-speed); } .btn-add-cart:hover { background: var(--primary-gradient-hover); transform: scale(1.1); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4); } /* Size Selection Overlay/Popup on adding to cart */ .size-selector-dropdown { margin-top: 10px; display: flex; gap: 5px; align-items: center; } .size-select { font-family: var(--font-family); padding: 4px 8px; font-size: 12px; border-radius: 4px; border: 1px solid var(--border-color); } /* Product action buttons (Edit & Delete for owners and admin) */ .card-actions-group { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 2; } .edit-product-btn, .delete-product-btn { background-color: rgba(255, 255, 255, 0.92); border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); transition: transform var(--transition-speed), background-color var(--transition-speed), color var(--transition-speed); } .edit-product-btn { color: var(--primary-color); } .edit-product-btn:hover { transform: scale(1.12); background: var(--primary-gradient); color: white; } .delete-product-btn { color: #e53935; } .delete-product-btn:hover { transform: scale(1.12); background-color: #e53935; color: white; } /* Image preview in Edit Modal */ .image-preview-container { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border-color); border-radius: var(--border-radius); background-color: #fafafa; } .image-preview-thumbnail { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-color); background-color: white; } .image-preview-text { font-size: 13px; color: var(--text-secondary); } /* Modal Styling */ .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--transition-speed); z-index: 200; } .modal-overlay.open { opacity: 1; pointer-events: auto; } .modal-content { background-color: white; border-radius: var(--border-radius); padding: 30px; width: 90%; max-width: 480px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); position: relative; transform: scale(0.9); transition: transform var(--transition-speed); } .modal-overlay.open .modal-content { transform: scale(1); } .modal-close-btn { position: absolute; top: 15px; right: 18px; background: none; border: none; font-size: 28px; color: var(--text-secondary); cursor: pointer; transition: color var(--transition-speed); } .modal-close-btn:hover { color: var(--text-primary); } .modal-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; } .modal-title i { color: var(--primary-color); } /* Form Styles inside Modals */ .form-group { margin-bottom: 16px; } .form-row { display: flex; gap: 15px; } .col-6 { flex: 0 0 calc(50% - 7.5px); } label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-primary); } .required { color: var(--primary-color); } input[type="text"], input[type="number"], input[type="password"], select, textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-family); font-size: 14px; color: var(--text-primary); background-color: #fafafa; outline: none; transition: border-color var(--transition-speed), background-color var(--transition-speed); } input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, select:focus, textarea:focus { border-color: var(--primary-color); background-color: white; } /* Size checkbox grid in modal */ .size-checkboxes-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; } .size-checkbox-wrapper { cursor: pointer; } .size-checkbox-wrapper input[type="checkbox"] { display: none; } .custom-checkbox { display: flex; align-items: center; justify-content: center; height: 38px; border: 1px solid var(--border-color); border-radius: 4px; background-color: #fafafa; font-weight: 600; font-size: 13px; transition: all var(--transition-speed); user-select: none; } .size-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox { background: var(--primary-gradient); color: white; border-color: transparent; box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25); } /* File Upload Zone */ .file-upload-zone { border: 2px dashed var(--border-color); background-color: #fafafa; border-radius: var(--border-radius); padding: 20px; text-align: center; cursor: pointer; transition: border-color var(--transition-speed), background-color var(--transition-speed); } .file-upload-zone:hover { border-color: var(--primary-color); background-color: rgba(37, 99, 235, 0.03); } .upload-placeholder i { font-size: 32px; color: var(--text-secondary); margin-bottom: 8px; transition: color var(--transition-speed); } .file-upload-zone:hover .upload-placeholder i { color: var(--primary-color); } .upload-placeholder p { font-size: 13px; color: var(--text-secondary); } .file-info { display: block; margin-top: 8px; font-size: 12px; color: var(--success-color); font-weight: 500; } .submit-btn { width: 100%; padding: 12px; background: var(--primary-gradient); border: none; color: white; font-family: var(--font-family); font-size: 16px; font-weight: 600; border-radius: 4px; cursor: pointer; transition: all var(--transition-speed); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); margin-top: 10px; } .submit-btn:hover { background: var(--primary-gradient-hover); box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35); } .auth-toggle-note { font-size: 12px; color: var(--text-secondary); background-color: #f1f5f9; border: 1px solid #e2e8f0; padding: 10px; border-radius: 4px; margin-bottom: 16px; } /* Shopping Cart Sidebar Panel */ .cart-sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); z-index: 150; opacity: 0; pointer-events: none; transition: opacity var(--transition-speed); } .cart-sidebar-overlay.open { opacity: 1; pointer-events: auto; } .cart-sidebar { position: fixed; top: 0; right: -380px; width: 380px; height: 100%; background-color: white; z-index: 160; box-shadow: -5px 0 25px rgba(0,0,0,0.15); display: flex; flex-direction: column; transition: right var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1); } .cart-sidebar.open { right: 0; } .cart-sidebar-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; } .cart-sidebar-header h3 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--primary-color); } .close-sidebar-btn { background: none; border: none; font-size: 32px; cursor: pointer; color: var(--text-secondary); } .cart-items-container { flex: 1; overflow-y: auto; padding: 15px; } .empty-cart-message { text-align: center; padding: 50px 20px; color: var(--text-secondary); } .empty-cart-message i { font-size: 48px; margin-bottom: 15px; opacity: 0.6; } .cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-color); } .cart-item-img { width: 65px; height: 65px; object-fit: cover; border-radius: 4px; background-color: #fafafa; } .cart-item-info { flex: 1; display: flex; flex-direction: column; } .cart-item-name { font-size: 13px; font-weight: 500; color: var(--text-primary); line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .cart-item-meta { font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; } .cart-item-controls { display: flex; justify-content: space-between; align-items: center; } .qty-control { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 3px; background-color: #fff; overflow: hidden; } .qty-btn { border: none; background: #fafafa; width: 26px; height: 24px; font-weight: bold; cursor: pointer; transition: background-color 0.2s; } .qty-btn:hover { background-color: #eee; } .qty-val { width: 32px; text-align: center; font-size: 12px; font-weight: 600; } .cart-item-price { font-size: 14px; font-weight: 600; color: var(--primary-color); } .remove-cart-item-btn { background: none; border: none; color: #e53935; cursor: pointer; font-size: 14px; padding: 5px; transition: transform 0.2s; } .remove-cart-item-btn:hover { transform: scale(1.1); } .cart-sidebar-footer { padding: 20px; border-top: 1px solid var(--border-color); background-color: #fafafa; } .cart-total-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 15px; font-weight: 500; } .cart-total-price { font-size: 20px; font-weight: 700; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .checkout-btn { width: 100%; padding: 12px; background: var(--primary-gradient); border: none; color: white; font-family: var(--font-family); font-size: 16px; font-weight: 600; border-radius: 4px; cursor: pointer; transition: all var(--transition-speed); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); } .checkout-btn:hover { background: var(--primary-gradient-hover); box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35); } /* Footer Section */ .main-footer { background-color: #f8fafc; border-top: 4px solid var(--primary-color); padding: 40px 0 20px 0; color: #64748b; } .footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 30px; } .footer-brand { flex: 1 1 300px; } .footer-brand h3 { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 24px; margin-bottom: 12px; } .footer-brand p { font-size: 14px; line-height: 1.6; } .footer-links { flex: 1 1 200px; } .footer-links h4 { color: var(--text-primary); margin-bottom: 12px; font-size: 16px; } .footer-links p { font-size: 14px; margin-bottom: 8px; } .footer-bottom { text-align: center; border-top: 1px solid var(--border-color); padding-top: 20px; font-size: 13px; color: var(--text-secondary); } /* Responsive adjustments */ @media (max-width: 768px) { .main-nav-content { flex-direction: column; align-items: stretch; } .search-box { max-width: 100%; order: 3; } .logo { justify-content: center; } .cart-icon-wrapper { position: absolute; top: 45px; right: 20px; } .cart-sidebar { width: 100%; right: -100%; } .form-row { flex-direction: column; gap: 0; } .col-6 { flex: 0 0 100%; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.29 |
proxy
|
phpinfo
|
Settings